JSON_ARRAY_OVERLAP (Lakehouse v1)
두 JSON 배열이 겹치는지 검사하여 공통 요소가 있으면 true, 없으면 false를 반환합니다.
SQL Syntax
섹션 제목: “SQL Syntax”JSON_ARRAY_OVERLAP(<json_array1>, <json_array2>)반환 타입
섹션 제목: “반환 타입”이 함수는 불리언 값을 반환합니다.
- 두 JSON 배열에 공통 요소가 하나 이상 있으면
true, - 공통 요소가 없으면
false.
SQL Examples
섹션 제목: “SQL Examples”SELECT json_array_overlap( '["apple", "banana", "cherry"]'::JSON, '["banana", "kiwi", "mango"]'::JSON);
-[ RECORD 1 ]-----------------------------------json_array_overlap('["apple", "banana", "cherry"]'::VARIANT, '["banana", "kiwi", "mango"]'::VARIANT): true
SELECT json_array_overlap( '["grape", "orange"]'::JSON, '["apple", "kiwi"]'::JSON);
-[ RECORD 1 ]-----------------------------------json_array_overlap('["grape", "orange"]'::VARIANT, '["apple", "kiwi"]'::VARIANT): false