Skip to content

Commit f5784fe

Browse files
authored
Merge branch 'master' into fix/stale-version-count-bug
2 parents abe9e9e + 54fff1b commit f5784fe

491 files changed

Lines changed: 18119 additions & 2521 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
#
18+
---
19+
name: Dependency License Review
20+
on:
21+
pull_request:
22+
types: [opened, synchronize, reopened]
23+
permissions:
24+
contents: read
25+
jobs:
26+
dependency-review:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: 'Checkout Repository'
30+
uses: actions/checkout@v5
31+
- name: Dependency Review
32+
uses: actions/dependency-review-action@v4
33+
with:
34+
# Possible values: "critical", "high", "moderate", "low"
35+
fail-on-severity: moderate
36+
# You can only include one of these two options: `allow-licenses` and `deny-licenses`
37+
# ([String]). Only allow these licenses (optional)
38+
# Possible values: Any SPDX-compliant license identifiers or expressions from https://spdx.org/licenses/
39+
allow-licenses: BSD-2-Clause, BSD-3-Clause, MIT, Apache-2.0, EPL-2.0, MPL-2.0, CC0-1.0
40+
#allow-ghsas: GHSA-abcd-1234-5679, GHSA-efgh-1234-5679
41+
# ([String]). Block pull requests that introduce vulnerabilities in the scopes that match this list (optional)
42+
# Possible values: "development", "runtime", "unknown"
43+
fail-on-scopes: development, runtime

be/src/cloud/cloud_rowset_builder.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ CloudRowsetBuilder::CloudRowsetBuilder(CloudStorageEngine& engine, const WriteRe
3131
RuntimeProfile* profile)
3232
: BaseRowsetBuilder(req, profile), _engine(engine) {}
3333

34-
CloudRowsetBuilder::~CloudRowsetBuilder() = default;
34+
CloudRowsetBuilder::~CloudRowsetBuilder() {
35+
// Clear file cache immediately when load fails
36+
if (_is_init && _rowset != nullptr && _rowset->rowset_meta()->rowset_state() == PREPARED) {
37+
_rowset->clear_cache();
38+
}
39+
}
3540

3641
Status CloudRowsetBuilder::init() {
3742
_tablet = DORIS_TRY(_engine.get_tablet(_req.tablet_id));

be/src/cloud/cloud_tablet.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
#include "olap/txn_manager.h"
6363
#include "util/debug_points.h"
6464
#include "util/stack_util.h"
65-
#include "vec/common/schema_util.h"
6665

6766
namespace doris {
6867
#include "common/compile_check_begin.h"

be/src/common/consts.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const std::string ROW_STORE_COL = "__DORIS_ROW_STORE_COL__";
3030
const std::string DYNAMIC_COLUMN_NAME = "__DORIS_DYNAMIC_COL__";
3131
const std::string PARTIAL_UPDATE_AUTO_INC_COL = "__PARTIAL_UPDATE_AUTO_INC_COLUMN__";
3232
const std::string VIRTUAL_COLUMN_PREFIX = "__DORIS_VIRTUAL_COL__";
33-
const std::string SPARSE_COLUMN_PATH = "__DORIS_VARIANT_SPARSE__";
3433

3534
/// The maximum precision representable by a 4-byte decimal (Decimal4Value)
3635
constexpr int MAX_DECIMAL32_PRECISION = 9;

be/src/http/action/stream_load_forward_handler.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ namespace doris {
3232
#include "common/compile_check_begin.h"
3333

3434
int StreamLoadForwardHandler::on_header(HttpRequest* req) {
35-
std::ostringstream headers_info;
36-
const auto& headers = req->headers();
37-
for (const auto& header : headers) {
38-
headers_info << header.first << ":" << header.second << " ";
39-
}
40-
4135
std::ostringstream params_info;
4236
const auto* params = req->params();
4337
for (const auto& param : *params) {
@@ -46,7 +40,7 @@ int StreamLoadForwardHandler::on_header(HttpRequest* req) {
4640

4741
LOG(INFO) << "StreamLoadForward request started - "
4842
<< "path: " << req->raw_path() << ", remote: " << req->remote_host() << ", headers: ["
49-
<< headers_info.str() << "]"
43+
<< req->get_all_headers() << "]"
5044
<< ", params: [" << params_info.str() << "]";
5145

5246
std::shared_ptr<StreamLoadForwardContext> ctx(new StreamLoadForwardContext());

be/src/http/http_request.cpp

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <utility>
3030

3131
#include "http/http_handler.h"
32+
#include "http/http_headers.h"
3233
#include "runtime/stream_load/stream_load_context.h"
3334
#include "util/stack_util.h"
3435

@@ -87,7 +88,12 @@ std::string HttpRequest::debug_string() const {
8788
<< "raw_path:" << _raw_path << "\n"
8889
<< "headers: \n";
8990
for (auto& iter : _headers) {
90-
ss << "key=" << iter.first << ", value=" << iter.second << "\n";
91+
if (iequal(iter.first, HttpHeaders::AUTHORIZATION) ||
92+
iequal(iter.first, HttpHeaders::PROXY_AUTHORIZATION)) {
93+
ss << "key=" << iter.first << ", value=***MASKED***\n";
94+
} else {
95+
ss << "key=" << iter.first << ", value=" << iter.second << "\n";
96+
}
9197
}
9298
ss << "params: \n";
9399
for (auto& iter : _params) {
@@ -116,7 +122,13 @@ const std::string& HttpRequest::param(const std::string& key) const {
116122
std::string HttpRequest::get_all_headers() const {
117123
std::stringstream headers;
118124
for (const auto& header : _headers) {
119-
headers << header.first << ":" << header.second + ", ";
125+
// Mask sensitive headers
126+
if (iequal(header.first, HttpHeaders::AUTHORIZATION) ||
127+
iequal(header.first, HttpHeaders::PROXY_AUTHORIZATION)) {
128+
headers << header.first << ":***MASKED***, ";
129+
} else {
130+
headers << header.first << ":" << header.second + ", ";
131+
}
120132
}
121133
return headers.str();
122134
}

be/src/olap/base_tablet.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
#include "util/doris_metrics.h"
5555
#include "util/key_util.h"
5656
#include "vec/common/assert_cast.h"
57-
#include "vec/common/schema_util.h"
5857
#include "vec/data_types/data_type_factory.hpp"
5958
#include "vec/jsonb/serialize.h"
6059

be/src/olap/compaction.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
#include "util/pretty_printer.h"
8383
#include "util/time.h"
8484
#include "util/trace.h"
85-
#include "vec/common/schema_util.h"
85+
#include "vec/common/variant_util.h"
8686

8787
using std::vector;
8888

@@ -371,7 +371,7 @@ Status CompactionMixin::do_compact_ordered_rowsets() {
371371
_output_rowset = _output_rs_writer->manual_build(rowset_meta);
372372

373373
// 2. check variant column path stats
374-
RETURN_IF_ERROR(vectorized::schema_util::VariantCompactionUtil::check_path_stats(
374+
RETURN_IF_ERROR(vectorized::variant_util::VariantCompactionUtil::check_path_stats(
375375
_input_rowsets, _output_rowset, _tablet));
376376
return Status::OK();
377377
}
@@ -422,7 +422,7 @@ Status CompactionMixin::build_basic_info(bool is_ordered_compaction) {
422422
// for ordered compaction, we don't need to extend the schema for variant columns
423423
if (_enable_vertical_compact_variant_subcolumns && !is_ordered_compaction) {
424424
RETURN_IF_ERROR(
425-
vectorized::schema_util::VariantCompactionUtil::get_extended_compaction_schema(
425+
vectorized::variant_util::VariantCompactionUtil::get_extended_compaction_schema(
426426
_input_rowsets, _cur_tablet_schema));
427427
}
428428
return Status::OK();
@@ -1424,7 +1424,7 @@ Status Compaction::check_correctness() {
14241424
_output_rowset->num_rows());
14251425
}
14261426
// 2. check variant column path stats
1427-
RETURN_IF_ERROR(vectorized::schema_util::VariantCompactionUtil::check_path_stats(
1427+
RETURN_IF_ERROR(vectorized::variant_util::VariantCompactionUtil::check_path_stats(
14281428
_input_rowsets, _output_rowset, _tablet));
14291429
return Status::OK();
14301430
}
@@ -1488,7 +1488,7 @@ Status CloudCompactionMixin::build_basic_info() {
14881488
// so get_extended_compaction_schema will extended the schema for variant columns
14891489
if (_enable_vertical_compact_variant_subcolumns) {
14901490
RETURN_IF_ERROR(
1491-
vectorized::schema_util::VariantCompactionUtil::get_extended_compaction_schema(
1491+
vectorized::variant_util::VariantCompactionUtil::get_extended_compaction_schema(
14921492
_input_rowsets, _cur_tablet_schema));
14931493
}
14941494
return Status::OK();

be/src/olap/olap_common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ struct OlapReaderStatistics {
448448
int64_t variant_subtree_leaf_iter_count = 0;
449449
int64_t variant_subtree_hierarchical_iter_count = 0;
450450
int64_t variant_subtree_sparse_iter_count = 0;
451+
int64_t variant_doc_value_column_iter_count = 0;
451452
};
452453

453454
using ColumnId = uint32_t;

be/src/olap/rowset/beta_rowset_writer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
#include "util/stopwatch.hpp"
6060
#include "util/time.h"
6161
#include "vec/columns/column.h"
62-
#include "vec/common/schema_util.h"
6362
#include "vec/core/block.h"
6463
#include "vec/data_types/data_type_factory.hpp"
6564

0 commit comments

Comments
 (0)