Skip to content

[SQL] Emit a warning if DECIMAL is used without precision and scale#6071

Open
mihaibudiu wants to merge 1 commit intofeldera:mainfrom
mihaibudiu:issue6069
Open

[SQL] Emit a warning if DECIMAL is used without precision and scale#6071
mihaibudiu wants to merge 1 commit intofeldera:mainfrom
mihaibudiu:issue6069

Conversation

@mihaibudiu
Copy link
Copy Markdown
Contributor

Fixes #6069

In other SQL dialects CAST(x AS DECIMAL) may have a different interpretation.
In Feldera SQL DECIMAL is the same as DECIMAL(38, 0). So any use of DECIMAL without precision and scale is probably a bug - thus we emit a warning.

Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
@mihaibudiu mihaibudiu requested a review from anandbraman April 17, 2026 21:40
@mihaibudiu mihaibudiu enabled auto-merge April 17, 2026 21:41
Copy link
Copy Markdown

@mythical-fred mythical-fred left a comment

Choose a reason for hiding this comment

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

LGTM

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.

[SQL] Warn if DECIMAL is used without scale

2 participants