File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -361,16 +361,22 @@ fn data_type_timestamp_ntz() {
361
361
#[ test]
362
362
fn parse_semi_structured_data_traversal ( ) {
363
363
// basic case
364
- let sql = "SELECT a:b FROM t" ;
364
+ let sql = "SELECT a:b.c FROM t" ;
365
365
let select = databricks ( ) . verified_only_select ( sql) ;
366
366
assert_eq ! (
367
367
SelectItem :: UnnamedExpr ( Expr :: JsonAccess {
368
368
value: Box :: new( Expr :: Identifier ( Ident :: new( "a" ) ) ) ,
369
369
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
+ ]
374
380
} ,
375
381
} ) ,
376
382
select. projection[ 0 ]
You can’t perform that action at this time.
0 commit comments