You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/08 17:54:03 UTC

[GitHub] [arrow-datafusion] yahoNanJing opened a new issue, #1835: Implement In Subquery

yahoNanJing opened a new issue, #1835:
URL: https://github.com/apache/arrow-datafusion/issues/1835

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for this feature, in addition to  the *what*) -->
   
   **Describe the solution you'd like**
   <!-- A clear and concise description of what you want to happen. -->
   
   **Describe alternatives you've considered**
   <!-- A clear and concise description of any alternative solutions or features you've considered. -->
   
   **Additional context**
   <!-- Add any other context or screenshots about the feature request 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: github-unsubscribe@arrow.apache.org.apache.org

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


[GitHub] [arrow-datafusion] alamb commented on issue #1835: Implement In Subquery

Posted by GitBox <gi...@apache.org>.
alamb commented on issue #1835:
URL: https://github.com/apache/arrow-datafusion/issues/1835#issuecomment-1093135999

   Probably a dupe of https://github.com/apache/arrow-datafusion/issues/1209


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


[GitHub] [arrow-datafusion] ygf11 commented on issue #1835: Implement physical plan for IN Subquery

Posted by "ygf11 (via GitHub)" <gi...@apache.org>.
ygf11 commented on issue #1835:
URL: https://github.com/apache/arrow-datafusion/issues/1835#issuecomment-1455395265

   I think this has already done. 
   
   ```sql
   ❯ explain select t1_id from t1 where t1_id in (select t2_id from t2);
   +---------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
   | plan_type     | plan                                                                                                                                            |
   +---------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
   | logical_plan  | LeftSemi Join: t1.t1_id = __correlated_sq_1.t2_id                                                                                               |
   |               |   TableScan: t1 projection=[t1_id]                                                                                                              |
   |               |   SubqueryAlias: __correlated_sq_1                                                                                                              |
   |               |     Projection: t2.t2_id AS t2_id                                                                                                               |
   |               |       TableScan: t2 projection=[t2_id]                                                                                                          |
   ...
   ❯ explain select t1_id from t1 where t1_id in (select t2_id from t2 where t2_int > t1_int);
   +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   | plan_type     | plan                                                                                                                                                                                                                                                       |
   +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   | logical_plan  | Projection: t1.t1_id                                                                                                                                                                                                                                       |
   |               |   LeftSemi Join: t1.t1_id = __correlated_sq_2.t2_id Filter: __correlated_sq_2.t2_int > t1.t1_int                                                                                                                                                           |
   |               |     TableScan: t1 projection=[t1_id, t1_int]                                                                                                                                                                                                               |
   |               |     SubqueryAlias: __correlated_sq_2                                                                                                                                                                                                                       |
   |               |       Projection: t2.t2_id AS t2_id, t2.t2_int                                                                                                                                                                                                             |
   |               |         TableScan: t2 projection=[t2_id, t2_int]
   ```
   
   
   


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


[GitHub] [arrow-datafusion] alamb closed issue #1835: Implement In Subquery

Posted by GitBox <gi...@apache.org>.
alamb closed issue #1835: Implement In Subquery
URL: https://github.com/apache/arrow-datafusion/issues/1835


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


[GitHub] [arrow-datafusion] alamb closed issue #1835: Implement physical plan for IN Subquery

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #1835: Implement physical plan for IN Subquery
URL: https://github.com/apache/arrow-datafusion/issues/1835


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