You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2023/03/09 17:00:43 UTC

[GitHub] [arrow-datafusion] alamb commented on issue #5529: Failed to execute sql with subquery

alamb commented on issue #5529:
URL: https://github.com/apache/arrow-datafusion/issues/5529#issuecomment-1462422427

   > So the problem could be solved if we can make this specific "(( ))" case interpreted as Expr::InSubquery. That might be easy to be done in ExprRewriter::mutate:
   
   I agree that rewriting `a IN ((...))` if the content is a single subquery makes sense to me
   
   Maybe we jus need to update the check  https://github.com/apache/arrow-datafusion/blob/ff013e24559850541c54cf5d254922649ef37d8c/datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs#LL407
   
   To also allow subqueries


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