fix: do not treat concat as preserving lexicographical ordering#23804
fix: do not treat concat as preserving lexicographical ordering#23804buraksenn wants to merge 3 commits into
Conversation
neilconway
left a comment
There was a problem hiding this comment.
Thanks for this fix; overall looks reasonable to me.
As far as I can tell, there are no longer any expressions for which preserves_lex_ordering will return true. Do we think this API is still useful? Can we come up with any use-cases where either
- we might add support for it in the future, or
- where extensions would want support for it?
If we can't, we might consider deprecating and removing it.
If we keep it, I'm a bit nervous doing so with no actual implementations / test coverage in-tree...
I thought maybe a downstream would depend on it so did not think of removing it but I understand it can be deprecated if its not usable. I'll check other comments thanks for the review |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #23804 +/- ##
==========================================
- Coverage 80.72% 80.71% -0.01%
==========================================
Files 1089 1089
Lines 368911 368869 -42
Branches 368911 368869 -42
==========================================
- Hits 297785 297716 -69
- Misses 53374 53398 +24
- Partials 17752 17755 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Which issue does this PR close?
concatshould NOT be reported as preserve lex ordering - wrong output #23793.Rationale for this change
Please check the issue details but main idea is concat does not guarantee lexicographical ordering
What changes are included in this PR?
Main change is simply deleting
preserves_lex_orderingmethod from concat and let it fallback to defaultfalse. Also added relevant tests and adjusted commentsAre these changes tested?
Yes adjusted existing and added new tests
Are there any user-facing changes?
No api changes but there is a behavior change I think on optimization part for concat