• Sreeharsha Ramanavarapu's avatar
    Bug #20909518: HANDLE_FATAL_SIGNAL (SIG=11) IN · 8006ad80
    Sreeharsha Ramanavarapu authored
                   FIND_USED_PARTITIONS | SQL/OPT_RANGE.CC:3884
    
    Issue:
    -----
    During partition pruning, first we identify the partition
    in which row can reside and then identify the subpartition.
    If we find a partition but not the subpartion then we hit
    a debug assert. While finding the subpartition we check
    the current thread's error status in part_val_int()
    function after some operation. In this case the thread's
    error status is already set to an error (multiple rows
    returned) so the function returns no partition found and
    results in incorrect behavior.
    
    SOLUTION:
    ---------
    Currently any error encountered in part_val_int is
    considered a "partition not found" type error. Instead of
    an assert, a check needs to be done and a valid error
    returned.
    8006ad80
opt_range.cc 362 KB