Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
1.5.1
Description
If we have defined a HiveContext instance
val hiveContext = new org.apache.spark.sql.hive.HiveContext(sparkContext)
then
hiveContext.table("db_name.table")
works but
hiveContext.read.table("db_name.table")
throws an org.apache.spark.sql.catalyst.analysis.NoSuchTableException
However,
hiveContext.sql("use db_name")
hiveContext.read.table("table")
works as expected