[fix](cast) fix wrong result while cast string to float (#31781)
Issue Number: close #31518
This commit is contained in:
@ -46,6 +46,6 @@ public class FloatLiteral extends FractionalLiteral {
|
||||
|
||||
@Override
|
||||
public LiteralExpr toLegacyLiteral() {
|
||||
return new org.apache.doris.analysis.FloatLiteral((double) value, Type.FLOAT);
|
||||
return new org.apache.doris.analysis.FloatLiteral(getDouble(), Type.FLOAT);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user