[HUDI-7978][DOCS] Add a note on field oldering in partitioned by clause of create sql#11610
Merged
nsivabalan merged 2 commits intoapache:asf-sitefrom Jul 11, 2024
Merged
[HUDI-7978][DOCS] Add a note on field oldering in partitioned by clause of create sql#11610nsivabalan merged 2 commits intoapache:asf-sitefrom
nsivabalan merged 2 commits intoapache:asf-sitefrom
Conversation
nsivabalan
reviewed
Jul 10, 2024
| You can also create a table partitioned by multiple fields by supplying comma-separated field names. | ||
| When creating a table partitioned by multiple fields, ensure that you specify the columns in the `PARTITIONED BY` clause | ||
| in the same order as they appear in the `CREATE TABLE` schema. For example, for the above table, the partition fields | ||
| should be specified as `PARTITIONED BY (dt, hh)`. |
Contributor
There was a problem hiding this comment.
is it not an issue in older versions? or we have sql_ddl page only from 0.14.x
Member
Author
There was a problem hiding this comment.
I could not find sql ddl docs in earlier version but later realized this was part of quickstart itself. Tested back till 0.10, which error out, but other versions create table and insert data in incorrect partition. Updated the PR.
nsivabalan
approved these changes
Jul 11, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Logs
If we specify partition fields in an order different from the order in create table schema, then query does not fail and the whole partitioning is incorrect. This has been an issue even in 0.15 and 0.14. We will fix this in HUDI-7964. Meanwhile, it's important we update the docs.
Impact
Docs improvement.
Risk level (write none, low medium or high below)
low
Documentation Update
Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".
ticket number here and follow the instruction to make
changes to the website.
Contributor's checklist