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
spannertest: limitation of "UNNEST" clause usage #3296
Comments
It is because the array literal is unsupported (this is in the README.md). FWIW, it should work with |
Thank you for your explanation. My doubt on But, is " I used
But, it got the following error.
And, if I use
Based on the above, "UNNEST" itself works by avoiding hard-coded the array literal as you say, but, it may not work soon after "FROM" . Let me know if you have anything else. |
Ah, right. |
I see. Thanks. That seems the very reason my SQL doesn't work. |
This does not implement array literals, but now arrays provided as query parameters may be used as SELECT targets. Fixes #3296.
Is your feature request related to a problem? Please describe.
It seems
AS
clause cannot be used to the output fromUNNEST
.I tried to run the below SQL in spannertest/intergration_test.go when I was developing #3286 , but received below error.
I have not pursed which code causes this issue, but I guess the parsing logic in
spansql
may have a point to improve.The text was updated successfully, but these errors were encountered: