Skip to content

Commit 223d1dd

Browse files
committed
fixup! add failing tests
1 parent d68a822 commit 223d1dd

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

tests/sqlparser_databricks.rs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,16 +361,22 @@ fn data_type_timestamp_ntz() {
361361
#[test]
362362
fn parse_semi_structured_data_traversal() {
363363
// basic case
364-
let sql = "SELECT a:b FROM t";
364+
let sql = "SELECT a:b.c FROM t";
365365
let select = databricks().verified_only_select(sql);
366366
assert_eq!(
367367
SelectItem::UnnamedExpr(Expr::JsonAccess {
368368
value: Box::new(Expr::Identifier(Ident::new("a"))),
369369
path: JsonPath {
370-
path: vec![JsonPathElem::Dot {
371-
key: "b".to_owned(),
372-
quoted: false
373-
}]
370+
path: vec![
371+
JsonPathElem::Dot {
372+
key: "b".to_owned(),
373+
quoted: false
374+
},
375+
JsonPathElem::Dot {
376+
key: "c".to_owned(),
377+
quoted: false
378+
}
379+
]
374380
},
375381
}),
376382
select.projection[0]

0 commit comments

Comments
 (0)