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
greatest
Describe the bug
SELECT * FROM system.data_skipping_indices WHERE (table = 'alter_index_test') AND greatest(greatest(NULL, NULL, greatest(greatest(greatest(-2), '9223372036854775806', sleep(1), NULL), NULL), '102.5', NULL), greatest('-9223372036854775808', NULL), greatest(greatest(NULL), NULL, '0.0000065536', NULL)) AND (database = currentDatabase())
Cannot capture 4 columns because function greatest has 0 arguments.: while executing 'FUNCTION greatest(greatest(-2) :: 8, '9223372036854775806' :: 9, sleep(1) :: 6, NULL : 7) -> greatest(greatest(-2), '9223372036854775806', sleep(1), NULL) Nullable(Nothing) : 14'. (LOGICAL_ERROR)
How to reproduce Always reproduced.
The text was updated successfully, but these errors were encountered:
It is reproduced if short circuit evaluation is enabled:
SELECT 1 AND greatest(sleep(0))
Sorry, something went wrong.
The bug is in LeastGreatestOverloadResolver, it passes empty list of argument types to FunctionToFunctionBaseAdaptor:
ClickHouse/src/Functions/LeastGreatestGeneric.h
Lines 109 to 116 in a6a19c6
Avogar
Successfully merging a pull request may close this issue.
Describe the bug
How to reproduce
Always reproduced.
The text was updated successfully, but these errors were encountered: