• Varun Gupta's avatar
    MDEV-22011: DISTINCT with JSON_ARRAYAGG gives wrong results · 0f6f0daa
    Varun Gupta authored
    For DISTINCT to be handled with JSON_ARRAYAGG, we need to make sure
    that the Unique tree also holds the NULL bytes of a table record
    inside the node of the tree. This behaviour for JSON_ARRAYAGG is
    different from GROUP_CONCAT because in GROUP_CONCAT we just reject
    NULL values for columns.
    
    Also introduced a comparator function for the unique tree to handle null
    values for distinct inside JSON_ARRAYAGG.
    0f6f0daa
item_sum.cc 114 KB