plain-farmer-27314
03/16/2022, 1:28 PMdazzling-judge-80093
03/16/2022, 4:02 PM'warnings': {'calm-pagoda-323403.bigquery_demo.test': ['unable to map type STRUCT(a=ARRAY(String()), b=Boolean()) to metadata schema'],
And I saw this warning as well. I’m not sure if we should worried about this or not :):
/Users/treff7es/shadow/datahub-linkedin/metadata-ingestion/src/datahub/ingestion/source/sql/bigquery.py:17: UserWarning: Obsolete pybigquery is installed, which is likely to
interfere with sqlalchemy_bigquery.
pybigquery should be uninstalled.
What do you think should we fully move to sqlalchemy biquery?
If we do that we should upgrade great expectation as well, I’m afraid, as the version we have does not support but luckily the newer one supports this bigquery driver.
My only concern are the monkey patches we have on Great Expectation but if you want I can check if the new one would work.plain-farmer-27314
03/16/2022, 5:21 PMdazzling-judge-80093
03/16/2022, 5:32 PMfresh-river-19527
03/16/2022, 5:41 PMdazzling-judge-80093
03/16/2022, 6:05 PMfresh-river-19527
03/16/2022, 7:41 PMdazzling-judge-80093
03/16/2022, 7:41 PMplain-farmer-27314
03/17/2022, 2:00 PMplain-farmer-27314
03/18/2022, 4:20 PMdazzling-judge-80093
03/18/2022, 4:21 PMplain-farmer-27314
03/18/2022, 6:07 PMdazzling-judge-80093
03/18/2022, 6:52 PM[2022-03-18 19:49:44,499] WARNING {datahub.ingestion.source.sql.sql_common:1024} - Unable to ingest view ge_temp_views.ge-temp-ac7eb619-9959-4a66-8b63-2d6d1fc61a3b due to an exception.
Traceback (most recent call last):
File "/Users/treff7es/shadow/datahub/metadata-ingestion/src/datahub/ingestion/source/sql/sql_common.py", line 1016, in loop_views
yield from self._process_view(
File "/Users/treff7es/shadow/datahub/metadata-ingestion/src/datahub/ingestion/source/sql/sql_common.py", line 1071, in _process_view
view_definition = inspector.get_view_definition(view, schema)
File "/Users/treff7es/shadow/datahub/metadata-ingestion/venv/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 337, in get_view_definition
return self.dialect.get_view_definition(
File "/Users/treff7es/shadow/datahub/metadata-ingestion/venv/lib/python3.9/site-packages/pybigquery/sqlalchemy_bigquery.py", line 973, in get_view_definition
view = client.get_table(view_name)
File "/Users/treff7es/shadow/datahub/metadata-ingestion/venv/lib/python3.9/site-packages/google/cloud/bigquery/client.py", line 1031, in get_table
table_ref = _table_arg_to_table_ref(table, default_project=self.project)
File "/Users/treff7es/shadow/datahub/metadata-ingestion/venv/lib/python3.9/site-packages/google/cloud/bigquery/table.py", line 2731, in _table_arg_to_table_ref
value = TableReference.from_string(value, default_project=default_project)
File "/Users/treff7es/shadow/datahub/metadata-ingestion/venv/lib/python3.9/site-packages/google/cloud/bigquery/table.py", line 252, in from_string
) = _helpers._parse_3_part_id(
File "/Users/treff7es/shadow/datahub/metadata-ingestion/venv/lib/python3.9/site-packages/google/cloud/bigquery/_helpers.py", line 893, in _parse_3_part_id
raise ValueError(
ValueError: table_id must be a fully-qualified ID in standard SQL format, e.g., "project.dataset.table_id", got ge-temp-ac7eb619-9959-4a66-8b63-2d6d1fc61a3b
I think this happens because the monkey-patching of the get_view_definition
does not work with the new driver.
I don’t know yet why.dazzling-judge-80093
03/18/2022, 6:55 PMdazzling-judge-80093
03/18/2022, 7:04 PMplain-farmer-27314
03/18/2022, 8:14 PMge-temp-ac7eb619-9959-4a66-8b63-2d6d1fc61a3b
a valid table name to begin with?plain-farmer-27314
03/18/2022, 8:14 PM-
dazzling-judge-80093
03/18/2022, 8:23 PMdazzling-judge-80093
03/18/2022, 8:24 PMdazzling-judge-80093
03/21/2022, 9:13 AMdazzling-judge-80093
03/21/2022, 9:14 AMdazzling-judge-80093
03/21/2022, 9:19 AMfresh-river-19527
03/21/2022, 9:51 AMdazzling-judge-80093
03/21/2022, 10:16 AMfresh-river-19527
03/21/2022, 10:34 AMplain-farmer-27314
03/21/2022, 4:28 PMdazzling-judge-80093
03/21/2022, 4:40 PMdazzling-judge-80093
03/21/2022, 5:09 PMsrc/datahub/ingestion/source/sql/bigquery.py
file?
Now you should be able to see on the pr if tests passes.plain-farmer-27314
03/22/2022, 7:50 PMdazzling-judge-80093
03/23/2022, 2:04 PMplain-farmer-27314
03/23/2022, 2:12 PMdazzling-judge-80093
03/23/2022, 2:19 PMdazzling-judge-80093
03/23/2022, 6:43 PMdazzling-judge-80093
03/23/2022, 6:43 PMplain-farmer-27314
03/23/2022, 7:20 PM