Uh oh!
There was an error while loading. Please reload this page.
[fix](ddl) Wrong result of scalar type toString for DATETIMEV2 - #50237
Merged
Conversation
hello-stephen
commented
Apr 21, 2025
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
wyxxxcat
commented
Apr 21, 2025
CollaboratorAuthor
run buildall |
doris-robot
commented
Apr 21, 2025
TPC-H: Total hot run time: 33853 ms |
doris-robot
commented
Apr 21, 2025
TPC-DS: Total hot run time: 185398 ms |
doris-robot
commented
Apr 21, 2025
ClickBench: Total hot run time: 29.77 s |
wyxxxcatforce-pushed
the
show_datetime
branch
2 times, most recently
from
April 22, 2025 02:45
996a5e5 to
8fe6cecComparewyxxxcat
commented
Apr 22, 2025
CollaboratorAuthor
run buildall |
wyxxxcat
commented
Apr 22, 2025
CollaboratorAuthor
run buildall |
doris-robot
commented
Apr 22, 2025
TPC-H: Total hot run time: 33834 ms |
doris-robot
commented
Apr 22, 2025
TPC-DS: Total hot run time: 192015 ms |
doris-robot
commented
Apr 22, 2025
ClickBench: Total hot run time: 29.43 s |
wyxxxcat
commented
Apr 23, 2025
CollaboratorAuthor
run buildall |
doris-robot
commented
Apr 23, 2025
TPC-H: Total hot run time: 34181 ms |
doris-robot
commented
Apr 23, 2025
TPC-DS: Total hot run time: 192175 ms |
doris-robot
commented
Apr 23, 2025
ClickBench: Total hot run time: 29.32 s |
wyxxxcat
commented
Apr 23, 2025
CollaboratorAuthor
run feut |
wyxxxcat
commented
May 7, 2025
CollaboratorAuthor
run buildall |
doris-robot
commented
May 7, 2025
TPC-H: Total hot run time: 33668 ms |
doris-robot
commented
May 7, 2025
TPC-DS: Total hot run time: 192635 ms |
doris-robot
commented
May 7, 2025
ClickBench: Total hot run time: 28.89 s |
wyxxxcat
commented
May 7, 2025
CollaboratorAuthor
run feut |
wyxxxcat
commented
May 7, 2025
CollaboratorAuthor
run buildall |
doris-robot
commented
May 7, 2025
TPC-H: Total hot run time: 34121 ms |
doris-robot
commented
May 7, 2025
TPC-DS: Total hot run time: 194041 ms |
doris-robot
commented
May 7, 2025
ClickBench: Total hot run time: 29.01 s |
wyxxxcat
commented
May 8, 2025
CollaboratorAuthor
run buildall |
doris-robot
commented
May 8, 2025
TPC-H: Total hot run time: 33788 ms |
doris-robot
commented
May 8, 2025
TPC-DS: Total hot run time: 192005 ms |
doris-robot
commented
May 8, 2025
ClickBench: Total hot run time: 29.75 s |
morrySnow
approved these changes
May 14, 2025
Contributor
PR approved by at least one committer and no changes requested. |
Contributor
PR approved by anyone and no changes requested. |
w41ter
approved these changes
May 14, 2025
github-actionsBot
pushed a commit
that referenced
this pull request
May 14, 2025
) before: ``` mysql> CREATE TABLE t -> ( -> project_id BIGINT NOT NULL , -> consume_date DATETIMEV2 NOT NULL, -> order_id BIGINT NOT NULL , -> combo_extend JSONB DEFAULT NULL, -> age INT, -> name varchar(20), -> write_time DATETIME DEFAULT CURRENT_TIMESTAMP -> ) UNIQUE KEY(project_id, consume_date,order_id) -> DISTRIBUTED BY HASH(project_id) BUCKETS 1 -> PROPERTIES ( -> "replication_allocation" = "tag.location.default: 1", -> "function_column.sequence_type" = 'datetimev2' -> ); mysql> show create table t\G *************************** 1. row *************************** Table: t Create Table: CREATE TABLE `t` ( `project_id` bigint NOT NULL, `consume_date` datetime NOT NULL, `order_id` bigint NOT NULL, `combo_extend` json NULL, `age` int NULL, `name` varchar(20) NULL, `write_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=OLAP UNIQUE KEY(`project_id`, `consume_date`, `order_id`) DISTRIBUTED BY HASH(`project_id`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1", "function_column.sequence_type" = "datetimev2(0)" // wrong ); mysql> CREATE TABLE t -> ( -> project_id BIGINT NOT NULL , -> consume_date DATETIMEV2 NOT NULL, -> order_id BIGINT NOT NULL , -> combo_extend JSONB DEFAULT NULL, -> age INT, -> name varchar(20), -> write_time DATETIME DEFAULT CURRENT_TIMESTAMP -> ) UNIQUE KEY(project_id, consume_date,order_id) -> DISTRIBUTED BY HASH(project_id) BUCKETS 1 -> PROPERTIES ( -> "replication_allocation" = "tag.location.default: 1", -> "function_column.sequence_type" = 'datetimev2(0)' -> ); ERROR 1105 (HY000): errCode = 2, detailMessage = No enum constant org.apache.doris.catalog.PrimitiveType.DATETIMEV2(0) ``` now: ``` mysql> CREATE TABLE t -> ( -> project_id BIGINT NOT NULL , -> consume_date DATETIMEV2 NOT NULL, -> order_id BIGINT NOT NULL , -> combo_extend JSONB DEFAULT NULL, -> age INT, -> name varchar(20), -> write_time DATETIME DEFAULT CURRENT_TIMESTAMP -> ) UNIQUE KEY(project_id, consume_date,order_id) -> DISTRIBUTED BY HASH(project_id) BUCKETS 1 -> PROPERTIES ( -> "replication_allocation" = "tag.location.default: 1", -> "function_column.sequence_type" = 'datetimev2(0)' -> ); mysql> show create table t\G *************************** 1. row *************************** Table: t Create Table: CREATE TABLE `t` ( `project_id` bigint NOT NULL, `consume_date` datetime NOT NULL, `order_id` bigint NOT NULL, `combo_extend` json NULL, `age` int NULL, `name` varchar(20) NULL, `write_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=OLAP UNIQUE KEY(`project_id`, `consume_date`, `order_id`) DISTRIBUTED BY HASH(`project_id`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1", "function_column.sequence_type" = "datetimev2(0)" ); ```
github-actionsBot
pushed a commit
that referenced
this pull request
May 14, 2025
) before: ``` mysql> CREATE TABLE t -> ( -> project_id BIGINT NOT NULL , -> consume_date DATETIMEV2 NOT NULL, -> order_id BIGINT NOT NULL , -> combo_extend JSONB DEFAULT NULL, -> age INT, -> name varchar(20), -> write_time DATETIME DEFAULT CURRENT_TIMESTAMP -> ) UNIQUE KEY(project_id, consume_date,order_id) -> DISTRIBUTED BY HASH(project_id) BUCKETS 1 -> PROPERTIES ( -> "replication_allocation" = "tag.location.default: 1", -> "function_column.sequence_type" = 'datetimev2' -> ); mysql> show create table t\G *************************** 1. row *************************** Table: t Create Table: CREATE TABLE `t` ( `project_id` bigint NOT NULL, `consume_date` datetime NOT NULL, `order_id` bigint NOT NULL, `combo_extend` json NULL, `age` int NULL, `name` varchar(20) NULL, `write_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=OLAP UNIQUE KEY(`project_id`, `consume_date`, `order_id`) DISTRIBUTED BY HASH(`project_id`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1", "function_column.sequence_type" = "datetimev2(0)" // wrong ); mysql> CREATE TABLE t -> ( -> project_id BIGINT NOT NULL , -> consume_date DATETIMEV2 NOT NULL, -> order_id BIGINT NOT NULL , -> combo_extend JSONB DEFAULT NULL, -> age INT, -> name varchar(20), -> write_time DATETIME DEFAULT CURRENT_TIMESTAMP -> ) UNIQUE KEY(project_id, consume_date,order_id) -> DISTRIBUTED BY HASH(project_id) BUCKETS 1 -> PROPERTIES ( -> "replication_allocation" = "tag.location.default: 1", -> "function_column.sequence_type" = 'datetimev2(0)' -> ); ERROR 1105 (HY000): errCode = 2, detailMessage = No enum constant org.apache.doris.catalog.PrimitiveType.DATETIMEV2(0) ``` now: ``` mysql> CREATE TABLE t -> ( -> project_id BIGINT NOT NULL , -> consume_date DATETIMEV2 NOT NULL, -> order_id BIGINT NOT NULL , -> combo_extend JSONB DEFAULT NULL, -> age INT, -> name varchar(20), -> write_time DATETIME DEFAULT CURRENT_TIMESTAMP -> ) UNIQUE KEY(project_id, consume_date,order_id) -> DISTRIBUTED BY HASH(project_id) BUCKETS 1 -> PROPERTIES ( -> "replication_allocation" = "tag.location.default: 1", -> "function_column.sequence_type" = 'datetimev2(0)' -> ); mysql> show create table t\G *************************** 1. row *************************** Table: t Create Table: CREATE TABLE `t` ( `project_id` bigint NOT NULL, `consume_date` datetime NOT NULL, `order_id` bigint NOT NULL, `combo_extend` json NULL, `age` int NULL, `name` varchar(20) NULL, `write_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=OLAP UNIQUE KEY(`project_id`, `consume_date`, `order_id`) DISTRIBUTED BY HASH(`project_id`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1", "function_column.sequence_type" = "datetimev2(0)" ); ```
yiguolei pushed a commit
that referenced
this pull request
May 19, 2025
) before: ``` mysql> CREATE TABLE t -> ( -> project_id BIGINT NOT NULL , -> consume_date DATETIMEV2 NOT NULL, -> order_id BIGINT NOT NULL , -> combo_extend JSONB DEFAULT NULL, -> age INT, -> name varchar(20), -> write_time DATETIME DEFAULT CURRENT_TIMESTAMP -> ) UNIQUE KEY(project_id, consume_date,order_id) -> DISTRIBUTED BY HASH(project_id) BUCKETS 1 -> PROPERTIES ( -> "replication_allocation" = "tag.location.default: 1", -> "function_column.sequence_type" = 'datetimev2' -> ); mysql> show create table t\G *************************** 1. row *************************** Table: t Create Table: CREATE TABLE `t` ( `project_id` bigint NOT NULL, `consume_date` datetime NOT NULL, `order_id` bigint NOT NULL, `combo_extend` json NULL, `age` int NULL, `name` varchar(20) NULL, `write_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=OLAP UNIQUE KEY(`project_id`, `consume_date`, `order_id`) DISTRIBUTED BY HASH(`project_id`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1", "function_column.sequence_type" = "datetimev2(0)" // wrong ); mysql> CREATE TABLE t -> ( -> project_id BIGINT NOT NULL , -> consume_date DATETIMEV2 NOT NULL, -> order_id BIGINT NOT NULL , -> combo_extend JSONB DEFAULT NULL, -> age INT, -> name varchar(20), -> write_time DATETIME DEFAULT CURRENT_TIMESTAMP -> ) UNIQUE KEY(project_id, consume_date,order_id) -> DISTRIBUTED BY HASH(project_id) BUCKETS 1 -> PROPERTIES ( -> "replication_allocation" = "tag.location.default: 1", -> "function_column.sequence_type" = 'datetimev2(0)' -> ); ERROR 1105 (HY000): errCode = 2, detailMessage = No enum constant org.apache.doris.catalog.PrimitiveType.DATETIMEV2(0) ``` now: ``` mysql> CREATE TABLE t -> ( -> project_id BIGINT NOT NULL , -> consume_date DATETIMEV2 NOT NULL, -> order_id BIGINT NOT NULL , -> combo_extend JSONB DEFAULT NULL, -> age INT, -> name varchar(20), -> write_time DATETIME DEFAULT CURRENT_TIMESTAMP -> ) UNIQUE KEY(project_id, consume_date,order_id) -> DISTRIBUTED BY HASH(project_id) BUCKETS 1 -> PROPERTIES ( -> "replication_allocation" = "tag.location.default: 1", -> "function_column.sequence_type" = 'datetimev2(0)' -> ); mysql> show create table t\G *************************** 1. row *************************** Table: t Create Table: CREATE TABLE `t` ( `project_id` bigint NOT NULL, `consume_date` datetime NOT NULL, `order_id` bigint NOT NULL, `combo_extend` json NULL, `age` int NULL, `name` varchar(20) NULL, `write_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=OLAP UNIQUE KEY(`project_id`, `consume_date`, `order_id`) DISTRIBUTED BY HASH(`project_id`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1", "function_column.sequence_type" = "datetimev2(0)" ); ```
koarz pushed a commit
to koarz/doris
that referenced
this pull request
Jun 4, 2025
…che#50237) before: ``` mysql> CREATE TABLE t -> ( -> project_id BIGINT NOT NULL , -> consume_date DATETIMEV2 NOT NULL, -> order_id BIGINT NOT NULL , -> combo_extend JSONB DEFAULT NULL, -> age INT, -> name varchar(20), -> write_time DATETIME DEFAULT CURRENT_TIMESTAMP -> ) UNIQUE KEY(project_id, consume_date,order_id) -> DISTRIBUTED BY HASH(project_id) BUCKETS 1 -> PROPERTIES ( -> "replication_allocation" = "tag.location.default: 1", -> "function_column.sequence_type" = 'datetimev2' -> ); mysql> show create table t\G *************************** 1. row *************************** Table: t Create Table: CREATE TABLE `t` ( `project_id` bigint NOT NULL, `consume_date` datetime NOT NULL, `order_id` bigint NOT NULL, `combo_extend` json NULL, `age` int NULL, `name` varchar(20) NULL, `write_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=OLAP UNIQUE KEY(`project_id`, `consume_date`, `order_id`) DISTRIBUTED BY HASH(`project_id`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1", "function_column.sequence_type" = "datetimev2(0)" // wrong ); mysql> CREATE TABLE t -> ( -> project_id BIGINT NOT NULL , -> consume_date DATETIMEV2 NOT NULL, -> order_id BIGINT NOT NULL , -> combo_extend JSONB DEFAULT NULL, -> age INT, -> name varchar(20), -> write_time DATETIME DEFAULT CURRENT_TIMESTAMP -> ) UNIQUE KEY(project_id, consume_date,order_id) -> DISTRIBUTED BY HASH(project_id) BUCKETS 1 -> PROPERTIES ( -> "replication_allocation" = "tag.location.default: 1", -> "function_column.sequence_type" = 'datetimev2(0)' -> ); ERROR 1105 (HY000): errCode = 2, detailMessage = No enum constant org.apache.doris.catalog.PrimitiveType.DATETIMEV2(0) ``` now: ``` mysql> CREATE TABLE t -> ( -> project_id BIGINT NOT NULL , -> consume_date DATETIMEV2 NOT NULL, -> order_id BIGINT NOT NULL , -> combo_extend JSONB DEFAULT NULL, -> age INT, -> name varchar(20), -> write_time DATETIME DEFAULT CURRENT_TIMESTAMP -> ) UNIQUE KEY(project_id, consume_date,order_id) -> DISTRIBUTED BY HASH(project_id) BUCKETS 1 -> PROPERTIES ( -> "replication_allocation" = "tag.location.default: 1", -> "function_column.sequence_type" = 'datetimev2(0)' -> ); mysql> show create table t\G *************************** 1. row *************************** Table: t Create Table: CREATE TABLE `t` ( `project_id` bigint NOT NULL, `consume_date` datetime NOT NULL, `order_id` bigint NOT NULL, `combo_extend` json NULL, `age` int NULL, `name` varchar(20) NULL, `write_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=OLAP UNIQUE KEY(`project_id`, `consume_date`, `order_id`) DISTRIBUTED BY HASH(`project_id`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1", "function_column.sequence_type" = "datetimev2(0)" ); ```
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 freeto 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.
What problem does this PR solve?
Issue Number: close #xxx
before:
now: