Skip to content

[CALCITE-7451] REINTERPRET should not be used in logical plans - #5156

Open
mihaibudiu wants to merge 1 commit into
apache:mainfrom
mihaibudiu:issue7451
Open

[CALCITE-7451] REINTERPRET should not be used in logical plans#5156
mihaibudiu wants to merge 1 commit into
apache:mainfrom
mihaibudiu:issue7451

Conversation

@mihaibudiu

Copy link
Copy Markdown
Contributor

Jira Link

CALCITE-7451

Changes Proposed

The semantics of REINTERPRET CAST was never specified. Moreover, the cast was inserted very early by various conversions and optimizations; at best this is supposed to be a physical operator.

This PR deprecates entirely the REINTERPRET operator and replaces all uses of it with either normal casts or expressions that produce the correct result. One prominent place where it was used was the arithmetic of interval expressions.

Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
@sonarqubecloud

sonarqubecloud Bot commented Aug 6, 2026

Copy link
Copy Markdown

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