zclllyybb commented on code in PR #56798:
URL: https://github.com/apache/doris/pull/56798#discussion_r2425152963
##########
regression-test/suites/query_p0/sql_functions/string_functions/test_string_function.groovy:
##########
@@ -515,4 +515,96 @@ suite("test_string_function", "arrow_flight_sql") {
sql """DROP TABLE IF EXISTS test_make_set;"""
+ // EXPORT_SET
+ sql """DROP TABLE IF EXISTS test_export_set;"""
+ sql """CREATE TABLE `test_export_set` (
+ `id` INT,
+ `bits` BIGINT,
+ `on` VARCHAR(255),
+ `off` VARCHAR(255),
+ `sep` VARCHAR(255),
+ `num_of_b` INT
+ )DUPLICATE KEY(id)
+ DISTRIBUTED BY HASH(id) BUCKETS 1
+ PROPERTIES ( 'replication_num' = '1' );"""
+ sql """INSERT INTO `test_export_set` VALUES
+ (1, -1, '1', '0', ',', 50),
+ (2, -2, '1', '0', '', 64),
+ (3, 5, 'Y', 'N', ',', 5),
+ (4, 5, '1', '0', '', 64),
+ (5, 5, '', '0', '', 65),
+ (6, 6, '1', '', '', 63),
+ (7, 19284249819, '1', '0', ',', 64),
+ (8, 9, 'apache', 'doris', '|123|', 64),
+ (9, NULL, '1', '0', ',', 5),
+ (10, 5, NULL, '0', '', 5),
+ (11, 5, '1', NULL, ',', 10),
+ (12, 5, '1', '0', NULL, 10),
+ (13, 5, '1', '0', ',', NULL);"""
+
+ qt_export_set_1 """SELECT id, EXPORT_SET(`bits`, `on`, `off`, `sep`,
`num_of_b`) FROM `test_export_set` ORDER BY `id`;"""
Review Comment:
再加一点混合列和常量输入的测试吧
--
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]