Skip to content
Snippets Groups Projects
Commit 93e97147 authored by Eric Liang's avatar Eric Liang Committed by Andrew Or
Browse files

[MINOR] Slightly better error message when attempting to query hive tables w/in-mem catalog

andrewor14

Author: Eric Liang <ekl@databricks.com>

Closes #13427 from ericl/better-error-msg.
parent 196a0d82
No related branches found
No related tags found
No related merge requests found
...@@ -309,14 +309,14 @@ trait CheckAnalysis extends PredicateHelper { ...@@ -309,14 +309,14 @@ trait CheckAnalysis extends PredicateHelper {
case s: SimpleCatalogRelation => case s: SimpleCatalogRelation =>
failAnalysis( failAnalysis(
s""" s"""
|Please enable Hive support when selecting the regular tables: |Hive support is required to select over the following tables:
|${s.catalogTable.identifier} |${s.catalogTable.identifier}
""".stripMargin) """.stripMargin)
case InsertIntoTable(s: SimpleCatalogRelation, _, _, _, _) => case InsertIntoTable(s: SimpleCatalogRelation, _, _, _, _) =>
failAnalysis( failAnalysis(
s""" s"""
|Please enable Hive support when inserting the regular tables: |Hive support is required to insert into the following tables:
|${s.catalogTable.identifier} |${s.catalogTable.identifier}
""".stripMargin) """.stripMargin)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment