jacktengg commented on code in PR #20694: URL: https://github.com/apache/doris/pull/20694#discussion_r1232059528
########## regression-test/suites/load_p0/insert/test_insert.groovy: ########## @@ -48,4 +48,38 @@ suite("test_insert") { """ qt_sql1 "select * from ${insert_tbl} order by 1, 2, 3, 4" + + def insert_tbl_dft = "test_insert_dft_tbl" + sql """ DROP TABLE IF EXISTS ${insert_tbl_dft}""" + + // `k7` should be float type, and bug exists now, https://github.com/apache/doris/pull/20867 + // `k9` should be char(16), and bug exists now as error msg raised:"can not cast from origin type TINYINT to target type=CHAR(16)" when doing insert + // "`k13` datetime default CURRENT_TIMESTAMP" might have cast error in strict mode when doing insert: + // [INTERNAL_ERROR]Invalid value in strict mode for function CAST, source column String, from type String to type DateTimeV2 Review Comment: Seems the plan is wrong: ``` mysql [test]>explain verbose insert into dft values(); +---------------------------------------------------------------------------------------+ | Explain String | +---------------------------------------------------------------------------------------+ | PLAN FRAGMENT 0 | | OUTPUT EXPRS: | | CAST('CURRENT_TIMESTAMP' AS DATETIMEV2(0)) | | PARTITION: UNPARTITIONED | | | | OLAP TABLE SINK | | TUPLE ID: 0 | | RANDOM | | | | 0:VUNION | | constant exprs: | | CAST('CURRENT_TIMESTAMP' AS DATETIMEV2(0)) | | tuple ids: 1 | | | | Tuples: | | TupleDescriptor{id=0, tbl=null, byteSize=16} | | SlotDescriptor{id=0, col=k13, colUniqueId=0, type=datetimev2(0), nullable=true} | | | | TupleDescriptor{id=1, tbl=null, byteSize=16} | | SlotDescriptor{id=1, col=null, colUniqueId=null, type=datetimev2(0), nullable=true} | +---------------------------------------------------------------------------------------+ 20 rows 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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org