Generate database schema diagram for Databricks
问题 I'm creating a Databricks application and the database schema is getting to be non-trivial. Is there a way I can generate a schema diagram for a Databricks database (something similar to the schema diagrams that can be generated from mysql)? 回答1: There are 2 variants possible: using Spark SQL with show databases , show tables in <database> , describe table ... using spark.catalog.listDatabases , spark.catalog.listTables , spark.catagog.listColumns . 2nd variant isn't very performant when you