mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
Add support for period character in table names (#7453)
* Move schema name handling in table names from frontend to backend * Rename all_schema_names to get_all_schema_names * Fix js errors * Fix additional js linting errors * Refactor datasource getters and fix linting errors * Update js unit tests * Add python unit test for get_table_names method * Add python unit test for get_table_names method * Fix js linting error
This commit is contained in:
@@ -288,9 +288,9 @@ def update_datasources_cache():
|
||||
if database.allow_multi_schema_metadata_fetch:
|
||||
print('Fetching {} datasources ...'.format(database.name))
|
||||
try:
|
||||
database.all_table_names_in_database(
|
||||
database.get_all_table_names_in_database(
|
||||
force=True, cache=True, cache_timeout=24 * 60 * 60)
|
||||
database.all_view_names_in_database(
|
||||
database.get_all_view_names_in_database(
|
||||
force=True, cache=True, cache_timeout=24 * 60 * 60)
|
||||
except Exception as e:
|
||||
print('{}'.format(str(e)))
|
||||
|
||||
Reference in New Issue
Block a user