8000 Failed to resolve the schema after unnest · Issue #652 · wvlet/wvlet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
A76F

Failed to resolve the schema after unnest #652

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

Open
xerial opened this issue Dec 31, 2024 · 0 comments
Open

Failed to resolve the schema after unnest #652

xerial opened this issue Dec 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@xerial
Copy link
Member
xerial commented Dec 31, 2024
from [
  ['John', [7, 10, 9]],
  ['Mary', [4, 8, 9]],
] as tests(student, scores)
cross join unnest(scores) as t(score)
exclude scores

-- score column is missing
┌─────────┐
│ student │
│ string  │
├─────────┤
│ John    │
│ John    │
│ John    │
│ Mary    │
│ Mary    │
│ Mary    │
├─────────┤
│ 6 rows  │
└─────────┘

expected result:

┌─────────┬───────┐
│ student │ score │
│ string  │ long  │
├─────────┼───────┤
│ John    │     7 │
│ John    │    10 │
│ John    │     9 │
│ Mary    │     4 │
│ Mary    │     8 │
│ Mary    │     9 │
├─────────┴───────┤
│ 6 rows          │
└─────────────────┘
@xerial xerial added the bug Something isn't working label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0