jayzhan211 commented on code in PR #6796:
URL: https://github.com/apache/arrow-datafusion/pull/6796#discussion_r1281272125


##########
datafusion/optimizer/src/optimizer.rs:
##########
@@ -422,6 +424,11 @@ fn assert_schema_is_the_same(
     prev_plan: &LogicalPlan,
     new_plan: &LogicalPlan,
 ) -> Result<()> {
+    if rule_name == "unnest_expressions" {

Review Comment:
   Two differences in the schema.
   1. qualifier with sq0, sq1..., since I wrap each unnest column with subquery
   2. column name, I rename them to col0, col1..., just for simplicity.
   
   @alamb Does it makes sense to skip these two checks and only check the other?
   If not, is there an existing API to change the schema for LogicalPlan, so I 
can set None to qualifier and create a new field with the original name?



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

Reply via email to