mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 01:00:14 -04:00
* Check all Trino catalogs if no catalog configured - If catalog is not set, query 'SHOW CATALOGS' to get catalogs - For each catalog, discover schema, table, columns - If catalog has a `.`, then quote the catalog name - New table name returned includes catalog name - If catalog is set, same result as before * Use self._handle_run_query_error(error) * Fix lint problem & format w/ black * Fix condition so catalog_prefixes are [""] when catalog is set * Fix for loop / Remove default values for catalog & schema * Add untested tests for Trino's get_schema * Black formatting * Add test_get_schema_catalog_set test & fix tests * Parameterize the side_effect fn thoroughly * Get catalogs (not catalog_prefixes) bc confusing * Trino._get_catalogs added for testability