Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.24.0
Description
Problem related to the feature CALCITE-3951.
A cast operation from a character type to another character type that has a different collator must be evaluated as not monotonic. Currently this is not the case.
This has an impact e.g. in SortProjectTransposeRule, since we can incorrectly transpose a sort after a projection than contains such a cast, and we end up with a plan that will return a different result than the original one (it is not the same casting and then sorting; than sorting and then casting).
Attachments
Issue Links
- is caused by
-
CALCITE-3951 Support different string comparison based on SqlCollation
- Closed
- is related to
-
CALCITE-5003 MergeUnion on types with different collators produces wrong result
- Closed
- links to