-
Notifications
You must be signed in to change notification settings - Fork 29
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
Parse schema from table metadata #30
Conversation
…d to the 'read_parquet' function as schema for the result
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.
Looking good @samansmink
auto digits = StringUtil::Split(raw_digits, ','); | ||
D_ASSERT(digits.size() == 2); | ||
|
||
auto width = std::stoi(digits[0]); |
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.
Checked if it strips whitespace and it looks like it 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.
So this is good as is right?
Parse schema from table metadata
This PR changes the way we scan Iceberg tables. Before we would simply scan them as a list of parquet files, using the schema we found in the first parquet file scanned.
Now the iceberg metadata is actually scanned to parse the schema and pass that to the parquet_scan in duckdb using the
schema
parameter: duckdb/duckdb#9123This effectively adds support for schema evolution and resolves issues where the parquet schema is different from the iceberg schema.
To test it, the spark-based test data generation script was updated to include schema evolution. Note that it is not yet run from CI, but that will follow soon in conjunction with the REST catalog support and the testing infrastructure added in #27