-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Write correct Iceberg types to Glue metastore #18299
Conversation
Note that Iceberg own GlueCatalog has similar problem: Relevant discussion on iceberg slack: https://apache-iceberg.slack.com/archives/C03LG1D563F/p1689351883036489 |
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 didn't think we wrote any column information for Iceberg tables to Glue, am I wrong about that?
import static com.google.common.collect.ImmutableList.toImmutableList; | ||
import static java.util.Objects.requireNonNull; | ||
|
||
@Immutable |
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.
Are we annotating immutable classes now? That's new to me
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.
We sometimes do. I think this annotation is generally desirable. This class is a copy of other one, and i just copied annotation anyway.
you're right. I didn't finish the work. |
8f9899e
to
a4e8a5e
Compare
HiveCatalog sets data column types in metastore for an Iceberg table. This adds same behavior for register_table flow.
Introduce separate column class representing column serialized in file metastore.
Previously we were modelling metastore types with `HiveType`, which was appropriate for Hive connector only. This changes internal model to use `String`, allowing connectors to store all needed types in the metastore.
a4e8a5e
to
1d74afa
Compare
Superseded by #18315 |
No description provided.