You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "eldenmoon (via GitHub)" <gi...@apache.org> on 2026/02/04 17:11:08 UTC
[PR] Doc load opt [doris]
eldenmoon opened a new pull request, #60511:
URL: https://github.com/apache/doris/pull/60511
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg: https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #60511:
URL: https://github.com/apache/doris/pull/60511#discussion_r2777247273
##########
be/test/olap/variant_doc_mode_compaction_test.cpp:
##########
@@ -0,0 +1,472 @@
+// 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.
+
+#include <gen_cpp/Types_types.h>
+#include <glog/logging.h>
+#include <gtest/gtest.h>
+#include <stdint.h>
+#include <unistd.h>
+
+#include <algorithm>
+#include <array>
+#include <chrono>
+#include <iostream>
+#include <memory>
+#include <random>
+#include <string>
+#include <unordered_map>
+#include <unordered_set>
+#include <utility>
+#include <vector>
+
+#include "common/config.h"
+#include "common/status.h"
+#include "io/fs/local_file_system.h"
+#include "olap/cumulative_compaction.h"
+#include "olap/data_dir.h"
+#include "olap/olap_common.h"
+#include "olap/olap_define.h"
+#include "olap/options.h"
+#include "olap/rowset/beta_rowset.h"
+#include "olap/rowset/rowset.h"
+#include "olap/rowset/rowset_factory.h"
+#include "olap/rowset/rowset_reader.h"
+#include "olap/rowset/rowset_reader_context.h"
+#include "olap/rowset/rowset_writer.h"
+#include "olap/rowset/rowset_writer_context.h"
+#include "olap/rowset/segment_v2/index_writer.h"
+#include "olap/schema.h"
+#include "olap/storage_engine.h"
+#include "olap/tablet.h"
+#include "olap/tablet_meta.h"
+#include "olap/tablet_schema.h"
+#include "runtime/exec_env.h"
+#include "testutil/variant_util.h"
+#include "vec/columns/column.h"
+#include "vec/columns/column_string.h"
+#include "vec/columns/column_variant.h"
+#include "vec/core/block.h"
+#include "vec/core/field.h"
+#include "vec/data_types/data_type_string.h"
+
+namespace doris {
+namespace vectorized {
+using namespace ErrorCode;
+
+static constexpr uint32_t MAX_PATH_LEN = 1024;
+static StorageEngine* engine_ref = nullptr;
+static constexpr int32_t kRowsPerSegment = 10000;
+
+class VariantDocModeCompactionTest : public ::testing::Test {
+protected:
+ void SetUp() override {
+ char buffer[MAX_PATH_LEN];
+ ASSERT_NE(getcwd(buffer, MAX_PATH_LEN), nullptr);
+ absolute_dir = std::string(buffer) + std::string(kTestDir);
+ Status st;
+ bool exists = false;
+ ASSERT_TRUE(io::global_local_filesystem()->exists(absolute_dir, &exists).ok());
+ if (!exists) {
+ st = io::global_local_filesystem()->create_directory(absolute_dir);
+ ASSERT_TRUE(st.ok()) << st.to_string();
+ }
+ ASSERT_TRUE(io::global_local_filesystem()
+ ->create_directory(absolute_dir + "/tablet_path")
+ .ok());
+ cache_dir = std::string(buffer) + "/ut_dir/variant_doc_mode_compaction_test_cache";
+ ASSERT_TRUE(io::global_local_filesystem()->create_directory(cache_dir).ok());
+
+ ASSERT_TRUE(io::global_local_filesystem()->delete_directory(std::string(tmp_dir)).ok());
+ ASSERT_TRUE(io::global_local_filesystem()->create_directory(std::string(tmp_dir)).ok());
+ std::vector<StorePath> paths;
+ paths.emplace_back(std::string(tmp_dir), 1024000000);
+ auto tmp_file_dirs = std::make_unique<segment_v2::TmpFileDirs>(paths);
+ st = tmp_file_dirs->init();
+ ASSERT_TRUE(st.ok()) << st.to_json();
+ ExecEnv::GetInstance()->set_tmp_file_dir(std::move(tmp_file_dirs));
+
+ EngineOptions options;
+ auto engine = std::make_unique<StorageEngine>(options);
+ engine_ref = engine.get();
+ _data_dir = std::make_unique<DataDir>(*engine_ref, absolute_dir);
+ ASSERT_TRUE(_data_dir->init(true).ok());
+ ExecEnv::GetInstance()->set_storage_engine(std::move(engine));
+
+ config::enable_ordered_data_compaction = false;
+ config::segments_key_bounds_truncation_threshold = -1;
+ config::enable_vertical_compact_variant_subcolumns = true;
+ config::enable_compaction_checksum = false;
+ config::enable_stacktrace = true;
+ }
+
+ void TearDown() override {
+ // ASSERT_TRUE(io::global_local_filesystem()->delete_directory(absolute_dir).ok());
+ engine_ref = nullptr;
+ ExecEnv::GetInstance()->set_storage_engine(nullptr);
+ }
+
+ TabletSchemaSPtr create_schema() {
+ TabletSchemaSPtr tablet_schema = std::make_shared<TabletSchema>();
+ TabletSchemaPB tablet_schema_pb;
+ tablet_schema_pb.set_keys_type(KeysType::DUP_KEYS);
+ tablet_schema_pb.set_num_short_key_columns(1);
+ tablet_schema_pb.set_num_rows_per_row_block(1024);
+ tablet_schema_pb.set_compress_kind(COMPRESS_NONE);
+ tablet_schema_pb.set_next_column_unique_id(3);
+
+ ColumnPB* column_1 = tablet_schema_pb.add_column();
+ column_1->set_unique_id(1);
+ column_1->set_name("c1");
+ column_1->set_type("INT");
+ column_1->set_is_key(true);
+ column_1->set_length(4);
+ column_1->set_index_length(4);
+ column_1->set_is_nullable(false);
+ column_1->set_is_bf_column(false);
+
+ ColumnPB* column_2 = tablet_schema_pb.add_column();
+ column_2->set_unique_id(2);
+ column_2->set_name("v");
+ column_2->set_type("VARIANT");
+ column_2->set_is_key(false);
+ column_2->set_is_nullable(false);
+ column_2->set_variant_max_subcolumns_count(0);
+ column_2->set_variant_max_sparse_column_statistics_size(10000);
+ column_2->set_variant_sparse_hash_shard_count(32);
+ column_2->set_variant_enable_doc_mode(true);
+ column_2->set_variant_doc_materialization_min_rows(kRowsPerSegment);
+
+ tablet_schema->init_from_pb(tablet_schema_pb);
+ return tablet_schema;
+ }
+
+ TabletSharedPtr create_tablet(const TabletSchema& tablet_schema) {
+ std::vector<TColumn> cols;
+ std::unordered_map<uint32_t, uint32_t> col_ordinal_to_unique_id;
+ for (int i = 0; i < tablet_schema.num_columns(); ++i) {
+ const TabletColumn& column = tablet_schema.column(i);
+ TColumn col;
+ if (column.type() == FieldType::OLAP_FIELD_TYPE_VARIANT) {
+ col.column_type.type = TPrimitiveType::VARIANT;
+ } else {
+ col.column_type.type = TPrimitiveType::INT;
+ }
+ col.__set_column_name(column.name());
+ col.__set_is_key(column.is_key());
+ cols.push_back(col);
+ col_ordinal_to_unique_id[i] = column.unique_id();
+ }
+
+ TTabletSchema t_tablet_schema;
+ t_tablet_schema.__set_short_key_column_count(tablet_schema.num_short_key_columns());
+ t_tablet_schema.__set_schema_hash(3333);
+ t_tablet_schema.__set_keys_type(TKeysType::DUP_KEYS);
+ t_tablet_schema.__set_storage_type(TStorageType::COLUMN);
+ t_tablet_schema.__set_columns(cols);
+
+ TabletMetaSharedPtr tablet_meta(new TabletMeta(
+ 2, 2, 2, 2, 2, 2, t_tablet_schema, 2, col_ordinal_to_unique_id, UniqueId(1, 2),
+ TTabletType::TABLET_TYPE_DISK, TCompressionType::LZ4F, 0, false));
+
+ TabletSharedPtr tablet(new Tablet(*engine_ref, tablet_meta, _data_dir.get()));
+ static_cast<void>(tablet->init());
Review Comment:
`tablet->init()` return value is ignored; if initialization fails, later steps will operate on a partially initialized tablet and the failure will be hard to diagnose. Please assert/expect `tablet->init().ok()` (or propagate `Status`).
```suggestion
ASSERT_TRUE(tablet->init().ok());
```
##########
be/src/olap/rowset/segment_v2/variant/variant_column_writer_impl.cpp:
##########
@@ -422,24 +668,45 @@ Status VariantDocWriter::append_data(const TabletColumn* parent_column,
auto& map_col = assert_cast<vectorized::ColumnMap&>(*tmp_maps[b]);
map_col.get_offsets().reserve(num_rows);
}
+ std::vector<vectorized::ColumnString*> bucket_keys(_bucket_num);
+ std::vector<vectorized::ColumnString*> bucket_values(_bucket_num);
+ std::vector<vectorized::ColumnArray::Offsets64*> bucket_offsets(_bucket_num);
+ for (int b = 0; b < _bucket_num; ++b) {
+ auto& m = assert_cast<vectorized::ColumnMap&>(*tmp_maps[b]);
+ bucket_keys[b] = &assert_cast<vectorized::ColumnString&>(m.get_keys());
+ bucket_values[b] = &assert_cast<vectorized::ColumnString&>(m.get_values());
+ bucket_offsets[b] = &m.get_offsets();
+ }
- std::vector<std::unordered_map<StringRef, uint32_t>> bucket_path_counts(_bucket_num);
+ std::vector<phmap::flat_hash_map<StringRef, uint32_t, StringRefHash>> bucket_path_counts(
+ _bucket_num);
+ const size_t limit = parent_column->variant_max_sparse_column_statistics_size();
+ for (int b = 0; b < _bucket_num; ++b) {
+ bucket_path_counts[b].reserve(std::min<size_t>(limit, 1024));
+ }
+ phmap::flat_hash_map<StringRef, uint32_t, StringRefHash> path_to_bucket;
+ path_to_bucket.reserve(std::min<size_t>(paths_col->size(), 8192));
for (size_t row = 0; row < num_rows; ++row) {
- const ssize_t srow = static_cast<ssize_t>(row);
- size_t start = offsets[srow - 1];
- size_t end = offsets[srow];
+ const size_t start = offsets[row - 1];
Review Comment:
`offsets[row - 1]` with `row` as `size_t` relies on unsigned underflow + implementation-defined conversion to reach the padded `-1` element. Please use an explicit `row == 0 ? 0 : offsets[row - 1]` to avoid fragile behavior (especially under sanitizers).
```suggestion
const size_t start = (row == 0 ? 0 : offsets[row - 1]);
```
##########
be/test/olap/rowset/segment_v2/column_reader_writer_test.cpp:
##########
@@ -436,6 +436,51 @@ TEST_F(ColumnReaderWriterTest, test_array_type) {
delete[] array_is_null;
}
+TEST_F(ColumnReaderWriterTest, test_array_append_nulls) {
+ ColumnMetaPB meta;
+ TabletColumn list_column(OLAP_FIELD_AGGREGATION_NONE, FieldType::OLAP_FIELD_TYPE_ARRAY);
+ TabletColumn item_column(OLAP_FIELD_AGGREGATION_NONE, FieldType::OLAP_FIELD_TYPE_TINYINT, true);
+ list_column.add_sub_column(item_column);
+
+ std::string fname = TEST_DIR + "/array_append_nulls";
+ auto fs = io::global_local_filesystem();
+ io::FileWriterPtr file_writer;
+ Status st = fs->create_file(fname, &file_writer);
+ ASSERT_TRUE(st.ok()) << st;
+
+ ColumnWriterOptions writer_opts;
+ writer_opts.meta = &meta;
+ writer_opts.meta->set_column_id(0);
+ writer_opts.meta->set_unique_id(0);
+ writer_opts.meta->set_type(FieldType::OLAP_FIELD_TYPE_ARRAY);
+ writer_opts.meta->set_length(0);
+ writer_opts.meta->set_encoding(BIT_SHUFFLE);
+ writer_opts.meta->set_compression(segment_v2::CompressionTypePB::LZ4F);
+ writer_opts.meta->set_is_nullable(true);
+
+ ColumnMetaPB* child_meta = meta.add_children_columns();
+ child_meta->set_column_id(1);
+ child_meta->set_unique_id(1);
+ child_meta->set_type(FieldType::OLAP_FIELD_TYPE_TINYINT);
+ child_meta->set_length(0);
+ child_meta->set_encoding(BIT_SHUFFLE);
+ child_meta->set_compression(segment_v2::CompressionTypePB::LZ4F);
+ child_meta->set_is_nullable(true);
+
+ std::unique_ptr<ColumnWriter> writer;
+ ColumnWriter::create(writer_opts, &list_column, file_writer.get(), &writer);
Review Comment:
The return `Status` from `ColumnWriter::create(...)` is ignored; if creation fails, `writer` may be null and `writer->init()` will crash. Please capture and assert the returned status (and/or `ASSERT_NE(writer, nullptr)`).
```suggestion
st = ColumnWriter::create(writer_opts, &list_column, file_writer.get(), &writer);
ASSERT_TRUE(st.ok()) << st;
ASSERT_NE(writer, nullptr);
```
##########
be/src/olap/rowset/segment_v2/variant/variant_column_writer_impl.cpp:
##########
@@ -159,6 +161,236 @@ Status convert_and_write_column(vectorized::OlapBlockDataConvertor* converter,
return Status::OK();
}
+namespace {
+// Per-path sparse materialization result from a VARIANT doc-value column.
+// - subcolumn stores the decoded values for rows listed in rowids (dense, no gaps).
+// - rowids records which input rows have a non-null value for this path.
+// - non_null_count is used to build variant statistics quickly.
+struct SubcolumnSparseData {
+ vectorized::ColumnVariant::Subcolumn subcolumn {0, true, false};
+ std::vector<uint32_t> rowids;
+ uint32_t non_null_count = 0;
+};
+
+using DocSparseSubcolumns = phmap::flat_hash_map<StringRef, SubcolumnSparseData, StringRefHash>;
+using DocValuePathStats = phmap::flat_hash_map<StringRef, uint32_t, StringRefHash>;
+
+struct SubcolumnWriteEntry {
+ std::string_view path;
+ vectorized::ColumnVariant::Subcolumn* subcolumn = nullptr;
+ // nullptr means dense materialization; otherwise sparse row ids for this path.
+ const std::vector<uint32_t>* rowids = nullptr;
+};
+
+struct SubcolumnWritePlan {
+ using DenseSubcolumns =
+ phmap::flat_hash_map<std::string_view, vectorized::ColumnVariant::Subcolumn>;
+
+ // Owns materialized subcolumns and a flattened iteration view for finalize().
+ DocSparseSubcolumns sparse_subcolumns;
+ DenseSubcolumns dense_subcolumns;
+ std::vector<SubcolumnWriteEntry> entries;
+ DocValuePathStats stats;
+};
+
+// Build per-path non-null counts from the serialized doc-value representation.
+void build_doc_value_stats(const vectorized::ColumnVariant& variant, DocValuePathStats* stats) {
+ auto [column_key, column_value] = variant.get_doc_value_data_paths_and_values();
+ (void)column_value;
+ const auto& column_offsets = variant.serialized_doc_value_column_offsets();
+ const size_t num_rows = column_offsets.size();
+
+ stats->clear();
+ stats->reserve(column_key->size());
+ for (size_t row = 0; row < num_rows; ++row) {
+ const size_t start = column_offsets[row - 1];
+ const size_t end = column_offsets[row];
+ for (size_t j = start; j < end; ++j) {
+ const StringRef path = column_key->get_data_at(j);
+ auto it = stats->try_emplace(path, 0).first;
+ ++it->second;
+ }
+ }
+}
+
+// Materialize sparse subcolumns for each path and build per-path non-null counts.
+// For each row, we decode only present (path, value) pairs and append them to the
+// corresponding subcolumn, while recording the row id to allow gap filling later.
+void build_sparse_subcolumns_and_stats(const vectorized::ColumnVariant& variant,
+ DocSparseSubcolumns* subcolumns, DocValuePathStats* stats) {
+ auto [column_key, column_value] = variant.get_doc_value_data_paths_and_values();
+ const auto& column_offsets = variant.serialized_doc_value_column_offsets();
+ const size_t num_rows = column_offsets.size();
+
+ subcolumns->clear();
+ stats->clear();
+ subcolumns->reserve(column_key->size());
+
+ for (size_t row = 0; row < num_rows; ++row) {
+ const size_t start = column_offsets[row - 1];
+ const size_t end = column_offsets[row];
+ for (size_t i = start; i < end; ++i) {
Review Comment:
Same `size_t row - 1` underflow/implementation-defined conversion issue as above. When `row == 0`, compute `start` explicitly as 0 instead of relying on unsigned underflow to become `-1` after conversion.
##########
be/src/olap/rowset/segment_v2/variant/variant_column_writer_impl.cpp:
##########
@@ -159,6 +161,236 @@ Status convert_and_write_column(vectorized::OlapBlockDataConvertor* converter,
return Status::OK();
}
+namespace {
+// Per-path sparse materialization result from a VARIANT doc-value column.
+// - subcolumn stores the decoded values for rows listed in rowids (dense, no gaps).
+// - rowids records which input rows have a non-null value for this path.
+// - non_null_count is used to build variant statistics quickly.
+struct SubcolumnSparseData {
+ vectorized::ColumnVariant::Subcolumn subcolumn {0, true, false};
+ std::vector<uint32_t> rowids;
+ uint32_t non_null_count = 0;
+};
+
+using DocSparseSubcolumns = phmap::flat_hash_map<StringRef, SubcolumnSparseData, StringRefHash>;
+using DocValuePathStats = phmap::flat_hash_map<StringRef, uint32_t, StringRefHash>;
+
+struct SubcolumnWriteEntry {
+ std::string_view path;
+ vectorized::ColumnVariant::Subcolumn* subcolumn = nullptr;
+ // nullptr means dense materialization; otherwise sparse row ids for this path.
+ const std::vector<uint32_t>* rowids = nullptr;
+};
+
+struct SubcolumnWritePlan {
+ using DenseSubcolumns =
+ phmap::flat_hash_map<std::string_view, vectorized::ColumnVariant::Subcolumn>;
+
+ // Owns materialized subcolumns and a flattened iteration view for finalize().
+ DocSparseSubcolumns sparse_subcolumns;
+ DenseSubcolumns dense_subcolumns;
+ std::vector<SubcolumnWriteEntry> entries;
+ DocValuePathStats stats;
+};
+
+// Build per-path non-null counts from the serialized doc-value representation.
+void build_doc_value_stats(const vectorized::ColumnVariant& variant, DocValuePathStats* stats) {
+ auto [column_key, column_value] = variant.get_doc_value_data_paths_and_values();
+ (void)column_value;
+ const auto& column_offsets = variant.serialized_doc_value_column_offsets();
+ const size_t num_rows = column_offsets.size();
+
+ stats->clear();
+ stats->reserve(column_key->size());
+ for (size_t row = 0; row < num_rows; ++row) {
+ const size_t start = column_offsets[row - 1];
+ const size_t end = column_offsets[row];
+ for (size_t j = start; j < end; ++j) {
Review Comment:
`row` is `size_t`, so `row - 1` underflows when `row == 0`. The subsequent implicit conversion to `ssize_t` for `PaddedPODArray::operator[]` is implementation-defined; it usually becomes `-1`, but this is fragile and can break under sanitizers/other platforms. Please mirror the safer pattern used elsewhere in this PR: `start = (row == 0) ? 0 : column_offsets[row - 1]`.
##########
be/src/olap/rowset/segment_v2/variant/variant_column_writer_impl.cpp:
##########
@@ -335,19 +575,38 @@ Status UnifiedSparseColumnWriter::append_bucket_sparse(
auto& m = assert_cast<vectorized::ColumnMap&>(*tmp_maps[b]);
m.get_offsets().reserve(num_rows);
}
- for (ssize_t row = 0; row < static_cast<ssize_t>(num_rows); ++row) {
- size_t start = offsets[row - 1];
- size_t end = offsets[row];
+ std::vector<vectorized::ColumnString*> bucket_keys(bucket_num);
+ std::vector<vectorized::ColumnString*> bucket_values(bucket_num);
+ std::vector<vectorized::ColumnArray::Offsets64*> bucket_offsets(bucket_num);
+ for (int b = 0; b < bucket_num; ++b) {
+ auto& m = assert_cast<vectorized::ColumnMap&>(*tmp_maps[b]);
+ bucket_keys[b] = &assert_cast<vectorized::ColumnString&>(m.get_keys());
+ bucket_values[b] = &assert_cast<vectorized::ColumnString&>(m.get_values());
+ bucket_offsets[b] = &m.get_offsets();
+ }
+ for (size_t row = 0; row < num_rows; ++row) {
+ const size_t start = offsets[row - 1];
Review Comment:
Same `size_t row - 1` underflow / implementation-defined conversion pattern as in the new doc-value helpers: `offsets[row - 1]` relies on unsigned underflow becoming `-1` after conversion to `ssize_t` for `PaddedPODArray::operator[]`. Please make this explicit with `start = (row == 0) ? 0 : offsets[row - 1]` for clarity and portability.
```suggestion
const size_t start = (row == 0) ? 0 : offsets[row - 1];
```
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3855268131
run buildall
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3858805922
<details>
<summary>ClickBench: <b>Total hot run time: 28.11 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 6ae78f1afa51081a546188e0c923f77bd2f568c1, data reload: false
query1 0.05 0.04 0.04
query2 0.09 0.04 0.04
query3 0.25 0.09 0.08
query4 1.61 0.11 0.11
query5 0.27 0.25 0.25
query6 1.16 0.68 0.68
query7 0.03 0.02 0.02
query8 0.05 0.04 0.04
query9 0.56 0.49 0.49
query10 0.55 0.54 0.53
query11 0.14 0.10 0.09
query12 0.15 0.10 0.10
query13 0.64 0.62 0.62
query14 1.05 1.06 1.06
query15 0.89 0.86 0.87
query16 0.42 0.40 0.39
query17 1.11 1.14 1.07
query18 0.22 0.20 0.20
query19 2.03 1.96 1.93
query20 0.02 0.01 0.01
query21 15.41 0.27 0.15
query22 5.08 0.06 0.05
query23 16.03 0.28 0.11
query24 0.95 0.25 0.17
query25 0.08 0.09 0.06
query26 0.14 0.14 0.13
query27 0.06 0.09 0.06
query28 2.98 1.15 0.96
query29 12.57 3.85 3.16
query30 0.27 0.13 0.13
query31 2.82 0.64 0.39
query32 3.23 0.59 0.50
query33 3.25 3.27 3.27
query34 16.13 5.37 4.72
query35 4.77 4.79 4.78
query36 0.65 0.50 0.49
query37 0.11 0.08 0.07
query38 0.07 0.04 0.04
query39 0.04 0.03 0.02
query40 0.19 0.16 0.15
query41 0.09 0.03 0.02
query42 0.04 0.04 0.03
query43 0.04 0.04 0.04
Total cold run time: 96.29 s
Total hot run time: 28.11 s
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [opt](variant) Optimize VARIANT doc mode load/compaction and add benchmarks [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3870992313
<details>
<summary>TPC-H: <b>Total hot run time: 30829 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit afbdddea56e078b3e96485ea734f6937f6650f4a, data reload: false
------ Round 1 ----------------------------------
q1 17606 4426 4254 4254
q2 2007 347 237 237
q3 10182 1364 748 748
q4 10198 824 314 314
q5 7546 2235 1929 1929
q6 196 184 147 147
q7 914 752 604 604
q8 9273 1411 1261 1261
q9 4883 4701 4644 4644
q10 6844 1947 1591 1591
q11 523 320 292 292
q12 346 383 225 225
q13 17777 4112 3244 3244
q14 237 252 212 212
q15 883 801 807 801
q16 697 680 624 624
q17 714 841 517 517
q18 6784 5863 6268 5863
q19 1295 1060 698 698
q20 577 545 410 410
q21 2772 1971 1915 1915
q22 397 333 299 299
Total cold run time: 102651 ms
Total hot run time: 30829 ms
----- Round 2, with runtime_filter_mode=off -----
q1 4534 4649 4693 4649
q2 259 359 262 262
q3 2354 2923 2472 2472
q4 1467 1893 1409 1409
q5 4718 4645 4696 4645
q6 220 179 135 135
q7 1919 2069 1747 1747
q8 2570 2417 2499 2417
q9 7465 7459 7737 7459
q10 2849 3073 2740 2740
q11 544 462 461 461
q12 739 812 649 649
q13 3799 4530 3529 3529
q14 283 320 281 281
q15 867 801 775 775
q16 646 686 634 634
q17 1090 1274 1306 1274
q18 7670 7358 7273 7273
q19 879 822 816 816
q20 1969 2041 1853 1853
q21 4625 4331 4126 4126
q22 560 544 527 527
Total cold run time: 52026 ms
Total hot run time: 50133 ms
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [opt](variant) Optimize VARIANT doc mode load/compaction and add benchmarks [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3871427159
# BE UT Coverage Report
Increment line coverage `72.71% (373/513)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/afbdddea56e078b3e96485ea734f6937f6650f4a_afbdddea56e078b3e96485ea734f6937f6650f4a/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/afbdddea56e078b3e96485ea734f6937f6650f4a_afbdddea56e078b3e96485ea734f6937f6650f4a/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 52.73% (19454/36894) |
| Line Coverage | 36.22% (181151/500179) |
| Region Coverage | 32.59% (140592/431452) |
| Branch Coverage | 33.64% (60964/181215) |
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [opt](variant) Optimize VARIANT doc mode load/compaction and add benchmarks [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3875013401
PR approved by at least one committer and no changes requested.
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #60511:
URL: https://github.com/apache/doris/pull/60511#discussion_r2765103976
##########
be/test/olap/variant_doc_mode_compaction_test.cpp:
##########
@@ -0,0 +1,469 @@
+// 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.
+
+#include <gen_cpp/Types_types.h>
+#include <glog/logging.h>
+#include <gtest/gtest.h>
+#include <stdint.h>
+#include <unistd.h>
+
+#include <algorithm>
+#include <array>
+#include <chrono>
+#include <iostream>
+#include <memory>
+#include <random>
+#include <string>
+#include <unordered_map>
+#include <unordered_set>
+#include <utility>
+#include <vector>
+
+#include "common/config.h"
+#include "common/status.h"
+#include "io/fs/local_file_system.h"
+#include "olap/cumulative_compaction.h"
+#include "olap/data_dir.h"
+#include "olap/olap_define.h"
+#include "olap/olap_common.h"
+#include "olap/options.h"
+#include "olap/rowset/beta_rowset.h"
+#include "olap/rowset/rowset.h"
+#include "olap/rowset/rowset_factory.h"
+#include "olap/rowset/rowset_reader.h"
+#include "olap/rowset/rowset_reader_context.h"
+#include "olap/rowset/rowset_writer.h"
+#include "olap/rowset/rowset_writer_context.h"
+#include "olap/rowset/segment_v2/index_writer.h"
+#include "olap/schema.h"
+#include "olap/storage_engine.h"
+#include "olap/tablet.h"
+#include "olap/tablet_meta.h"
+#include "olap/tablet_schema.h"
+#include "runtime/exec_env.h"
+#include "testutil/variant_util.h"
+#include "vec/columns/column_string.h"
+#include "vec/columns/column.h"
+#include "vec/columns/column_variant.h"
+#include "vec/core/block.h"
+#include "vec/core/field.h"
+#include "vec/data_types/data_type_string.h"
+
+namespace doris {
+namespace vectorized {
+using namespace ErrorCode;
+
+static constexpr uint32_t MAX_PATH_LEN = 1024;
+static StorageEngine* engine_ref = nullptr;
+static constexpr int32_t kRowsPerSegment = 100000;
+
+class VariantDocModeCompactionTest : public ::testing::Test {
+protected:
+ void SetUp() override {
+ char buffer[MAX_PATH_LEN];
+ ASSERT_NE(getcwd(buffer, MAX_PATH_LEN), nullptr);
+ absolute_dir = std::string(buffer) + std::string(kTestDir);
+ Status st;
+ bool exists = false;
+ ASSERT_TRUE(io::global_local_filesystem()->exists(absolute_dir, &exists).ok());
+ if (!exists) {
+ st = io::global_local_filesystem()->create_directory(absolute_dir);
+ ASSERT_TRUE(st.ok()) << st.to_string();
+ }
+ ASSERT_TRUE(
+ io::global_local_filesystem()->create_directory(absolute_dir + "/tablet_path").ok());
+ cache_dir = std::string(buffer) + "/ut_dir/variant_doc_mode_compaction_test_cache";
+ ASSERT_TRUE(io::global_local_filesystem()->create_directory(cache_dir).ok());
+
+ ASSERT_TRUE(io::global_local_filesystem()->delete_directory(std::string(tmp_dir)).ok());
+ ASSERT_TRUE(io::global_local_filesystem()->create_directory(std::string(tmp_dir)).ok());
+ std::vector<StorePath> paths;
+ paths.emplace_back(std::string(tmp_dir), 1024000000);
+ auto tmp_file_dirs = std::make_unique<segment_v2::TmpFileDirs>(paths);
+ st = tmp_file_dirs->init();
+ ASSERT_TRUE(st.ok()) << st.to_json();
+ ExecEnv::GetInstance()->set_tmp_file_dir(std::move(tmp_file_dirs));
+
+ EngineOptions options;
+ auto engine = std::make_unique<StorageEngine>(options);
+ engine_ref = engine.get();
+ _data_dir = std::make_unique<DataDir>(*engine_ref, absolute_dir);
+ ASSERT_TRUE(_data_dir->init(true).ok());
+ ExecEnv::GetInstance()->set_storage_engine(std::move(engine));
+
+ config::enable_ordered_data_compaction = false;
+ config::segments_key_bounds_truncation_threshold = -1;
+ config::enable_vertical_compact_variant_subcolumns = true;
+ config::enable_compaction_checksum = false;
+ config::enable_stacktrace = true;
+ }
Review Comment:
This fixture mutates multiple global `config::` flags. Since `doris_be_test` runs all unit tests in one binary, these values will leak into other tests unless restored. Consider saving previous values in `SetUp()` and restoring them in `TearDown()`.
##########
be/test/olap/variant_doc_mode_compaction_test.cpp:
##########
@@ -0,0 +1,469 @@
+// 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.
+
+#include <gen_cpp/Types_types.h>
+#include <glog/logging.h>
+#include <gtest/gtest.h>
+#include <stdint.h>
+#include <unistd.h>
+
+#include <algorithm>
+#include <array>
+#include <chrono>
+#include <iostream>
+#include <memory>
+#include <random>
+#include <string>
+#include <unordered_map>
+#include <unordered_set>
+#include <utility>
+#include <vector>
+
+#include "common/config.h"
+#include "common/status.h"
+#include "io/fs/local_file_system.h"
+#include "olap/cumulative_compaction.h"
+#include "olap/data_dir.h"
+#include "olap/olap_define.h"
+#include "olap/olap_common.h"
+#include "olap/options.h"
+#include "olap/rowset/beta_rowset.h"
+#include "olap/rowset/rowset.h"
+#include "olap/rowset/rowset_factory.h"
+#include "olap/rowset/rowset_reader.h"
+#include "olap/rowset/rowset_reader_context.h"
+#include "olap/rowset/rowset_writer.h"
+#include "olap/rowset/rowset_writer_context.h"
+#include "olap/rowset/segment_v2/index_writer.h"
+#include "olap/schema.h"
+#include "olap/storage_engine.h"
+#include "olap/tablet.h"
+#include "olap/tablet_meta.h"
+#include "olap/tablet_schema.h"
+#include "runtime/exec_env.h"
+#include "testutil/variant_util.h"
+#include "vec/columns/column_string.h"
+#include "vec/columns/column.h"
+#include "vec/columns/column_variant.h"
+#include "vec/core/block.h"
+#include "vec/core/field.h"
+#include "vec/data_types/data_type_string.h"
+
+namespace doris {
+namespace vectorized {
+using namespace ErrorCode;
+
+static constexpr uint32_t MAX_PATH_LEN = 1024;
+static StorageEngine* engine_ref = nullptr;
+static constexpr int32_t kRowsPerSegment = 100000;
+
Review Comment:
The test builds 10 segments of 100,000 rows each (1,000,000 rows total) and generates fairly large random JSON per row. This is likely to be too slow/heavy for a unit test binary. Consider reducing `kRowsPerSegment` and the materialization threshold proportionally, or gating this as a performance/benchmark-style test (e.g., `DISABLED_` or env-guarded).
##########
be/src/olap/rowset/segment_v2/variant/variant_column_writer_impl.cpp:
##########
@@ -1176,8 +1207,8 @@ Status VariantDocCompactWriter::finalize() {
const auto& column_offsets = variant_column->serialized_doc_value_column_offsets();
std::map<StringRef, uint32_t> column_stats;
for (int64_t i = 0; i < num_rows; ++i) {
- size_t start = column_offsets[i - 1];
- size_t end = column_offsets[i];
+ const size_t start = column_offsets[i - 1];
Review Comment:
In the `for (i = 0; i < num_rows; ++i)` loop, `column_offsets[i - 1]` is used when `i == 0`, which underflows and can read invalid memory. Initialize `start` to 0 for the first row (e.g., `start = (i == 0) ? 0 : column_offsets[i - 1]`).
```suggestion
const size_t start = (i == 0) ? 0 : column_offsets[i - 1];
```
##########
be/test/olap/variant_doc_mode_compaction_test.cpp:
##########
@@ -0,0 +1,469 @@
+// 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.
+
+#include <gen_cpp/Types_types.h>
+#include <glog/logging.h>
+#include <gtest/gtest.h>
+#include <stdint.h>
+#include <unistd.h>
+
+#include <algorithm>
+#include <array>
+#include <chrono>
+#include <iostream>
+#include <memory>
+#include <random>
+#include <string>
+#include <unordered_map>
+#include <unordered_set>
+#include <utility>
+#include <vector>
+
+#include "common/config.h"
+#include "common/status.h"
+#include "io/fs/local_file_system.h"
+#include "olap/cumulative_compaction.h"
+#include "olap/data_dir.h"
+#include "olap/olap_define.h"
+#include "olap/olap_common.h"
+#include "olap/options.h"
+#include "olap/rowset/beta_rowset.h"
+#include "olap/rowset/rowset.h"
+#include "olap/rowset/rowset_factory.h"
+#include "olap/rowset/rowset_reader.h"
+#include "olap/rowset/rowset_reader_context.h"
+#include "olap/rowset/rowset_writer.h"
+#include "olap/rowset/rowset_writer_context.h"
+#include "olap/rowset/segment_v2/index_writer.h"
+#include "olap/schema.h"
+#include "olap/storage_engine.h"
+#include "olap/tablet.h"
+#include "olap/tablet_meta.h"
+#include "olap/tablet_schema.h"
+#include "runtime/exec_env.h"
+#include "testutil/variant_util.h"
+#include "vec/columns/column_string.h"
+#include "vec/columns/column.h"
+#include "vec/columns/column_variant.h"
+#include "vec/core/block.h"
+#include "vec/core/field.h"
+#include "vec/data_types/data_type_string.h"
+
+namespace doris {
+namespace vectorized {
+using namespace ErrorCode;
+
+static constexpr uint32_t MAX_PATH_LEN = 1024;
+static StorageEngine* engine_ref = nullptr;
+static constexpr int32_t kRowsPerSegment = 100000;
+
+class VariantDocModeCompactionTest : public ::testing::Test {
+protected:
+ void SetUp() override {
+ char buffer[MAX_PATH_LEN];
+ ASSERT_NE(getcwd(buffer, MAX_PATH_LEN), nullptr);
+ absolute_dir = std::string(buffer) + std::string(kTestDir);
+ Status st;
+ bool exists = false;
+ ASSERT_TRUE(io::global_local_filesystem()->exists(absolute_dir, &exists).ok());
+ if (!exists) {
+ st = io::global_local_filesystem()->create_directory(absolute_dir);
+ ASSERT_TRUE(st.ok()) << st.to_string();
+ }
+ ASSERT_TRUE(
+ io::global_local_filesystem()->create_directory(absolute_dir + "/tablet_path").ok());
+ cache_dir = std::string(buffer) + "/ut_dir/variant_doc_mode_compaction_test_cache";
+ ASSERT_TRUE(io::global_local_filesystem()->create_directory(cache_dir).ok());
+
+ ASSERT_TRUE(io::global_local_filesystem()->delete_directory(std::string(tmp_dir)).ok());
+ ASSERT_TRUE(io::global_local_filesystem()->create_directory(std::string(tmp_dir)).ok());
+ std::vector<StorePath> paths;
+ paths.emplace_back(std::string(tmp_dir), 1024000000);
+ auto tmp_file_dirs = std::make_unique<segment_v2::TmpFileDirs>(paths);
+ st = tmp_file_dirs->init();
+ ASSERT_TRUE(st.ok()) << st.to_json();
+ ExecEnv::GetInstance()->set_tmp_file_dir(std::move(tmp_file_dirs));
+
+ EngineOptions options;
+ auto engine = std::make_unique<StorageEngine>(options);
+ engine_ref = engine.get();
+ _data_dir = std::make_unique<DataDir>(*engine_ref, absolute_dir);
+ ASSERT_TRUE(_data_dir->init(true).ok());
+ ExecEnv::GetInstance()->set_storage_engine(std::move(engine));
+
+ config::enable_ordered_data_compaction = false;
+ config::segments_key_bounds_truncation_threshold = -1;
+ config::enable_vertical_compact_variant_subcolumns = true;
+ config::enable_compaction_checksum = false;
+ config::enable_stacktrace = true;
+ }
+
+ void TearDown() override {
+ // ASSERT_TRUE(io::global_local_filesystem()->delete_directory(absolute_dir).ok());
+ engine_ref = nullptr;
+ ExecEnv::GetInstance()->set_storage_engine(nullptr);
+ }
Review Comment:
`TearDown()` does not clean `absolute_dir`, `cache_dir`, or `tmp_dir` (and `SetUp()` reuses existing dirs). This makes the test non-hermetic and can leave large artifacts under `ut_dir`, affecting subsequent local/CI runs. Prefer deleting these directories in `TearDown()` and/or recreating them from a clean state in `SetUp()`.
##########
be/src/olap/rowset/segment_v2/variant/variant_column_writer_impl.cpp:
##########
@@ -335,19 +342,38 @@ Status UnifiedSparseColumnWriter::append_bucket_sparse(
auto& m = assert_cast<vectorized::ColumnMap&>(*tmp_maps[b]);
m.get_offsets().reserve(num_rows);
}
- for (ssize_t row = 0; row < static_cast<ssize_t>(num_rows); ++row) {
- size_t start = offsets[row - 1];
- size_t end = offsets[row];
+ std::vector<vectorized::ColumnString*> bucket_keys(bucket_num);
+ std::vector<vectorized::ColumnString*> bucket_values(bucket_num);
+ std::vector<vectorized::ColumnArray::Offsets64*> bucket_offsets(bucket_num);
+ for (int b = 0; b < bucket_num; ++b) {
+ auto& m = assert_cast<vectorized::ColumnMap&>(*tmp_maps[b]);
+ bucket_keys[b] = &assert_cast<vectorized::ColumnString&>(m.get_keys());
+ bucket_values[b] = &assert_cast<vectorized::ColumnString&>(m.get_values());
+ bucket_offsets[b] = &m.get_offsets();
+ }
+ for (size_t row = 0; row < num_rows; ++row) {
+ const size_t start = offsets[row - 1];
Review Comment:
`offsets[row - 1]` is accessed when `row == 0`, which underflows and results in an out-of-bounds read. Use the same pattern as `VariantDocWriter::append_data` below (start = 0 for the first row).
```suggestion
const size_t start = (row == 0 ? 0 : offsets[row - 1]);
```
##########
be/test/olap/variant_doc_mode_compaction_test.cpp:
##########
@@ -0,0 +1,469 @@
+// 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.
+
+#include <gen_cpp/Types_types.h>
+#include <glog/logging.h>
+#include <gtest/gtest.h>
+#include <stdint.h>
+#include <unistd.h>
+
+#include <algorithm>
+#include <array>
+#include <chrono>
+#include <iostream>
+#include <memory>
+#include <random>
+#include <string>
+#include <unordered_map>
+#include <unordered_set>
+#include <utility>
+#include <vector>
+
+#include "common/config.h"
+#include "common/status.h"
+#include "io/fs/local_file_system.h"
+#include "olap/cumulative_compaction.h"
+#include "olap/data_dir.h"
+#include "olap/olap_define.h"
+#include "olap/olap_common.h"
+#include "olap/options.h"
+#include "olap/rowset/beta_rowset.h"
+#include "olap/rowset/rowset.h"
+#include "olap/rowset/rowset_factory.h"
+#include "olap/rowset/rowset_reader.h"
+#include "olap/rowset/rowset_reader_context.h"
+#include "olap/rowset/rowset_writer.h"
+#include "olap/rowset/rowset_writer_context.h"
+#include "olap/rowset/segment_v2/index_writer.h"
+#include "olap/schema.h"
+#include "olap/storage_engine.h"
+#include "olap/tablet.h"
+#include "olap/tablet_meta.h"
+#include "olap/tablet_schema.h"
+#include "runtime/exec_env.h"
+#include "testutil/variant_util.h"
+#include "vec/columns/column_string.h"
+#include "vec/columns/column.h"
+#include "vec/columns/column_variant.h"
+#include "vec/core/block.h"
+#include "vec/core/field.h"
+#include "vec/data_types/data_type_string.h"
+
+namespace doris {
+namespace vectorized {
+using namespace ErrorCode;
+
+static constexpr uint32_t MAX_PATH_LEN = 1024;
+static StorageEngine* engine_ref = nullptr;
+static constexpr int32_t kRowsPerSegment = 100000;
+
+class VariantDocModeCompactionTest : public ::testing::Test {
+protected:
+ void SetUp() override {
+ char buffer[MAX_PATH_LEN];
+ ASSERT_NE(getcwd(buffer, MAX_PATH_LEN), nullptr);
+ absolute_dir = std::string(buffer) + std::string(kTestDir);
+ Status st;
+ bool exists = false;
+ ASSERT_TRUE(io::global_local_filesystem()->exists(absolute_dir, &exists).ok());
+ if (!exists) {
+ st = io::global_local_filesystem()->create_directory(absolute_dir);
+ ASSERT_TRUE(st.ok()) << st.to_string();
+ }
+ ASSERT_TRUE(
+ io::global_local_filesystem()->create_directory(absolute_dir + "/tablet_path").ok());
+ cache_dir = std::string(buffer) + "/ut_dir/variant_doc_mode_compaction_test_cache";
+ ASSERT_TRUE(io::global_local_filesystem()->create_directory(cache_dir).ok());
+
+ ASSERT_TRUE(io::global_local_filesystem()->delete_directory(std::string(tmp_dir)).ok());
+ ASSERT_TRUE(io::global_local_filesystem()->create_directory(std::string(tmp_dir)).ok());
+ std::vector<StorePath> paths;
+ paths.emplace_back(std::string(tmp_dir), 1024000000);
+ auto tmp_file_dirs = std::make_unique<segment_v2::TmpFileDirs>(paths);
+ st = tmp_file_dirs->init();
+ ASSERT_TRUE(st.ok()) << st.to_json();
+ ExecEnv::GetInstance()->set_tmp_file_dir(std::move(tmp_file_dirs));
+
+ EngineOptions options;
+ auto engine = std::make_unique<StorageEngine>(options);
+ engine_ref = engine.get();
+ _data_dir = std::make_unique<DataDir>(*engine_ref, absolute_dir);
+ ASSERT_TRUE(_data_dir->init(true).ok());
+ ExecEnv::GetInstance()->set_storage_engine(std::move(engine));
+
+ config::enable_ordered_data_compaction = false;
+ config::segments_key_bounds_truncation_threshold = -1;
+ config::enable_vertical_compact_variant_subcolumns = true;
+ config::enable_compaction_checksum = false;
+ config::enable_stacktrace = true;
+ }
+
+ void TearDown() override {
+ // ASSERT_TRUE(io::global_local_filesystem()->delete_directory(absolute_dir).ok());
+ engine_ref = nullptr;
+ ExecEnv::GetInstance()->set_storage_engine(nullptr);
+ }
+
+ TabletSchemaSPtr create_schema() {
+ TabletSchemaSPtr tablet_schema = std::make_shared<TabletSchema>();
+ TabletSchemaPB tablet_schema_pb;
+ tablet_schema_pb.set_keys_type(KeysType::DUP_KEYS);
+ tablet_schema_pb.set_num_short_key_columns(1);
+ tablet_schema_pb.set_num_rows_per_row_block(1024);
+ tablet_schema_pb.set_compress_kind(COMPRESS_NONE);
+ tablet_schema_pb.set_next_column_unique_id(3);
+
+ ColumnPB* column_1 = tablet_schema_pb.add_column();
+ column_1->set_unique_id(1);
+ column_1->set_name("c1");
+ column_1->set_type("INT");
+ column_1->set_is_key(true);
+ column_1->set_length(4);
+ column_1->set_index_length(4);
+ column_1->set_is_nullable(false);
+ column_1->set_is_bf_column(false);
+
+ ColumnPB* column_2 = tablet_schema_pb.add_column();
+ column_2->set_unique_id(2);
+ column_2->set_name("v");
+ column_2->set_type("VARIANT");
+ column_2->set_is_key(false);
+ column_2->set_is_nullable(false);
+ column_2->set_variant_max_subcolumns_count(0);
+ column_2->set_variant_max_sparse_column_statistics_size(10000);
+ column_2->set_variant_sparse_hash_shard_count(128);
+ column_2->set_variant_enable_doc_mode(true);
+ column_2->set_variant_doc_materialization_min_rows(kRowsPerSegment);
+
+ tablet_schema->init_from_pb(tablet_schema_pb);
+ return tablet_schema;
+ }
+
+ TabletSharedPtr create_tablet(const TabletSchema& tablet_schema) {
+ std::vector<TColumn> cols;
+ std::unordered_map<uint32_t, uint32_t> col_ordinal_to_unique_id;
+ for (int i = 0; i < tablet_schema.num_columns(); ++i) {
+ const TabletColumn& column = tablet_schema.column(i);
+ TColumn col;
+ if (column.type() == FieldType::OLAP_FIELD_TYPE_VARIANT) {
+ col.column_type.type = TPrimitiveType::VARIANT;
+ } else {
+ col.column_type.type = TPrimitiveType::INT;
+ }
+ col.__set_column_name(column.name());
+ col.__set_is_key(column.is_key());
+ cols.push_back(col);
+ col_ordinal_to_unique_id[i] = column.unique_id();
+ }
+
+ TTabletSchema t_tablet_schema;
+ t_tablet_schema.__set_short_key_column_count(tablet_schema.num_short_key_columns());
+ t_tablet_schema.__set_schema_hash(3333);
+ t_tablet_schema.__set_keys_type(TKeysType::DUP_KEYS);
+ t_tablet_schema.__set_storage_type(TStorageType::COLUMN);
+ t_tablet_schema.__set_columns(cols);
+
+ TabletMetaSharedPtr tablet_meta(
+ new TabletMeta(2, 2, 2, 2, 2, 2, t_tablet_schema, 2, col_ordinal_to_unique_id,
+ UniqueId(1, 2), TTabletType::TABLET_TYPE_DISK,
+ TCompressionType::LZ4F, 0, false));
+
+ TabletSharedPtr tablet(new Tablet(*engine_ref, tablet_meta, _data_dir.get()));
+ static_cast<void>(tablet->init());
+ return tablet;
+ }
+
+ void create_rowset_writer_context(TabletSchemaSPtr tablet_schema, const std::string& rowset_dir,
+ int64_t version, RowsetWriterContext* rowset_writer_context) {
+ RowsetId rowset_id;
+ rowset_id.init(version + 1000);
+ rowset_writer_context->rowset_id = rowset_id;
+ rowset_writer_context->rowset_type = BETA_ROWSET;
+ rowset_writer_context->data_dir = _data_dir.get();
+ rowset_writer_context->rowset_state = VISIBLE;
+ rowset_writer_context->tablet_schema = tablet_schema;
+ rowset_writer_context->tablet_path = rowset_dir;
+ rowset_writer_context->version = Version(version, version);
+ rowset_writer_context->segments_overlap = NONOVERLAPPING;
+ rowset_writer_context->max_rows_per_segment = kRowsPerSegment;
+ }
+
+ std::string generate_random_json(const std::vector<std::string>& key_pool, std::mt19937_64& rng,
+ uint32_t row_seed) {
+ std::uniform_int_distribution<int> kv_count_dist(10, 50);
+ std::uniform_int_distribution<int> key_idx_dist(0, static_cast<int>(key_pool.size() - 1));
+ int kv_count = kv_count_dist(rng);
+
+ std::array<int, 50> selected {};
+ int selected_size = 0;
+ while (selected_size < kv_count) {
+ int idx = key_idx_dist(rng);
+ bool dup = false;
+ for (int i = 0; i < selected_size; ++i) {
+ if (selected[i] == idx) {
+ dup = true;
+ break;
+ }
+ }
+ if (!dup) {
+ selected[selected_size++] = idx;
+ }
+ }
+
+ std::string json;
+ json.reserve(static_cast<size_t>(kv_count) * 20 + 2);
+ json.push_back('{');
+ for (int i = 0; i < kv_count; ++i) {
+ const auto& key = key_pool[selected[i]];
+ json.push_back('"');
+ json.append(key);
+ json.append("\":");
+ json.append(std::to_string(static_cast<uint32_t>(selected[i]) ^ row_seed));
+ if (i + 1 < kv_count) {
+ json.push_back(',');
+ }
+ }
+ json.push_back('}');
+ return json;
+ }
+
+ RowsetSharedPtr create_rowset_with_variant(TabletSchemaSPtr tablet_schema, TabletSharedPtr tablet,
+ int64_t version, int64_t start_key,
+ const std::vector<std::string>& key_pool,
+ std::mt19937_64& rng, int64_t* import_elapsed_ms) {
+ RowsetWriterContext writer_context;
+ create_rowset_writer_context(tablet_schema, tablet->tablet_path(), version, &writer_context);
+
+ auto res = RowsetFactory::create_rowset_writer(*engine_ref, writer_context, true);
+ EXPECT_TRUE(res.has_value()) << res.error();
+ auto rowset_writer = std::move(res).value();
+
+ vectorized::Block block = tablet_schema->create_block();
+ auto columns = block.mutate_columns();
+ auto* variant_col = assert_cast<ColumnVariant*>(columns[1].get());
+ auto raw_json_column = ColumnString::create();
+ raw_json_column->reserve(kRowsPerSegment);
+ for (uint32_t i = 0; i < kRowsPerSegment; ++i) {
+ int32_t c1 = static_cast<int32_t>(start_key + i);
+ columns[0]->insert_data(reinterpret_cast<const char*>(&c1), sizeof(c1));
+
+ std::string json = generate_random_json(key_pool, rng, static_cast<uint32_t>(c1));
+ raw_json_column->insert_data(json.data(), json.size());
+ }
+
+ variant_col->create_root(make_nullable(std::make_shared<DataTypeString>()),
+ std::move(raw_json_column));
+
+ auto import_start = std::chrono::steady_clock::now();
+ auto s = rowset_writer->add_block(&block);
+ EXPECT_TRUE(s.ok()) << s.to_json();
+ s = rowset_writer->flush();
+ EXPECT_TRUE(s.ok()) << s.to_json();
+
+ RowsetSharedPtr rowset;
+ EXPECT_EQ(Status::OK(), rowset_writer->build(rowset));
+ auto import_end = std::chrono::steady_clock::now();
+ if (import_elapsed_ms != nullptr) {
+ *import_elapsed_ms =
+ std::chrono::duration_cast<std::chrono::milliseconds>(import_end - import_start)
+ .count();
+ }
+ EXPECT_EQ(1, rowset->rowset_meta()->num_segments());
+ EXPECT_EQ(kRowsPerSegment, rowset->rowset_meta()->num_rows());
+ const auto& fs = io::global_local_filesystem();
+ RowsetId rowset_id_cached;
+ rowset_id_cached.init(version + 1000);
+ auto seg_path = local_segment_path(tablet->tablet_path(), rowset_id_cached.to_string(), 0);
+ auto cache_seg_path = local_segment_path(cache_dir, rowset_id_cached.to_string(), 0);
+ bool cache_exists = false;
+ static_cast<void>(fs->exists(cache_seg_path, &cache_exists));
+ if (!cache_exists) {
+ static_cast<void>(fs->link_file(seg_path, cache_seg_path));
Review Comment:
Filesystem calls here ignore returned `Status` (both `exists` and `link_file`). If either fails, the test will silently proceed with an unexpected state and fail later in a harder-to-debug way. Please check the returned status and assert/return on failure.
```suggestion
Status cache_exist_st = fs->exists(cache_seg_path, &cache_exists);
ASSERT_TRUE(cache_exist_st.ok()) << cache_exist_st.to_json();
if (!cache_exists) {
Status link_st = fs->link_file(seg_path, cache_seg_path);
ASSERT_TRUE(link_st.ok()) << link_st.to_json();
```
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #60511:
URL: https://github.com/apache/doris/pull/60511#discussion_r2771978779
##########
be/src/olap/rowset/segment_v2/column_writer.cpp:
##########
@@ -79,7 +79,12 @@ class NullBitmapBuilder {
size_t raw_est = raw_bytes + raw_overhead + kReserveSlackBytes;
size_t reserve_bytes = std::min(raw_est, run_bytes_est);
if (_bitmap_buf.capacity() < reserve_bytes) {
- _bitmap_buf.reserve(reserve_bytes);
+ // _bitmap_buf.reserve(reserve_bytes);
+ size_t cap = _bitmap_buf.capacity();
+ size_t grow = cap + cap / 2;
+ size_t new_cap = std::max(reserve_bytes, grow);
+ new_cap = std::max(new_cap, reserve_bytes);
Review Comment:
Redundant calculation: line 85 already computes `new_cap = std::max(reserve_bytes, grow)`, so line 86's `std::max(new_cap, reserve_bytes)` is redundant since `new_cap` is already >= `reserve_bytes`. Line 86 should be removed.
```suggestion
```
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3864596908
run p0 10
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3849192785
<details>
<summary>ClickBench: <b>Total hot run time: 28.31 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit f5ce85ae8d81b365a6bd810ea9834b2b7f79251c, data reload: false
query1 0.05 0.04 0.05
query2 0.09 0.04 0.04
query3 0.26 0.08 0.09
query4 1.61 0.11 0.11
query5 0.27 0.25 0.25
query6 1.16 0.68 0.68
query7 0.03 0.02 0.02
query8 0.05 0.03 0.03
query9 0.58 0.51 0.50
query10 0.55 0.55 0.54
query11 0.14 0.09 0.09
query12 0.14 0.10 0.11
query13 0.64 0.62 0.63
query14 1.07 1.08 1.04
query15 0.87 0.86 0.87
query16 0.38 0.42 0.42
query17 1.20 1.17 1.10
query18 0.23 0.21 0.20
query19 2.07 1.95 2.07
query20 0.02 0.01 0.01
query21 15.40 0.30 0.14
query22 5.25 0.05 0.05
query23 16.00 0.30 0.10
query24 1.94 0.26 0.20
query25 0.09 0.08 0.06
query26 0.15 0.15 0.13
query27 0.05 0.05 0.08
query28 3.89 1.16 0.97
query29 12.60 3.95 3.18
query30 0.28 0.14 0.11
query31 2.82 0.63 0.41
query32 3.23 0.60 0.49
query33 3.19 3.31 3.36
query34 16.09 5.38 4.72
query35 4.78 4.83 4.84
query36 0.64 0.51 0.49
query37 0.12 0.07 0.07
query38 0.08 0.04 0.04
query39 0.05 0.03 0.03
query40 0.18 0.16 0.16
query41 0.09 0.03 0.03
query42 0.05 0.03 0.03
query43 0.05 0.03 0.04
Total cold run time: 98.43 s
Total hot run time: 28.31 s
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3848937265
run buildall
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3863968257
<details>
<summary>TPC-H: <b>Total hot run time: 30709 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 9c4b319804d82aa181070518c6d9cd23603c6e50, data reload: false
------ Round 1 ----------------------------------
q1 17608 4452 4291 4291
q2 1997 368 235 235
q3 10150 1289 744 744
q4 10200 778 308 308
q5 7485 2148 1929 1929
q6 191 174 145 145
q7 878 750 606 606
q8 9260 1434 1196 1196
q9 4711 4570 4584 4570
q10 7358 1917 1575 1575
q11 525 310 292 292
q12 342 390 233 233
q13 17789 4038 3255 3255
q14 226 240 218 218
q15 872 808 794 794
q16 672 683 609 609
q17 689 784 567 567
q18 6504 5825 6050 5825
q19 1246 1123 639 639
q20 601 533 422 422
q21 2825 1962 1991 1962
q22 389 337 294 294
Total cold run time: 102518 ms
Total hot run time: 30709 ms
----- Round 2, with runtime_filter_mode=off -----
q1 4677 4566 4594 4566
q2 267 342 280 280
q3 2366 2887 2386 2386
q4 1447 1849 1451 1451
q5 4684 4770 4408 4408
q6 221 177 138 138
q7 1910 1844 1752 1752
q8 2630 2535 2412 2412
q9 7432 7665 7683 7665
q10 2780 3147 2669 2669
q11 574 476 462 462
q12 670 753 592 592
q13 3711 4043 3271 3271
q14 264 274 261 261
q15 819 796 797 796
q16 640 690 635 635
q17 1083 1389 1328 1328
q18 7500 7418 7290 7290
q19 869 810 818 810
q20 1956 2067 1860 1860
q21 4500 4362 4167 4167
q22 559 534 545 534
Total cold run time: 51559 ms
Total hot run time: 49733 ms
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [opt](variant) Optimize VARIANT doc mode load/compaction and add benchmarks [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3871074652
<details>
<summary>ClickBench: <b>Total hot run time: 28.72 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit afbdddea56e078b3e96485ea734f6937f6650f4a, data reload: false
query1 0.05 0.05 0.05
query2 0.09 0.05 0.04
query3 0.24 0.08 0.08
query4 1.61 0.11 0.11
query5 0.27 0.25 0.24
query6 1.15 0.68 0.66
query7 0.03 0.02 0.03
query8 0.05 0.04 0.04
query9 0.57 0.50 0.49
query10 0.55 0.55 0.54
query11 0.14 0.09 0.10
query12 0.14 0.11 0.11
query13 0.63 0.61 0.62
query14 1.06 1.06 1.05
query15 0.87 0.87 0.88
query16 0.40 0.37 0.38
query17 1.09 1.17 1.18
query18 0.22 0.21 0.22
query19 2.13 2.05 2.03
query20 0.02 0.01 0.01
query21 15.40 0.27 0.14
query22 5.20 0.06 0.05
query23 15.87 0.29 0.11
query24 1.03 0.60 1.02
query25 0.13 0.06 0.06
query26 0.14 0.14 0.13
query27 0.06 0.06 0.06
query28 5.13 1.14 0.97
query29 12.59 3.96 3.19
query30 0.28 0.16 0.11
query31 2.82 0.64 0.40
query32 3.24 0.61 0.50
query33 3.32 3.29 3.26
query34 16.05 5.41 4.67
query35 4.81 4.81 4.85
query36 0.66 0.51 0.50
query37 0.11 0.07 0.08
query38 0.08 0.05 0.03
query39 0.04 0.03 0.03
query40 0.19 0.16 0.15
query41 0.09 0.03 0.02
query42 0.04 0.03 0.03
query43 0.05 0.04 0.04
Total cold run time: 98.64 s
Total hot run time: 28.72 s
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3863989597
<details>
<summary>ClickBench: <b>Total hot run time: 28.72 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 9c4b319804d82aa181070518c6d9cd23603c6e50, data reload: false
query1 0.05 0.05 0.05
query2 0.10 0.05 0.05
query3 0.27 0.09 0.08
query4 1.60 0.11 0.11
query5 0.27 0.25 0.24
query6 1.16 0.70 0.66
query7 0.04 0.03 0.03
query8 0.05 0.05 0.04
query9 0.56 0.51 0.50
query10 0.55 0.55 0.54
query11 0.15 0.09 0.09
query12 0.13 0.10 0.10
query13 0.63 0.61 0.61
query14 1.07 1.06 1.06
query15 0.88 0.87 0.88
query16 0.38 0.42 0.39
query17 1.10 1.11 1.13
query18 0.22 0.21 0.21
query19 2.08 1.94 1.98
query20 0.02 0.02 0.01
query21 15.43 0.28 0.15
query22 4.75 0.06 0.06
query23 15.68 0.29 0.11
query24 1.45 0.61 0.67
query25 0.11 0.07 0.06
query26 0.16 0.14 0.14
query27 0.07 0.06 0.06
query28 4.41 1.17 0.97
query29 12.56 3.87 3.18
query30 0.28 0.13 0.11
query31 2.82 0.66 0.40
query32 3.24 0.60 0.49
query33 3.18 3.27 3.31
query34 16.12 5.40 4.73
query35 4.82 4.84 4.85
query36 0.64 0.50 0.49
query37 0.10 0.07 0.06
query38 0.07 0.04 0.04
query39 0.04 0.03 0.03
query40 0.19 0.16 0.15
query41 0.09 0.03 0.03
query42 0.04 0.02 0.02
query43 0.05 0.03 0.03
Total cold run time: 97.61 s
Total hot run time: 28.72 s
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3867404019
<details>
<summary>TPC-H: <b>Total hot run time: 30598 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 61dd2305a527e359954f74e8d5c07d28b445c4e7, data reload: false
------ Round 1 ----------------------------------
q1 17631 4456 4280 4280
q2 2049 349 245 245
q3 10145 1309 753 753
q4 10195 782 302 302
q5 8090 2247 1919 1919
q6 242 179 145 145
q7 889 732 615 615
q8 9284 1386 1090 1090
q9 4743 4627 4660 4627
q10 6887 1924 1527 1527
q11 501 317 292 292
q12 400 387 220 220
q13 17782 4101 3219 3219
q14 240 231 214 214
q15 911 827 791 791
q16 684 677 599 599
q17 933 851 511 511
q18 6726 5968 6369 5968
q19 1860 1106 693 693
q20 568 511 399 399
q21 2669 1910 1948 1910
q22 394 314 279 279
Total cold run time: 103823 ms
Total hot run time: 30598 ms
----- Round 2, with runtime_filter_mode=off -----
q1 4683 4512 4512 4512
q2 264 338 282 282
q3 2371 2954 2459 2459
q4 1440 1903 1463 1463
q5 4632 4509 4573 4509
q6 217 177 136 136
q7 1928 1892 1947 1892
q8 2545 2449 2427 2427
q9 7638 7347 7638 7347
q10 2830 2983 2540 2540
q11 545 462 563 462
q12 722 741 592 592
q13 3802 4234 3225 3225
q14 263 287 263 263
q15 821 798 779 779
q16 642 693 629 629
q17 1071 1293 1340 1293
q18 7475 7332 7186 7186
q19 836 808 791 791
q20 1954 2047 1854 1854
q21 4513 4269 4130 4130
q22 587 537 552 537
Total cold run time: 51779 ms
Total hot run time: 49308 ms
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [opt](variant) Optimize VARIANT doc mode load/compaction and add benchmarks [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3870366224
run buildall
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [opt](variant) Optimize VARIANT doc mode load/compaction and add benchmarks [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3869453478
run buildall
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [opt](variant) Optimize VARIANT doc mode load/compaction and add benchmarks [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon merged PR #60511:
URL: https://github.com/apache/doris/pull/60511
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3861499769
<details>
<summary>ClickBench: <b>Total hot run time: 28.5 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 46b88679a10524398325dd2a447b040858976e4f, data reload: false
query1 0.06 0.04 0.04
query2 0.10 0.05 0.05
query3 0.26 0.09 0.09
query4 1.61 0.11 0.11
query5 0.27 0.25 0.25
query6 1.18 0.67 0.67
query7 0.04 0.02 0.03
query8 0.06 0.04 0.05
query9 0.57 0.51 0.50
query10 0.54 0.56 0.55
query11 0.14 0.09 0.10
query12 0.13 0.11 0.11
query13 0.62 0.62 0.62
query14 1.08 1.05 1.05
query15 0.89 0.87 0.90
query16 0.39 0.42 0.38
query17 1.16 1.14 1.14
query18 0.22 0.21 0.21
query19 2.14 2.02 2.04
query20 0.02 0.01 0.01
query21 15.39 0.26 0.14
query22 5.26 0.06 0.05
query23 15.95 0.28 0.11
query24 1.04 0.27 0.54
query25 0.13 0.08 0.09
query26 0.15 0.14 0.13
query27 0.06 0.05 0.08
query28 4.08 1.17 0.97
query29 12.56 4.02 3.20
query30 0.28 0.13 0.13
query31 2.81 0.64 0.41
query32 3.24 0.59 0.49
query33 3.28 3.27 3.24
query34 15.92 5.36 4.75
query35 4.75 4.83 4.79
query36 0.67 0.50 0.49
query37 0.11 0.07 0.07
query38 0.07 0.04 0.04
query39 0.04 0.03 0.02
query40 0.20 0.17 0.16
query41 0.09 0.04 0.03
query42 0.04 0.03 0.03
query43 0.05 0.04 0.03
Total cold run time: 97.65 s
Total hot run time: 28.5 s
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3848690845
Thank you for your contribution to Apache Doris.
Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR).
Please clearly describe your PR:
1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
3. What features were added. Why was this function added?
4. Which code was refactored and why was this part of the code refactored?
5. Which functions were optimized and what is the difference before and after the optimization?
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3858255551
run buildall
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [opt](variant) Optimize VARIANT doc mode load/compaction and add benchmarks [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3869309949
run buildall
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [opt](variant) Optimize VARIANT doc mode load/compaction and add benchmarks [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3869827138
<details>
<summary>TPC-H: <b>Total hot run time: 30589 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit e80457f76fb5655cc4dc91fdea69dd53199b508e, data reload: false
------ Round 1 ----------------------------------
q1 17671 4567 4275 4275
q2 1999 380 238 238
q3 10155 1339 735 735
q4 10197 780 317 317
q5 7519 2222 1920 1920
q6 209 179 144 144
q7 891 718 611 611
q8 9279 1396 1224 1224
q9 4832 4650 4570 4570
q10 6886 1972 1544 1544
q11 539 321 291 291
q12 404 374 236 236
q13 17785 4109 3260 3260
q14 238 240 208 208
q15 893 825 798 798
q16 698 683 623 623
q17 705 796 563 563
q18 6472 6067 5959 5959
q19 1096 987 605 605
q20 510 494 393 393
q21 2539 1851 1796 1796
q22 365 325 279 279
Total cold run time: 101882 ms
Total hot run time: 30589 ms
----- Round 2, with runtime_filter_mode=off -----
q1 4336 4329 4330 4329
q2 270 335 267 267
q3 2091 2649 2249 2249
q4 1354 1720 1321 1321
q5 4294 4156 4257 4156
q6 214 177 137 137
q7 1846 1783 1676 1676
q8 2559 2603 2523 2523
q9 7655 7464 7458 7458
q10 2827 3260 2672 2672
q11 555 480 457 457
q12 710 763 659 659
q13 4083 4316 3561 3561
q14 346 296 283 283
q15 885 836 823 823
q16 688 843 737 737
q17 1146 1293 1275 1275
q18 8214 7963 7873 7873
q19 870 895 876 876
q20 2137 2169 2034 2034
q21 4824 4619 4529 4529
q22 577 573 562 562
Total cold run time: 52481 ms
Total hot run time: 50457 ms
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3855977307
<details>
<summary>ClickBench: <b>Total hot run time: 28.13 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit b5936af5b0d0bacb601de1486dc59922c6d1dd7c, data reload: false
query1 0.06 0.05 0.04
query2 0.09 0.04 0.05
query3 0.25 0.08 0.08
query4 1.60 0.11 0.11
query5 0.28 0.25 0.24
query6 1.16 0.70 0.69
query7 0.03 0.02 0.02
query8 0.05 0.04 0.04
query9 0.58 0.51 0.50
query10 0.55 0.56 0.55
query11 0.14 0.09 0.09
query12 0.14 0.11 0.10
query13 0.64 0.61 0.63
query14 1.07 1.06 1.04
query15 0.88 0.86 0.87
query16 0.40 0.38 0.38
query17 1.11 1.11 1.14
query18 0.22 0.21 0.21
query19 2.10 1.94 2.04
query20 0.02 0.02 0.01
query21 15.41 0.26 0.15
query22 5.34 0.05 0.06
query23 16.24 0.29 0.10
query24 0.97 0.24 0.18
query25 0.08 0.10 0.05
query26 0.15 0.13 0.13
query27 0.08 0.06 0.07
query28 3.24 1.15 0.97
query29 12.53 3.95 3.15
query30 0.27 0.13 0.12
query31 2.80 0.65 0.40
query32 3.26 0.60 0.50
query33 3.29 3.23 3.25
query34 16.04 5.39 4.74
query35 4.88 4.76 4.87
query36 0.65 0.50 0.49
query37 0.11 0.07 0.07
query38 0.07 0.04 0.04
query39 0.04 0.03 0.03
query40 0.20 0.16 0.16
query41 0.08 0.03 0.03
query42 0.05 0.03 0.03
query43 0.04 0.04 0.03
Total cold run time: 97.19 s
Total hot run time: 28.13 s
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3848869937
run buildall
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3849125143
<details>
<summary>TPC-H: <b>Total hot run time: 31662 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit f5ce85ae8d81b365a6bd810ea9834b2b7f79251c, data reload: false
------ Round 1 ----------------------------------
q1 17667 5265 5100 5100
q2 2062 310 195 195
q3 10213 1380 736 736
q4 10233 939 322 322
q5 7887 2186 1900 1900
q6 211 186 153 153
q7 901 720 605 605
q8 9258 1431 1088 1088
q9 5518 4986 4820 4820
q10 6869 1934 1570 1570
q11 517 307 285 285
q12 368 375 221 221
q13 17820 4058 3228 3228
q14 242 247 223 223
q15 934 832 803 803
q16 676 672 616 616
q17 641 820 477 477
q18 6710 6514 6369 6369
q19 1546 986 615 615
q20 389 352 230 230
q21 2647 2114 1836 1836
q22 348 314 270 270
Total cold run time: 103657 ms
Total hot run time: 31662 ms
----- Round 2, with runtime_filter_mode=off -----
q1 5454 5329 5296 5296
q2 258 349 254 254
q3 2161 2695 2286 2286
q4 1345 1723 1320 1320
q5 4293 4179 4314 4179
q6 211 187 173 173
q7 2299 2089 1870 1870
q8 2567 2558 2452 2452
q9 7458 7624 7398 7398
q10 2765 3112 2532 2532
q11 544 484 448 448
q12 657 760 675 675
q13 3929 4525 3601 3601
q14 343 331 287 287
q15 871 804 811 804
q16 671 774 681 681
q17 1191 1337 1319 1319
q18 8058 7957 8031 7957
q19 909 847 866 847
q20 2063 2126 2009 2009
q21 4483 4255 4142 4142
q22 597 550 511 511
Total cold run time: 53127 ms
Total hot run time: 51041 ms
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3863905235
run buildall
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3866180514
run p0 5
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3861388463
<details>
<summary>TPC-H: <b>Total hot run time: 30123 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 46b88679a10524398325dd2a447b040858976e4f, data reload: false
------ Round 1 ----------------------------------
q1 17617 4555 4320 4320
q2 2041 350 260 260
q3 10124 1268 726 726
q4 10195 761 304 304
q5 7507 2154 1940 1940
q6 192 175 143 143
q7 876 730 625 625
q8 9261 1356 1094 1094
q9 4683 4663 4575 4575
q10 6812 1919 1593 1593
q11 503 314 279 279
q12 334 378 221 221
q13 17977 4076 3293 3293
q14 236 240 231 231
q15 913 820 791 791
q16 684 670 638 638
q17 703 869 445 445
q18 6679 5694 5619 5619
q19 1427 977 618 618
q20 503 488 388 388
q21 2495 1799 1749 1749
q22 361 317 271 271
Total cold run time: 102123 ms
Total hot run time: 30123 ms
----- Round 2, with runtime_filter_mode=off -----
q1 4386 4343 4352 4343
q2 254 341 255 255
q3 2073 2665 2235 2235
q4 1337 1729 1302 1302
q5 4260 4169 4275 4169
q6 220 177 133 133
q7 1850 1803 1673 1673
q8 2465 2636 2463 2463
q9 7623 7490 7516 7490
q10 2798 3012 2750 2750
q11 545 503 494 494
q12 670 756 687 687
q13 3885 4312 3437 3437
q14 309 424 319 319
q15 926 926 826 826
q16 676 709 657 657
q17 1127 1383 1374 1374
q18 8154 7779 8057 7779
q19 878 865 954 865
q20 2134 2105 1998 1998
q21 4745 4494 3988 3988
q22 595 581 513 513
Total cold run time: 51910 ms
Total hot run time: 49750 ms
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3863928862
run buildall
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3855907466
<details>
<summary>TPC-H: <b>Total hot run time: 31175 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit b5936af5b0d0bacb601de1486dc59922c6d1dd7c, data reload: false
------ Round 1 ----------------------------------
q1 17635 4476 4297 4297
q2 2027 380 250 250
q3 10117 1298 744 744
q4 10232 821 321 321
q5 8238 2171 1893 1893
q6 231 177 145 145
q7 881 729 585 585
q8 9286 1402 1086 1086
q9 5372 4848 4837 4837
q10 6835 1928 1564 1564
q11 501 298 267 267
q12 388 375 216 216
q13 17819 4096 3262 3262
q14 236 233 215 215
q15 920 813 800 800
q16 694 668 632 632
q17 770 798 476 476
q18 6985 6521 6543 6521
q19 1442 976 615 615
q20 379 352 233 233
q21 2605 2030 1937 1937
q22 351 314 279 279
Total cold run time: 103944 ms
Total hot run time: 31175 ms
----- Round 2, with runtime_filter_mode=off -----
q1 4445 4373 4335 4335
q2 248 336 261 261
q3 2129 2593 2229 2229
q4 1338 1732 1298 1298
q5 4268 4119 4237 4119
q6 214 185 137 137
q7 1866 1825 2038 1825
q8 2632 2556 2516 2516
q9 7519 7481 7539 7481
q10 2877 3130 2632 2632
q11 574 470 488 470
q12 673 739 615 615
q13 3827 4727 3645 3645
q14 291 302 282 282
q15 890 819 863 819
q16 704 734 697 697
q17 1199 1402 1343 1343
q18 8346 7946 7747 7747
q19 907 851 835 835
q20 2059 2156 2006 2006
q21 4707 4330 4084 4084
q22 563 560 500 500
Total cold run time: 52276 ms
Total hot run time: 49876 ms
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3861185926
run buildall
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3848690222
run buildall
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3867429588
<details>
<summary>ClickBench: <b>Total hot run time: 28.27 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 61dd2305a527e359954f74e8d5c07d28b445c4e7, data reload: false
query1 0.05 0.04 0.05
query2 0.09 0.05 0.05
query3 0.26 0.08 0.08
query4 1.60 0.11 0.11
query5 0.26 0.25 0.25
query6 1.16 0.67 0.67
query7 0.03 0.02 0.02
query8 0.06 0.04 0.04
query9 0.56 0.50 0.50
query10 0.54 0.56 0.55
query11 0.13 0.09 0.10
query12 0.14 0.10 0.10
query13 0.63 0.61 0.62
query14 1.06 1.06 1.05
query15 0.89 0.86 0.88
query16 0.41 0.39 0.38
query17 1.12 1.12 1.13
query18 0.22 0.20 0.21
query19 2.05 2.02 2.05
query20 0.02 0.01 0.02
query21 15.41 0.27 0.15
query22 5.36 0.05 0.05
query23 16.10 0.27 0.11
query24 1.32 0.76 0.20
query25 0.11 0.09 0.07
query26 0.14 0.14 0.13
query27 0.06 0.05 0.05
query28 4.43 1.14 0.97
query29 12.57 3.92 3.16
query30 0.27 0.13 0.11
query31 2.81 0.66 0.41
query32 3.24 0.58 0.51
query33 3.29 3.25 3.24
query34 16.44 5.43 4.74
query35 4.82 4.78 4.80
query36 0.66 0.50 0.48
query37 0.11 0.07 0.06
query38 0.07 0.04 0.04
query39 0.04 0.02 0.02
query40 0.18 0.17 0.15
query41 0.09 0.03 0.04
query42 0.05 0.03 0.03
query43 0.05 0.04 0.03
Total cold run time: 98.9 s
Total hot run time: 28.27 s
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3857547849
run p0 5
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3858731484
<details>
<summary>TPC-H: <b>Total hot run time: 30809 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 6ae78f1afa51081a546188e0c923f77bd2f568c1, data reload: false
------ Round 1 ----------------------------------
q1 17639 4506 4301 4301
q2 2006 363 271 271
q3 10129 1363 740 740
q4 10252 768 309 309
q5 8313 2253 1909 1909
q6 227 179 147 147
q7 916 744 635 635
q8 9272 1405 1221 1221
q9 4905 4659 4695 4659
q10 6876 1938 1553 1553
q11 529 310 294 294
q12 404 377 229 229
q13 17782 4037 3191 3191
q14 233 247 219 219
q15 881 812 808 808
q16 664 680 620 620
q17 880 878 469 469
q18 6546 6001 6459 6001
q19 1576 1027 670 670
q20 567 534 395 395
q21 2755 2012 1873 1873
q22 361 347 295 295
Total cold run time: 103713 ms
Total hot run time: 30809 ms
----- Round 2, with runtime_filter_mode=off -----
q1 4671 4675 5774 4675
q2 286 359 266 266
q3 2352 2944 2478 2478
q4 1439 1871 1428 1428
q5 4611 4502 4581 4502
q6 222 190 137 137
q7 2052 1871 1806 1806
q8 2570 2503 2425 2425
q9 7421 7296 7465 7296
q10 2976 3012 2581 2581
q11 645 549 457 457
q12 666 744 602 602
q13 3793 4137 3210 3210
q14 268 293 265 265
q15 828 797 778 778
q16 648 688 637 637
q17 1093 1296 1323 1296
q18 7507 7206 7290 7206
q19 846 803 781 781
q20 2009 2038 1866 1866
q21 4472 4245 4166 4166
q22 586 546 587 546
Total cold run time: 51961 ms
Total hot run time: 49404 ms
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Doc load opt [doris]
Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3867175961
run buildall
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [opt](variant) Optimize VARIANT doc mode load/compaction and add benchmarks [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3869975032
PR approved by anyone and no changes requested.
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [opt](variant) Optimize VARIANT doc mode load/compaction and add benchmarks [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3871852702
# BE Regression && UT Coverage Report
Increment line coverage `87.52% (449/513)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/60511_afbdddea56e078b3e96485ea734f6937f6650f4a_merge/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/60511_afbdddea56e078b3e96485ea734f6937f6650f4a_merge/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 73.36% (26518/36150) |
| Line Coverage | 56.37% (281276/498941) |
| Region Coverage | 53.88% (234827/435834) |
| Branch Coverage | 55.61% (101161/181919) |
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [opt](variant) Optimize VARIANT doc mode load/compaction and add benchmarks [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60511:
URL: https://github.com/apache/doris/pull/60511#issuecomment-3869886839
<details>
<summary>ClickBench: <b>Total hot run time: 28.7 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit e80457f76fb5655cc4dc91fdea69dd53199b508e, data reload: false
query1 0.05 0.05 0.04
query2 0.10 0.05 0.05
query3 0.26 0.09 0.09
query4 1.60 0.11 0.11
query5 0.27 0.25 0.26
query6 1.17 0.67 0.68
query7 0.03 0.02 0.02
query8 0.05 0.04 0.04
query9 0.61 0.51 0.50
query10 0.55 0.55 0.55
query11 0.14 0.10 0.10
query12 0.14 0.11 0.11
query13 0.65 0.62 0.62
query14 1.08 1.07 1.06
query15 0.89 0.87 0.89
query16 0.40 0.40 0.40
query17 1.17 1.17 1.19
query18 0.23 0.22 0.21
query19 2.02 2.03 2.10
query20 0.02 0.01 0.01
query21 15.40 0.25 0.15
query22 5.16 0.06 0.05
query23 15.89 0.30 0.11
query24 0.94 0.38 0.45
query25 0.07 0.13 0.08
query26 0.14 0.13 0.14
query27 0.05 0.09 0.08
query28 3.96 1.14 0.97
query29 12.56 3.94 3.18
query30 0.27 0.14 0.12
query31 2.80 0.64 0.41
query32 3.23 0.59 0.49
query33 3.19 3.25 3.31
query34 16.48 5.42 4.75
query35 4.81 4.76 4.81
query36 0.65 0.51 0.49
query37 0.11 0.07 0.07
query38 0.08 0.05 0.04
query39 0.05 0.03 0.03
query40 0.20 0.16 0.16
query41 0.09 0.04 0.03
query42 0.05 0.03 0.03
query43 0.04 0.04 0.04
Total cold run time: 97.65 s
Total hot run time: 28.7 s
```
</details>
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org