Skip to content

Commit

Permalink
fix array_intersect function sample error
Browse files Browse the repository at this point in the history
  • Loading branch information
vinlee19 authored Jul 28, 2023
1 parent c65781d commit 82a592d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ mysql> select k1,k2,k3,array_intersect(k2,k3) from array_type_table_varchar;
+------+----------------------------+----------------------------------+-----------------------------+
| 1 | ['hello', 'world', 'c++'] | ['I', 'am', 'c++'] | ['c++'] |
| 2 | ['a1', 'equals', 'b1'] | ['a2', 'equals', 'b2'] | ['equals'] |
| 3 | ['hasnull', NULL, 'value'] | ['nohasnull', 'nonull', 'value'] | [NULL, 'value'] |
| 3 | ['hasnull', NULL, 'value'] | ['hasnull', NULL, 'value'] | ['hasnull', 'value'] |
| 3 | ['hasnull', NULL, 'value'] | ['nohasnull', 'nonull', 'value'] | ['value'] |
| 3 | ['hasnull', NULL, 'value'] | ['hasnull', NULL, 'value'] | [ NULL,'hasnull', 'value'] |
+------+----------------------------+----------------------------------+-----------------------------+
mysql> select k1,k2,k3,array_intersect(k2,k3) from array_type_table_decimal;
Expand All @@ -90,4 +90,4 @@ mysql> select k1,k2,k3,array_intersect(k2,k3) from array_type_table_decimal;

### keywords

ARRAY,INTERSECT,ARRAY_INTERSECT
ARRAY,INTERSECT,ARRAY_INTERSECT

0 comments on commit 82a592d

Please sign in to comment.