andygrove commented on code in PR #4234:
URL: https://github.com/apache/arrow-datafusion/pull/4234#discussion_r1024289092
##########
datafusion/optimizer/tests/integration-test.rs:
##########
@@ -226,6 +226,39 @@ fn concat_ws_literals() -> Result<()> {
Ok(())
}
+#[test]
+fn unfold_round() -> Result<()> {
+ let sql = "SELECT round(col_f32, col_int32) as col from test";
+ let plan = test_sql(sql)?;
+ let expected =
+ "Projection: round(CAST(test.col_f32 AS Float64) * power(Float64(10),
CAST(CAST(test.col_int32 AS Int64) AS Float64))CAST(CAST(test.col_int32 AS
Int64) AS Float64)CAST(test.col_int32 AS Int64)test.col_int32Float64(10) AS
power(Float64(10),test.col_int32)) / power(Float64(10),
CAST(CAST(test.col_int32 AS Int64) AS Float64))CAST(CAST(test.col_int32 AS
Int64) AS Float64)CAST(test.col_int32 AS Int64)test.col_int32Float64(10) AS
power(Float64(10),test.col_int32) AS col\
Review Comment:
Possibly related to https://github.com/apache/arrow-datafusion/issues/3786 ?
--
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]