Skip to content

fix: Coerce CASE branch types to a common type - #225

Merged
MazterQyou merged 1 commit into
cubesql-3-04-2022from
cubesql/case-then-cast
Sep 2, 2026
Merged

fix: Coerce CASE branch types to a common type#225
MazterQyou merged 1 commit into
cubesql-3-04-2022from
cubesql/case-then-cast

Conversation

@MazterQyou

Copy link
Copy Markdown
Member

This PR resolves the type of a CASE expression as the common type of all its THEN and ELSE branches and casts every branch to it, so heterogeneous branch types no longer panic during execution. Related tests are included.

Signed-off-by: Alex Qyoun-ae <4062971+MazterQyou@users.noreply.github.com>
@MazterQyou
MazterQyou force-pushed the cubesql/case-then-cast branch from b73acf6 to 4955ddd Compare September 1, 2026 21:00
@MazterQyou
MazterQyou merged commit 2ba1ea0 into cubesql-3-04-2022 Sep 2, 2026
21 checks passed
@MazterQyou
MazterQyou deleted the cubesql/case-then-cast branch September 2, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant