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

Skip to content

Commit 3333130

Browse files
authored
Merge pull request #38 from sede-open/release/release-2023-11-22-pk
Query appended with edge case
2 parents 45d1734 + d3078a2 commit 3333130

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)