Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDEV-26182: Implement JSON_INTERSECT() #2261

Open
wants to merge 1 commit into
base: 10.11
Choose a base branch
from

Commits on Sep 6, 2022

  1. MDEV-26182: Implement JSON_INTERSECT()

    The behavior of intersection of different types is different. Taking the
    intersection of two objects is taking their common KV pairs. The intersection
    of array and array is to take their common elements. There is no intersection
    between scalar and object. An object and a scalar take an intersection with an
    array. As long as the object or scalar exists in the array, the intersection
    is the object or the scalar.
    
    We put a json into the hash, scan another json, and efficiently get the
    intersection by reading and updating the hash information.
    tanruixiang committed Sep 6, 2022
    Configuration menu
    Copy the full SHA
    dee4c38 View commit details
    Browse the repository at this point in the history