new 'json' type, used in Athena Queries what use 'cast (col as json)'#23
new 'json' type, used in Athena Queries what use 'cast (col as json)'#23poolieweb wants to merge 1 commit intosegmentio:masterfrom
Conversation
|
What Go type is returned for JSON? []byte? |
|
Normally []byte , but I struggled with this for a while. Looking at my results and here [https://prestodb.github.io/docs/current/functions/json.html] |
|
I like []byte... that's how I've seen jackc/pgx, the postgres driver I use do it, but it would be odd if Go could not unmarshal it. Could you show an example of that? Also, could you add tests illustrating the expected usage of the JSON type? That's a requirement to merge. Thanks for putting this PR together! |
When using 'CAST' to a type of 'JSON' in a Athena Query Json type causes an error.