Jibing-Li commented on code in PR #50425: URL: https://github.com/apache/doris/pull/50425#discussion_r2065405410
########## regression-test/suites/nereids_p0/expression/fold_constant/fold_constant_string_arithmatic.groovy: ########## @@ -1724,5 +1726,98 @@ suite("fold_constant_string_arithmatic") { testFoldConst("select split_by_string('a😁a😁a', '')") testFoldConst("select character_length('a😁a😁a')") testFoldConst("select replace_empty('a😁a😁a', '', '2')") + + // cast double to string like + testFoldConst("select cast(cast(0 as double) as varchar(65533))") + testFoldConst("select cast(cast(0 as double) as string)") + testFoldConst("select cast(cast(0.0 as double) as varchar(65533))") + testFoldConst("select cast(cast(0.0 as double) as string)") + testFoldConst("select cast(cast(1 as double) as varchar(65533))") + testFoldConst("select cast(cast(1 as double) as string)") + testFoldConst("select cast(cast(1.0 as double) as varchar(65533))") + testFoldConst("select cast(cast(1.0 as double) as string)") + testFoldConst("select cast(cast(0.1 as double) as varchar(65533))") + testFoldConst("select cast(cast(0.1 as double) as string)") + testFoldConst("select cast(cast(1.1 as double) as varchar(65533))") + testFoldConst("select cast(cast(1.1 as double) as string)") + testFoldConst("select cast(cast(100000 as double) as string)") + testFoldConst("select cast(cast(1000000000000000 as double) as string)") Review Comment: added -- 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