apache / druid

Apache Druid: a high performance real-time analytics database.
https://druid.apache.org/
Apache License 2.0
13.29k stars 3.66k forks source link

Bug fix for array type selector causing array aggregation over window frame fail #16653

Open sreemanamala opened 5 days ago

sreemanamala commented 5 days ago

Description

This commit fixes the windowed aggregation involving array type selector.

example query (earlier used to fail with a defensive exception):

select countryName, cityName, channel, array_concat_agg(ARRAY['N/A', channel], 10000) over (partition by cityName order by countryName) as c
from wikipedia
where countryName in ('Austria', 'Republic of Korea') and (cityName in ('Horsching', 'Vienna', 'Seoul', 'Jeonju') or cityName is null)
group by countryName, cityName, channel

Key changed/added classes in this PR

This PR has: