import org.apache.spark.sql.hive.HiveContext val ctx = sqlContext.asInstanceOf[HiveContext] import ctx.implicits._ // Table test is not present ctx.tableNames // ERROR Hive: NoSuchObjectException(message:default.test table not found) ctx.sql("drop table if exists test")