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

minor: fix error message function naming #9168

Merged
merged 2 commits into from
Feb 9, 2024
Merged

Conversation

comphead
Copy link
Contributor

@comphead comphead commented Feb 8, 2024

Which issue does this PR close?

Closes #.

Rationale for this change

The PR slightly improves error messaging format for some of builtin functions like INSTR, SUBSTR, POSITION to increase readability for the end user.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added logical-expr Logical plan and expressions sqllogictest SQL Logic Tests (.slt) labels Feb 8, 2024
@comphead
Copy link
Contributor Author

comphead commented Feb 8, 2024

Going fwd I still think we need to send to user all supported signatures as a unified message instead of having custom message per function

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @comphead -- this looks like a good improvement to me

/// the type of its first argument.
///
/// If the input type is `LargeUtf8` or `LargeBinary` the return type is
/// `$largeUtf8Type`,
///
/// If the input type is `Utf8` or `Binary` the return type is `$utf8Type`,
macro_rules! make_utf8_to_return_type {
macro_rules! get_optimal_return_type {
Copy link
Contributor

Choose a reason for hiding this comment

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

💯 for the name!

@comphead comphead merged commit ec2daa6 into apache:main Feb 9, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants