weishiuntsai commented on code in PR #17861:
URL: https://github.com/apache/druid/pull/17861#discussion_r2065341050
##########
quidem-ut/src/test/quidem/org.apache.druid.quidem.QTest/qaUnnest/array_sql_scalar_ipaddr_funcs.all.iq:
##########
@@ -0,0 +1,104 @@
+!set dartQueryId 00000000-0000-0000-0000-000000000000
+!set useApproximateCountDistinct false
+!use
druidtest://?componentSupplier=AllDruidEnginesComponentSupplier&datasets=sql/src/test/quidem/qatests/qaUnnest/array
+!set outputformat mysql
+SELECT *
+FROM test_unnest;
++-------------------------+-------+--------+--------------+--------------+------------------+----------------+--------------------+---------+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+| __time | s_int | s_null | a_bool | a_int |
a_float | a_str | a_null | a_empty | a_mixed
| a_nested
|
++-------------------------+-------+--------+--------------+--------------+------------------+----------------+--------------------+---------+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+| 2022-01-01 00:00:00.000 | 1 | | [1, 0, null] | [1, 2, null] |
[0.1, 0.2, null] | [S1, S2, null] | [null, null, null] | [] | [true, 1,
0.1, S1, null] |
[[true,false,null],[1,2,null],[0.1,0.2,null],["S1","S2",null],[null,null,null],[],[true,1,0.1,"S1",null],[[true,false,null],[1,2,null],[0.1,0.2,null],["S1","S2",null],[null,null,null],[],[true,1,0.1,"S1",null],[[true,false,null],[1,2,null],[0.1,0.2,null],["S1","S2",null],[null,null,null],[],[true,1,0.1,"S1",null]]]]
|
+| 2022-02-01 00:00:00.000 | 2 | | [null, 1, 0] | [null, 1, 2] |
[null, 0.1, 0.2] | [null, S1, S2] | [null, null, null] | [] | [null, true,
1, 0.1, S1] |
[[null,true,false],[null,1,2],[null,0.1,0.2],[null,"S1","S2"],[null,null,null],[],[null,true,1,0.1,"S1"],[[null,true,false],[null,1,2],[null,0.1,0.2],[null,"S1","S2"],[null,null,null],[],[null,true,1,0.1,"S1"],[[null,true,false],[null,1,2],[null,0.1,0.2],[null,"S1","S2"],[null,null,null],[],[null,true,1,0.1,"S1"]]]]
|
+| 2022-03-01 00:00:00.000 | | | [0, null, 1] | [2, null, 1] |
[0.2, null, 0.1] | [S2, null, S1] | [null, null, null] | [] | [S1, null,
true, 1, 0.1] |
[[false,null,true],[2,null,1],[0.2,null,0.1],["S2",null,"S1"],[null,null,null],[],["S1",null,true,1,0.1],[[false,null,true],[2,null,1],[0.2,null,0.1],["S2",null,"S1"],[null,null,null],[],["S1",null,true,1,0.1],[[false,null,true],[2,null,1],[0.2,null,0.1],["S2",null,"S1"],[null,null,null],[],["S1",null,true,1,0.1]]]]
|
++-------------------------+-------+--------+--------------+--------------+------------------+----------------+--------------------+---------+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+(3 rows)
+
+!ok
+
+#-------------------------------------------------------------------------
+# TESTCASE: test_scalar_ipaddr_funcs TEST_ID: A1_B1_C1_D2 TYPE: NEGATIVE TEST
+#-------------------------------------------------------------------------
+SELECT ip4_match(c, c) AS col
+FROM test_unnest,
+ unnest(json_value(a_nested, '$[1]' RETURNING bigint array)) AS u(c)
+WHERE (s_int IN (0,
+ 1,
+ 2)
+ OR s_int IS NULL)
+ AND (ip4_match(c, c) IS NOT NULL);
+No match found
Review Comment:
This is the class of errors with invalid function signatures such as `No
match found for function signature ip4_match(<NUMERIC>, <NUMERIC>)`. Will
update the tests to include the entire error message.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]