Registry Mirror
Skip to content

Conversation

@reshke

@reshke reshke commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

SQLancer NOREC found a result mismatch: SELECT * FROM t3 WHERE current_schema() < t3.c1 returned 0 rows, while the aggregate rewrite returned 1 row.

DXL scalar comparisons do not preserve inputcollid. Commuting a comparison whose arguments have different collations can therefore rebuild it with the wrong collation. Fall back for non-default mixed-collation comparisons, and cover this behavior plus same-C comparisons in regression tests.

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context


SQLancer NOREC found a result mismatch: SELECT * FROM t3 WHERE current_schema() < t3.c1 returned 0 rows, while the aggregate rewrite returned 1 row.

DXL scalar comparisons do not preserve inputcollid. Commuting a comparison whose arguments have different collations can therefore rebuild it with the wrong collation. Fall back for non-default mixed-collation comparisons, and cover this behavior plus same-C comparisons in regression tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant