Files
doris/regression-test/data/ddl_p0/test_create_table_like.out
LiBinfeng 0a9d71ebd2 [Fix](Planner) fix varchar does not show real length (#25171)
Problem:
when we create table with datatype varchar(), we regard it to be max length by default. But when we desc, it does not show
real length but show varchar()
Reason:
when we upgrade version from 2.0.1 to 2.0.2, we support new feature of creating varchar(), and it shows the same way with
ddl schema. So user would confuse of the length of varchar
Solved:
change the showing of varchar() to varchar(65533), which in compatible with hive
2023-11-14 10:49:21 +08:00

23 lines
1.1 KiB
Plaintext

-- This file is automatically generated. You should know what you did if you want to edit this
-- !desc_create_table --
decimal_test DUP_KEYS name VARCHAR(65533) VARCHAR(65533) Yes true \N true
id SMALLINT SMALLINT Yes false \N NONE true
timestamp0 DECIMAL DECIMALV3(9, 0) Yes false \N NONE true
timestamp1 DECIMAL DECIMALV3(10, 0) Yes false \N NONE true
timestamp2 DECIMAL(10, 1) DECIMALV3(10, 1) Yes false \N NONE true
timestamp3 DECIMAL DECIMALV3(10, 0) Yes false \N NONE true
timestamp4 DECIMAL(10, 1) DECIMALV3(10, 1) Yes false \N NONE true
-- !desc_create_table_like --
decimal_test_like DUP_KEYS name VARCHAR(65533) VARCHAR(65533) Yes true \N true
id SMALLINT SMALLINT Yes false \N NONE true
timestamp0 DECIMAL DECIMALV3(9, 0) Yes false \N NONE true
timestamp1 DECIMAL DECIMALV3(10, 0) Yes false \N NONE true
timestamp2 DECIMAL(10, 1) DECIMALV3(10, 1) Yes false \N NONE true
timestamp3 DECIMAL DECIMALV3(10, 0) Yes false \N NONE true
timestamp4 DECIMAL(10, 1) DECIMALV3(10, 1) Yes false \N NONE true
-- !select_table_like --
test1 1 123456789 1234567891 123456789.0 1234567891 123456789.0