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
It seems Presto doesnt honor the length specified when casting json to varchar ; Might be true for other casts too, but I havent verified.
SELECT CAST(json_parse(x) as varchar(1)) from (values '"abcedef"') t(x) -- output: abcdef -- expected: a SELECT CAST(json_parse(x) as varchar(0)) from (values '"abcedef"') t(x) -- output: abcdef -- expected: // empty string
See queries above.
This came up when testing with Presto-native.
The text was updated successfully, but these errors were encountered:
cc: @natashasehgal @amitkdutta @rschlussel
Sorry, something went wrong.
No branches or pull requests
Expected Behavior
It seems Presto doesnt honor the length specified when casting json to varchar ; Might be true for other casts too, but I havent verified.
Current Behavior
See queries above.
Context
This came up when testing with Presto-native.
The text was updated successfully, but these errors were encountered: