Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d3078a2

Browse files
committed
Query appended with edge case
1 parent 45d1734 commit d3078a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/databricks/sqlalchemy/dialect/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ def get_table_names(self, connection, schema=None, **kwargs):
256256
sql_str = """SELECT table_schema, table_name
257257
FROM information_schema.tables
258258
WHERE table_schema = '{}'
259-
AND table_type = 'MANAGED';""".format(
259+
AND table_type = 'MANAGED'
260+
AND table_name NOT LIKE '%_mvt';""".format(
260261
schema_str
261262
)
262263
# TODO: Add if scenario for None schema

0 commit comments

Comments
 (0)