[jira] [Updated] (SPARK-14785) Support correlated scalar subquery
[ https://issues.apache.org/jira/browse/SPARK-14785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Davies Liu updated SPARK-14785: --- Assignee: Herman van Hovell > 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 >Assignee: Herman van Hovell > Fix For: 2.0.0 > > > 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) as avg_c FROM t2 GROUP by id) t3 ON > t3.id = t.id where b > avg_c > {code} > TPCDS Q92, Q81, Q6 required this > Update: TPCDS Q1 and Q30 also require correlated scalar subquery support. -- 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
[jira] [Updated] (SPARK-14785) Support correlated scalar subquery
[ https://issues.apache.org/jira/browse/SPARK-14785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiao Li updated SPARK-14785: Description: 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) as avg_c FROM t2 GROUP by id) t3 ON t3.id = t.id where b > avg_c {code} TPCDS Q92, Q81, Q6 required this Update: TPCDS Q1 and Q30 also require correlated scalar subquery support. was: 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) as avg_c FROM t2 GROUP by id) t3 ON t3.id = t.id where b > avg_c {code} TPCDS Q92, Q81, Q6 required this > 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) as avg_c FROM t2 GROUP by id) t3 ON > t3.id = t.id where b > avg_c > {code} > TPCDS Q92, Q81, Q6 required this > Update: TPCDS Q1 and Q30 also require correlated scalar subquery support. -- 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
[jira] [Updated] (SPARK-14785) Support correlated scalar subquery
[ https://issues.apache.org/jira/browse/SPARK-14785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Davies Liu updated SPARK-14785: --- Description: 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) as avg_c FROM t2 GROUP by id) t3 ON t3.id = t.id where b > avg_c {code} TPCDS Q92, Q81, Q6 required this was: 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 > 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) as avg_c FROM t2 GROUP by id) t3 ON > t3.id = t.id where b > avg_c > {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
[jira] [Updated] (SPARK-14785) Support correlated scalar subquery
[ https://issues.apache.org/jira/browse/SPARK-14785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Davies Liu updated SPARK-14785: --- Description: 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 was: For example: SELECT a from t where b > (select avg(c) from t2 where t.id = t2.id) 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 > 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
[jira] [Updated] (SPARK-14785) Support correlated scalar subquery
[ https://issues.apache.org/jira/browse/SPARK-14785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Davies Liu updated SPARK-14785: --- Description: For example: SELECT a from t where b > (select avg(c) from t2 where t.id = t2.id) 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 was: For example: SELECT a from t where b > (select c from t2 where t.id = t2.id) TPCDS Q92, Q81, Q6 required this > 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: > SELECT a from t where b > (select avg(c) from t2 where t.id = t2.id) > 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
[jira] [Updated] (SPARK-14785) Support correlated scalar subquery
[ https://issues.apache.org/jira/browse/SPARK-14785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Davies Liu updated SPARK-14785: --- Assignee: (was: Davies Liu) > 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: > SELECT a from t where b > (select c from t2 where t.id = t2.id) > 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
[jira] [Updated] (SPARK-14785) Support correlated scalar subquery
[ https://issues.apache.org/jira/browse/SPARK-14785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Davies Liu updated SPARK-14785: --- Description: For example: SELECT a from t where b > (select c from t2 where t.id = t2.id) TPCDS Q92, Q81, Q6 required this was: For example: SELECT a from t where b > (select c from t2 where t.id = t2.id) > 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: > SELECT a from t where b > (select c from t2 where t.id = t2.id) > 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