alamb commented on code in PR #10371:
URL: https://github.com/apache/datafusion/pull/10371#discussion_r1589697406
##########
datafusion/sql/tests/sql_integration.rs:
##########
@@ -4674,6 +4674,39 @@ fn roundtrip_statement() -> Result<()> {
Ok(())
}
+#[test]
+fn roundtrip_crossjoin() -> Result<()> {
+ let query = "select j1.j1_id, j2.j2_string from j1, j2";
+
+ let dialect = GenericDialect {};
+ let statement = Parser::new(&dialect)
+ .try_with_sql(query)?
+ .parse_statement()?;
+
+ let context = MockContextProvider::default();
+ let sql_to_rel = SqlToRel::new(&context);
+ let plan = sql_to_rel.sql_statement_to_plan(statement).unwrap();
+
+ let roundtrip_statement = plan_to_sql(&plan)?;
Review Comment:
👍
--
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]