-
Notifications
You must be signed in to change notification settings - Fork 148
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 converting zero bytes and high-bit-set bytes to octal sequences for VARBINARY #405
Comments
@Obsecurus thank you for the raised issue |
we've tried escapeOutput but it does not generate the desired results. We've use the Athena JAR with raw Python and get the desired result. I imagine anyone working with binary data containing ascii would want this mode. I suspect sqlline doesn't have this rendering mode with any of the drivers. |
Here is an example select on a VARBINARY column from Athena when using the Python
|
yes, I understand what you mean.
|
PostgreSQL has a function
encode(data, 'escape')
where data is a bytea.https://www.postgresql.org/docs/9.4/functions-binarystring.html
Currently when using sqlline w/ the Athena JDBC the default output for VARBINARY is to convert as hex. It would be extremely useful the have the ability to support this output mode directly in sqlline for any VARBINARY column when set.
The text was updated successfully, but these errors were encountered: