score:0

Accepted answer

the issue was that hive support was not enabled in the default sparksession provided by the dataframesuitebase class (from holdenkarau's spark-testing-base package) that i was extending.

to solve it, override the dataframesuitebase method beforeall() (runs before every test) by adding the enablehivesupport() method to the sparksession build chain:

override def beforeall(): unit = {
  sparksessionprovider._sparksession = sparksession.builder()
    .master("local") // add whatever other configurations...
    .enablehivesupport()
    .getorcreate()
}

score:0

you should try this

spark.catalog._jcatalog.tableexists("schema_name.table_name")

Related Query

More Query from same tag