Adding more fields to the History #1929
Replies: 4 comments
-
the commit info is actually a quite free structure. the info in the link is actually what spark is adding, and delta-rs tries to be similar to that. In principle it is possible to add custom metadata to a commit - not sure if we expose that in the python write command though. It is however important to know, that commit provenance information is not retained across checkpoints and will be completely lost once the table is vacuumed. There are potentially other means though to track some application metadata depending on the use case. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. My main interest is in capturing the username of the person performing each action. Do you know if there is a plan to add the Python Binding for this? |
Beta Was this translation helpful? Give feedback.
-
Good morning, |
Beta Was this translation helpful? Give feedback.
-
This is complete! Thank you!! You can use the custom_metadata property and pass any key:value pair. https://github.com/delta-io/delta-rs/releases/tag/python-v0.15.1 |
Beta Was this translation helpful? Give feedback.
-
I am trying to enhance the history. I would like to add username and userMetadata.
https://docs.delta.io/latest/delta-utility.html#history-schema
I am currently doing this.
Currently, the dt.history() is giving the following.
Is there any way to add more to the history log?
Appreciate any insight yall can provide.
Beta Was this translation helpful? Give feedback.
All reactions