-
Notifications
You must be signed in to change notification settings - Fork 591
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
bug(frontend): pgwire binary format for interval overflows #8041
Comments
It's supposed to be a decimal type, is that correct? |
Not sure, see: https://github.com/postgres/postgres/blob/517bf2d9107f0d45c5fea2e3904e8d3b10ce6bb2/src/backend/utils/adt/timestamp.c#L1014 |
#4514 |
This has been fixed "automatically" by #8501, as binary formatting no longer requires any calculation, and the multiplication already handles the error reporting properly. Before closing this issue as resolved, are there disabled test cases that we want to re-enable? |
|
Currently sqlsmith does not test binary format at all, since I have changed it to use Will add it back eventually. |
Describe the bug
No response
To Reproduce
Execute a query in extended mode, to force binary format to be returned:
Expected behavior
No panic, return interval.
Interim workaround can be to use
checked_mul
to avoid panic.But proper fix needs to avoid error.
Additional context
risingwave/src/common/src/types/interval.rs
Line 723 in f5b7fd7
https://bulidkite-artifacts-bucket.s3.amazonaws.com/9eed51d0-eaaf-4ea3-95a2-2e9e557607f6/01865e72-d4b3-425e-b291-836a1daf317c/01865e73-2536-4397-af1c-c0f6b20b9033/risedev-logs/fuzzing-4.log
The text was updated successfully, but these errors were encountered: