-
Notifications
You must be signed in to change notification settings - Fork 378
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
[#2117] improvement(api): Type adds UNPARSED column data type to handle an unresolvable type from the catalog #2140
Conversation
665be5b
to
42245d3
Compare
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.
Missing JSON SerDe for Unknown
type
api/src/main/java/com/datastrato/gravitino/rel/types/Types.java
Outdated
Show resolved
Hide resolved
42245d3
to
00f6a00
Compare
f98ca68
to
da04866
Compare
Could you please add related integration tests? |
167bb0e
to
007f184
Compare
007f184
to
8000226
Compare
@mchades, I have added |
8000226
to
e42ef7d
Compare
Overall LGTM, but missing support for Iceberg catalog, you need to modify |
…o handle an unresolvable type from the catalog
e42ef7d
to
d411243
Compare
@mchades, I have modified |
@SteNicholas |
The document related work will be tracked by #2323 |
…solvable type from the catalog (#2337) ### What changes were proposed in this pull request? Document `UnparsedType` data type which handles an unresolvable type from the catalog. ### Why are the changes needed? `UnparsedType` data type that handles an unresolvable type from the catalog is supported in #2140. Fix: #2323 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? No.
What changes were proposed in this pull request?
Type
addsUNPARSED
column data type to handle an unresolvable type from the catalog.Why are the changes needed?
If a column data type in the catalog does not have a mapping in Gravitino, an exception will be thrown. We should map all data types from a catalog to Gravitino. However, in practical situations, loading exceptions may occur due to the addition of new data types or insufficient mapping support. Introduce
UnparsedType
to represent the unparsed data type.Fix: #2117
Does this PR introduce any user-facing change?
Type
addsUNKNOWN
column data type that represents an unresolvable type.How was this patch tested?
TestJsonUtils#testTypeSerDe
TestTypes#testUnparsedType
TestTypeConverter#testTypeConverter
TestMysqlTypeConverter#testToGravitinoType
TestPostgreSqlTypeConverter#testToGravitinoType
CatalogMysqlIT#testUnparsedTypeConverter
CatalogPostgreSqlIT#testUnparsedTypeConverter