-
Notifications
You must be signed in to change notification settings - Fork 409
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
[#1455] improvement(all) Refactor catalog property mapping to engine property #1458
Conversation
catalogs/bundled-catalog/src/main/java/com/datastrato/catalog/property/PropertyConverter.java
Outdated
Show resolved
Hide resolved
catalogs/bundled-catalog/src/main/java/com/datastrato/catalog/property/PropertyConverter.java
Show resolved
Hide resolved
catalogs/bundled-catalog/src/main/java/com/datastrato/catalog/property/PropertyConverter.java
Show resolved
Hide resolved
propertyEntry.decode(entry.getValue().toString()); | ||
} | ||
gravitinoProperties.put(gravitinoKey, entry.getValue()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we throw an exception when the gravitinoKey
is null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like the implementor to overwrite it and change the policy regarding null values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will log the key with null value here.
...src/main/java/com/datastrato/gravitino/trino/connector/catalog/hive/HiveMetadataAdapter.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT
…ngine property (apache#1458) ### What changes were proposed in this pull request? Use the new `PropertyConverter` in `catalog-common` to replace the old one. ### Why are the changes needed? We must provide a uniform property mapping system between Gravitino and the query engine. Fix: apache#1455 ### Does this PR introduce _any_ user-facing change? N/A. ### How was this patch tested? Existing test can cover this change.
…ngine property (apache#1458) ### What changes were proposed in this pull request? Use the new `PropertyConverter` in `catalog-common` to replace the old one. ### Why are the changes needed? We must provide a uniform property mapping system between Gravitino and the query engine. Fix: apache#1455 ### Does this PR introduce _any_ user-facing change? N/A. ### How was this patch tested? Existing test can cover this change.
What changes were proposed in this pull request?
Use the new
PropertyConverter
incatalog-common
to replace the old one.Why are the changes needed?
We must provide a uniform property mapping system between Gravitino and the query engine.
Fix: #1455
Does this PR introduce any user-facing change?
N/A.
How was this patch tested?
Existing test can cover this change.