NEUpanning opened a new issue, #5253:
URL: https://github.com/apache/incubator-gluten/issues/5253

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   The following SQL might lead to wrong results, but it's not yet certain if 
there are other factors involved. Vanilla Spark results is `NULL` but gluten 
results is `N`.
   `select get_json_object(extend_attr,'$.11000022') from 
mart_catering.dim_deal_all_info_ss where mt_deal_id=922798418 and 
partition_date='2024-03-27';`
   The extend_attr field value is 
`{"142":"[{\"112\":{\"template\":{\"A\":\"a\",\"RS\":\"a\",\"NRS\":\"a\"},\"label\":{\"fromNumber\":\"\",\"rsToNumber\":\"\",\"rsFromNumber\":\"\",\"toNumber\":\"\"},\"key\":\"A\"},\"141\":[[{\"name\":\"a\a\"},{\"number\":\"1\"},{\"price\":\"218\"},{\"size\":\"6\"},{\"unit\":\"a\"},{\"form\":\"a\"},{\"type\":\"a\"},{\"thickness\":\"\"}]]}]","11000022":
 "N"}`
   I cannot reproduce this issue using simple SQL like `select 
get_json_object(col1,'$.11000022')  from 
values('{"142":"[{\"112\":{\"template\":{\"A\":\"a\",\"RS\":\"a\",\"NRS\":\"a\"},\"label\":{\"fromNumber\":\"\",\"rsToNumber\":\"\",\"rsFromNumber\":\"\",\"toNumber\":\"\"},\"key\":\"A\"},\"141\":[[{\"name\":\"a\a\"},{\"number\":\"1\"},{\"price\":\"218\"},{\"size\":\"6\"},{\"unit\":\"a\"},{\"form\":\"a\"},{\"type\":\"a\"},{\"thickness\":\"\"}]]}]","11000022":
 "N"}')` and the results is `NULL` same as Vanilla Spark results.
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to