[GitHub] spark issue #16255: [SPARK-18609][SQL]Fix when CTE with Join between two tab...

2016-12-13 Thread AmplabJenkins
Github user AmplabJenkins commented on the issue:

https://github.com/apache/spark/pull/16255
  
Test PASSed.
Refer to this link for build results (access rights to CI server needed): 
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/70114/
Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #16255: [SPARK-18609][SQL]Fix when CTE with Join between two tab...

2016-12-13 Thread AmplabJenkins
Github user AmplabJenkins commented on the issue:

https://github.com/apache/spark/pull/16255
  
Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #16255: [SPARK-18609][SQL]Fix when CTE with Join between two tab...

2016-12-13 Thread SparkQA
Github user SparkQA commented on the issue:

https://github.com/apache/spark/pull/16255
  
**[Test build #70114 has 
finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/70114/consoleFull)**
 for PR 16255 at commit 
[`0413f9d`](https://github.com/apache/spark/commit/0413f9dad4ad1294e3400dc0f42f66529b1b055b).
 * This patch passes all tests.
 * This patch merges cleanly.
 * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #16255: [SPARK-18609][SQL]Fix when CTE with Join between two tab...

2016-12-13 Thread SparkQA
Github user SparkQA commented on the issue:

https://github.com/apache/spark/pull/16255
  
**[Test build #70114 has 
started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/70114/consoleFull)**
 for PR 16255 at commit 
[`0413f9d`](https://github.com/apache/spark/commit/0413f9dad4ad1294e3400dc0f42f66529b1b055b).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #16255: [SPARK-18609][SQL]Fix when CTE with Join between two tab...

2016-12-13 Thread windpiger
Github user windpiger commented on the issue:

https://github.com/apache/spark/pull/16255
  
@hvanhovell please help to review this, thanks a lot!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #16255: [SPARK-18609][SQL]Fix when CTE with Join between two tab...

2016-12-12 Thread AmplabJenkins
Github user AmplabJenkins commented on the issue:

https://github.com/apache/spark/pull/16255
  
Test PASSed.
Refer to this link for build results (access rights to CI server needed): 
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/70048/
Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #16255: [SPARK-18609][SQL]Fix when CTE with Join between two tab...

2016-12-12 Thread AmplabJenkins
Github user AmplabJenkins commented on the issue:

https://github.com/apache/spark/pull/16255
  
Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #16255: [SPARK-18609][SQL]Fix when CTE with Join between two tab...

2016-12-12 Thread SparkQA
Github user SparkQA commented on the issue:

https://github.com/apache/spark/pull/16255
  
**[Test build #70048 has 
finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/70048/consoleFull)**
 for PR 16255 at commit 
[`f8d602a`](https://github.com/apache/spark/commit/f8d602a128ad32690b519b6635cf74407d7a85d5).
 * This patch passes all tests.
 * This patch merges cleanly.
 * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #16255: [SPARK-18609][SQL]Fix when CTE with Join between two tab...

2016-12-12 Thread windpiger
Github user windpiger commented on the issue:

https://github.com/apache/spark/pull/16255
  
ok, the optimizer rule apply as follows:

1. before optimizer:

> Project [col#7 AS c1#4, col#10 AS c2#5]
+- Join Cross
   :- Project [col#6 AS col#7]
   :  +- Join Cross
   : :- MetastoreRelation default, p1
   : +- Project [col#9 AS col#6]
   :+- MetastoreRelation default, p2
   +- Project [col#6 AS col#10]
  +- Join Cross
 :- MetastoreRelation default, p1
 +- Project [col#9 AS col#6]
+- MetastoreRelation default, p2


2. after first ColumnPruning: 
>Project [col#7 AS c1#4, col#10 AS c2#5]
+- Join Cross
   :- Project [col#6 AS col#7]
   :  +- Join Cross
   : :- Project
   : :  +- MetastoreRelation default, p1
   : +- Project [col#9 AS col#6]
   :+- MetastoreRelation default, p2
   +- Project [col#6 AS col#10]
  +- Join Cross
 :- Project
 :  +- MetastoreRelation default, p1
 +- Project [col#9 AS col#6]
+- MetastoreRelation default, p2

3. after first RemoveAliasOnlyProject:
>Project [col#6 AS c1#4, col#10 AS c2#5]
+- Join Cross
   :- Join Cross
   :  :- Project
   :  :  +- MetastoreRelation default, p1
   :  +- Project [col#9 AS col#6]
   : +- MetastoreRelation default, p2
   +- Project [col#6 AS col#10]
  +- Join Cross
 :- Project
 :  +- MetastoreRelation default, p1
 +- Project [col#9 AS col#6]
+- MetastoreRelation default, p2
`

4. after second ColumnPruning:
>Project [col#6 AS c1#4, col#10 AS c2#5]
+- Join Cross
   :- Join Cross
   :  :- Project
   :  :  +- MetastoreRelation default, p1
   :  +- Project [col#9 AS col#6]
   : +- MetastoreRelation default, p2
   +- Project [col#6 AS col#10]
  +- Join Cross
 :- Project
 :  +- MetastoreRelation default, p1
 +- Project [col#9 AS col#6]
+- MetastoreRelation default, p2

5. after second RemoveAliasOnlyProject:
>Project [col#9 AS c1#4, col#10 AS c2#5]
+- Join Cross
   :- Join Cross
   :  :- Project
   :  :  +- MetastoreRelation default, p1
   :  +- MetastoreRelation default, p2
   +- !Project [col#9 AS col#10]
  +- Join Cross
 :- Project
 :  +- MetastoreRelation default, p1
 +- Project [col#9 AS col#6]
+- MetastoreRelation default, p2

6. after third ColumnPruning:
>Project [col#9 AS c1#4, col#10 AS c2#5]
+- Join Cross
   :- Join Cross
   :  :- Project
   :  :  +- MetastoreRelation default, p1
   :  +- MetastoreRelation default, p2
   +- !Project [col#9 AS col#10]
  +- Join Cross
 :- Project
 :  +- MetastoreRelation default, p1
 +- Project
+- Project
   +- MetastoreRelation default, p2

**here**
>   +- !Project [col#9 AS col#10]
  +- Join Cross
 :- Project
 :  +- MetastoreRelation default, p1
 +- Project
+- Project
   +- MetastoreRelation default, p2

**col#9 has no attribute to bind when do BindRefference**

7. after CollapseProject:
>Project [col#9 AS c1#4, col#10 AS c2#5]
+- Join Cross
   :- Join Cross
   :  :- Project
   :  :  +- MetastoreRelation default, p1
   :  +- MetastoreRelation default, p2
   +- !Project [col#9 AS col#10]
  +- Join Cross
 :- Project
 :  +- MetastoreRelation default, p1
 +- Project
+- MetastoreRelation default, p2

8. when optimizer finished, the logic plan is 
>Project [col#9 AS c1#4, col#10 AS c2#5]
+- Join Cross
   :- Join Cross
   :  :- Project
   :  :  +- MetastoreRelation default, p1
   :  +- MetastoreRelation default, p2
   +- !Project [col#9 AS col#10]
  +- Join Cross
 :- Project
 :  +- MetastoreRelation default, p1
 +- Project
+- MetastoreRelation default, p2
`



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #16255: [SPARK-18609][SQL]Fix when CTE with Join between two tab...

2016-12-12 Thread SparkQA
Github user SparkQA commented on the issue:

https://github.com/apache/spark/pull/16255
  
**[Test build #70048 has 
started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/70048/consoleFull)**
 for PR 16255 at commit 
[`f8d602a`](https://github.com/apache/spark/commit/f8d602a128ad32690b519b6635cf74407d7a85d5).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #16255: [SPARK-18609][SQL]Fix when CTE with Join between two tab...

2016-12-12 Thread hvanhovell
Github user hvanhovell commented on the issue:

https://github.com/apache/spark/pull/16255
  
@windpiger I am not sure that this is an analysis problem. I suspect that 
optimizer is messing up the query. Could you pinpoint the rule that causes the 
issue? Tip: in the spark shell (`./build/sbt sparkShell`) use 
`sc.setLogLevel("TRACE")`, and that will print all rules being applied.




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #16255: [SPARK-18609][SQL]Fix when CTE with Join between two tab...

2016-12-12 Thread AmplabJenkins
Github user AmplabJenkins commented on the issue:

https://github.com/apache/spark/pull/16255
  
Merged build finished. Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #16255: [SPARK-18609][SQL]Fix when CTE with Join between two tab...

2016-12-12 Thread AmplabJenkins
Github user AmplabJenkins commented on the issue:

https://github.com/apache/spark/pull/16255
  
Test FAILed.
Refer to this link for build results (access rights to CI server needed): 
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/70021/
Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark issue #16255: [SPARK-18609][SQL]Fix when CTE with Join between two tab...

2016-12-12 Thread SparkQA
Github user SparkQA commented on the issue:

https://github.com/apache/spark/pull/16255
  
**[Test build #70021 has 
finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/70021/consoleFull)**
 for PR 16255 at commit 
[`a85db5e`](https://github.com/apache/spark/commit/a85db5ea9d466f33266d95f6ae3739a6a713f68b).
 * This patch **fails Spark unit tests**.
 * This patch merges cleanly.
 * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org