weishiuntsai commented on code in PR #17861:
URL: https://github.com/apache/druid/pull/17861#discussion_r2059407163
##########
quidem-ut/src/test/quidem/org.apache.druid.quidem.QTest/qaUnnest/array_sql_col_datatype_array.dart.iq:
##########
@@ -0,0 +1,806 @@
+!set dartQueryId 00000000-0000-0000-0000-000000000000
+!set useApproximateCountDistinct false
+!use
druidtest://?componentSupplier=DartComponentSupplier&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_col_datatype_array TEST_ID: A1_B1 TYPE: NEGATIVE TEST
+#-------------------------------------------------------------------------
+SELECT c
+FROM test_unnest,
+ unnest(s_int) AS u(c);
+Cannot apply
Review Comment:
This is a class of error messages such as `Cannot apply 'ARRAY_OFFSET' to
arguments of type 'ARRAY_OFFSET(<BIGINT>, <INTEGER>)'`. In our original tests
we would've expected two separate strings `Cannot apply` and `to arguments of
type` for this class of errors to handle various types. But quidem doesn't
have the ability to expect multiple strings from the error messages, so it has
to be shortened to expect only one string.
--
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]