Skip to content

[CALCITE-7499] COALESCE with args of different types might be incorrectly simplified#4914

Merged
snuyanzin merged 1 commit intoapache:mainfrom
snuyanzin:calcite7499
May 5, 2026
Merged

[CALCITE-7499] COALESCE with args of different types might be incorrectly simplified#4914
snuyanzin merged 1 commit intoapache:mainfrom
snuyanzin:calcite7499

Conversation

@snuyanzin
Copy link
Copy Markdown
Contributor

Jira Link

CALCITE-7499

Changes Proposed

The problem of current implementation is that for COALESCE with input args of different types it doesn't preserve least restrictive type.

Copy link
Copy Markdown
Contributor

@mihaibudiu mihaibudiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the issue/commit to reflect the actual problem

@snuyanzin snuyanzin changed the title [CALCITE-7499] COALESCE does not take into account leastRestrictiveType for input args [CALCITE-7499] COALESCE with args of different types might be simplified wrong May 4, 2026
@snuyanzin
Copy link
Copy Markdown
Contributor Author

Please change the issue/commit to reflect the actual problem

changed

@snuyanzin snuyanzin changed the title [CALCITE-7499] COALESCE with args of different types might be simplified wrong [CALCITE-7499] COALESCE with args of different types might be incorrectly simplified May 4, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

@snuyanzin snuyanzin merged commit b2e1ab3 into apache:main May 5, 2026
19 checks passed
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.

3 participants