In the lua hooks, is there anyway we can write dat...
# help
h
In the lua hooks, is there anyway we can write data based on the reference here: https://docs.lakefs.io/howto/hooks/lua.html#lua-library-reference I see we can read data by
lakefs/get_object(repository_id, reference_id, path)
, but I dont see how to write data
o
Hi @Haoming Jiang Can you please elaborate on your scenario where you want to use lua hooks for write?
h
For example, I want a file 'stats.json' showing how many files or some statistics in '/data' folder. So I can directly read the file to figure out instead of reading all the data and recalculate the metrics every time.
So I'm looking for a pre-commit hook to load the data, get stats, and write them into the lakefs repo, and then commit the change
o
Thanks @Haoming Jiang. Please open a feature request here with the details