This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.2
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.2 by this push:
     new 85b284e1767 branch-4.2: [test](regression) Remove remote Doris variant 
select case (#68356)
85b284e1767 is described below

commit 85b284e17678d4890f1e98f9776e0df71aefe8d6
Author: Gabriel <[email protected]>
AuthorDate: Tue Sep 22 14:53:32 2026 +0800

    branch-4.2: [test](regression) Remove remote Doris variant select case 
(#68356)
    
    ### What problem does this PR solve?
    
    Remove `test_remote_doris_variant_select` from `branch-4.2` external
    regression. In [build
    
1054262](http://43.132.222.7:8111/viewLog.html?buildId=1054262&buildTypeId=Doris_External_Regression),
    the case failed while inserting its test data with an unsupported
    conversion from `Variant(max subcolumns count = 0)` to `Variant(max
    subcolumns count = 2048)`.
    
    This removes the regression case and its coverage; it does not fix the
    underlying VARIANT conversion behavior. The case compares query results
    directly and has no checked-in expected-output file.
    
    ### Release note
    
    None
    
    ### Check List (For Author)
    
    - Test
        - [x] No need to test or manual test. Explain why:
    - [x] Other reason: deletion of one test file; verified no remaining
    references to its name and ran `git diff --cached --check`.
    - Behavior changed:
        - [x] No production behavior change.
    - Does this need documentation?
        - [x] No.
---
 .../test_remote_doris_variant_select.groovy        | 177 ---------------------
 1 file changed, 177 deletions(-)

diff --git 
a/regression-test/suites/external_table_p0/remote_doris/test_remote_doris_variant_select.groovy
 
b/regression-test/suites/external_table_p0/remote_doris/test_remote_doris_variant_select.groovy
deleted file mode 100644
index 2a359b1a851..00000000000
--- 
a/regression-test/suites/external_table_p0/remote_doris/test_remote_doris_variant_select.groovy
+++ /dev/null
@@ -1,177 +0,0 @@
-// 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.
-
-suite("test_remote_doris_variant_select", 
"p0,external,doris,external_docker,external_docker_doris") {
-    String remote_doris_host = 
context.config.otherConfigs.get("extArrowFlightSqlHost")
-    String remote_doris_arrow_port = 
context.config.otherConfigs.get("extArrowFlightSqlPort")
-    String remote_doris_http_port = 
context.config.otherConfigs.get("extArrowFlightHttpPort")
-    String remote_doris_user = 
context.config.otherConfigs.get("extArrowFlightSqlUser")
-    String remote_doris_psw = 
context.config.otherConfigs.get("extArrowFlightSqlPassword")
-    String remote_doris_thrift_port = 
context.config.otherConfigs.get("extFeThriftPort")
-
-    def showres = sql "show frontends";
-    remote_doris_arrow_port = showres[0][6]
-    remote_doris_http_port = showres[0][3]
-    remote_doris_thrift_port = showres[0][5]
-    log.info("show frontends log = ${showres}, arrow: 
${remote_doris_arrow_port}, http: ${remote_doris_http_port}, thrift: 
${remote_doris_thrift_port}")
-
-    def showres2 = sql "show backends";
-    log.info("show backends log = ${showres2}")
-
-    def db_name = "test_remote_doris_variant_select_db"
-    def catalog_name = "test_remote_doris_variant_select_catalog"
-    def catalog_arrow_name = 
"test_remote_doris_variant_select_catalog_with_arrow"
-
-    sql "set enable_agg_state=true"
-
-    sql """DROP DATABASE IF EXISTS `${db_name}`"""
-
-    sql """CREATE DATABASE IF NOT EXISTS `${db_name}`"""
-
-    sql """
-        CREATE TABLE `${db_name}`.`test_remote_doris_variant_select_t` (
-          `id` INT NOT NULL,
-          `v` VARIANT NULL,
-        ) ENGINE=OLAP
-        DUPLICATE KEY(id)
-        DISTRIBUTED BY HASH(`id`) BUCKETS 1
-        PROPERTIES (
-        "replication_allocation" = "tag.location.default: 1"
-        );
-    """
-
-    // String-to-VARIANT casts preserve strings; parse JSON explicitly to 
exercise nested paths.
-    sql """
-        INSERT INTO `${db_name}`.`test_remote_doris_variant_select_t` values
-           (1, parse_to_variant('null')),
-           (2, NULL),
-           (3, parse_to_variant('true')),
-           (4, parse_to_variant('-17')),
-           (5, parse_to_variant('123.12')),
-           (6, parse_to_variant('1.912')),
-           (7, parse_to_variant('"A quote"')),
-           (8, parse_to_variant('[-1, 12, false]')),
-           (9, parse_to_variant('{ "x": "abc", "y": false, "z": 10 }')),
-           (10, parse_to_variant('"2021-01-01"')),
-           (11, parse_to_variant('{"a":"a", "b":"0.1",  "c":{"c1":"c1", 
"c2":"1"}}')),
-           (12, parse_to_variant('{"a":"b", "b":"0.1X", "c":{"c1":"2",  
"c2":"2"}}')),
-           (13, '{"a":"ab\\"cde", "b":NULL, "d":{"d1":NULL, "d2":NULL}}'),
-           (14, '{"a":"ab{{c\\"de\\"}}"'),
-           (15, '{"a":"abc{{{de"');
-    """
-
-    // create catalog
-    sql """
-        DROP CATALOG IF EXISTS `${catalog_name}`
-    """
-    sql """
-        DROP CATALOG IF EXISTS `${catalog_arrow_name}`
-    """
-
-    sql """
-        CREATE CATALOG `${catalog_name}` PROPERTIES (
-                'type' = 'doris',
-                'fe_http_hosts' = 
'http://${remote_doris_host}:${remote_doris_http_port}',
-                'fe_arrow_hosts' = 
'${remote_doris_host}:${remote_doris_arrow_port}',
-                'fe_thrift_hosts' = 
'${remote_doris_host}:${remote_doris_thrift_port}',
-                'user' = '${remote_doris_user}',
-                'password' = '${remote_doris_psw}',
-                'use_arrow_flight' = 'false'
-        );
-    """
-    sql """
-        CREATE CATALOG `${catalog_arrow_name}` PROPERTIES (
-                'type' = 'doris',
-                'fe_http_hosts' = 
'http://${remote_doris_host}:${remote_doris_http_port}',
-                'fe_arrow_hosts' = 
'${remote_doris_host}:${remote_doris_arrow_port}',
-                'fe_thrift_hosts' = 
'${remote_doris_host}:${remote_doris_thrift_port}',
-                'user' = '${remote_doris_user}',
-                'password' = '${remote_doris_psw}',
-                'use_arrow_flight' = 'true'
-        );
-    """
-
-    // Keep nested-path coverage non-empty before comparing catalog reads with 
the source table.
-    check_sqls_result_equal """
-        select id from 
`internal`.`${db_name}`.`test_remote_doris_variant_select_t`
-        where cast(v['b'] as double) >= 0 order by id
-    """, "select 11"
-    check_sqls_result_equal """
-        select id from 
`internal`.`${db_name}`.`test_remote_doris_variant_select_t`
-        where cast(v['c']['c2'] as int) > 1 order by id
-    """, "select 12"
-
-    // Compare with the source instead of golden text tied to an older VARIANT 
representation.
-    check_sqls_result_equal """
-        select * from 
`${catalog_name}`.`${db_name}`.`test_remote_doris_variant_select_t` order by id
-    """, """
-        select * from 
`internal`.`${db_name}`.`test_remote_doris_variant_select_t` order by id
-    """
-    test {
-        sql """
-            select * from 
`${catalog_arrow_name}`.`${db_name}`.`test_remote_doris_variant_select_t` order 
by id
-        """
-        // Keep the concatenation inside one DSL argument; a leading '+' 
starts a unary expression.
-        exception("External Variant is supported only for Parquet files in 
FileScannerV2; "
-                + "file format ARROW is not supported")
-    }
-
-    check_sqls_result_equal """
-        select * from 
`${catalog_name}`.`${db_name}`.`test_remote_doris_variant_select_t` where 
cast(v['b'] as double) >= 0 order by id
-    """, """
-        select * from 
`internal`.`${db_name}`.`test_remote_doris_variant_select_t` where cast(v['b'] 
as double) >= 0 order by id
-    """
-
-    check_sqls_result_equal """
-        select * from 
`${catalog_name}`.`${db_name}`.`test_remote_doris_variant_select_t` where 
cast(v['c']['c2'] as int) > 1 order by id
-    """, """
-        select * from 
`internal`.`${db_name}`.`test_remote_doris_variant_select_t` where 
cast(v['c']['c2'] as int) > 1 order by id
-    """
-
-    check_sqls_result_equal """
-        select v['a'] from 
`${catalog_name}`.`${db_name}`.`test_remote_doris_variant_select_t` order by id
-    """, """
-        select v['a'] from 
`internal`.`${db_name}`.`test_remote_doris_variant_select_t` order by id
-    """
-
-    check_sqls_result_equal """
-        select v['b'] from 
`${catalog_name}`.`${db_name}`.`test_remote_doris_variant_select_t` order by id
-    """, """
-        select v['b'] from 
`internal`.`${db_name}`.`test_remote_doris_variant_select_t` order by id
-    """
-
-    check_sqls_result_equal """
-        select sum(cast(v['b'] as double)) from 
`${catalog_name}`.`${db_name}`.`test_remote_doris_variant_select_t`
-    """, """
-        select sum(cast(v['b'] as double)) from 
`internal`.`${db_name}`.`test_remote_doris_variant_select_t`
-    """
-
-    check_sqls_result_equal """
-        select v['c']['c1'] from 
`${catalog_name}`.`${db_name}`.`test_remote_doris_variant_select_t` order by id
-    """, """
-        select v['c']['c1'] from 
`internal`.`${db_name}`.`test_remote_doris_variant_select_t` order by id
-    """
-
-    check_sqls_result_equal """
-        select sum(cast(v['c']['c1'] as double)) from 
`${catalog_name}`.`${db_name}`.`test_remote_doris_variant_select_t`
-    """, """
-        select sum(cast(v['c']['c1'] as double)) from 
`internal`.`${db_name}`.`test_remote_doris_variant_select_t`
-    """
-
-    sql """ DROP DATABASE IF EXISTS `${db_name}` """
-    sql """ DROP CATALOG IF EXISTS `${catalog_name}` """
-}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to