mrhhsg opened a new pull request, #68427:
URL: https://github.com/apache/doris/pull/68427

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Problem Summary:
   
   `json_length` and `json_contains` unpack constant path columns before row 
iteration, but used the current row index when reading the nullable path's 
one-row null map. For a multi-row block, rows after the first therefore read 
past the constant payload and could return incorrect `NULL` values or fail.
   
   This change uses the constant-aware row index for nullable-path checks and 
adds focused multi-row unit and SQL regression coverage for both functions.
   
   ### Release note
   
   Fix incorrect `NULL` results from `json_length` and `json_contains` when a 
non-null nullable JSON path is constant across multiple rows.
   
   ### Check List (For Author)
   
   - Test:
       - Unit Test: `./run-be-ut.sh --run --filter='FunctionJsonbTEST.*' -j 16` 
(17 tests passed)
       - Regression test: `test_json_const_nullable_path`
       - ASAN FE/BE build
   - Behavior changed: Yes. Constant nullable JSON paths now return the correct 
value for every row.
   - Does this need documentation: No
   


-- 
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