Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
eldenmoon committed Jul 15, 2024
1 parent 9cdc963 commit 4434a83
Show file tree
Hide file tree
Showing 4 changed files with 279 additions and 1 deletion.
5 changes: 4 additions & 1 deletion be/src/vec/columns/column_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,11 @@ void ColumnObject::Subcolumn::get(size_t n, Field& res) const {
}

ind -= num_of_defaults_in_prefix;
for (const auto& part : data) {
for (size_t i = 0; i < data.size(); ++i) {
const auto& part = data[i];
const auto& part_type = data_types[i];
if (ind < part->size()) {
res = vectorized::remove_nullable(part_type)->get_default();
part->get(ind, res);
Field new_field;
convert_field_to_type(res, *least_common_type.get(), &new_field);
Expand Down
215 changes: 215 additions & 0 deletions regression-test/data/variant_p0/rqg/rqg1.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !rqg1 --
0

-- !rqg1_2 --
24

-- !rqg1_3 --
0

-- !rqg1_4 --
24

-- !rqg1_5 --
0

-- !rqg1_6 --
24

-- !rqg1_7 --
0

-- !rqg1_8 --
24

-- !rqg1_9 --
0

-- !rqg1_10 --
25

-- !rqg1_11 --
0

-- !rqg1_12 --
24

-- !rqg1_13 --
0

-- !rqg1_14 --
24

-- !rqg1_15 --
0

-- !rqg1_16 --
0

-- !rqg1_17 --
24

-- !rqg1_18 --
24

-- !rqg1_19 --
0

-- !rqg1_20 --
24

-- !rqg1_21 --
0

-- !rqg1_22 --
0

-- !rqg1_23 --
24

-- !rqg1_24 --
25

-- !rqg1_25 --
0

-- !rqg1_26 --
25

-- !rqg1_27 --
0

-- !rqg1_28 --
24

-- !rqg1_29 --
0

-- !rqg1_30 --
24

-- !rqg1_31 --
0

-- !rqg1_32 --
24

-- !rqg1_33 --
0

-- !rqg1_34 --
24

-- !rqg1_35 --
0

-- !rqg1_36 --
25

-- !rqg1_37 --
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3

23 changes: 23 additions & 0 deletions regression-test/suites/variant_p0/rqg/load.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// 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 org.codehaus.groovy.runtime.IOGroovyMethods

suite("regression_test_variant_rqg_p0", "p0"){
sql """DROP DATABASE regression_test_variant_p0_rqg"""
sql """CREATE DATABASE regression_test_variant_p0_rqg"""
}
Loading

0 comments on commit 4434a83

Please sign in to comment.