deardeng commented on code in PR #42367: URL: https://github.com/apache/doris/pull/42367#discussion_r1823709886
########## regression-test/suites/query_p0/system/test_query_sys_scan_rowsets.groovy: ########## @@ -0,0 +1,69 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +import java.text.SimpleDateFormat; +import java.util.Date; + +suite("test_query_sys_scan_rowsets", "query,p0") { + def dbName1 = "test_query_sys_scan_rowsets" + + if (!isCloudMode()) { + log.info("not cloud mode") + return + } + + + sql("CREATE DATABASE IF NOT EXISTS ${dbName1}") + + // test rowsets + qt_desc_rowsets """ desc information_schema.rowsets """ + def rowsets_table_name = """ test_query_sys_scan_rowsets.test_query_rowset """ + sql """ drop table if exists ${rowsets_table_name} """ + + sql """ + create table ${rowsets_table_name}( + a int , + b boolean , + c string ) + DISTRIBUTED BY HASH(`a`) BUCKETS 1 + PROPERTIES ( + "replication_num" = "1", + "disable_auto_compaction" = "true", + "enable_single_replica_compaction"="true" + ); + """ + + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss") + def now = sdf.format(new Date()).toString(); + + List<List<Object>> rowsets_table_name_tablets = sql """ show tablets from ${rowsets_table_name} """ Review Comment: please use sql_return_maparray function -- 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