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

Skip to content

Commit 2f16b81

Browse files
authored
Merge pull request #37 from sede-open/task/ignore_mvt_suffix
Task/ignore mvt suffix
2 parents 1d71d67 + d3078a2 commit 2f16b81

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
@@ -277,7 +277,8 @@ def get_table_names(self, connection, schema=None, **kwargs):
277277
sql_str = """SELECT table_schema, table_name
278278
FROM information_schema.tables
279279
WHERE table_schema = '{}'
280-
AND table_type = 'MANAGED';""".format(
280+
AND table_type = 'MANAGED'
281+
AND table_name NOT LIKE '%_mvt';""".format(
281282
schema_str
282283
)
283284
# TODO: Add if scenario for None schema

0 commit comments

Comments
 (0)