branch-2.1: [fix](maxcompute)fix maxcompute partition column schema order #48325#48373
Merged
morningman merged 1 commit intobranch-2.1from Feb 26, 2025
Merged
branch-2.1: [fix](maxcompute)fix maxcompute partition column schema order #48325#48373morningman merged 1 commit intobranch-2.1from
morningman merged 1 commit intobranch-2.1from
Conversation
### What problem does this PR solve? Problem Summary: ```sql create table in MaxCompute : CREATE TABLE `mc_parts` (`id` STRING COMMENT 'Id') PARTITIONED BY ( `ds` STRING , `audit_flag` STRING ); query in doris : before: mysql> desc mc_parts; +------------+------+------+------+---------+-------+ | Field | Type | Null | Key | Default | Extra | +------------+------+------+------+---------+-------+ | id | text | Yes | true | NULL | | | audit_flag | text | Yes | true | NULL | | | ds | text | Yes | true | NULL | | +------------+------+------+------+---------+-------+ mysql> select * from mc_parts; ERROR 1105 (HY000): errCode = 2, detailMessage = java.io.IOException: ODPS-0420061: Invalid parameter in HTTP request - The requested columns should be in order with table schema The reason is because this ds column needs to be before audit_flag, and this order is also required when doing partition pruning ( eg: ds=2024-01-01/audit_flag=Y ). after: mysql> desc mc_parts; +------------+------+------+------+---------+-------+ | Field | Type | Null | Key | Default | Extra | +------------+------+------+------+---------+-------+ | id | text | Yes | true | NULL | | | ds | text | Yes | true | NULL | | | audit_flag | text | Yes | true | NULL | | +------------+------+------+------+---------+-------+ ```
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
|
run buildall |
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.
Cherry-picked from #48325