Commit 8b92820
Change default
With UC, `table_types=[]` is interpreted differently than on HMS. On HMS, it means no filter applied, while on UC it means a filter of nothing applied, i.e. on UC we get the following:
```
cursor.tables(schema_name="taxi")
2>>> []
3cursor.tables(schema_name="taxi", table_types=["TABLE", "VIEW"])
4>>> [Row(TABLE_CAT='shant', TABLE_SCHEM='taxi', TABLE_NAME='trip_view', TABLE_TYPE='VIEW', REMARKS='', TYPE_CAT=None, TYPE_SCHEM=None, TYPE_NAME=None, SELF_REFERENCING_COL_NAME=None, REF_GENERATION=None), Row(TABLE_CAT='shant', TABLE_SCHEM='taxi', TABLE_NAME='trips', TABLE_TYPE='TABLE', REMARKS='', TYPE_CAT=None, TYPE_SCHEM=None, TYPE_NAME=None, SELF_REFERENCING_COL_NAME=None, REF_GENERATION=None)]
```
Change `table_types` to default to None to get all the table types by default.table_types to None
1 parent 72c799b commit 8b92820
File tree
2 files changed
+0
-4
lines changed- cmdexec/clients/python/src/databricks/sql
2 files changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | | - | |
300 | 298 | | |
301 | 299 | | |
302 | 300 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
656 | | - | |
657 | | - | |
658 | 656 | | |
659 | 657 | | |
660 | 658 | | |
| |||
0 commit comments