Using UInt64 with partition using toYYYYMMDD produces empty result on queries filtering against negative values #35304
Labels
backward compatibility
bug
Confirmed user-visible misbehaviour in official release
comp-optimizers
Query optimizations
Describe the issue
A table that includes a field with UInt64 and uses that field to create partition using toYYYYMMDD fails to return values when doing a query for values larger than -1. This used to work in ClickHouse version 20.8.7.15 and it is currently broken in version 22.2.3.1 resulting in broken code.
Which ClickHouse server versions are incompatible
Versions 20.8.7.15 and 22.2.3.1
How to reproduce
Create table and insert data:
Run the following queries:
The first query returns all records, the second one returns empty result.
The text was updated successfully, but these errors were encountered: