amorynan commented on code in PR #47890: URL: https://github.com/apache/doris/pull/47890#discussion_r1959678550
########## regression-test/suites/variant_p0/insert_into_select.groovy: ########## @@ -55,4 +55,94 @@ suite("regression_test_variant_insert_into_select", "variant_type"){ qt_sql """insert into ${table_name}_var select * from ${table_name}_str""" qt_sql """insert into ${table_name}_var select * from ${table_name}_var""" qt_sql """select v["a"], v["b"], v["c"], v['d'], v['e'], v['f'] from insert_into_select_var order by k limit 215""" -} \ No newline at end of file + + // test struct/map/array/json type into variant + sql """ truncate table ${table_name}_var""" + sql "DROP TABLE IF EXISTS ${table_name}_complex" + sql """ + CREATE TABLE IF NOT EXISTS ${table_name}_complex ( + k bigint, + a array<string>, + b map<int, string>, + c struct<a:int, b:string, c:ipv4, d:decimal>, + d json, + a_s array<struct<a:int, b:string, d:datetime>>, + b_s map<string, struct<a:int, b:string, d:datetime>>, + c_s struct<a:array<int>, b:map<int, string>, c:struct<a:int, b:string, c:ipv4, d:decimal>> Review Comment: this is cast to variant -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org