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

[Feature][SDK] Fix the issue of inconsistent capitalization of Function names in FunctionalTools #11092

Closed
2 tasks done
Zkplo opened this issue Sep 13, 2024 · 0 comments · Fixed by #11093
Closed
2 tasks done
Assignees
Milestone

Comments

@Zkplo
Copy link
Contributor

Zkplo commented Sep 13, 2024

Description

Due to the fact that the names of each function are in lowercase, if there are uppercase function names passed in SQL, the corresponding function cannot be found.

    public static ValueParser getTransformFunction(Function func) {
        if (func == null) {
            return null;
        }
        String functionName = func.getName(); // Inconsistent capitalization
        Class<?> clazz = functionMap.get(functionName);
        .......
    }

Use case

No response

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants