array_contains
returning unexpected values with column parameter
#6972
Labels
bug
Something isn't working
Describe the bug
The
array_contains
code seems to be overly-flattening input lists and in doing so is generating incorrect data when one of the parameters is a column of List-type.To Reproduce
I've attached a parquet table containing a column with type List(String).
When use array_contains on this data, I get this result set:
Note that none of the resulting
bid_node_ids
values contain the queried-for value ofz+CPVybgUuCXlAE3A3jqyg==
array_contains.parquet.zip
Expected behavior
I was expecting that there are 861 matching results in the result set, all of which contain the value
z+CPVybgUuCXlAE3A3jqyg==
Additional context
I've hacked together a change on our branch that gives us the changes we are expecting: urbanlogiq@a381f10 but I'm not sure if this fix is what is intended by the original author.
The text was updated successfully, but these errors were encountered: