findepi commented on code in PR #12896:
URL: https://github.com/apache/datafusion/pull/12896#discussion_r1797766180


##########
datafusion/sql/tests/cases/plan_to_sql.rs:
##########
@@ -697,7 +739,7 @@ fn test_table_scan_pushdown() -> Result<()> {
         plan_to_sql(&table_scan_with_projection_alias)?;
     assert_eq!(
         format!("{}", table_scan_with_projection_alias),
-        "SELECT ta.id, ta.age FROM t1 AS ta"
+        "SELECT * FROM (SELECT ta.id, ta.age FROM t1 AS ta) AS ta"

Review Comment:
   That's not an improvement, right?
   I am OK if this is necessary, but is there a different way to fix the 
original problem, without affecting here?



-- 
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]

Reply via email to