You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
canhld94
changed the title
Query with array join toYYYYMM in predicate doesn't work as expected
Query with array join and toYYYYMM in predicate doesn't work as expected
Aug 9, 2023
The problematic case happens when an array column of date/datetime
is simultaneously specified in an Array Join clause without aliases
and in a time converter, such as toYYYYMM.
After applying Array Join without aliases, the column's name refers
to the flattened array items, however, its data type is recognized
as a ColumnArray still, which leads to the unexpected exception
throws when building the preimage for the time converters.
As a quick fix, we more strictly check the data types of the time
converters and quit the preimage optimization pass early.
Reproduce:
Work in 23.6: https://fiddle.clickhouse.com/cabc075a-ac8a-4a15-bd46-2bc2b1de09a6
Not work in 23.7: https://fiddle.clickhouse.com/74c0b0b6-72f2-4fb7-8a0b-bc098307da70
Suspicious PR: #52091
The text was updated successfully, but these errors were encountered: