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/26 12:17:32 UTC

[GitHub] [doris] MRYOG opened a new issue, #13703: [Bug] SQL : create table as select ,include decimal type throw SQLException

MRYOG opened a new issue, #13703:
URL: https://github.com/apache/doris/issues/13703

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
   1.1.3-rc02
   
   ### What's Wrong?
   
   table test_a column include type decimal , execute sql : create table as select * from test_a throw SQLException
   Error Message:
   Execution failed: Error Failed to execute sql: java.sql.SQLException: (conn=9720) errCode = 2, detailMessage = Unsupported type 'DECIMAL(26,9)' in create table as select statement
   
   ### What You Expected?
   
   Fix
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.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


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

Posted by GitBox <gi...@apache.org>.
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


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

Posted by GitBox <gi...@apache.org>.
MRYOG closed issue #13703: [Bug]  SQL : create table as select ,include decimal type throw SQLException
URL: https://github.com/apache/doris/issues/13703


-- 
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


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

Posted by GitBox <gi...@apache.org>.
MRYOG commented on issue #13703:
URL: https://github.com/apache/doris/issues/13703#issuecomment-1293033590

   I check my test environment version is 1.1.2-rc2 , upgrade 1.1.3-rc02 is ok 


-- 
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