Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR_IF_OVERFLOW sql mode doesn‘t take effect in functions like avg #45346

Open
packy92 opened this issue May 9, 2024 · 0 comments
Open
Labels
type/bug Something isn't working

Comments

@packy92
Copy link
Contributor

packy92 commented May 9, 2024

Steps to reproduce the behavior (Required)

  1. CREATE TABLE '...'
  2. INSERT INTO '....'
  3. SELECT '....'
    [Enhancement] Support overflow mode for decimal type #30419
    The above pr support error reporting when decimal overflow by introducing a OverflowMode, while only basic math function can take effect. Fucntions like agg may still return a wrong result when ERROR_IF_OVERFLOW is enabled.

Expected behavior (Required)

throw exception when set ERROR_IF_OVERFLOW

Real behavior (Required)

StarRocks version (Required)

  • You can get the StarRocks version by executing SQL select current_version()
@packy92 packy92 added the type/bug Something isn't working label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant