Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SQL][Minor] Use analyzed logical instead of unresolved in HiveComparisonTest #4946

Closed
wants to merge 1 commit into from

Conversation

chenghao-intel
Copy link
Contributor

Some internal unit test failed due to the logical plan node in pattern matching in HiveComparisonTest, e.g.
https://github.com/apache/spark/blob/master/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveComparisonTest.scala#L137

Which will may call the output function on an unresolved logical plan.

@SparkQA
Copy link

SparkQA commented Mar 9, 2015

Test build #28386 has started for PR 4946 at commit 432ecb3.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Mar 9, 2015

Test build #28386 has finished for PR 4946 at commit 432ecb3.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/28386/
Test PASSed.

@marmbrus
Copy link
Contributor

marmbrus commented Apr 3, 2015

Merged to master.

@asfgit asfgit closed this in dfd2982 Apr 3, 2015
@@ -296,7 +296,7 @@ abstract class HiveComparisonTest

val hiveQueries = queryList.map(new TestHive.HiveQLQueryExecution(_))
// Make sure we can at least parse everything before attempting hive execution.
hiveQueries.foreach(_.logical)
hiveQueries.foreach(_.analyzed)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change breaks golden answer generation. You can't analyze queries unless you are also executing DDL from previous queries.

@chenghao-intel chenghao-intel deleted the logical branch July 2, 2015 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants