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

Support WITH expression #134

Closed
apstndb opened this issue Oct 3, 2024 · 0 comments · Fixed by #215
Closed

Support WITH expression #134

apstndb opened this issue Oct 3, 2024 · 0 comments · Fixed by #215

Comments

@apstndb
Copy link
Contributor

apstndb commented Oct 3, 2024

WITH expression is not yet supported.

Syntax

https://cloud.google.com/spanner/docs/reference/standard-sql/operators#with_expression

WITH(variable_assignment[, ...], result_expression)

variable_assignment:
  variable_name AS expression
$ go run ./tools/parse --mode query 'SELECT WITH(s AS SUM(input), c AS COUNT(input), s/c) FROM UNNEST([1.0, 2.0, 3.0]) AS input;'
2024/10/04 01:34:52 syntax error::1:8: unexpected token: WITH

  1:  SELECT WITH(s AS SUM(input), c AS COUNT(input), s/c) FROM UNNEST([1.0, 2.0, 3.0]) AS input;
             ^~~~
exit status 1

Reference

In ZetaSQL

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

Successfully merging a pull request may close this issue.

1 participant