imback82 commented on a change in pull request #27642: [SPARK-30885][SQL] V1
table name should be fully qualified if catalog name is provided
URL: https://github.com/apache/spark/pull/27642#discussion_r382962850
##########
File path:
sql/hive/src/test/scala/org/apache/spark/sql/hive/CachedTableSuite.scala
##########
@@ -102,18 +102,18 @@ class CachedTableSuite extends QueryTest with
SQLTestUtils with TestHiveSingleto
}
test("uncache of nonexistent tables") {
- val expectedErrorMsg = "Table or view not found: nonexistentTable"
+ val expectedErrorMsg = "Table or view not found:"
// make sure table doesn't exist
var e =
intercept[AnalysisException](spark.table("nonexistentTable")).getMessage
- assert(e.contains(expectedErrorMsg))
+ assert(e.contains(s"$expectedErrorMsg nonexistentTable"))
Review comment:
`spark.table` just creates `UnresolvedRelation(multipartIdentifier)`, so it
doesn't add current namespace.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]