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

   # Proposed changes
   
   Issue Number: related to #16818
   
   ## Problem summary
   
   The SQL `SELECT nationkey FROM 
regression_test_query_p0_limit.tpch_tiny_nation ORDER BY nationkey DESC LIMIT 
5` make be core dump since dereference a nullptr `read_orderby_key_columns in 
VCollectIterator::_topn_next`, triggered by skipping _colname_to_value_range 
init in #16818 .
   
   This PR makes two changes:
   1. avoid read_orderby_key_columns nullptr in 
TabletReader::_init_orderby_keys_param
   2. return error if read_orderby_key_columns is nullptr unexpected in 
VCollectIterator::_topn_next to avoid core dump
   
   
   ## Checklist(Required)
   
   * [ ] Does it affect the original behavior
   * [ ] Has unit tests been added
   * [ ] Has document been added or modified
   * [ ] Does it need to update dependencies
   * [ ] Is this PR support rollback (If NO, please explain WHY)
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


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