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() {
361361#[ test]
362362fn 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 ]
You can’t perform that action at this time.
0 commit comments