-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add Hive table property to for arbitrary properties #954
Comments
@dain Can you please help me understand why we do not want to show properties mapped to existing table properties? |
I believe it would be confusing to users if the a property was presented in two different ways. I expect this would raise a lot of questions about which one is supposed to be used, and what happens on conflicts. Also, things like "I only set X and now I see X and Y". In general, I see this feature as an "escape hatch" for cases when we don't directly support a standard property, or there the user has a custom property in their environment, but I want to encourage the use of the Presto property system because it is safer for end users to use due to the type safety of the syntax and the property specific validation code we have in some cases. |
@dain Please have a look at the initial WIP pr, i am able to take input and store map but while visiting in |
Any plans on developing this? For iceberg, we need to set properties to clean data files |
Currently only table properties explicitly listed HiveTableProperties are supported in Presto, but many Hive environments use extended properties for administration.
Add a property named
extra_properties
of typeMAP(VARCHAR, VARCHAR)
.On read (e.g.
SHOW CREATE TABLE
) will show only the properties not mapped to existing table properties, and properties created by presto such aspresto_version
andpresto_query_id
.On write, these properties are merged with the other properties, and if there are duplicates and error is thrown.
This is equivalent of Hive's
TBLPROPERTIES
.The text was updated successfully, but these errors were encountered: