We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d68a822 commit 223d1ddCopy full SHA for 223d1dd
1 file changed
tests/sqlparser_databricks.rs
@@ -361,16 +361,22 @@ fn data_type_timestamp_ntz() {
361
#[test]
362
fn parse_semi_structured_data_traversal() {
363
// basic case
364
- let sql = "SELECT a:b FROM t";
+ let sql = "SELECT a:b.c FROM t";
365
let select = databricks().verified_only_select(sql);
366
assert_eq!(
367
SelectItem::UnnamedExpr(Expr::JsonAccess {
368
value: Box::new(Expr::Identifier(Ident::new("a"))),
369
path: JsonPath {
370
- path: vec![JsonPathElem::Dot {
371
- key: "b".to_owned(),
372
- quoted: false
373
- }]
+ path: vec![
+ JsonPathElem::Dot {
+ key: "b".to_owned(),
+ quoted: false
374
+ },
375
376
+ key: "c".to_owned(),
377
378
+ }
379
+ ]
380
},
381
}),
382
select.projection[0]
0 commit comments