You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/10/27 02:46:59 UTC

[GitHub] [doris] LemonLiTree commented on issue #13703: [Bug] SQL : create table as select ,include decimal type throw SQLException

LemonLiTree commented on issue #13703:
URL: https://github.com/apache/doris/issues/13703#issuecomment-1292895753

   I tested OK!
   `mysql> CREATE TABLE test_20221027(
       ->   `key2` BIGINT NULL COMMENT "key2",
       ->   `value1` decimal(26,9)  NULL COMMENT "value1"
       -> ) ENGINE = OLAP
       -> DUPLICATE KEY(`key2`)
       -> DISTRIBUTED BY HASH(`key2`) BUCKETS 1
       -> PROPERTIES (    
       ->     "replication_num"="1",
       ->     "storage_format" = "v2");
   Query OK, 0 rows affected (0.01 sec)
   
   mysql> insert into test_20221027(key2,value1) values (1,123456789.1234);
   Query OK, 1 row affected (0.03 sec)
   {'label':'insert_d26ecf9b25c74ab8-98d31c7576cab960', 'status':'VISIBLE', 'txnId':'30609'}
   
   mysql> create table test_20221027_1 
       -> PROPERTIES (    
       ->     "replication_num"="1",
       ->     "storage_format" = "v2") 
       -> as select * from test_20221027;
   Query OK, 1 row affected (0.05 sec)
   {'label':'insert_3799c8e0e6aa4461-ba1c0f5e297923bc', 'status':'VISIBLE', 'txnId':'30612'}
   
   mysql> select * from test_20221027_1;
   +------+----------------+
   | key2 | value1         |
   +------+----------------+
   |    1 | 123456789.1234 |
   +------+----------------+
   1 row in set (0.01 sec)`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org