-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into enhancement_nereids_kill-query-support-union
- Loading branch information
Showing
3,357 changed files
with
132,305 additions
and
24,489 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// 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 <benchmark/benchmark.h> | ||
|
||
#include <string> | ||
|
||
#include "vec/columns/column_string.h" | ||
#include "vec/core/block.h" | ||
#include "vec/data_types/data_type.h" | ||
#include "vec/data_types/data_type_string.h" | ||
|
||
namespace doris::vectorized { // change if need | ||
|
||
static void Example1(benchmark::State& state) { | ||
// init. dont time it. | ||
state.PauseTiming(); | ||
Block block; | ||
DataTypePtr str_type = std::make_shared<DataTypeString>(); | ||
std::vector<std::string> vals {100, "content"}; | ||
state.ResumeTiming(); | ||
|
||
// do test | ||
for (auto _ : state) { | ||
auto str_col = ColumnString::create(); | ||
for (auto& v : vals) { | ||
str_col->insert_data(v.data(), v.size()); | ||
} | ||
block.insert({std::move(str_col), str_type, "col"}); | ||
benchmark::DoNotOptimize(block); // mark the watched target | ||
} | ||
} | ||
// could BENCHMARK many functions to compare them together. | ||
BENCHMARK(Example1); | ||
|
||
} // namespace doris::vectorized | ||
|
||
BENCHMARK_MAIN(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule apache-orc
updated
6 files
+2 −4 | c++/src/ColumnReader.cc | |
+39 −12 | c++/src/Reader.cc | |
+10 −10 | c++/src/Statistics.cc | |
+18 −12 | c++/src/sargs/PredicateLeaf.cc | |
+9 −6 | c++/test/TestStripeIndexStatistics.cc | |
+21 −21 | tools/test/TestFileStatistics.cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.