Skip to content

Commit 39db681

Browse files
Merge branch 'master' into handle-empty-block-size
2 parents 115b8ab + c69c996 commit 39db681

File tree

463 files changed

+23824
-4843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

463 files changed

+23824
-4843
lines changed

.asf.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ github:
140140
strict: false
141141
contexts:
142142
- License Check
143-
- Clang Formatter
144143
- CheckStyle
145144
- Build Broker
146145
- Build Third Party Libraries (Linux)

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ lru_cache_test
137137
docker/thirdparties/docker-compose/*/data
138138
docker/thirdparties/docker-compose/*/logs
139139
docker/thirdparties/docker-compose/*/*.yaml
140+
docker/thirdparties/docker-compose/*/*.env
141+
docker/thirdparties/docker-compose/*/cache/
142+
docker/thirdparties/docker-compose/*/scripts/SUCCESS
140143
docker/runtime/be/resource/apache-doris/
141144

142145
# other

.licenserc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ header:
4444
- "**/*.parquet"
4545
- "docs/.markdownlintignore"
4646
- "fe/fe-core/src/test/resources/data/net_snmp_normal"
47+
- "fe/fe-core/src/main/java/software/amazon/awssdk/core/client/builder/SdkDefaultClientBuilder.java"
4748
- "fe/fe-core/src/main/antlr4/org/apache/doris/nereids/JavaLexer.g4"
4849
- "fe/fe-core/src/main/antlr4/org/apache/doris/nereids/JavaParser.g4"
4950
- "be/dict/ik/*"

LICENSE.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,13 @@
202202

203203
--------------------------------------------------------------------------------
204204

205+
The following components are provided under the Apache License. See project link for details.
206+
The text of each license is the standard Apache 2.0 license.
207+
208+
software.amazon.awssdk.core.client.builder.SdkDefaultClientBuilder from AWS SDK v2 (sdk-core 2.29.52)
209+
210+
--------------------------------------------------------------------------------
211+
205212
be/src/common/status.* : BSD-style license
206213

207214
Copyright (c) 2011 The LevelDB Authors. All rights reserved.

NOTICE.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,33 @@ its NOTICE file:
5252
This product includes cryptographic software written by Eric Young
5353
([email protected]). This product includes software written by Tim
5454
55+
56+
--------------------------------------------------------------------------------
57+
This product includes code from AWS SDK, which includes the following in
58+
its NOTICE file:
59+
60+
AWS SDK for Java 2.0
61+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
62+
63+
This product includes software developed by
64+
Amazon Technologies, Inc (http://www.amazon.com/).
65+
66+
**********************
67+
THIRD PARTY COMPONENTS
68+
**********************
69+
This software includes third party software subject to the following copyrights:
70+
- XML parsing and utility functions from JetS3t - Copyright 2006-2009 James Murty.
71+
- PKCS#1 PEM encoded private key parsing and utility functions from oauth.googlecode.com - Copyright 1998-2010 AOL Inc.
72+
- Apache Commons Lang - https://github.com/apache/commons-lang
73+
- Netty Reactive Streams - https://github.com/playframework/netty-reactive-streams
74+
- Jackson-core - https://github.com/FasterXML/jackson-core
75+
- Jackson-dataformat-cbor - https://github.com/FasterXML/jackson-dataformats-binary
76+
77+
The licenses for these third party components are included in LICENSE.txt
78+
79+
- For Apache Commons Lang see also this required NOTICE:
80+
Apache Commons Lang
81+
Copyright 2001-2020 The Apache Software Foundation
82+
83+
This product includes software developed at
84+
The Apache Software Foundation (https://www.apache.org/).

be/src/common/exception.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ Exception::Exception(int code, const std::string_view& msg, bool from_status) {
4848
// std::cout << "Exception: " << code << ", " << msg << ", " << get_stack_trace(0, "DISABLED")
4949
// << std::endl;
5050
#endif
51+
52+
fmt::memory_buffer buf;
53+
fmt::format_to(buf, "[E{}] {}", _code, _err_msg->_msg);
54+
if (!_err_msg->_stack.empty()) {
55+
fmt::format_to(buf, "\n{}", _err_msg->_stack);
56+
}
57+
_cache_string = fmt::to_string(buf);
58+
5159
if (config::exit_on_exception) {
5260
LOG(FATAL) << "[ExitOnException] error code: " << code << ", message: " << msg;
5361
}

be/src/common/exception.h

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ class Exception : public std::exception {
4646
int code() const { return _code; }
4747
std::string message() const { return _err_msg ? _err_msg->_msg : ""; }
4848

49-
const std::string& to_string() const;
49+
const std::string& to_string() const { return _cache_string; }
5050

51-
const char* what() const noexcept override { return to_string().c_str(); }
51+
const char* what() const noexcept override { return _cache_string.c_str(); }
5252

5353
Status to_status() const { return {code(), _err_msg->_msg, _err_msg->_stack}; }
5454

@@ -61,22 +61,8 @@ class Exception : public std::exception {
6161
std::string _stack;
6262
};
6363
std::unique_ptr<ErrMsg> _err_msg;
64-
mutable std::string _cache_string;
64+
std::string _cache_string {};
6565
};
66-
67-
inline const std::string& Exception::to_string() const {
68-
if (!_cache_string.empty()) {
69-
return _cache_string;
70-
}
71-
fmt::memory_buffer buf;
72-
fmt::format_to(buf, "[E{}] {}", _code, _err_msg ? _err_msg->_msg : "");
73-
if (_err_msg && !_err_msg->_stack.empty()) {
74-
fmt::format_to(buf, "\n{}", _err_msg->_stack);
75-
}
76-
_cache_string = fmt::to_string(buf);
77-
return _cache_string;
78-
}
79-
8066
} // namespace doris
8167

8268
#define RETURN_IF_CATCH_EXCEPTION(stmt) \

be/src/exec/olap_utils.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,23 +104,23 @@ inline SQLFilterOp to_olap_filter_type(TExprOpcode::type type, bool opposite) {
104104
return FILTER_IN;
105105
}
106106

107-
inline SQLFilterOp to_olap_filter_type(const std::string& function_name, bool opposite) {
107+
inline SQLFilterOp to_olap_filter_type(const std::string& function_name) {
108108
if (function_name == "lt") {
109-
return opposite ? FILTER_LARGER : FILTER_LESS;
109+
return FILTER_LESS;
110110
} else if (function_name == "gt") {
111-
return opposite ? FILTER_LESS : FILTER_LARGER;
111+
return FILTER_LARGER;
112112
} else if (function_name == "le") {
113-
return opposite ? FILTER_LARGER_OR_EQUAL : FILTER_LESS_OR_EQUAL;
113+
return FILTER_LESS_OR_EQUAL;
114114
} else if (function_name == "ge") {
115-
return opposite ? FILTER_LESS_OR_EQUAL : FILTER_LARGER_OR_EQUAL;
115+
return FILTER_LARGER_OR_EQUAL;
116116
} else if (function_name == "eq") {
117-
return opposite ? FILTER_NOT_IN : FILTER_IN;
117+
return FILTER_IN;
118118
} else if (function_name == "ne") {
119-
return opposite ? FILTER_IN : FILTER_NOT_IN;
119+
return FILTER_NOT_IN;
120120
} else if (function_name == "in") {
121-
return opposite ? FILTER_NOT_IN : FILTER_IN;
121+
return FILTER_IN;
122122
} else if (function_name == "not_in") {
123-
return opposite ? FILTER_IN : FILTER_NOT_IN;
123+
return FILTER_NOT_IN;
124124
} else {
125125
DCHECK(false) << "Function Name: " << function_name;
126126
return FILTER_IN;

be/src/exec/schema_scanner/schema_routine_load_job_scanner.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ std::vector<SchemaScanner::ColumnDesc> SchemaRoutineLoadJobScanner::_s_tbls_colu
5656
{"USER_NAME", TYPE_STRING, sizeof(StringRef), true},
5757
{"CURRENT_ABORT_TASK_NUM", TYPE_INT, sizeof(int32_t), true},
5858
{"IS_ABNORMAL_PAUSE", TYPE_BOOLEAN, sizeof(int8_t), true},
59+
{"COMPUTE_GROUP", TYPE_STRING, sizeof(StringRef), true},
5960
};
6061

6162
SchemaRoutineLoadJobScanner::SchemaRoutineLoadJobScanner()
@@ -173,6 +174,9 @@ Status SchemaRoutineLoadJobScanner::_fill_block_impl(vectorized::Block* block) {
173174
case 17: // USER_NAME
174175
column_value = job_info.__isset.user_name ? job_info.user_name : "";
175176
break;
177+
case 20: // COMPUTE_GROUP
178+
column_value = job_info.__isset.compute_group ? job_info.compute_group : "";
179+
break;
176180
}
177181

178182
str_refs[row_idx] =

be/src/exprs/create_predicate_function.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,13 @@ std::shared_ptr<ColumnPredicate> create_olap_column_predicate(
268268
const TabletColumn* column, bool) {
269269
// currently only support like predicate
270270
if constexpr (PT == TYPE_CHAR) {
271-
return LikeColumnPredicate<TYPE_CHAR>::create_shared(
272-
filter->_opposite, column_id, filter->_fn_ctx, filter->_string_param);
271+
return LikeColumnPredicate<TYPE_CHAR>::create_shared(filter->_opposite, column_id,
272+
column->name(), filter->_fn_ctx,
273+
filter->_string_param);
273274
} else if constexpr (PT == TYPE_VARCHAR || PT == TYPE_STRING) {
274-
return LikeColumnPredicate<TYPE_STRING>::create_shared(
275-
filter->_opposite, column_id, filter->_fn_ctx, filter->_string_param);
275+
return LikeColumnPredicate<TYPE_STRING>::create_shared(filter->_opposite, column_id,
276+
column->name(), filter->_fn_ctx,
277+
filter->_string_param);
276278
}
277279
throw Exception(ErrorCode::INTERNAL_ERROR, "function filter do not support type {}", PT);
278280
}

0 commit comments

Comments
 (0)