-
Notifications
You must be signed in to change notification settings - Fork 234
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
[CT-594] Support for Iceberg sort order #343
Comments
Hey @cccs-jc, thanks for opening! Sure, this sounds like a reasonable config option within the table materialization. It also sounds like something you could get working with a Following the thread in #294:
Perhaps it makes sense to wait on adding support for this specific config, until we have the right pieces in place to officially support Iceberg? |
I agree. I mostly wanted to create the issue so we don't loose track of it. It's my understanding that the guys at Iceberg plan to contribute support for Iceberg in dbt-spark. I've pointed them to my POC which does include some tidbits but is not complete or production grade. For now yes we will use a pre-hook so that when we insert the table is always configured correctly. |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
When creating iceberg tables you can specify a sort order. This is important because a table that is partition will implicitly be sorted by iceberg (overriding the sort statement in your query).
Sort order are specified via ALTER TABLE statement. In an iceberg implementation this feature should be configurable via a dbt-config.
Reference: https://iceberg.apache.org/docs/latest/spark-ddl/
Example statement:
The text was updated successfully, but these errors were encountered: