Skip to content

Conversation

@gatorsmile
Copy link
Member

What changes were proposed in this pull request?

This PR is to backport #17730 to Spark 2.1


spark.catalog.listTables and spark.catalog.getTable does not work if we are unable to retrieve table metadata due to any reason (e.g., table serde class is not accessible or the table type is not accepted by Spark SQL). After this PR, the APIs still return the corresponding Table without the description and tableType)

How was this patch tested?

Added a test case

@SparkQA
Copy link

SparkQA commented Apr 25, 2017

Test build #76140 has finished for PR 17760 at commit f910b0f.

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

@gatorsmile
Copy link
Member Author

cc @cloud-fan @sameeragarwal

@cloud-fan
Copy link
Contributor

thanks, merging to 2.1

asfgit pushed a commit that referenced this pull request Apr 26, 2017
…ble when failed to fetch table metadata

### What changes were proposed in this pull request?

This PR is to backport #17730 to Spark 2.1
--- --
`spark.catalog.listTables` and `spark.catalog.getTable` does not work if we are unable to retrieve table metadata due to any reason (e.g., table serde class is not accessible or the table type is not accepted by Spark SQL). After this PR, the APIs still return the corresponding Table without the description and tableType)

### How was this patch tested?
Added a test case

Author: Xiao Li <[email protected]>

Closes #17760 from gatorsmile/backport-17730.
@gatorsmile gatorsmile closed this Apr 26, 2017
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.

3 participants