-
Notifications
You must be signed in to change notification settings - Fork 432
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
DRAFT: Extension types #451
base: master
Are you sure you want to change the base?
Conversation
8b0da72
to
042a207
Compare
When a reader encounters an extension type in a Parquet schema, it should try | ||
to match it by name to its known extension types. If it does not recognize | ||
the extension type, then it should read it as the underlying physical type | ||
and should not try to interpret the column's statistics. It may however |
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.
min/max statistics, others should be valid?
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.
Oops, yes, you're right.
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.
perhaps including column index?
Generally seems reasonable to me. |
When a reader encounters an extension type in a Parquet schema, it should try | ||
to match it by name to its known extension types. If it does not recognize | ||
the extension type, then it should read it as the underlying physical type | ||
and should not try to interpret the column's statistics. It may however |
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.
perhaps including column index?
* | ||
* If the extension type is not parametric, then `serialization` is empty. | ||
*/ | ||
struct ExtensionTypeDescription { |
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.
Why choosing a dedicated ExtensionTypeDescription
struct over list<KeyValue>
? I'm afraid that a binary typed field may incur misuse from the users.
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.
What would the list<KeyValue>
contain and where would it reside? I'm not following you.
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.
struct ExtensionTypeDescription {
1: optional list<KeyValue> metadata
}
And specify the required keys for each extension type, pretty much like what Arrow does.
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.
This does not make sense, does it? The keys will always be the same, so why not reify them in the Thrift spec as the PR currently does?
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.
Or are you thinking about extension-specific parameter keys as in https://arrow.apache.org/docs/dev/format/CanonicalExtensions.html ?
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.
Note we would still need the extension name, so this would be:
struct ExtensionTypeDescription {
1: required string name
2: optional list<KeyValue> parameters
}
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.
Or are you thinking about extension-specific parameter keys as in https://arrow.apache.org/docs/dev/format/CanonicalExtensions.html ?
Yes, I mean something like this.
Rationale for this change
What changes are included in this PR?
Do these changes have PoC implementations?