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
Describe the bug
In the spark unit test for GetJsonObject with a path of $.store.basket[0][*].b and data of
val json =
"""
|{"store":{"fruit":[{"weight":8,"type":"apple"},{"weight":9,"type":"pear"}],
|"basket":[[1,2,{"b":"y","a":"x"}],[3,4],[5,6]],"book":[{"author":"Nigel Rees",
|"title":"Sayings of the Century","category":"reference","price":8.95},
|{"author":"Herman Melville","title":"Moby Dick","category":"fiction","price":8.99,
|"isbn":"0-553-21311-3"},{"author":"J. R. R. Tolkien","title":"The Lord of the Rings",
|"category":"fiction","reader":[{"age":25,"name":"bob"},{"age":26,"name":"jack"}],
|"price":22.99,"isbn":"0-395-19395-8"}],"bicycle":{"price":19.95,"color":"red"}},
|"email":"amy@only_for_json_udf_test.net","owner":"amy","zip code":"94025",
|"fb:testid":"1234"}
|""".stripMargin
we return null, meaning it didn't match anything, but the CPU say it matches ["y"]. https://jsonpath.com/ also produces the same answer as the CPU.
The text was updated successfully, but these errors were encountered:
Describe the bug
In the spark unit test for GetJsonObject with a path of
$.store.basket[0][*].b
and data ofwe return null, meaning it didn't match anything, but the CPU say it matches
["y"]
. https://jsonpath.com/ also produces the same answer as the CPU.The text was updated successfully, but these errors were encountered: