• Rucha Deodhar's avatar
    MDEV-30304: Json Range only affects first row of the result set · b915b96f
    Rucha Deodhar authored
    Analysis:
    Parsing json path happens only once. When paring, we set types of path
    (types_used) to use later. If the path type has range or wild card, only
    then multiple values get added to the result set.
    However for each row in the table, types_used still gets
    overwritten to default (no multiple values) and is also not set again
    (because path is already parsed). Since multiple values depend on the
    type of path, they dont get added to result set either.
    
    Fix:
    set default for types_used only if path is not parsed already.
    b915b96f
item_jsonfunc.cc 112 KB