-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](maxcompute)fix maxcompute partition column schema order #48325
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
TPC-H: Total hot run time: 31923 ms |
TPC-DS: Total hot run time: 190892 ms |
ClickBench: Total hot run time: 30.69 s |
a0d8fd4 to
edd1a19
Compare
|
run buildall |
TPC-H: Total hot run time: 32243 ms |
TPC-DS: Total hot run time: 189908 ms |
ClickBench: Total hot run time: 31.45 s |
morningman
left a comment
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.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
### 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 | | +------------+------+------+------+---------+-------+ ```
### 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 | | +------------+------+------+------+---------+-------+ ```
…#48325) ### 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 | | +------------+------+------+------+---------+-------+ ```
…#48325) ### 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 | | +------------+------+------+------+---------+-------+ ```
…#48325) ### 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 | | +------------+------+------+------+---------+-------+ ```
…#48325) ### 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 | | +------------+------+------+------+---------+-------+ ```
…#48325) ### 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 | | +------------+------+------+------+---------+-------+ ```
…#48325) ### 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 | | +------------+------+------+------+---------+-------+ ```
…n prune && timstamp type(apache#44508, apache#48768, apache#48325) (apache#3805) pick apache#44508 apache#48768 apache#48325 --------- Co-authored-by: zhangdong <zhangdong@selectdb.com>
…#48325) ### 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 | | +------------+------+------+------+---------+-------+ ```
…#48325) ### 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 | | +------------+------+------+------+---------+-------+ ```
What problem does this PR solve?
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)