可以使用下麵的代碼,代碼片段列出下表在數據庫中
val db = " database_name " spark.sessionState.catalog.listTables (db) . map(表= > spark.sessionState.catalog.externalCatalog.getTable (table.database.get table.table)) .filter (x = > x.provider.toString () .toLowerCase.contains(“δ”))
可以使用下麵的代碼,代碼片段列出下表在數據庫中
val db = " database_name " spark.sessionState.catalog.listTables (db) . map(表= > spark.sessionState.catalog.externalCatalog.getTable (table.database.get table.table)) .filter (x = > x.provider.toString () .toLowerCase.contains(“δ”))