You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix parsing for dot following arr and [*] path and add TABLE keyword (#152)
* Add `TABLE` keyword
This is to ensure the following syntax conformance test passes:
```
fn invalid_path_component_keyword_in_path_test() {
let statement = r#"SELECT foo.id, foo.table FROM `[{id: 1, table: "foos"}]` AS foo"#;
let res = partiql_parser::Parser::default().parse(statement);
assert!(
res.is_err(),
"For `{}`, expected `Err(_)`, but was `{:#?}`",
statement,
res
);
}
```
* Fix parsing for path whildcard and array with a dot
This change fixes parsing of expressions like the following:
`foo(x, y)[*].*.b[5]`
In the above expression a `.` follows a path whildcard
* Add identation
* Table -> TABLE
Co-authored-by: Josh Pschorr <[email protected]>
0 commit comments