goldmedal commented on code in PR #15159:
URL: https://github.com/apache/datafusion/pull/15159#discussion_r2008701304


##########
datafusion/sql/tests/cases/plan_to_sql.rs:
##########
@@ -633,6 +633,18 @@ fn roundtrip_statement_with_dialect() -> Result<()> {
             parser_dialect: Box::new(GenericDialect {}),
             unparser_dialect: 
Box::new(CustomDialectBuilder::default().with_unnest_as_table_factor(true).build()),
         },
+        TestStatementWithDialect {
+            sql: "SELECT unnest([1, 2, 3, 4]) from unnest([1, 2, 3]);",
+            expected: r#"SELECT UNNEST([1, 2, 3, 4]) AS 
UNNEST(make_array(Int64(1),Int64(2),Int64(3),Int64(4))) FROM UNNEST([1, 2, 
3])"#,
+            parser_dialect: Box::new(GenericDialect {}),
+            unparser_dialect: 
Box::new(CustomDialectBuilder::default().with_unnest_as_table_factor(true).build()),
+        },
+        TestStatementWithDialect {
+            sql: "SELECT unnest([1, 2, 3, 4]) from unnest([1, 2, 3]);",
+            expected: r#"SELECT UNNEST([1, 2, 3, 4]) AS 
UNNEST(make_array(Int64(1),Int64(2),Int64(3),Int64(4))) FROM UNNEST([1, 2, 
3])"#,
+            parser_dialect: Box::new(GenericDialect {}),
+            unparser_dialect: 
Box::new(CustomDialectBuilder::default().with_unnest_as_table_factor(true).build()),
+        },

Review Comment:
   They look like the same. 🤔 I think we can remove one of them.



-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to