quick question about writing to tagged data in lak...
# help
u
quick question about writing to tagged data in lakefs
u
if i have a tag set up in lakefs pointing to a specific commit of the data, and then i issue writes to that data… what happens? i see in the docs that you can write to data in a lakefs branch, but what if instead of a branch we’re using a tag? what happens in that case?
u
Hi Verun, Thanks for the question! You're right, of course. You cannot write to a tag. In git this would be a write to a detached HEAD. In lakeFS, which has no "working tree", just staging, this simply will not work - it will fail the write.
u
Do you have some specific use case for needing to do this? You could e.g. branch out from the tag, then write to that branch. Would that help?
u
thanks @Ariel Shaqed (Scolnicov) i’m glad to hear that the write will fail, that makes things better on our end basically we want to set up hive tables to point to data that a specific lakefs tag points to, and i was wondering what happens if the user then issues some SQL such as
insert into
or
update…
or whatever
u
failing the write in that case is, for our use case at least, the right thing to happen. thanks!
u
I'm coming at this from the git angle. But I can certainly see how that makes sense for you - glad that it does.