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
While substr function accepts char type, substring function doesn't.
substr
substring
SELECT substr(cast('abcd1234' as char(8)), 1, 4); → OK
SELECT substring(cast('abcd1234' as char(8)), 1, 4); → Unexpected parameters (char(8), integer, integer) for function substring. Expected: substring(varchar(x), bigint, bigint) , substring(varchar(x), bigint)
https://prestosql.io/docs/current/functions/teradata.html
The text was updated successfully, but these errors were encountered:
substring is part of teradata functions (when we have function namespaces, this will be more clear to users as well).
@ebyhr did you check that substring in teradata works with char values too?
char
Sorry, something went wrong.
Requires #3456 being resolved first.
Yes, I checked it before filing the issue.
ebyhr
Successfully merging a pull request may close this issue.
While
substr
function accepts char type,substring
function doesn't.https://prestosql.io/docs/current/functions/teradata.html
The text was updated successfully, but these errors were encountered: