[ https://issues.apache.org/jira/browse/SPARK-14785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15259941#comment-15259941 ]
Roy Cecil edited comment on SPARK-14785 at 4/27/16 10:29 AM: ------------------------------------------------------------- Q32 falls in this category as well. TPC query rewrite rules do not allow the proposed rewrites. So our hands are tied. If this feature is supported along with SPARK-14781 we would achieve 100% TPC-DS capability and would be a great press for spark!! was (Author: roycecil): Q32 falls in this category. TPC query rewrite rules do not allow the proposed rewrites. So our hands are tied. If this feature is supported along with SPARK-14781 we would achieve 100% TPC-DS capability and would be a great press for spark!! > Support correlated scalar subquery > ---------------------------------- > > Key: SPARK-14785 > URL: https://issues.apache.org/jira/browse/SPARK-14785 > Project: Spark > Issue Type: New Feature > Reporter: Davies Liu > > For example: > {code} > SELECT a from t where b > (select avg(c) from t2 where t.id = t2.id) > {code} > it could be rewritten as > {code} > SELECT a FROM t JOIN (SELECT id, AVG(c) FROM t2 GROUP by id) t3 ON t3.id = > t.id > {code} > TPCDS Q92, Q81, Q6 required this -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org