-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide an API to add constraints to a Delta Table via Python #106
Comments
@robertkossendey - this would be great, but it really feels like this one belongs in Delta itself. Can you open an issue in delta-io/delta and see if we can get it added there? If that's not possible, then I suppose we can add it to mack. |
Actually, because constraints end up as properties of the Delta table, you can add constraints with the following syntax. It's not elegant but it's an optional workaround:
|
Ahhh, thank you very much for letting me know @cs23andris! I always forget about the DeltaTableBuilder API. This does only work on creation though, right? |
Yes, that's true. |
@robertkossendey - yea, think we can go ahead and add this feature. Feel free to propose your suggested API and we can brainstorm before it gets built. Thank you! |
Correct me if I am wrong, but the only way to currently add table constraints is through the SQL interface.
We should provide an API that allows the user to add, maybe event update and delete constraints from a table via Python.
The text was updated successfully, but these errors were encountered: