duongcongtoai commented on issue #5492:
URL: https://github.com/apache/datafusion/issues/5492#issuecomment-2836123267

   According to the discussions in this issue, i think we can list the 
following items to support a subqueries decorrelation framework:
   
   - Unify the optimizor for correlated query, regardless the query type 
(exists query, scalar query etc)
   - Support flexible decorrelation scheme (simple vs general approach), we can 
achieve this by following the algorithm mentioned in the [2nd 
paper](https://15799.courses.cs.cmu.edu/spring2025/papers/11-unnesting/neumann-btw2025.pdf).
 There is a prerequisite to introduce an index algebra during the rewrite. This 
index requires a pre-traversing over the whole query to detect all non-trivial 
subqueries, and answer the question whether simple unnesting is sufficient, or 
should the framework continue with the general approach
   - Implement general purpose + recursive aware subquery decorrelation for the 
most major operators (projection, filter, group by) using the top-down 
algorithm mentioned in the 2nd paper
   - Gradually support more complex expression (group by, order, limit, window 
function)


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