Skip to content

Commit

Permalink
fix: get table object for querying description
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-milan committed Oct 20, 2023
1 parent 1d0b725 commit b95b356
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipelines/rj_escritorio/data_catalog/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ def list_tables( # pylint: disable=too-many-arguments
continue
for table in client.list_tables(dataset):
table_id = table.table_id
table_object = client.get_table(table.reference)
if exclude_test and "test" in table_id:
log(f"Excluding test table {table_id}.")
continue
table_description = table.description
table_description = table_object.description
table_info = {
"project_id": project_id,
"dataset_id": dataset_id,
Expand Down

0 comments on commit b95b356

Please sign in to comment.