yiguolei commented on code in PR #40290:
URL: https://github.com/apache/doris/pull/40290#discussion_r1741359671
##########
regression-test/suites/datatype_p0/decimalv3/test_decimal256_cast.groovy:
##########
@@ -41,4 +41,29 @@ suite("test_decimal256_cast") {
select
cast('0.000000000000000000000000000000000000000000000000000000000000000000000012345678901'
as decimalv3(76,0));
"""
+ sql """
+ drop table if exists dec256cast_to_float;
+ """
+ sql """
+ create table dec256cast_to_float (
+ k1 int,
+ v1 decimalv3(76, 60)
+ ) distributed by hash(k1)
+ properties (
+ 'replication_num' = '1'
+ );
+ """
+ sql """
+ insert into dec256cast_to_float values (1,
"12345678.000000000000000000000000000000001");
+ """
+ test {
+ sql """
+ select cast(v1 as float) from dec256cast_to_float;
Review Comment:
also add cast for literal and test fold constant is true or false
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]