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

throw exception while non-parametric functions having parameters #48115

Merged

Conversation

save-my-heart
Copy link
Contributor

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Now non-parametric functions only validate 'arguments', any 'parameters' will be ignored, these may cause unexpected behavior in some cases.
See: #48089

@Avogar Avogar self-assigned this Mar 28, 2023
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Mar 28, 2023
@ucasfl ucasfl added the can be tested Allows running workflows for external contributors label Mar 29, 2023
@Avogar Avogar merged commit 5f930ae into ClickHouse:master Apr 4, 2023
@save-my-heart save-my-heart deleted the throw_non_parametric_function branch April 4, 2023 10:58
@@ -1109,6 +1110,12 @@ void ActionsMatcher::visit(const ASTFunction & node, const ASTPtr & ast, Data &
}
}

/// Normal functions are not parametric for now.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This if is not correct because executable UDF can have parameters. See #38142, #37929 and #30957.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can be tested Allows running workflows for external contributors pr-not-for-changelog This PR should not be mentioned in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants