You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "aprimadi (via GitHub)" <gi...@apache.org> on 2023/06/02 11:41:10 UTC

[GitHub] [arrow-datafusion] aprimadi commented on a diff in pull request #6525: Refactor joins test to sqllogic

aprimadi commented on code in PR #6525:
URL: https://github.com/apache/arrow-datafusion/pull/6525#discussion_r1214267103


##########
datafusion/optimizer/src/decorrelate_predicate_subquery.rs:
##########
@@ -155,6 +152,17 @@ impl OptimizerRule for DecorrelatePredicateSubquery {
             _ => Ok(None),
         }
     }
+}
+
+impl OptimizerRule for DecorrelatePredicateSubquery {
+    fn try_optimize(

Review Comment:
   cc @jackwener @alamb
   
   Is this looking ok? The problem I'm encountering is that every queries optimization use the same shared AliasGenerator. Thus, the `alias ID` is ever increasing. Instead, I think it should be instantiated per query, which is what this code does.



-- 
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-unsubscribe@arrow.apache.org

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