Skip to content

Conversation

@thomastechs
Copy link
Contributor

Avoiding the the No such table exception and throwing analysis exception as per the bug: SPARK-12533

Avoiding the the No such table exception and throwing analysis exception as per the bug: SPARK-12533
@marmbrus
Copy link
Contributor

OK to test

Copy link
Contributor

Choose a reason for hiding this comment

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

this will fail style checker. you will need to add a space before and after +.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure @rxin .Will update the fix and create a new pull request

Incorporating the review comments
@thomastechs
Copy link
Contributor Author

@rxin I have updated the style check difference ,you mentioned. and committed to my branch. And I see it is reflected here in this same pull request. Could you please review?

@SparkQA
Copy link

SparkQA commented Dec 31, 2015

Test build #2281 has finished for PR 10529 at commit 4463a95.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@thomastechs
Copy link
Contributor Author

working on the updates

@jayadevanmurali
Copy link
Contributor

I think, there would be a reference update in Analyzer.scala as we discussed @thomastechs

AnalysisException is updated as per the bug fic mentions SPARK-12533
@thomastechs
Copy link
Contributor Author

@jayadevanmurali : Yes, modifying the files which has reference to the code fix, as well.

As the exception type returned from the lookupRelation method is changed to AnalysisException, it is updated here also.
Updating the test case methods corresponding the bug fix [SPARK-12438]
@thomastechs
Copy link
Contributor Author

@rxin and @marmbrus and @SparkQA . The fix including the testcases have been committed. Could you please initiate a test build?

@thomastechs thomastechs changed the title [SPARK-12438][SQL] hiveContext.table() throws the wrong exception [SPARK-12533][SQL] hiveContext.table() throws the wrong exception Jan 1, 2016
@SparkQA
Copy link

SparkQA commented Jan 1, 2016

Test build #2288 has finished for PR 10529 at commit 76a9623.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Removed the AnalysisException class import command, as it throws (hidden) warning. The Analysis Exception is already available in this package
Reverting to change to previous state, because the relevant test cases are to be triggered.
@thomastechs
Copy link
Contributor Author

@SparkQA , @rxin The changes are done to fix the unit test failure. Could you please initiate a test build?

@SparkQA
Copy link

SparkQA commented Jan 3, 2016

Test build #2299 has finished for PR 10529 at commit f75c44e.

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

@rxin
Copy link
Contributor

rxin commented Jan 3, 2016

I've merged this. Thanks.

@asfgit asfgit closed this in c82924d Jan 3, 2016
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mean that NoSuchTableException is not used anywhere? We should probably get rid of it then. Though, I think I'd have a slight preference for keeping a special exception internally. The point of this extra control flow is so that we can attach line position information to this specific exception in the analyzer.

Copy link
Contributor

Choose a reason for hiding this comment

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

@marmbrus Shouldn't we have fixed this issue by marking the relation unresolved and let the analyzer generate a proper AnalysisException ? If we were to use the catalog interface for some other purpose like tooling etc keeping the generic catalog exceptions would have been better ?

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.

6 participants