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

unnset json array #113

Closed
Liorba opened this issue Dec 28, 2015 · 1 comment
Closed

unnset json array #113

Liorba opened this issue Dec 28, 2015 · 1 comment

Comments

@Liorba
Copy link

Liorba commented Dec 28, 2015

Hey all,
it seems that unnesting json array which contains a list of maps is impossible
see the example below

 select x.n
 from
 unnest(cast(json_extract('{"payload":[{"type":"b","value":"9"}, {"type":"a","value":"8"}]}','$.payload') as 
 array<varchar>)) as  x(n)

I get an error:
Query failed (#20151228_081622_00006_w4si4) Value cannot be cast to array<varchar>

@cawallin
Copy link
Member

cawallin commented Jan 4, 2016

This looks like a Presto issue, rather than a presto-admin issue -- can you file the issue there? https://github.com/facebook/presto/issues

@cawallin cawallin closed this as completed Jan 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants