Sample Query

%python

spark.sql("show databases").show()

spark.sql("SHOW TABLES IN default").show()

Note:

The example above uses Spark’s Hive support (Metastore).