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

BigQuery's dialect SELECT AS STRUCT and SELECT AS VALUE ends up with Parse Error #1126

Closed
kubaracek opened this issue Feb 7, 2024 · 0 comments · Fixed by #1135
Closed

BigQuery's dialect SELECT AS STRUCT and SELECT AS VALUE ends up with Parse Error #1126

kubaracek opened this issue Feb 7, 2024 · 0 comments · Fixed by #1135

Comments

@kubaracek
Copy link

kubaracek commented Feb 7, 2024

Currently syntax for BigQuery's SELECT AS STRUCT (documentation) and SELECT AS VALUE (documentation) raises a parsing error.

They should both produce a Value table

Minimal examples for tests:

#[test]
fn parse_select_as_struct_syntax() {
    // syntax: SELECT AS STRUCT 1 a, 2 b
    let sql = r#"SELECT AS STRUCT 1 a, 2 b"#;
    ...
}
#[test]
fn parse_select_as_struct_syntax() {
    // syntax: SELECT AS VALUE STRUCT(123 AS a, FALSE AS b)
    let sql = r#"SELECT AS VALUE STRUCT(123 AS a, FALSE AS b)"#;
    ...
}
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