OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

[BigQuery] Profiler issue with JSON type column

Open eduardchai opened this issue 1 year ago • 2 comments

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: -

eduardchai avatar Feb 27 '25 02:02 eduardchai

I have tried to exclude JSON type in the global profiler config but still having the same issue.

Image

eduardchai avatar Feb 27 '25 10:02 eduardchai

Found the issue that JSON type in BigQuery is detected as VARCHAR. Disabling profiler for VARCHAR data type mitigates the issue at the moment.

eduardchai avatar Feb 28 '25 01:02 eduardchai