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

Support non-lower case variables in functions #24829

Conversation

losipiuk
Copy link
Member

@losipiuk losipiuk commented Jan 28, 2025

fixes: #24460

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:

## General
* Allow non-lower case variables in user defined functions. ({issue}`issuenumber`)

return name.getValue();
// stop-gap: lowercasing for now to match what is happening during analysis;
// otherwise we do not support non-lowercase variables in functions.
return name.getValue().toLowerCase(ENGLISH);
Copy link
Member

Choose a reason for hiding this comment

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

Add a link to #17 so we can find the places that need to be fixed when we work on that issue.

@losipiuk losipiuk force-pushed the lukaszos/support-non-lower-case-variables-in-functions-492fc6 branch from 9318bc3 to d1b2674 Compare January 29, 2025 10:08
@losipiuk losipiuk merged commit e039c6d into trinodb:master Jan 29, 2025
3 of 12 checks passed
@github-actions github-actions bot added this to the 470 milestone Jan 29, 2025
@mosabua
Copy link
Member

mosabua commented Jan 31, 2025

Update RN entry .. this is only for SQL UDFs..

@mosabua
Copy link
Member

mosabua commented Jan 31, 2025

Also .. what do you think about adding docs for this @martint @electrum

@martint
Copy link
Member

martint commented Jan 31, 2025

Not sure what docs we'd add. This is just regular identifier resolution rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Error using non-lowercase identifiers in SQL routines
4 participants