Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.
This repository was archived by the owner on May 17, 2024. It is now read-only.

Grouping By Arrays and Structs not supported in Bigquery #445

Closed
@sowusu-ba

Description

@sowusu-ba

Describe the bug
I tried data-diff for the first time and I got this error.

Got error: 400 Grouping is not defined for arguments of type ARRAY<STRUCT<id STRING

My table has arrays and structs. The command I used is

dbt run --select table_a && data-diff --dbt

I think what's happening is that the SQL generated by data-diff to compare the two tables is unaware that a field is an array of structs. I copied the SQL into the BigQuery console and I found the error here:

   CASE
      WHEN `tmp1`.`array_field` IS DISTINCT FROM `tmp2`.`array_field` THEN 1
    ELSE
    0
  END
    AS `is_diff_array_field`,

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions