We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Safe divide currently doesn't return the correct answer.
Given:
SELECT SAFE_DIVIDE(5, 4) a;
it gets translated to :
SELECT /* Approximation: SAFE variant not supported */ DIVIDE(5, 4) a
But divide in duckdb is an alias for // which is getting the integer part and not the precision part.
I think, this should be translated to:
SELECT if(4 != 0, 5/4, NULL) as a
The text was updated successfully, but these errors were encountered:
86fc552
manticore-projects
No branches or pull requests
Safe divide currently doesn't return the correct answer.
Given:
it gets translated to :
But divide in duckdb is an alias for // which is getting the integer part and not the precision part.
I think, this should be translated to:
The text was updated successfully, but these errors were encountered: