OpenMetadata
OpenMetadata copied to clipboard
[BigQuery] Profiler issue with JSON type column
Affected module The issue impacts profiler workflow for bigquery
Describe the bug When the table contains column with JSON type, the profiler encounters the following issue:
...Grouping by expressions of type JSON is not allowed...
...
No matching signature for function LENGTH
Argument types: JSON
Signature: LENGTH(STRING)
Argument 1: Unable to coerce type JSON to expected type STRING
Signature: LENGTH(BYTES)
Argument 1: Unable to coerce type JSON to expected type BYTES
...
To Reproduce Profile a table that contains JSON type column
Expected behavior Since it is a limitation from BigQuery, maybe we could skip JSON type column
Version:
- OS: MacOS (docker compose mode)
- Python version: -
- OpenMetadata version: 1.6.4
- OpenMetadata Ingestion package version: -
I have tried to exclude JSON type in the global profiler config but still having the same issue.
Found the issue that JSON type in BigQuery is detected as VARCHAR. Disabling profiler for VARCHAR data type mitigates the issue at the moment.