Scala script to demonstrate how to get a list of all the tables from all the databases and store it in a data frame. — Scala script to demonstrate how to get a list of all the tables from all the databases and store it in a data frame. %scala import org.apache.spark.sql.types._ // Create schema for final result val schema = List(
StructField("database", StringType, true),
StructField("tableName", StringType, true),
StructField("isTemporary", BooleanType, true)
)