Skip to content

[SQLLIB] Fix bug in DECIMAL division#5947

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

[SQLLIB] Fix bug in DECIMAL division#5947
mihaibudiu wants to merge 1 commit intofeldera:mainfrom
mihaibudiu:issue5946

Conversation

@mihaibudiu
Copy link
Copy Markdown
Contributor

Checklist

  • Unit tests added/updated

Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
@mihaibudiu mihaibudiu requested a review from blp March 28, 2026 06:44
@mihaibudiu
Copy link
Copy Markdown
Contributor Author

@blp maybe you will want to add a couple of tests to the fxp library to cover this if this is indeed the problem

@gz
Copy link
Copy Markdown
Contributor

gz commented Mar 28, 2026

you could probably just fuzz this using arbitrary arithemtic and validate against python decimal or similar

@blp
Copy link
Copy Markdown
Member

blp commented Mar 28, 2026

you could probably just fuzz this using arbitrary arithemtic and validate against python decimal or similar

Fuzzing is a good idea but it's also important, IMO, to have handwritten test cases that cover all the special cases. We missed some.

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.

3 participants