diff --git a/be/src/exec/analytic_eval_node.cpp b/be/src/exec/analytic_eval_node.cpp index d7d8726267..43e193d0ab 100644 --- a/be/src/exec/analytic_eval_node.cpp +++ b/be/src/exec/analytic_eval_node.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/analytic-eval-node.cc +// and modified by Doris #include "exec/analytic_eval_node.h" diff --git a/be/src/exec/analytic_eval_node.h b/be/src/exec/analytic_eval_node.h index 0c3863eba7..b0a0aed5d6 100644 --- a/be/src/exec/analytic_eval_node.h +++ b/be/src/exec/analytic_eval_node.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/analytic-eval-node.h +// and modified by Doris #ifndef INF_DORIS_BE_SRC_EXEC_ANALYTIC_EVAL_NODE_H #define INF_DORIS_BE_SRC_EXEC_ANALYTIC_EVAL_NODE_H diff --git a/be/src/exec/blocking_join_node.cpp b/be/src/exec/blocking_join_node.cpp index 432606c5c6..ce93dc2c5c 100644 --- a/be/src/exec/blocking_join_node.cpp +++ b/be/src/exec/blocking_join_node.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/blocking-join-node.cc +// and modified by Doris #include "exec/blocking_join_node.h" diff --git a/be/src/exec/blocking_join_node.h b/be/src/exec/blocking_join_node.h index f5ae609791..f3efe00eb2 100644 --- a/be/src/exec/blocking_join_node.h +++ b/be/src/exec/blocking_join_node.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/blocking-join-node.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXEC_BLOCKING_JOIN_NODE_H #define DORIS_BE_SRC_QUERY_EXEC_BLOCKING_JOIN_NODE_H diff --git a/be/src/exec/data_sink.cpp b/be/src/exec/data_sink.cpp index 5a4eba9f1d..f94056036d 100644 --- a/be/src/exec/data_sink.cpp +++ b/be/src/exec/data_sink.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/data-sink.cc +// and modified by Doris #include "exec/data_sink.h" diff --git a/be/src/exec/data_sink.h b/be/src/exec/data_sink.h index fcec10aed8..311db12a67 100644 --- a/be/src/exec/data_sink.h +++ b/be/src/exec/data_sink.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/data-sink.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXEC_DATA_SINK_H #define DORIS_BE_SRC_QUERY_EXEC_DATA_SINK_H diff --git a/be/src/exec/empty_set_node.cpp b/be/src/exec/empty_set_node.cpp index b03ff33b8f..f4f5847417 100644 --- a/be/src/exec/empty_set_node.cpp +++ b/be/src/exec/empty_set_node.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/empty-set-node.cpp +// and modified by Doris #include "exec/empty_set_node.h" diff --git a/be/src/exec/empty_set_node.h b/be/src/exec/empty_set_node.h index d31dd2ee16..3739a25a96 100644 --- a/be/src/exec/empty_set_node.h +++ b/be/src/exec/empty_set_node.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/empty-set-node.h +// and modified by Doris #pragma once diff --git a/be/src/exec/exchange_node.cpp b/be/src/exec/exchange_node.cpp index d79170f912..53473f90a2 100644 --- a/be/src/exec/exchange_node.cpp +++ b/be/src/exec/exchange_node.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/exchange-node.cc +// and modified by Doris #include "exec/exchange_node.h" diff --git a/be/src/exec/exchange_node.h b/be/src/exec/exchange_node.h index eb07e86bd6..8b3ab2e995 100644 --- a/be/src/exec/exchange_node.h +++ b/be/src/exec/exchange_node.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/exchange-node.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXEC_EXCHANGE_NODE_H #define DORIS_BE_SRC_QUERY_EXEC_EXCHANGE_NODE_H diff --git a/be/src/exec/exec_node.cpp b/be/src/exec/exec_node.cpp index 2b7855e493..2ff50229dc 100644 --- a/be/src/exec/exec_node.cpp +++ b/be/src/exec/exec_node.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/exec-node.cpp +// and modified by Doris #include "exec/exec_node.h" diff --git a/be/src/exec/exec_node.h b/be/src/exec/exec_node.h index 665d1c9d6c..1e653024f2 100644 --- a/be/src/exec/exec_node.h +++ b/be/src/exec/exec_node.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/exec-node.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXEC_EXEC_NODE_H #define DORIS_BE_SRC_QUERY_EXEC_EXEC_NODE_H diff --git a/be/src/exec/hash_join_node.cpp b/be/src/exec/hash_join_node.cpp index a4964f45ec..1ee401fe51 100644 --- a/be/src/exec/hash_join_node.cpp +++ b/be/src/exec/hash_join_node.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/hash-join-node.cc +// and modified by Doris #include "exec/hash_join_node.h" #include diff --git a/be/src/exec/hash_join_node.h b/be/src/exec/hash_join_node.h index 8c914fa447..3e654c033c 100644 --- a/be/src/exec/hash_join_node.h +++ b/be/src/exec/hash_join_node.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/hash-join-node.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXEC_HASH_JOIN_NODE_H #define DORIS_BE_SRC_QUERY_EXEC_HASH_JOIN_NODE_H diff --git a/be/src/exec/hash_table.cpp b/be/src/exec/hash_table.cpp index 9410d7557a..668a2a2242 100644 --- a/be/src/exec/hash_table.cpp +++ b/be/src/exec/hash_table.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/hash-table.cc +// and modified by Doris #include "exec/hash_table.hpp" diff --git a/be/src/exec/hash_table.h b/be/src/exec/hash_table.h index d1bcb13a4c..316f8eede7 100644 --- a/be/src/exec/hash_table.h +++ b/be/src/exec/hash_table.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/hash-table.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXEC_HASH_TABLE_H #define DORIS_BE_SRC_QUERY_EXEC_HASH_TABLE_H diff --git a/be/src/exec/hash_table.hpp b/be/src/exec/hash_table.hpp index b9deac5cc6..58d187ebaa 100644 --- a/be/src/exec/hash_table.hpp +++ b/be/src/exec/hash_table.hpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/hash-table.hpp +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXEC_HASH_TABLE_HPP #define DORIS_BE_SRC_QUERY_EXEC_HASH_TABLE_HPP diff --git a/be/src/exec/merge_node.cpp b/be/src/exec/merge_node.cpp index 816993aa1d..5fe2259059 100644 --- a/be/src/exec/merge_node.cpp +++ b/be/src/exec/merge_node.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/cloudera/Impala/blob/v0.7refresh/be/src/exec/merge-node.cc +// and modified by Doris #include "exec/merge_node.h" diff --git a/be/src/exec/merge_node.h b/be/src/exec/merge_node.h index a81ece1b22..ea93da49ba 100644 --- a/be/src/exec/merge_node.h +++ b/be/src/exec/merge_node.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/cloudera/Impala/blob/v0.7refresh/be/src/exec/merge-node.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXEC_MERGE_NODE_H #define DORIS_BE_SRC_QUERY_EXEC_MERGE_NODE_H diff --git a/be/src/exec/partitioned_aggregation_node.cc b/be/src/exec/partitioned_aggregation_node.cc index 3108b38d08..80b8d49764 100644 --- a/be/src/exec/partitioned_aggregation_node.cc +++ b/be/src/exec/partitioned_aggregation_node.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/partitioned-aggregation-node.cc +// and modified by Doris #include "exec/partitioned_aggregation_node.h" diff --git a/be/src/exec/partitioned_aggregation_node.h b/be/src/exec/partitioned_aggregation_node.h index e77a1366fe..437524638f 100644 --- a/be/src/exec/partitioned_aggregation_node.h +++ b/be/src/exec/partitioned_aggregation_node.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/partitioned-aggregation-node.h +// and modified by Doris #ifndef DORIS_BE_SRC_EXEC_NEW_PARTITIONED_AGGREGATION_NODE_H #define DORIS_BE_SRC_EXEC_NEW_PARTITIONED_AGGREGATION_NODE_H diff --git a/be/src/exec/partitioned_hash_table.cc b/be/src/exec/partitioned_hash_table.cc index 34294cb82c..d27f562cb2 100644 --- a/be/src/exec/partitioned_hash_table.cc +++ b/be/src/exec/partitioned_hash_table.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/partitioned-hash-table.cc +// and modified by Doris #include diff --git a/be/src/exec/partitioned_hash_table.h b/be/src/exec/partitioned_hash_table.h index 80007617d8..26da88a2ab 100644 --- a/be/src/exec/partitioned_hash_table.h +++ b/be/src/exec/partitioned_hash_table.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/partitioned-hash-table.h +// and modified by Doris #ifndef DORIS_BE_SRC_EXEC_NEW_PARTITIONED_HASH_TABLE_H #define DORIS_BE_SRC_EXEC_NEW_PARTITIONED_HASH_TABLE_H diff --git a/be/src/exec/partitioned_hash_table.inline.h b/be/src/exec/partitioned_hash_table.inline.h index b79c40be51..ea6b82ead0 100644 --- a/be/src/exec/partitioned_hash_table.inline.h +++ b/be/src/exec/partitioned_hash_table.inline.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/partitioned-hash-table.inline.h +// and modified by Doris #ifndef DORIS_BE_SRC_EXEC_NEW_PARTITIONED_HASH_TABLE_INLINE_H #define DORIS_BE_SRC_EXEC_NEW_PARTITIONED_HASH_TABLE_INLINE_H diff --git a/be/src/exec/row_batch_list.h b/be/src/exec/row_batch_list.h index c5503c444b..a655d6ca0e 100644 --- a/be/src/exec/row_batch_list.h +++ b/be/src/exec/row_batch_list.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/row-batch-list.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXEC_ROW_BATCH_LIST_H #define DORIS_BE_SRC_QUERY_EXEC_ROW_BATCH_LIST_H diff --git a/be/src/exec/scan_node.cpp b/be/src/exec/scan_node.cpp index 9f3e9cadb7..b05108f29d 100644 --- a/be/src/exec/scan_node.cpp +++ b/be/src/exec/scan_node.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/scan-node.cpp +// and modified by Doris #include "exec/scan_node.h" diff --git a/be/src/exec/scan_node.h b/be/src/exec/scan_node.h index 9808b874e6..92c8ac3efb 100644 --- a/be/src/exec/scan_node.h +++ b/be/src/exec/scan_node.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/scan-node.h +// and modified by Doris #pragma once diff --git a/be/src/exec/select_node.cpp b/be/src/exec/select_node.cpp index 4cef98f504..c21d6bc9ba 100644 --- a/be/src/exec/select_node.cpp +++ b/be/src/exec/select_node.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/select-node.cpp +// and modified by Doris #include "exec/select_node.h" diff --git a/be/src/exec/select_node.h b/be/src/exec/select_node.h index 91c723ae88..21b2ffacb0 100644 --- a/be/src/exec/select_node.h +++ b/be/src/exec/select_node.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/select-node.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXEC_SELECT_NODE_H #define DORIS_BE_SRC_QUERY_EXEC_SELECT_NODE_H diff --git a/be/src/exec/sort_exec_exprs.cpp b/be/src/exec/sort_exec_exprs.cpp index 7eceb1894d..add2b241d7 100644 --- a/be/src/exec/sort_exec_exprs.cpp +++ b/be/src/exec/sort_exec_exprs.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/sort-exec-exprs.cc +// and modified by Doris #include "exec/sort_exec_exprs.h" diff --git a/be/src/exec/sort_exec_exprs.h b/be/src/exec/sort_exec_exprs.h index 898fd0bf08..9e1133193f 100644 --- a/be/src/exec/sort_exec_exprs.h +++ b/be/src/exec/sort_exec_exprs.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/sort-exec-exprs.h +// and modified by Doris #ifndef INF_DORIS_QE_SRC_BE_EXEC_SORT_EXEC_EXPRS_H #define INF_DORIS_QE_SRC_BE_EXEC_SORT_EXEC_EXPRS_H diff --git a/be/src/exec/topn_node.cpp b/be/src/exec/topn_node.cpp index 2707fe4990..73ad4410a1 100644 --- a/be/src/exec/topn_node.cpp +++ b/be/src/exec/topn_node.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/topn-node.cc +// and modified by Doris #include "exec/topn_node.h" diff --git a/be/src/exec/topn_node.h b/be/src/exec/topn_node.h index 5c291471dd..92ff3d35bb 100644 --- a/be/src/exec/topn_node.h +++ b/be/src/exec/topn_node.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/topn-node.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXEC_TOPN_NODE_H #define DORIS_BE_SRC_QUERY_EXEC_TOPN_NODE_H diff --git a/be/src/exec/union_node.cpp b/be/src/exec/union_node.cpp index 8049861c8c..f71135f3ca 100644 --- a/be/src/exec/union_node.cpp +++ b/be/src/exec/union_node.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/union-node.cc +// and modified by Doris #include "exec/union_node.h" diff --git a/be/src/exec/union_node.h b/be/src/exec/union_node.h index a8238ab764..c93c2eb09f 100644 --- a/be/src/exec/union_node.h +++ b/be/src/exec/union_node.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exec/union-node.h +// and modified by Doris #pragma once diff --git a/be/src/exprs/agg_fn.cc b/be/src/exprs/agg_fn.cc index dcecab5867..ca6d41f967 100644 --- a/be/src/exprs/agg_fn.cc +++ b/be/src/exprs/agg_fn.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.10.0/be/src/exprs/agg-fn.h +// and modified by Doris #include "exprs/agg_fn.h" diff --git a/be/src/exprs/agg_fn.h b/be/src/exprs/agg_fn.h index 684c937cce..87083c9484 100644 --- a/be/src/exprs/agg_fn.h +++ b/be/src/exprs/agg_fn.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.10.0/be/src/exprs/agg-fn.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_NEW_EXPRS_AGG_FN_H #define DORIS_BE_SRC_QUERY_NEW_EXPRS_AGG_FN_H diff --git a/be/src/exprs/agg_fn_evaluator.cpp b/be/src/exprs/agg_fn_evaluator.cpp index bf6a5ca0cb..88bf4037aa 100644 --- a/be/src/exprs/agg_fn_evaluator.cpp +++ b/be/src/exprs/agg_fn_evaluator.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/agg-fn-evaluator.cc +// and modified by Doris #if defined(__clang__) #pragma clang diagnostic push diff --git a/be/src/exprs/agg_fn_evaluator.h b/be/src/exprs/agg_fn_evaluator.h index 9ccaa11c6b..bfcc757d29 100644 --- a/be/src/exprs/agg_fn_evaluator.h +++ b/be/src/exprs/agg_fn_evaluator.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/agg-fn-evaluator.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_AGG_FN_EVALUATOR_H #define DORIS_BE_SRC_QUERY_EXPRS_AGG_FN_EVALUATOR_H diff --git a/be/src/exprs/aggregate_functions.cpp b/be/src/exprs/aggregate_functions.cpp index 30ab76eaa3..f3772a6078 100644 --- a/be/src/exprs/aggregate_functions.cpp +++ b/be/src/exprs/aggregate_functions.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/aggregate-functions.cpp +// and modified by Doris // include aggregate_functions.h first to make sure that all need includes is written in header files #include "exprs/aggregate_functions.h" diff --git a/be/src/exprs/aggregate_functions.h b/be/src/exprs/aggregate_functions.h index de96cccf10..eea049cfe1 100644 --- a/be/src/exprs/aggregate_functions.h +++ b/be/src/exprs/aggregate_functions.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/aggregate-functions.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_AGGREGATE_FUNCTIONS_H #define DORIS_BE_SRC_QUERY_EXPRS_AGGREGATE_FUNCTIONS_H diff --git a/be/src/exprs/anyval_util.cpp b/be/src/exprs/anyval_util.cpp index da0d8691ab..778af4a51c 100644 --- a/be/src/exprs/anyval_util.cpp +++ b/be/src/exprs/anyval_util.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/anyval-util.cc +// and modified by Doris #include "exprs/anyval_util.h" diff --git a/be/src/exprs/anyval_util.h b/be/src/exprs/anyval_util.h index 545bce9d4b..cda268af40 100644 --- a/be/src/exprs/anyval_util.h +++ b/be/src/exprs/anyval_util.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/anyval-util.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_ANYVAL_UTIL_H #define DORIS_BE_SRC_QUERY_EXPRS_ANYVAL_UTIL_H diff --git a/be/src/exprs/block_bloom_filter.hpp b/be/src/exprs/block_bloom_filter.hpp index 0179a83126..0995dec02f 100644 --- a/be/src/exprs/block_bloom_filter.hpp +++ b/be/src/exprs/block_bloom_filter.hpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/kudu/blob/master/src/kudu/util/block_bloom_filter.h +// and modified by Doris #pragma once #include "common/status.h" diff --git a/be/src/exprs/block_bloom_filter_avx_impl.cc b/be/src/exprs/block_bloom_filter_avx_impl.cc index ca8ab9544d..a7eb421c57 100644 --- a/be/src/exprs/block_bloom_filter_avx_impl.cc +++ b/be/src/exprs/block_bloom_filter_avx_impl.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/kudu/blob/master/src/kudu/util/block_bloom_filter_avx2.cc +// and modified by Doris #ifdef __AVX2__ @@ -79,4 +82,4 @@ void BlockBloomFilter::or_equal_array_avx2(size_t n, const uint8_t* __restrict__ } } } // namespace doris -#endif \ No newline at end of file +#endif diff --git a/be/src/exprs/block_bloom_filter_impl.cc b/be/src/exprs/block_bloom_filter_impl.cc index 4eda3947e8..ecf644b942 100644 --- a/be/src/exprs/block_bloom_filter_impl.cc +++ b/be/src/exprs/block_bloom_filter_impl.cc @@ -15,6 +15,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/kudu/blob/master/src/kudu/util/block_bloom_filter.cc +// and modified by Doris #ifdef __aarch64__ #include "util/sse2neon.h" diff --git a/be/src/exprs/case_expr.cpp b/be/src/exprs/case_expr.cpp index df3bc64518..6138793a6d 100644 --- a/be/src/exprs/case_expr.cpp +++ b/be/src/exprs/case_expr.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/case-expr.cpp +// and modified by Doris #include "exprs/case_expr.h" diff --git a/be/src/exprs/case_expr.h b/be/src/exprs/case_expr.h index 8bcbc48269..df3a0a3ee9 100644 --- a/be/src/exprs/case_expr.h +++ b/be/src/exprs/case_expr.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/case-expr.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_CASE_EXPR_H #define DORIS_BE_SRC_QUERY_EXPRS_CASE_EXPR_H diff --git a/be/src/exprs/cast_expr.cpp b/be/src/exprs/cast_expr.cpp index e22a3cf639..2393fa8895 100644 --- a/be/src/exprs/cast_expr.cpp +++ b/be/src/exprs/cast_expr.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/cast-expr.cpp +// and modified by Doris #include "exprs/cast_expr.h" diff --git a/be/src/exprs/cast_expr.h b/be/src/exprs/cast_expr.h index 28b3602627..808a9174e2 100644 --- a/be/src/exprs/cast_expr.h +++ b/be/src/exprs/cast_expr.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/cast-expr.h +// and modified by Doris #ifndef DORIS_BE_SRC_EXPRS_CAST_EXPR_H #define DORIS_BE_SRC_EXPRS_CAST_EXPR_H diff --git a/be/src/exprs/cast_functions.cpp b/be/src/exprs/cast_functions.cpp index d5498cd957..5042307621 100644 --- a/be/src/exprs/cast_functions.cpp +++ b/be/src/exprs/cast_functions.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/cast-functions.cpp +// and modified by Doris #include "exprs/cast_functions.h" diff --git a/be/src/exprs/cast_functions.h b/be/src/exprs/cast_functions.h index fa75d7c1cb..ca0af09bc9 100644 --- a/be/src/exprs/cast_functions.h +++ b/be/src/exprs/cast_functions.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/cast-functions.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_CAST_FUNCTIONS_H #define DORIS_BE_SRC_QUERY_EXPRS_CAST_FUNCTIONS_H diff --git a/be/src/exprs/compound_predicate.cpp b/be/src/exprs/compound_predicate.cpp index 01387f5829..63fb04ad89 100644 --- a/be/src/exprs/compound_predicate.cpp +++ b/be/src/exprs/compound_predicate.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/compound-predicate.cc +// and modified by Doris #include "exprs/compound_predicate.h" diff --git a/be/src/exprs/compound_predicate.h b/be/src/exprs/compound_predicate.h index be8fa52878..c6627096f8 100644 --- a/be/src/exprs/compound_predicate.h +++ b/be/src/exprs/compound_predicate.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/compound-predicate.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_COMPOUND_PREDICATE_H #define DORIS_BE_SRC_QUERY_EXPRS_COMPOUND_PREDICATE_H diff --git a/be/src/exprs/conditional_functions.cpp b/be/src/exprs/conditional_functions.cpp index 386f61d68a..89233277b5 100644 --- a/be/src/exprs/conditional_functions.cpp +++ b/be/src/exprs/conditional_functions.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/conditional-functions.cc +// and modified by Doris #include "exprs/conditional_functions.h" diff --git a/be/src/exprs/conditional_functions.h b/be/src/exprs/conditional_functions.h index cbf60d941b..3f91bbedc2 100644 --- a/be/src/exprs/conditional_functions.h +++ b/be/src/exprs/conditional_functions.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/conditional-functions.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_CONDITIONAL_FUNCTIONS_H #define DORIS_BE_SRC_QUERY_EXPRS_CONDITIONAL_FUNCTIONS_H diff --git a/be/src/exprs/expr.cpp b/be/src/exprs/expr.cpp index c43866ff01..ab65adb6e7 100644 --- a/be/src/exprs/expr.cpp +++ b/be/src/exprs/expr.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/expr.cpp +// and modified by Doris #include "exprs/expr.h" diff --git a/be/src/exprs/expr.h b/be/src/exprs/expr.h index 88619e0fa3..e8f26bb4d3 100644 --- a/be/src/exprs/expr.h +++ b/be/src/exprs/expr.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/expr.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_EXPR_H #define DORIS_BE_SRC_QUERY_EXPRS_EXPR_H diff --git a/be/src/exprs/expr_context.cpp b/be/src/exprs/expr_context.cpp index 779f3dd5d7..da8a6aab1c 100644 --- a/be/src/exprs/expr_context.cpp +++ b/be/src/exprs/expr_context.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/expr-context.cc +// and modified by Doris #include "exprs/expr_context.h" diff --git a/be/src/exprs/expr_context.h b/be/src/exprs/expr_context.h index f556b0f305..1b6edc6c31 100644 --- a/be/src/exprs/expr_context.h +++ b/be/src/exprs/expr_context.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/expr-context.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_EXPR_CONTEXT_H #define DORIS_BE_SRC_QUERY_EXPRS_EXPR_CONTEXT_H diff --git a/be/src/exprs/expr_value.h b/be/src/exprs/expr_value.h index 886bccd68d..32c5068d14 100644 --- a/be/src/exprs/expr_value.h +++ b/be/src/exprs/expr_value.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/expr-value.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_EXPR_VALUE_H #define DORIS_BE_SRC_QUERY_EXPRS_EXPR_VALUE_H diff --git a/be/src/exprs/in_predicate.cpp b/be/src/exprs/in_predicate.cpp index 0dd32df1f1..8a99c92f7e 100644 --- a/be/src/exprs/in_predicate.cpp +++ b/be/src/exprs/in_predicate.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/in-predicate.cpp +// and modified by Doris #include "exprs/in_predicate.h" diff --git a/be/src/exprs/in_predicate.h b/be/src/exprs/in_predicate.h index 19b5a5f8e0..6bb603ddd8 100644 --- a/be/src/exprs/in_predicate.h +++ b/be/src/exprs/in_predicate.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/in-predicate.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_IN_PREDICATE_H #define DORIS_BE_SRC_QUERY_EXPRS_IN_PREDICATE_H diff --git a/be/src/exprs/is_null_predicate.cpp b/be/src/exprs/is_null_predicate.cpp index 5b041595fb..bd240785cf 100644 --- a/be/src/exprs/is_null_predicate.cpp +++ b/be/src/exprs/is_null_predicate.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/is-null-predicate.cc +// and modified by Doris #include "exprs/is_null_predicate.h" diff --git a/be/src/exprs/is_null_predicate.h b/be/src/exprs/is_null_predicate.h index 468615c631..edd0b1c622 100644 --- a/be/src/exprs/is_null_predicate.h +++ b/be/src/exprs/is_null_predicate.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/is-null-predicate.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_IS_NULL_PREDICATE_H #define DORIS_BE_SRC_QUERY_EXPRS_IS_NULL_PREDICATE_H diff --git a/be/src/exprs/like_predicate.cpp b/be/src/exprs/like_predicate.cpp index b76d46d79c..13c0832f95 100644 --- a/be/src/exprs/like_predicate.cpp +++ b/be/src/exprs/like_predicate.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/like-predicate.cc +// and modified by Doris #include "exprs/like_predicate.h" diff --git a/be/src/exprs/like_predicate.h b/be/src/exprs/like_predicate.h index f231f26f92..4658c82935 100644 --- a/be/src/exprs/like_predicate.h +++ b/be/src/exprs/like_predicate.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/like-predicate.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_LIKE_PREDICATE_H #define DORIS_BE_SRC_QUERY_EXPRS_LIKE_PREDICATE_H diff --git a/be/src/exprs/literal.cpp b/be/src/exprs/literal.cpp index da251eb86e..5e1bbb9846 100644 --- a/be/src/exprs/literal.cpp +++ b/be/src/exprs/literal.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/literal.cc +// and modified by Doris #include "exprs/literal.h" diff --git a/be/src/exprs/literal.h b/be/src/exprs/literal.h index a00f0e9408..de5b917212 100644 --- a/be/src/exprs/literal.h +++ b/be/src/exprs/literal.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/literal.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_LITERAL_H #define DORIS_BE_SRC_QUERY_EXPRS_LITERAL_H diff --git a/be/src/exprs/math_functions.cpp b/be/src/exprs/math_functions.cpp index 13fe610971..fa8951d058 100644 --- a/be/src/exprs/math_functions.cpp +++ b/be/src/exprs/math_functions.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/math-functions.cpp +// and modified by Doris #include "exprs/math_functions.h" diff --git a/be/src/exprs/math_functions.h b/be/src/exprs/math_functions.h index 9d55ed6758..8dadcf75d3 100644 --- a/be/src/exprs/math_functions.h +++ b/be/src/exprs/math_functions.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/math-functions.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_MATH_FUNCTIONS_H #define DORIS_BE_SRC_QUERY_EXPRS_MATH_FUNCTIONS_H diff --git a/be/src/exprs/new_agg_fn_evaluator.cc b/be/src/exprs/new_agg_fn_evaluator.cc index 7e3738b631..a81205240b 100644 --- a/be/src/exprs/new_agg_fn_evaluator.cc +++ b/be/src/exprs/new_agg_fn_evaluator.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.10.0/be/src/exprs/agg-fn-evaluator.cc +// and modified by Doris #include "exprs/new_agg_fn_evaluator.h" diff --git a/be/src/exprs/new_agg_fn_evaluator.h b/be/src/exprs/new_agg_fn_evaluator.h index a335f63039..06b43e326e 100644 --- a/be/src/exprs/new_agg_fn_evaluator.h +++ b/be/src/exprs/new_agg_fn_evaluator.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.10.0/be/src/exprs/agg-fn-evaluator.h +// and modified by Doris #ifndef IMPALA_EXPRS_AGG_FN_EVALUATOR_H #define IMPALA_EXPRS_AGG_FN_EVALUATOR_H diff --git a/be/src/exprs/new_agg_fn_evaluator_ir.cc b/be/src/exprs/new_agg_fn_evaluator_ir.cc index 7be1291edc..21014e7f40 100644 --- a/be/src/exprs/new_agg_fn_evaluator_ir.cc +++ b/be/src/exprs/new_agg_fn_evaluator_ir.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.10.0/be/src/exprs/agg-fn-evaluator-ir.cc +// and modified by Doris #include "exprs/new_agg_fn_evaluator.h" diff --git a/be/src/exprs/null_literal.cpp b/be/src/exprs/null_literal.cpp index 427e2bafac..d6eaac0c2f 100644 --- a/be/src/exprs/null_literal.cpp +++ b/be/src/exprs/null_literal.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/null-literal.cc +// and modified by Doris #include "null_literal.h" diff --git a/be/src/exprs/null_literal.h b/be/src/exprs/null_literal.h index 6fd6a8e929..7e03370dfe 100644 --- a/be/src/exprs/null_literal.h +++ b/be/src/exprs/null_literal.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/null-literal.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_NULL_LITERAL_H #define DORIS_BE_SRC_QUERY_EXPRS_NULL_LITERAL_H diff --git a/be/src/exprs/operators.cpp b/be/src/exprs/operators.cpp index b0a684a97a..79b4111dd1 100644 --- a/be/src/exprs/operators.cpp +++ b/be/src/exprs/operators.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/operators.cc +// and modified by Doris #include "exprs/operators.h" diff --git a/be/src/exprs/operators.h b/be/src/exprs/operators.h index b5383bd576..8b07d2e645 100644 --- a/be/src/exprs/operators.h +++ b/be/src/exprs/operators.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/operators.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_OPERATORS_H #define DORIS_BE_SRC_QUERY_EXPRS_OPERATORS_H diff --git a/be/src/exprs/predicate.h b/be/src/exprs/predicate.h index 43336fab70..cd6eea6f32 100644 --- a/be/src/exprs/predicate.h +++ b/be/src/exprs/predicate.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/predicate.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_PREDICATE_H #define DORIS_BE_SRC_QUERY_EXPRS_PREDICATE_H diff --git a/be/src/exprs/scalar_fn_call.cpp b/be/src/exprs/scalar_fn_call.cpp index 27e7151600..9f77cecbc4 100644 --- a/be/src/exprs/scalar_fn_call.cpp +++ b/be/src/exprs/scalar_fn_call.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/scalar-fn-call.cc +// and modified by Doris #include "exprs/scalar_fn_call.h" diff --git a/be/src/exprs/scalar_fn_call.h b/be/src/exprs/scalar_fn_call.h index 093a970c20..e20d04ca2f 100644 --- a/be/src/exprs/scalar_fn_call.h +++ b/be/src/exprs/scalar_fn_call.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/scalar-fn-call.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_SCALAR_FN_CALL_H #define DORIS_BE_SRC_QUERY_EXPRS_SCALAR_FN_CALL_H diff --git a/be/src/exprs/slot_ref.cpp b/be/src/exprs/slot_ref.cpp index 204d20cdd0..7e325eaafe 100644 --- a/be/src/exprs/slot_ref.cpp +++ b/be/src/exprs/slot_ref.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/slot-ref.cc +// and modified by Doris #include "exprs/slot_ref.h" diff --git a/be/src/exprs/slot_ref.h b/be/src/exprs/slot_ref.h index 1effcbfd3c..b3c449efc7 100644 --- a/be/src/exprs/slot_ref.h +++ b/be/src/exprs/slot_ref.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/slot-ref.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_SLOT_REF_H #define DORIS_BE_SRC_QUERY_EXPRS_SLOT_REF_H diff --git a/be/src/exprs/string_functions.cpp b/be/src/exprs/string_functions.cpp index 825762ce9d..70f51026c4 100644 --- a/be/src/exprs/string_functions.cpp +++ b/be/src/exprs/string_functions.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/string-functions.cpp +// and modified by Doris #include "exprs/string_functions.h" diff --git a/be/src/exprs/string_functions.h b/be/src/exprs/string_functions.h index dc149063f3..3fdfa7b907 100644 --- a/be/src/exprs/string_functions.h +++ b/be/src/exprs/string_functions.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/string-functions.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_STRING_FUNCTIONS_H #define DORIS_BE_SRC_QUERY_EXPRS_STRING_FUNCTIONS_H diff --git a/be/src/exprs/timestamp_functions.cpp b/be/src/exprs/timestamp_functions.cpp index 44bc34bccb..c84bbc8d6c 100644 --- a/be/src/exprs/timestamp_functions.cpp +++ b/be/src/exprs/timestamp_functions.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/timestamp-functions.cc +// and modified by Doris #include "exprs/timestamp_functions.h" diff --git a/be/src/exprs/timestamp_functions.h b/be/src/exprs/timestamp_functions.h index e558c8044c..6a6a9a5e0d 100644 --- a/be/src/exprs/timestamp_functions.h +++ b/be/src/exprs/timestamp_functions.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/timestamp-functions.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_TIMESTAMP_FUNCTIONS_H #define DORIS_BE_SRC_QUERY_EXPRS_TIMESTAMP_FUNCTIONS_H diff --git a/be/src/exprs/tuple_is_null_predicate.cpp b/be/src/exprs/tuple_is_null_predicate.cpp index c0b0f2fe8c..b3c93bd290 100644 --- a/be/src/exprs/tuple_is_null_predicate.cpp +++ b/be/src/exprs/tuple_is_null_predicate.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/tuple-is-null-predicate.cc +// and modified by Doris #include "exprs/tuple_is_null_predicate.h" diff --git a/be/src/exprs/tuple_is_null_predicate.h b/be/src/exprs/tuple_is_null_predicate.h index 283b787ea7..6370858a51 100644 --- a/be/src/exprs/tuple_is_null_predicate.h +++ b/be/src/exprs/tuple_is_null_predicate.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/tuple-is-null-predicate.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_TUPLE_IS_NULL_PREDICATE_H #define DORIS_BE_SRC_QUERY_EXPRS_TUPLE_IS_NULL_PREDICATE_H diff --git a/be/src/exprs/udf_builtins.cpp b/be/src/exprs/udf_builtins.cpp index 5407be7fa3..d667f613d3 100644 --- a/be/src/exprs/udf_builtins.cpp +++ b/be/src/exprs/udf_builtins.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/udf-builtins.cc +// and modified by Doris #include "exprs/udf_builtins.h" diff --git a/be/src/exprs/udf_builtins.h b/be/src/exprs/udf_builtins.h index c76dd7a724..01b2815226 100644 --- a/be/src/exprs/udf_builtins.h +++ b/be/src/exprs/udf_builtins.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/udf-builtins.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_UDF_BUILTINS_H #define DORIS_BE_SRC_QUERY_EXPRS_UDF_BUILTINS_H diff --git a/be/src/exprs/utility_functions.cpp b/be/src/exprs/utility_functions.cpp index 2848b69099..dd3d46e7c2 100644 --- a/be/src/exprs/utility_functions.cpp +++ b/be/src/exprs/utility_functions.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/utility-functions.cpp +// and modified by Doris #include "exprs/utility_functions.h" diff --git a/be/src/exprs/utility_functions.h b/be/src/exprs/utility_functions.h index f0b5266303..5303ec1f23 100644 --- a/be/src/exprs/utility_functions.h +++ b/be/src/exprs/utility_functions.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/exprs/utility-functions.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_EXPRS_UTILITY_FUNCTIONS_H #define DORIS_BE_SRC_QUERY_EXPRS_UTILITY_FUNCTIONS_H diff --git a/be/src/runtime/buffered_block_mgr2.cc b/be/src/runtime/buffered_block_mgr2.cc index 81cfc37630..c2b9dc0e7a 100644 --- a/be/src/runtime/buffered_block_mgr2.cc +++ b/be/src/runtime/buffered_block_mgr2.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/buffered-block-mgr2.cc +// and modified by Doris #include "runtime/buffered_block_mgr2.h" diff --git a/be/src/runtime/buffered_block_mgr2.h b/be/src/runtime/buffered_block_mgr2.h index a56a8b4ef0..d3f840020d 100644 --- a/be/src/runtime/buffered_block_mgr2.h +++ b/be/src/runtime/buffered_block_mgr2.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/buffered-block-mgr2.h +// and modified by Doris #ifndef DORIS_BE_SRC_RUNTIME_BUFFERED_BLOCK_MGR2_H #define DORIS_BE_SRC_RUNTIME_BUFFERED_BLOCK_MGR2_H diff --git a/be/src/runtime/buffered_tuple_stream2.cc b/be/src/runtime/buffered_tuple_stream2.cc index 6f55086e8b..22cf3ec20b 100644 --- a/be/src/runtime/buffered_tuple_stream2.cc +++ b/be/src/runtime/buffered_tuple_stream2.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.10.0/be/src/runtime/buffered-tuple-stream.cc +// and modified by Doris #include "runtime/buffered_tuple_stream2.h" diff --git a/be/src/runtime/buffered_tuple_stream2.h b/be/src/runtime/buffered_tuple_stream2.h index 5f23fc8870..25ae4c85af 100644 --- a/be/src/runtime/buffered_tuple_stream2.h +++ b/be/src/runtime/buffered_tuple_stream2.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.10.0/be/src/runtime/buffered-tuple-stream.h +// and modified by Doris #ifndef DORIS_BE_SRC_RUNTIME_BUFFERED_TUPLE_STREAM2_H #define DORIS_BE_SRC_RUNTIME_BUFFERED_TUPLE_STREAM2_H diff --git a/be/src/runtime/buffered_tuple_stream2.inline.h b/be/src/runtime/buffered_tuple_stream2.inline.h index d55f25552f..3b3a76105a 100644 --- a/be/src/runtime/buffered_tuple_stream2.inline.h +++ b/be/src/runtime/buffered_tuple_stream2.inline.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.10.0/be/src/runtime/buffered-tuple-stream.inline.h +// and modified by Doris #ifndef DORIS_BE_SRC_RUNTIME_BUFFERED_TUPLE_STREAM2_INLINE_H #define DORIS_BE_SRC_RUNTIME_BUFFERED_TUPLE_STREAM2_INLINE_H diff --git a/be/src/runtime/buffered_tuple_stream3.cc b/be/src/runtime/buffered_tuple_stream3.cc index afdba93961..a2c1e8db02 100644 --- a/be/src/runtime/buffered_tuple_stream3.cc +++ b/be/src/runtime/buffered_tuple_stream3.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-3.0.0/be/src/runtime/buffered-tuple-stream.cc +// and modified by Doris #include diff --git a/be/src/runtime/buffered_tuple_stream3.h b/be/src/runtime/buffered_tuple_stream3.h index b535caced8..73dc9959c0 100644 --- a/be/src/runtime/buffered_tuple_stream3.h +++ b/be/src/runtime/buffered_tuple_stream3.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-3.0.0/be/src/runtime/buffered-tuple-stream.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_BUFFERED_TUPLE_STREAM_H #define DORIS_BE_RUNTIME_BUFFERED_TUPLE_STREAM_H diff --git a/be/src/runtime/buffered_tuple_stream3.inline.h b/be/src/runtime/buffered_tuple_stream3.inline.h index f75f459357..d4b57ea4be 100644 --- a/be/src/runtime/buffered_tuple_stream3.inline.h +++ b/be/src/runtime/buffered_tuple_stream3.inline.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-3.0.0/be/src/runtime/buffered-tuple-stream.inline.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_BUFFERED_TUPLE_STREAM_INLINE_H #define DORIS_BE_RUNTIME_BUFFERED_TUPLE_STREAM_INLINE_H diff --git a/be/src/runtime/data_stream_mgr.cpp b/be/src/runtime/data_stream_mgr.cpp index 0a7f337a24..f5f7691075 100644 --- a/be/src/runtime/data_stream_mgr.cpp +++ b/be/src/runtime/data_stream_mgr.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/data-stream-mgr.cc +// and modified by Doris #include "runtime/data_stream_mgr.h" diff --git a/be/src/runtime/data_stream_mgr.h b/be/src/runtime/data_stream_mgr.h index f579d31b9e..96f88ed07f 100644 --- a/be/src/runtime/data_stream_mgr.h +++ b/be/src/runtime/data_stream_mgr.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/data-stream-mgr.h +// and modified by Doris #ifndef DORIS_BE_SRC_RUNTIME_DATA_STREAM_MGR_H #define DORIS_BE_SRC_RUNTIME_DATA_STREAM_MGR_H diff --git a/be/src/runtime/data_stream_recvr.cc b/be/src/runtime/data_stream_recvr.cc index d31d3a8a54..3e3774c40b 100644 --- a/be/src/runtime/data_stream_recvr.cc +++ b/be/src/runtime/data_stream_recvr.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/data-stream-recvr.cc +// and modified by Doris #include "runtime/data_stream_recvr.h" diff --git a/be/src/runtime/data_stream_recvr.h b/be/src/runtime/data_stream_recvr.h index 28a4a9dadf..ee436f3478 100644 --- a/be/src/runtime/data_stream_recvr.h +++ b/be/src/runtime/data_stream_recvr.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/data-stream-recvr.h +// and modified by Doris #ifndef DORIS_BE_SRC_RUNTIME_DATA_STREAM_RECVR_H #define DORIS_BE_SRC_RUNTIME_DATA_STREAM_RECVR_H diff --git a/be/src/runtime/data_stream_sender.cpp b/be/src/runtime/data_stream_sender.cpp index 753b312495..abbd17b34f 100644 --- a/be/src/runtime/data_stream_sender.cpp +++ b/be/src/runtime/data_stream_sender.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/data-stream-sender.cc +// and modified by Doris #include "runtime/data_stream_sender.h" diff --git a/be/src/runtime/data_stream_sender.h b/be/src/runtime/data_stream_sender.h index 95028e46cf..843cf2cf79 100644 --- a/be/src/runtime/data_stream_sender.h +++ b/be/src/runtime/data_stream_sender.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/data-stream-sender.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_DATA_STREAM_SENDER_H #define DORIS_BE_RUNTIME_DATA_STREAM_SENDER_H diff --git a/be/src/runtime/descriptors.cpp b/be/src/runtime/descriptors.cpp index b49bc119fd..08f3293fa7 100644 --- a/be/src/runtime/descriptors.cpp +++ b/be/src/runtime/descriptors.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/descriptors.cc +// and modified by Doris #include "runtime/descriptors.h" diff --git a/be/src/runtime/descriptors.h b/be/src/runtime/descriptors.h index 2b049c774c..b3cb0e34a3 100644 --- a/be/src/runtime/descriptors.h +++ b/be/src/runtime/descriptors.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/descriptors.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_DESCRIPTORS_H #define DORIS_BE_RUNTIME_DESCRIPTORS_H diff --git a/be/src/runtime/disk_io_mgr.cc b/be/src/runtime/disk_io_mgr.cc index f910f96668..ebedb58057 100644 --- a/be/src/runtime/disk_io_mgr.cc +++ b/be/src/runtime/disk_io_mgr.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/disk-io-mgr.cc +// and modified by Doris #include "runtime/disk_io_mgr.h" diff --git a/be/src/runtime/disk_io_mgr.h b/be/src/runtime/disk_io_mgr.h index fe52d15755..b96b532a58 100644 --- a/be/src/runtime/disk_io_mgr.h +++ b/be/src/runtime/disk_io_mgr.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/disk-io-mgr.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_RUNTIME_DISK_IO_MGR_H #define DORIS_BE_SRC_QUERY_RUNTIME_DISK_IO_MGR_H diff --git a/be/src/runtime/disk_io_mgr_internal.h b/be/src/runtime/disk_io_mgr_internal.h index ee3971a53c..82c40bbcfa 100644 --- a/be/src/runtime/disk_io_mgr_internal.h +++ b/be/src/runtime/disk_io_mgr_internal.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/disk-io-mgr-internal.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_RUNTIME_DISK_IO_MGR_INTERNAL_H #define DORIS_BE_SRC_QUERY_RUNTIME_DISK_IO_MGR_INTERNAL_H diff --git a/be/src/runtime/disk_io_mgr_reader_context.cc b/be/src/runtime/disk_io_mgr_reader_context.cc index 984ae748de..b055fed1d8 100644 --- a/be/src/runtime/disk_io_mgr_reader_context.cc +++ b/be/src/runtime/disk_io_mgr_reader_context.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/disk-io-mgr-reader-context.cc +// and modified by Doris #include "runtime/disk_io_mgr_internal.h" diff --git a/be/src/runtime/disk_io_mgr_scan_range.cc b/be/src/runtime/disk_io_mgr_scan_range.cc index 014d16e365..466d872582 100644 --- a/be/src/runtime/disk_io_mgr_scan_range.cc +++ b/be/src/runtime/disk_io_mgr_scan_range.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/disk-io-mgr-scan-range.cc +// and modified by Doris #include "runtime/disk_io_mgr.h" #include "runtime/disk_io_mgr_internal.h" diff --git a/be/src/runtime/free_list.hpp b/be/src/runtime/free_list.hpp deleted file mode 100644 index 9b53597fa5..0000000000 --- a/be/src/runtime/free_list.hpp +++ /dev/null @@ -1,108 +0,0 @@ -// 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. - -#ifndef DORIS_BE_SRC_QUERY_BE_RUNTIME_FREE_LIST_H -#define DORIS_BE_SRC_QUERY_BE_RUNTIME_FREE_LIST_H - -#include -#include -#include -#include -#include -#include "common/logging.h" - -namespace doris { - -// Implementation of a free list: -// The free list is made up of nodes which contain a pointer to the next node -// and the size of the block. The free list does not allocate any memory and instead -// overlays the node data over the caller-provided memory. -// -// Since the free list does not allocate or acquire any allocations, it needs to have -// the same lifetime as whereever the allocations came from (i.e MemPool). If, for -// example, the underlying MemPool is deallocated, if there are any blocks in the -// free list from that pool, the free list is corrupt. - -class FreeList { -public: - // Returns the minimum allocation size that is compatible with - // the free list. The free list uses the allocations to maintain - // its own internal linked list structure. - static int min_size() { - return sizeof(FreeListNode); - } - - // C'tor, initializes the free list to be empty - FreeList() { - reset(); - } - - // Attempts to allocate a block that is at least the input size - // from the free list. - // Returns the size of the entire buffer in *buffer_size. - // Returns NULL if there is no matching free list size. - uint8_t* allocate(int size, int* buffer_size) { - DCHECK(buffer_size != NULL); - FreeListNode* prev = &_head; - FreeListNode* node = _head.next; - - while (node != NULL) { - if (node->size >= size) { - prev->next = node->next; - *buffer_size = node->size; - return reinterpret_cast(node); - } - - prev = node; - node = node->next; - } - - *buffer_size = 0; - return NULL; - } - - // add a block to the free list. The caller can no longer touch - // the memory. If the size is too small, the free list ignores - // the memory. - void add(uint8_t* memory, int size) { - if (size < FreeList::min_size()) { - return; - } - - FreeListNode* node = reinterpret_cast(memory); - node->next = _head.next; - node->size = size; - _head.next = node; - } - - // Empties the free list - void reset() { - bzero(&_head, sizeof(FreeListNode)); - } - -private: - struct FreeListNode { - FreeListNode* next; - int size; - }; - - FreeListNode _head; -}; - -} - -#endif diff --git a/be/src/runtime/free_pool.hpp b/be/src/runtime/free_pool.hpp index 6dde1648ed..9096f8d0cd 100644 --- a/be/src/runtime/free_pool.hpp +++ b/be/src/runtime/free_pool.hpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/free-pool.hpp +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_BE_RUNTIME_FREE_POOL_H #define DORIS_BE_SRC_QUERY_BE_RUNTIME_FREE_POOL_H diff --git a/be/src/runtime/initial_reservations.cc b/be/src/runtime/initial_reservations.cc index 1783b080dd..f4e223fe71 100644 --- a/be/src/runtime/initial_reservations.cc +++ b/be/src/runtime/initial_reservations.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.10.0/be/src/runtime/initial-reservations.cc +// and modified by Doris #include "runtime/initial_reservations.h" diff --git a/be/src/runtime/initial_reservations.h b/be/src/runtime/initial_reservations.h index 0d9fa0bf9f..b2fe35d39d 100644 --- a/be/src/runtime/initial_reservations.h +++ b/be/src/runtime/initial_reservations.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.10.0/be/src/runtime/initial-reservations.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_INITIAL_RESERVATIONS_H #define DORIS_BE_RUNTIME_INITIAL_RESERVATIONS_H diff --git a/be/src/runtime/mem_pool.cpp b/be/src/runtime/mem_pool.cpp index e7de27e257..a2b9bf3424 100644 --- a/be/src/runtime/mem_pool.cpp +++ b/be/src/runtime/mem_pool.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/mem-pool.cc +// and modified by Doris #include "runtime/mem_pool.h" diff --git a/be/src/runtime/mem_pool.h b/be/src/runtime/mem_pool.h index bf24dec8ad..c62f2bdf6a 100644 --- a/be/src/runtime/mem_pool.h +++ b/be/src/runtime/mem_pool.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/mem-pool.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_MEM_POOL_H #define DORIS_BE_RUNTIME_MEM_POOL_H diff --git a/be/src/runtime/mem_tracker.cpp b/be/src/runtime/mem_tracker.cpp index 002411c737..86f7c0370b 100644 --- a/be/src/runtime/mem_tracker.cpp +++ b/be/src/runtime/mem_tracker.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/mem-tracker.cpp +// and modified by Doris #include "runtime/mem_tracker.h" diff --git a/be/src/runtime/mem_tracker.h b/be/src/runtime/mem_tracker.h index 38f3463640..3d0e3f7271 100644 --- a/be/src/runtime/mem_tracker.h +++ b/be/src/runtime/mem_tracker.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/mem-tracker.h +// and modified by Doris #pragma once diff --git a/be/src/runtime/multi_precision.h b/be/src/runtime/multi_precision.h index e9600669ed..5ddf00ceb0 100644 --- a/be/src/runtime/multi_precision.h +++ b/be/src/runtime/multi_precision.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/multi-precision.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_MULTI_PRECISION_H #define DORIS_BE_RUNTIME_MULTI_PRECISION_H diff --git a/be/src/runtime/plan_fragment_executor.cpp b/be/src/runtime/plan_fragment_executor.cpp index df907bd2a6..6cdbce39d2 100644 --- a/be/src/runtime/plan_fragment_executor.cpp +++ b/be/src/runtime/plan_fragment_executor.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/cloudera/Impala/blob/v0.7refresh/be/src/runtime/plan-fragment-executor.cc +// and modified by Doris #include "runtime/plan_fragment_executor.h" diff --git a/be/src/runtime/plan_fragment_executor.h b/be/src/runtime/plan_fragment_executor.h index 8d7927a281..59b97506d5 100644 --- a/be/src/runtime/plan_fragment_executor.h +++ b/be/src/runtime/plan_fragment_executor.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/cloudera/Impala/blob/v0.7refresh/be/src/runtime/plan-fragment-executor.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_PLAN_FRAGMENT_EXECUTOR_H #define DORIS_BE_RUNTIME_PLAN_FRAGMENT_EXECUTOR_H diff --git a/be/src/runtime/raw_value.cpp b/be/src/runtime/raw_value.cpp index 8fa5d737d9..eb63f1653b 100644 --- a/be/src/runtime/raw_value.cpp +++ b/be/src/runtime/raw_value.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/raw-value.cpp +// and modified by Doris #include "runtime/raw_value.h" diff --git a/be/src/runtime/raw_value.h b/be/src/runtime/raw_value.h index 85a424878d..3115f50efe 100644 --- a/be/src/runtime/raw_value.h +++ b/be/src/runtime/raw_value.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/raw-value.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_RAW_VALUE_H #define DORIS_BE_RUNTIME_RAW_VALUE_H diff --git a/be/src/runtime/row_batch.cpp b/be/src/runtime/row_batch.cpp index 8134febbeb..614f7888f1 100644 --- a/be/src/runtime/row_batch.cpp +++ b/be/src/runtime/row_batch.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/row-batch.cc +// and modified by Doris #include "runtime/row_batch.h" diff --git a/be/src/runtime/row_batch.h b/be/src/runtime/row_batch.h index 1ee54989cd..c7abca2a75 100644 --- a/be/src/runtime/row_batch.h +++ b/be/src/runtime/row_batch.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/row-batch.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_ROW_BATCH_H #define DORIS_BE_RUNTIME_ROW_BATCH_H diff --git a/be/src/runtime/runtime_state.cpp b/be/src/runtime/runtime_state.cpp index a60d502131..e0d5d8104f 100644 --- a/be/src/runtime/runtime_state.cpp +++ b/be/src/runtime/runtime_state.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/runtime-state.cpp +// and modified by Doris #include "runtime/runtime_state.h" diff --git a/be/src/runtime/runtime_state.h b/be/src/runtime/runtime_state.h index a308b41534..a5bc35ee36 100644 --- a/be/src/runtime/runtime_state.h +++ b/be/src/runtime/runtime_state.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/runtime-state.h +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_RUNTIME_RUNTIME_STATE_H #define DORIS_BE_SRC_QUERY_RUNTIME_RUNTIME_STATE_H diff --git a/be/src/runtime/sorted_run_merger.cc b/be/src/runtime/sorted_run_merger.cc index f86c261b8d..11042a4d9d 100644 --- a/be/src/runtime/sorted_run_merger.cc +++ b/be/src/runtime/sorted_run_merger.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/sorted-run-merger.cc +// and modified by Doris #include "runtime/sorted_run_merger.h" diff --git a/be/src/runtime/sorted_run_merger.h b/be/src/runtime/sorted_run_merger.h index c448ac8b0c..abba31c835 100644 --- a/be/src/runtime/sorted_run_merger.h +++ b/be/src/runtime/sorted_run_merger.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/sorted-run-merger.h +// and modified by Doris #ifndef DORIS_BE_SRC_RUNTIME_SORTED_RUN_MERGER_H #define DORIS_BE_SRC_RUNTIME_SORTED_RUN_MERGER_H diff --git a/be/src/runtime/sorter.h b/be/src/runtime/sorter.h index b7592ecdc7..55a9135e37 100644 --- a/be/src/runtime/sorter.h +++ b/be/src/runtime/sorter.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/sorter.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_SORTER_H #define DORIS_BE_RUNTIME_SORTER_H diff --git a/be/src/runtime/string_value.cpp b/be/src/runtime/string_value.cpp index 6ae245b98c..aa16783545 100644 --- a/be/src/runtime/string_value.cpp +++ b/be/src/runtime/string_value.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/string-value.cc +// and modified by Doris #include "runtime/string_value.h" diff --git a/be/src/runtime/string_value.h b/be/src/runtime/string_value.h index 1a0f0c34ec..16489d191b 100644 --- a/be/src/runtime/string_value.h +++ b/be/src/runtime/string_value.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/string-value.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_STRING_VALUE_H #define DORIS_BE_RUNTIME_STRING_VALUE_H diff --git a/be/src/runtime/string_value.hpp b/be/src/runtime/string_value.hpp index a51ee5e88d..d140a1110f 100644 --- a/be/src/runtime/string_value.hpp +++ b/be/src/runtime/string_value.hpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/string-value.hpp +// and modified by Doris #ifndef DORIS_BE_SRC_QUERY_BE_RUNTIME_STRING_VALUE_INLINE_H #define DORIS_BE_SRC_QUERY_BE_RUNTIME_STRING_VALUE_INLINE_H diff --git a/be/src/runtime/tuple.cpp b/be/src/runtime/tuple.cpp index e798159663..1640f14464 100644 --- a/be/src/runtime/tuple.cpp +++ b/be/src/runtime/tuple.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/tuple.cpp +// and modified by Doris #include "runtime/tuple.h" diff --git a/be/src/runtime/tuple.h b/be/src/runtime/tuple.h index ea069a7865..26e9a3785f 100644 --- a/be/src/runtime/tuple.h +++ b/be/src/runtime/tuple.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/tuple.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_TUPLE_H #define DORIS_BE_RUNTIME_TUPLE_H diff --git a/be/src/runtime/tuple_row.cpp b/be/src/runtime/tuple_row.cpp index d91e6fb91f..d4cd44a725 100644 --- a/be/src/runtime/tuple_row.cpp +++ b/be/src/runtime/tuple_row.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/tuple-row.cpp +// and modified by Doris #include "runtime/tuple_row.h" diff --git a/be/src/runtime/tuple_row.h b/be/src/runtime/tuple_row.h index 82aa5d44f5..77a0b6710e 100644 --- a/be/src/runtime/tuple_row.h +++ b/be/src/runtime/tuple_row.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/tuple-row.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_TUPLE_ROW_H #define DORIS_BE_RUNTIME_TUPLE_ROW_H diff --git a/be/src/runtime/types.cpp b/be/src/runtime/types.cpp index c25cbb50f1..ea5dbc5987 100644 --- a/be/src/runtime/types.cpp +++ b/be/src/runtime/types.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/types.cpp +// and modified by Doris #include "runtime/types.h" diff --git a/be/src/runtime/types.h b/be/src/runtime/types.h index aaa937b3b9..56c7e1c674 100644 --- a/be/src/runtime/types.h +++ b/be/src/runtime/types.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/runtime/types.h +// and modified by Doris #ifndef DORIS_BE_RUNTIME_TYPES_H #define DORIS_BE_RUNTIME_TYPES_H diff --git a/be/src/udf/uda_test_harness.h b/be/src/udf/uda_test_harness.h index 906efe969f..4d9f2dccc2 100644 --- a/be/src/udf/uda_test_harness.h +++ b/be/src/udf/uda_test_harness.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/udf/uda-test-harness.h +// and modified by Doris #ifndef DORIS_BE_UDF_UDA_TEST_HARNESS_H #define DORIS_BE_UDF_UDA_TEST_HARNESS_H diff --git a/be/src/udf/udf.cpp b/be/src/udf/udf.cpp index 612aabb252..f3c11ee6cc 100644 --- a/be/src/udf/udf.cpp +++ b/be/src/udf/udf.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/udf/udf.cpp +// and modified by Doris #include "udf/udf.h" diff --git a/be/src/udf/udf.h b/be/src/udf/udf.h index af03e35eed..f5f134b633 100644 --- a/be/src/udf/udf.h +++ b/be/src/udf/udf.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/udf/udf.h +// and modified by Doris #ifndef DORIS_BE_UDF_UDF_H #define DORIS_BE_UDF_UDF_H diff --git a/be/src/udf/udf_debug.h b/be/src/udf/udf_debug.h index a70b04cbc9..ed0991b015 100644 --- a/be/src/udf/udf_debug.h +++ b/be/src/udf/udf_debug.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/udf/udf-debug.h +// and modified by Doris #ifndef DORIS_BE_UDF_UDF_DEBUG_H #define DORIS_BE_UDF_UDF_DEBUG_H diff --git a/be/src/udf/udf_internal.h b/be/src/udf/udf_internal.h index f4c99fdccf..903ac069dc 100644 --- a/be/src/udf/udf_internal.h +++ b/be/src/udf/udf_internal.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/udf/udf-internal.h +// and modified by Doris #ifndef DORIS_BE_UDF_UDF_INTERNAL_H #define DORIS_BE_UDF_UDF_INTERNAL_H diff --git a/be/src/util/aligned_new.h b/be/src/util/aligned_new.h index 099d9100a7..54a52e20f7 100644 --- a/be/src/util/aligned_new.h +++ b/be/src/util/aligned_new.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/aligned-new.h +// and modified by Doris #ifndef DORIS_BE_SRC_UTIL_ALIGNED_NEW_H_ #define DORIS_BE_SRC_UTIL_ALIGNED_NEW_H_ diff --git a/be/src/util/bit_stream_utils.h b/be/src/util/bit_stream_utils.h index d7c4e11266..c6d39c6abd 100644 --- a/be/src/util/bit_stream_utils.h +++ b/be/src/util/bit_stream_utils.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/bit-stream-utils.h +// and modified by Doris #pragma once #include "gutil/port.h" diff --git a/be/src/util/bit_stream_utils.inline.h b/be/src/util/bit_stream_utils.inline.h index df6b1aa71a..544685daa6 100644 --- a/be/src/util/bit_stream_utils.inline.h +++ b/be/src/util/bit_stream_utils.inline.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/bit-stream-utils.inline.h +// and modified by Doris #ifndef IMPALA_UTIL_BIT_STREAM_UTILS_INLINE_H #define IMPALA_UTIL_BIT_STREAM_UTILS_INLINE_H diff --git a/be/src/util/bit_util.h b/be/src/util/bit_util.h index 549ce608fa..7526a7728a 100644 --- a/be/src/util/bit_util.h +++ b/be/src/util/bit_util.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/bit-util.h +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_BIT_UTIL_H #define DORIS_BE_SRC_COMMON_UTIL_BIT_UTIL_H diff --git a/be/src/util/bitmap.cpp b/be/src/util/bitmap.cpp index 9c51e836e0..65b100ab03 100644 --- a/be/src/util/bitmap.cpp +++ b/be/src/util/bitmap.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/bitmap.cpp +// and modified by Doris #include "util/bitmap.h" diff --git a/be/src/util/bitmap.h b/be/src/util/bitmap.h index 3146e1b1af..cc68aa3a59 100644 --- a/be/src/util/bitmap.h +++ b/be/src/util/bitmap.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/bitmap.h +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_BITMAP_H #define DORIS_BE_SRC_COMMON_UTIL_BITMAP_H diff --git a/be/src/util/blocking_priority_queue.hpp b/be/src/util/blocking_priority_queue.hpp index 6da6fb3fcb..5a97cee4f6 100644 --- a/be/src/util/blocking_priority_queue.hpp +++ b/be/src/util/blocking_priority_queue.hpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/blocking-priority-queue.hpp +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_BLOCKING_PRIORITY_QUEUE_HPP #define DORIS_BE_SRC_COMMON_UTIL_BLOCKING_PRIORITY_QUEUE_HPP diff --git a/be/src/util/blocking_queue.hpp b/be/src/util/blocking_queue.hpp index 2ec54a1a41..92411811be 100644 --- a/be/src/util/blocking_queue.hpp +++ b/be/src/util/blocking_queue.hpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/blocking-queue.hpp +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_BLOCKING_QUEUE_HPP #define DORIS_BE_SRC_COMMON_UTIL_BLOCKING_QUEUE_HPP diff --git a/be/src/util/buffer_builder.hpp b/be/src/util/buffer_builder.hpp index 5e56dd1951..7e3bc399b9 100644 --- a/be/src/util/buffer_builder.hpp +++ b/be/src/util/buffer_builder.hpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/buffer-builder.hpp +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_BUFFER_BUILDER_HPP #define DORIS_BE_SRC_COMMON_UTIL_BUFFER_BUILDER_HPP diff --git a/be/src/util/container_util.hpp b/be/src/util/container_util.hpp index b9d03787c5..bbaee52284 100644 --- a/be/src/util/container_util.hpp +++ b/be/src/util/container_util.hpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/container-util.hpp +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON__UTIL_CONTAINER_UTIL_HPP #define DORIS_BE_SRC_COMMON__UTIL_CONTAINER_UTIL_HPP diff --git a/be/src/util/cpu_info.cpp b/be/src/util/cpu_info.cpp index 9ea1cc8859..8f920e3e5b 100644 --- a/be/src/util/cpu_info.cpp +++ b/be/src/util/cpu_info.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/cpu-info.cpp +// and modified by Doris #include "util/cpu_info.h" diff --git a/be/src/util/cpu_info.h b/be/src/util/cpu_info.h index 33dd776c22..38cfbbbb11 100644 --- a/be/src/util/cpu_info.h +++ b/be/src/util/cpu_info.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/cpu-info.h +// and modified by Doris #ifndef DORIS_BE_SRC_UTIL_CPU_INFO_H #define DORIS_BE_SRC_UTIL_CPU_INFO_H diff --git a/be/src/util/dummy_runtime_profile.h b/be/src/util/dummy_runtime_profile.h index 931fbcd777..9e7778ee22 100644 --- a/be/src/util/dummy_runtime_profile.h +++ b/be/src/util/dummy_runtime_profile.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/dummy-runtime-profile.h +// and modified by Doris #ifndef DORIS_BE_SRC_UTIL_DEBUG_RUNTIME_PROFILE_H #define DORIS_BE_SRC_UTIL_DEBUG_RUNTIME_PROFILE_H diff --git a/be/src/util/dynamic_util.cpp b/be/src/util/dynamic_util.cpp index 85e37506ee..1cf65b6b47 100644 --- a/be/src/util/dynamic_util.cpp +++ b/be/src/util/dynamic_util.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/dynamic-util.cc +// and modified by Doris #include "util/dynamic_util.h" diff --git a/be/src/util/dynamic_util.h b/be/src/util/dynamic_util.h index 280937dadd..97cf718e9c 100644 --- a/be/src/util/dynamic_util.h +++ b/be/src/util/dynamic_util.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/dynamic-util.h +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_DYNAMIC_UTIL_H #define DORIS_BE_SRC_COMMON_UTIL_DYNAMIC_UTIL_H diff --git a/be/src/util/error_util.cc b/be/src/util/error_util.cc index d3f8c2df59..f1b006b6fd 100644 --- a/be/src/util/error_util.cc +++ b/be/src/util/error_util.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/error-util.cc +// and modified by Doris #include "util/error_util.h" diff --git a/be/src/util/error_util.h b/be/src/util/error_util.h index a5c84a528a..c1b5c6b40f 100644 --- a/be/src/util/error_util.h +++ b/be/src/util/error_util.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/error-util.h +// and modified by Doris #ifndef DORIS_BE_SRC_UTIL_ERROR_UTIL_H #define DORIS_BE_SRC_UTIL_ERROR_UTIL_H diff --git a/be/src/util/fake_lock.h b/be/src/util/fake_lock.h index 2f3f35a154..fcf5ce1495 100644 --- a/be/src/util/fake_lock.h +++ b/be/src/util/fake_lock.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/fake-lock.h +// and modified by Doris #ifndef DORIS_BE_SRC_UTIL_FAKE_LOCK_H #define DORIS_BE_SRC_UTIL_FAKE_LOCK_H diff --git a/be/src/util/filesystem_util.cc b/be/src/util/filesystem_util.cc index 6f4ebf7476..3a12db628a 100644 --- a/be/src/util/filesystem_util.cc +++ b/be/src/util/filesystem_util.cc @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/filesystem-util.cc +// and modified by Doris #include "util/filesystem_util.h" diff --git a/be/src/util/filesystem_util.h b/be/src/util/filesystem_util.h index 20358755f0..ff55e8776e 100644 --- a/be/src/util/filesystem_util.h +++ b/be/src/util/filesystem_util.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/filesystem-util.h +// and modified by Doris #ifndef DORIS_BE_SRC_UTIL_FILESYSTEM_UTIL_H #define DORIS_BE_SRC_UTIL_FILESYSTEM_UTIL_H diff --git a/be/src/util/hash_util.hpp b/be/src/util/hash_util.hpp index d03f466aff..b89350eda2 100644 --- a/be/src/util/hash_util.hpp +++ b/be/src/util/hash_util.hpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/hash-util.h +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_HASH_UTIL_HPP #define DORIS_BE_SRC_COMMON_UTIL_HASH_UTIL_HPP diff --git a/be/src/util/internal_queue.h b/be/src/util/internal_queue.h index ed48183d5c..de012cedba 100644 --- a/be/src/util/internal_queue.h +++ b/be/src/util/internal_queue.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/internal-queue.h +// and modified by Doris #ifndef DORIS_BE_SRC_UTIL_INTERNAL_QUEUE_H #define DORIS_BE_SRC_UTIL_INTERNAL_QUEUE_H diff --git a/be/src/util/json_util.cpp b/be/src/util/json_util.cpp index c071a60e4a..5d8cf1acd7 100644 --- a/be/src/util/json_util.cpp +++ b/be/src/util/json_util.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/json-util.cc +// and modified by Doris #include "util/json_util.h" diff --git a/be/src/util/json_util.h b/be/src/util/json_util.h index cdf04f055b..a0db82ae8d 100644 --- a/be/src/util/json_util.h +++ b/be/src/util/json_util.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/json-util.h +// and modified by Doris #ifndef DORIS_BE_SRC_UTIL_JSON_UTIL_H #define DORIS_BE_SRC_UTIL_JSON_UTIL_H diff --git a/be/src/util/mem_info.cpp b/be/src/util/mem_info.cpp index 3a8c6f494b..cf2aa58b4d 100644 --- a/be/src/util/mem_info.cpp +++ b/be/src/util/mem_info.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/mem-info.cc +// and modified by Doris #include "util/mem_info.h" diff --git a/be/src/util/mem_info.h b/be/src/util/mem_info.h index b2c556e60f..d887158763 100644 --- a/be/src/util/mem_info.h +++ b/be/src/util/mem_info.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/mem-info.h +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_MEM_INFO_H #define DORIS_BE_SRC_COMMON_UTIL_MEM_INFO_H diff --git a/be/src/util/mem_range.h b/be/src/util/mem_range.h index 6a99023ed5..4a3a77715d 100644 --- a/be/src/util/mem_range.h +++ b/be/src/util/mem_range.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/mem-range.h +// and modified by Doris #ifndef DORIS_BE_SRC_UTIL_MEM_RANGE_H #define DORIS_BE_SRC_UTIL_MEM_RANGE_H diff --git a/be/src/util/network_util.cpp b/be/src/util/network_util.cpp index 74236b9ce1..244bed2304 100644 --- a/be/src/util/network_util.cpp +++ b/be/src/util/network_util.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/network-util.cc +// and modified by Doris #include "util/network_util.h" diff --git a/be/src/util/network_util.h b/be/src/util/network_util.h index ee2dd4eecd..af858beee2 100644 --- a/be/src/util/network_util.h +++ b/be/src/util/network_util.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/network-util.h +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_NETWORK_UTIL_H #define DORIS_BE_SRC_COMMON_UTIL_NETWORK_UTIL_H diff --git a/be/src/util/once.h b/be/src/util/once.h index df89a6480e..ff8fa89839 100644 --- a/be/src/util/once.h +++ b/be/src/util/once.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/once.h +// and modified by Doris #ifndef DORIS_BE_SRC_UTIL_ONCE_H #define DORIS_BE_SRC_UTIL_ONCE_H diff --git a/be/src/util/os_info.cpp b/be/src/util/os_info.cpp index 6fc2834dc3..db14642806 100644 --- a/be/src/util/os_info.cpp +++ b/be/src/util/os_info.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/os-info.cc +// and modified by Doris #include "util/os_info.h" diff --git a/be/src/util/os_info.h b/be/src/util/os_info.h index 147090d7e2..7b4da8438b 100644 --- a/be/src/util/os_info.h +++ b/be/src/util/os_info.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/os-info.h +// and modified by Doris #ifndef DORIS_BE_UTIL_OS_INFO_H #define DORIS_BE_UTIL_OS_INFO_H diff --git a/be/src/util/os_util.cpp b/be/src/util/os_util.cpp index 79b7f1e90f..1c5215e59a 100644 --- a/be/src/util/os_util.cpp +++ b/be/src/util/os_util.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/os-util.cpp +// and modified by Doris #include "util/os_util.h" diff --git a/be/src/util/os_util.h b/be/src/util/os_util.h index cb5d13058f..220ee0dd55 100644 --- a/be/src/util/os_util.h +++ b/be/src/util/os_util.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/os-util.h +// and modified by Doris #ifndef DORIS_BE_UTIL_OS_UTIL_H #define DORIS_BE_UTIL_OS_UTIL_H diff --git a/be/src/util/parse_util.cpp b/be/src/util/parse_util.cpp index 81e074c3ac..4e685715f6 100644 --- a/be/src/util/parse_util.cpp +++ b/be/src/util/parse_util.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/parse-util.cc +// and modified by Doris #include "util/parse_util.h" diff --git a/be/src/util/parse_util.h b/be/src/util/parse_util.h index f71ecb2ef3..839a380bed 100644 --- a/be/src/util/parse_util.h +++ b/be/src/util/parse_util.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/parse-util.h +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_PARSE_UTIL_H #define DORIS_BE_SRC_COMMON_UTIL_PARSE_UTIL_H diff --git a/be/src/util/path_builder.cpp b/be/src/util/path_builder.cpp index 6cd144e259..f9275b888f 100644 --- a/be/src/util/path_builder.cpp +++ b/be/src/util/path_builder.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/path-builder.cc +// and modified by Doris #include "util/path_builder.h" diff --git a/be/src/util/path_builder.h b/be/src/util/path_builder.h index 0039cb73d8..b52dd6a063 100644 --- a/be/src/util/path_builder.h +++ b/be/src/util/path_builder.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/path-builder.h +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_PATH_BUILDER_H #define DORIS_BE_SRC_COMMON_UTIL_PATH_BUILDER_H diff --git a/be/src/util/perf_counters.cpp b/be/src/util/perf_counters.cpp index 5b7171d065..30dd7ea763 100644 --- a/be/src/util/perf_counters.cpp +++ b/be/src/util/perf_counters.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/perf-counters.cpp +// and modified by Doris #include "util/perf_counters.h" diff --git a/be/src/util/perf_counters.h b/be/src/util/perf_counters.h index aa4c4bf358..667cf3e0ef 100644 --- a/be/src/util/perf_counters.h +++ b/be/src/util/perf_counters.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/perf-counters.h +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_PERF_COUNTERS_H #define DORIS_BE_SRC_COMMON_UTIL_PERF_COUNTERS_H diff --git a/be/src/util/pretty_printer.h b/be/src/util/pretty_printer.h index e9593452cc..66a4852c90 100644 --- a/be/src/util/pretty_printer.h +++ b/be/src/util/pretty_printer.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/pretty-printer.h +// and modified by Doris #ifndef IMPALA_UTIL_PRETTY_PRINTER_H #define IMPALA_UTIL_PRETTY_PRINTER_H diff --git a/be/src/util/progress_updater.cpp b/be/src/util/progress_updater.cpp index ebcdbc0c47..67d1156e44 100644 --- a/be/src/util/progress_updater.cpp +++ b/be/src/util/progress_updater.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/progress-updater.cpp +// and modified by Doris #include "util/progress_updater.h" diff --git a/be/src/util/progress_updater.h b/be/src/util/progress_updater.h index 9e771ac1e8..3285df8cdd 100644 --- a/be/src/util/progress_updater.h +++ b/be/src/util/progress_updater.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/progress-updater.h +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_PROGRESS_UPDATER_H #define DORIS_BE_SRC_COMMON_UTIL_PROGRESS_UPDATER_H diff --git a/be/src/util/runtime_profile.cpp b/be/src/util/runtime_profile.cpp index 08d0d69f87..bc3baa3509 100644 --- a/be/src/util/runtime_profile.cpp +++ b/be/src/util/runtime_profile.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/runtime-profile.cc +// and modified by Doris #include "util/runtime_profile.h" diff --git a/be/src/util/runtime_profile.h b/be/src/util/runtime_profile.h index b2b64cee14..5cbd27492b 100644 --- a/be/src/util/runtime_profile.h +++ b/be/src/util/runtime_profile.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/runtime-profile.h +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_RUNTIME_PROFILE_H #define DORIS_BE_SRC_COMMON_UTIL_RUNTIME_PROFILE_H diff --git a/be/src/util/spinlock.h b/be/src/util/spinlock.h index 7ecf322392..8be9663c2a 100644 --- a/be/src/util/spinlock.h +++ b/be/src/util/spinlock.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/spinlock.h +// and modified by Doris #ifndef DORIS_BE_SRC_UTIL_SPINLOCK_H #define DORIS_BE_SRC_UTIL_SPINLOCK_H diff --git a/be/src/util/sse_util.hpp b/be/src/util/sse_util.hpp index 993d6c4cc0..db99218db9 100644 --- a/be/src/util/sse_util.hpp +++ b/be/src/util/sse_util.hpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/sse-util.hpp +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_SSE_UTIL_H #define DORIS_BE_SRC_COMMON_UTIL_SSE_UTIL_H diff --git a/be/src/util/stat_util.hpp b/be/src/util/stat_util.hpp index 47a3825322..e1d98568f1 100644 --- a/be/src/util/stat_util.hpp +++ b/be/src/util/stat_util.hpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/stat-util.hpp +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_STAT_UTIL_HPP #define DORIS_BE_SRC_COMMON_UTIL_STAT_UTIL_HPP diff --git a/be/src/util/static_asserts.cpp b/be/src/util/static_asserts.cpp index 43833ad121..b578646f9b 100644 --- a/be/src/util/static_asserts.cpp +++ b/be/src/util/static_asserts.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/static-asserts.cpp +// and modified by Doris #include "runtime/datetime_value.h" #include "runtime/string_value.h" diff --git a/be/src/util/stopwatch.hpp b/be/src/util/stopwatch.hpp index 1e2840e98d..f94bd06c81 100644 --- a/be/src/util/stopwatch.hpp +++ b/be/src/util/stopwatch.hpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/stopwatch.hpp +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_STOPWATCH_HPP #define DORIS_BE_SRC_COMMON_UTIL_STOPWATCH_HPP diff --git a/be/src/util/string_parser.cpp b/be/src/util/string_parser.cpp index a63110eaad..5f25fc8133 100644 --- a/be/src/util/string_parser.cpp +++ b/be/src/util/string_parser.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/string-parser.cc +// and modified by Doris #include "string_parser.hpp" diff --git a/be/src/util/string_parser.hpp b/be/src/util/string_parser.hpp index cfb9a487ef..eecfacce32 100644 --- a/be/src/util/string_parser.hpp +++ b/be/src/util/string_parser.hpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/string-parser.hpp +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_STRING_PARSER_H #define DORIS_BE_SRC_COMMON_UTIL_STRING_PARSER_H diff --git a/be/src/util/symbols_util.cpp b/be/src/util/symbols_util.cpp index 5a7f74ae53..75492ec540 100644 --- a/be/src/util/symbols_util.cpp +++ b/be/src/util/symbols_util.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/symbols-util.cc +// and modified by Doris #include "util/symbols_util.h" diff --git a/be/src/util/symbols_util.h b/be/src/util/symbols_util.h index f89c31b5ff..716b3356a2 100644 --- a/be/src/util/symbols_util.h +++ b/be/src/util/symbols_util.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/symbols-util.h +// and modified by Doris #ifndef DORIS_BE_SRC_COMMON_UTIL_SYMBOLS_UTIL_H #define DORIS_BE_SRC_COMMON_UTIL_SYMBOLS_UTIL_H diff --git a/be/src/util/thread.cpp b/be/src/util/thread.cpp index 2d1334611b..64e7a50142 100644 --- a/be/src/util/thread.cpp +++ b/be/src/util/thread.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/thread.cc +// and modified by Doris #include "thread.h" diff --git a/be/src/util/thread.h b/be/src/util/thread.h index c890f81286..dd2a96f4b5 100644 --- a/be/src/util/thread.h +++ b/be/src/util/thread.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/thread.h +// and modified by Doris #ifndef DORIS_BE_SRC_UTIL_THREAD_H #define DORIS_BE_SRC_UTIL_THREAD_H diff --git a/be/src/util/threadpool.cpp b/be/src/util/threadpool.cpp index e41283595a..ef2757f764 100644 --- a/be/src/util/threadpool.cpp +++ b/be/src/util/threadpool.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/threadpool.cc +// and modified by Doris #include "util/threadpool.h" diff --git a/be/src/util/threadpool.h b/be/src/util/threadpool.h index 0a7ad5ede1..215b968c14 100644 --- a/be/src/util/threadpool.h +++ b/be/src/util/threadpool.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/threadpool.h +// and modified by Doris #ifndef DORIS_BE_SRC_UTIL_THREAD_POOL_H #define DORIS_BE_SRC_UTIL_THREAD_POOL_H diff --git a/be/src/util/time.cpp b/be/src/util/time.cpp index 53a0813f01..89d5631eee 100644 --- a/be/src/util/time.cpp +++ b/be/src/util/time.cpp @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/time.cc +// and modified by Doris #include "util/time.h" diff --git a/be/src/util/time.h b/be/src/util/time.h index f54dc82f8d..eee4880d85 100644 --- a/be/src/util/time.h +++ b/be/src/util/time.h @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/be/src/util/time.h +// and modified by Doris #ifndef DORIS_BE_UTIL_TIME_H #define DORIS_BE_UTIL_TIME_H diff --git a/fe/fe-core/src/main/cup/sql_parser.cup b/fe/fe-core/src/main/cup/sql_parser.cup index bd419c009a..cd71721636 100644 --- a/fe/fe-core/src/main/cup/sql_parser.cup +++ b/fe/fe-core/src/main/cup/sql_parser.cup @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/cloudera/Impala/blob/v0.7refresh/fe/src/main/cup/sql-parser.y +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/AggregateInfo.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/AggregateInfo.java index 3e14d8964f..10272b126e 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/AggregateInfo.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/AggregateInfo.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/AggregateInfo.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/AggregateInfoBase.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/AggregateInfoBase.java index ed016ef3f0..1abdbcc11c 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/AggregateInfoBase.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/AggregateInfoBase.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/AggregateInfoBase.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyticExpr.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyticExpr.java index b7e73864f5..21bdbf03de 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyticExpr.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyticExpr.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/AnalyticExpr.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyticInfo.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyticInfo.java index d1bf918576..5fb714f498 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyticInfo.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyticInfo.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/AnalyticInfo.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyticWindow.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyticWindow.java index a59750b397..65372f77bd 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyticWindow.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/AnalyticWindow.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/AnalyticWindow.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/Analyzer.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/Analyzer.java index 4be8fa5308..c296fba022 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/Analyzer.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/Analyzer.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/Analyzer.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/ArithmeticExpr.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/ArithmeticExpr.java index 79a1ffa0f2..20b5528247 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ArithmeticExpr.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ArithmeticExpr.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/ArithmeticExpr.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/BetweenPredicate.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/BetweenPredicate.java index 9729b89c97..f3c836d72f 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/BetweenPredicate.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/BetweenPredicate.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/BetweenPredicate.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/BinaryPredicate.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/BinaryPredicate.java index d1abcad937..a37705293a 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/BinaryPredicate.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/BinaryPredicate.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/BinaryPredicate.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/BoolLiteral.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/BoolLiteral.java index c98c15ceff..f551439ba9 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/BoolLiteral.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/BoolLiteral.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/BoolLiteral.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/CaseExpr.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/CaseExpr.java index 950ad95711..6e2851a89d 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/CaseExpr.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/CaseExpr.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/CaseExpr.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/CaseWhenClause.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/CaseWhenClause.java index c07bd8d79e..26c5eb54ec 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/CaseWhenClause.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/CaseWhenClause.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/CaseWhenClause.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/CastExpr.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/CastExpr.java index ed7bd624ee..5e024ae784 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/CastExpr.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/CastExpr.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/CastExpr.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java index 535744896e..bec6f5ac4c 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/ColumnDef.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/CompoundPredicate.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/CompoundPredicate.java index bda3233a26..64afaee10c 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/CompoundPredicate.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/CompoundPredicate.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/CompoundPredicate.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/DateLiteral.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/DateLiteral.java index 9f5956bc90..22ba0c368f 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/DateLiteral.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/DateLiteral.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/DateLiteral.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/DescriptorTable.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/DescriptorTable.java index 0619a62477..255a2be716 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/DescriptorTable.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/DescriptorTable.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/DescriptorTable.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/Expr.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/Expr.java index 750c42f95a..4ce1224a13 100755 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/Expr.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/Expr.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/Expr.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/ExprId.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/ExprId.java index 15f722fe13..ee8f119c15 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ExprId.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ExprId.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/ExprId.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/ExprSubstitutionMap.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/ExprSubstitutionMap.java index 35ec20802d..2c1710f100 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ExprSubstitutionMap.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ExprSubstitutionMap.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/ExprSubstitutionMap.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/FromClause.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/FromClause.java index be71841967..b2f5e29f87 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/FromClause.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/FromClause.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/FromClause.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionArgs.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionArgs.java index d33c61fd89..55ed57d4f4 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionArgs.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionArgs.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/FunctionArgs.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionArgsDef.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionArgsDef.java index 159b14569f..d0b07e9bea 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionArgsDef.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionArgsDef.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/FunctionArgsDef.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionCallExpr.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionCallExpr.java index 79c13fe03b..cb03fc0039 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionCallExpr.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionCallExpr.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/FunctionCallExpr.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionName.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionName.java index 609ee8bf3e..7a85852b9b 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionName.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionName.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/FunctionName.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionParams.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionParams.java index 59d85ace26..8234e25201 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionParams.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionParams.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/FunctionParams.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/InPredicate.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/InPredicate.java index e8f58f88f8..e30d8fde19 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/InPredicate.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/InPredicate.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/InPredicate.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/InlineViewRef.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/InlineViewRef.java index 8df63b4492..7700ef8507 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/InlineViewRef.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/InlineViewRef.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/InlineViewRef.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/IsNullPredicate.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/IsNullPredicate.java index 796635cdbf..c266e93bae 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/IsNullPredicate.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/IsNullPredicate.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/IsNullPredicate.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/JoinOperator.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/JoinOperator.java index 49d9e9f7b4..263095b0d2 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/JoinOperator.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/JoinOperator.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/JoinOperator.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/LikePredicate.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/LikePredicate.java index 8d72c2a112..9cbf924bf4 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/LikePredicate.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/LikePredicate.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/LikePredicate.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/LimitElement.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/LimitElement.java index a26a9eb2b4..80e3b2a46b 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/LimitElement.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/LimitElement.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/LimitElement.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/LiteralExpr.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/LiteralExpr.java index 6e435cd54e..18c5b0d132 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/LiteralExpr.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/LiteralExpr.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/LiteralExpr.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/NullLiteral.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/NullLiteral.java index 1a7114a023..f153924f66 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/NullLiteral.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/NullLiteral.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/NullLiteral.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/OrderByElement.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/OrderByElement.java index 42f150905b..24ee9f5f59 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/OrderByElement.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/OrderByElement.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/OrderByElement.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/ParseNode.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/ParseNode.java index 09d89d7cab..2ca0c59723 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ParseNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ParseNode.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/ParseNode.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/Predicate.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/Predicate.java index cc4f4dcf5d..a9cfed1f86 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/Predicate.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/Predicate.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/Predicate.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/QueryStmt.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/QueryStmt.java index 4888ab7566..47e9c244ea 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/QueryStmt.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/QueryStmt.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/QueryStmt.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectList.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectList.java index 10d36067cb..f12e3b69ac 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectList.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectList.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/SelectList.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectListItem.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectListItem.java index c55bd7c977..7ad88a24b9 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectListItem.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectListItem.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/SelectListItem.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java index 502fae51aa..9bf0875c12 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/SelectStmt.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotDescriptor.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotDescriptor.java index 8081ff57e0..373b88b26d 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotDescriptor.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotDescriptor.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/SlotDescriptor.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotId.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotId.java index c7687c4713..370eb0ebd4 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotId.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotId.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/SlotId.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotRef.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotRef.java index f2f87e0586..1e37a0338f 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotRef.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotRef.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/SlotRef.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/SortInfo.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/SortInfo.java index e7b6432ea0..83490372bb 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/SortInfo.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/SortInfo.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/SortInfo.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/StatementBase.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/StatementBase.java index da78614b28..2a4f2aeec7 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/StatementBase.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/StatementBase.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/StatementBase.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/StmtRewriter.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/StmtRewriter.java index 731d430098..32069bd533 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/StmtRewriter.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/StmtRewriter.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/StmtRewriter.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/StringLiteral.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/StringLiteral.java index 2db36f943c..c0098e6aae 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/StringLiteral.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/StringLiteral.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/StringLiteral.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/Subquery.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/Subquery.java index 2d8cb978c8..1934236b87 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/Subquery.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/Subquery.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/Subquery.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/TableName.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/TableName.java index ed684818b0..46dff1623e 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/TableName.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/TableName.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/TableName.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/TableRef.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/TableRef.java index 7e9a509002..4dd95a4b61 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/TableRef.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/TableRef.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/TableRef.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/ToSqlUtils.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/ToSqlUtils.java index 55dd9a4fa0..d474cacaaf 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ToSqlUtils.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ToSqlUtils.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/ToSqlUtils.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleDescriptor.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleDescriptor.java index 9a7b7b7bd0..e0d11c0331 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleDescriptor.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleDescriptor.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/TupleDescriptor.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleId.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleId.java index 0c6a88c42a..0104c090f8 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleId.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleId.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/TupleId.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleIsNullPredicate.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleIsNullPredicate.java index a0e637a1ef..b113a9b234 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleIsNullPredicate.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/TupleIsNullPredicate.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/TupleIsNullPredicate.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/TypeDef.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/TypeDef.java index 37c8465d20..024693437f 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/TypeDef.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/TypeDef.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/TypeDef.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/WithClause.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/WithClause.java index 57710eb38a..73bfe0d58d 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/WithClause.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/WithClause.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/WithClause.java +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/AliasGenerator.java b/fe/fe-core/src/main/java/org/apache/doris/common/AliasGenerator.java index e1427cfb80..b7da430d4b 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/common/AliasGenerator.java +++ b/fe/fe-core/src/main/java/org/apache/doris/common/AliasGenerator.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/AliasGenerator.java +// and modified by Doris package org.apache.doris.common; diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/AnalysisException.java b/fe/fe-core/src/main/java/org/apache/doris/common/AnalysisException.java index 8f715fb852..b62e367786 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/common/AnalysisException.java +++ b/fe/fe-core/src/main/java/org/apache/doris/common/AnalysisException.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/AnalysisException.java +// and modified by Doris package org.apache.doris.common; diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/ColumnAliasGenerator.java b/fe/fe-core/src/main/java/org/apache/doris/common/ColumnAliasGenerator.java index 330f35a52e..da7dc47b55 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/common/ColumnAliasGenerator.java +++ b/fe/fe-core/src/main/java/org/apache/doris/common/ColumnAliasGenerator.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/ColumnAliasGenerator.java +// and modified by Doris package org.apache.doris.common; diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/Id.java b/fe/fe-core/src/main/java/org/apache/doris/common/Id.java index 5976d94d41..52187d6fb5 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/common/Id.java +++ b/fe/fe-core/src/main/java/org/apache/doris/common/Id.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/Id.java +// and modified by Doris package org.apache.doris.common; diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/IdGenerator.java b/fe/fe-core/src/main/java/org/apache/doris/common/IdGenerator.java index a401739136..1085c297bd 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/common/IdGenerator.java +++ b/fe/fe-core/src/main/java/org/apache/doris/common/IdGenerator.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/IdGenerator.java +// and modified by Doris package org.apache.doris.common; diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/Pair.java b/fe/fe-core/src/main/java/org/apache/doris/common/Pair.java index 1a520e02c3..3894632d0b 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/common/Pair.java +++ b/fe/fe-core/src/main/java/org/apache/doris/common/Pair.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/Pair.java +// and modified by Doris package org.apache.doris.common; diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/TreeNode.java b/fe/fe-core/src/main/java/org/apache/doris/common/TreeNode.java index cb5a0df0ea..d28f51f31a 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/common/TreeNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/common/TreeNode.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/TreeNode.java +// and modified by Doris package org.apache.doris.common; diff --git a/fe/fe-core/src/main/java/org/apache/doris/monitor/jvm/JvmPauseMonitor.java b/fe/fe-core/src/main/java/org/apache/doris/monitor/jvm/JvmPauseMonitor.java index 107062c004..0bf0b29f20 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/monitor/jvm/JvmPauseMonitor.java +++ b/fe/fe-core/src/main/java/org/apache/doris/monitor/jvm/JvmPauseMonitor.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-4.0.0/fe/src/main/java/org/apache/impala/util/JvmPauseMonitor.java +// and modified by Doris package org.apache.doris.monitor.jvm; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/AggregationNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/AggregationNode.java index 8bc514d19c..282da5489c 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/AggregationNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/AggregationNode.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/AggregationNode.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/AnalyticEvalNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/AnalyticEvalNode.java index 3e53db5a2d..4bac949ac1 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/AnalyticEvalNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/AnalyticEvalNode.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/AnalyticEvalNode.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/AnalyticPlanner.java b/fe/fe-core/src/main/java/org/apache/doris/planner/AnalyticPlanner.java index d26c203ffa..2ab2298979 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/AnalyticPlanner.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/AnalyticPlanner.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/AnalyticPlanner.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/DataPartition.java b/fe/fe-core/src/main/java/org/apache/doris/planner/DataPartition.java index 3c80016a97..9bd82fc720 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/DataPartition.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/DataPartition.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/DataPartition.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/DataSink.java b/fe/fe-core/src/main/java/org/apache/doris/planner/DataSink.java index a4f8970007..2de32c35fa 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/DataSink.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/DataSink.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/DataSink.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/DataStreamSink.java b/fe/fe-core/src/main/java/org/apache/doris/planner/DataStreamSink.java index f07e6477a7..f16f868842 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/DataStreamSink.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/DataStreamSink.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/DataStreamSink.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/DistributedPlanner.java b/fe/fe-core/src/main/java/org/apache/doris/planner/DistributedPlanner.java index 5d7d30aec2..215790e7d1 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/DistributedPlanner.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/DistributedPlanner.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/DistributedPlanner.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/ExchangeNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/ExchangeNode.java index 88e6ee202e..996e05e184 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/ExchangeNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/ExchangeNode.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/ExchangeNode.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/HashJoinNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/HashJoinNode.java index 5e6fa40fad..66fd1c3159 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/HashJoinNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/HashJoinNode.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/HashJoinNode.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/PlanFragment.java b/fe/fe-core/src/main/java/org/apache/doris/planner/PlanFragment.java index f081b7db31..1a5bc3843d 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/PlanFragment.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/PlanFragment.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/PlanFragment.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/PlanFragmentId.java b/fe/fe-core/src/main/java/org/apache/doris/planner/PlanFragmentId.java index 537e4ed93c..7c0ff3ab35 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/PlanFragmentId.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/PlanFragmentId.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/PlanFragmentId.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNode.java index ac8fc493d8..58a0019962 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNode.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/PlanNode.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNodeId.java b/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNodeId.java index 9e7cc3f306..5b78dae858 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNodeId.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNodeId.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/PlanNodeId.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/Planner.java b/fe/fe-core/src/main/java/org/apache/doris/planner/Planner.java index 96a3f4f0eb..a5a88ee17a 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/Planner.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/Planner.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/Planner.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/PlannerContext.java b/fe/fe-core/src/main/java/org/apache/doris/planner/PlannerContext.java index 2fae004fb6..f1cf9d3405 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/PlannerContext.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/PlannerContext.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/PlannerContext.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/ScanNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/ScanNode.java index 1deec6b97d..8b8c52b5bc 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/ScanNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/ScanNode.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/ScanNode.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/SelectNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/SelectNode.java index d8eacd21c3..c732d9ecc6 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/SelectNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/SelectNode.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/SelectNode.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java b/fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java index 4e1369e9fe..8ad921bf09 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/SingleNodePlanner.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/SortNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/SortNode.java index 8d796538d9..7605754342 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/SortNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/SortNode.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/SortNode.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/UnionNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/UnionNode.java index b42fc68e31..08947ca3c4 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/UnionNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/UnionNode.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/UnionNode.java +// and modified by Doris package org.apache.doris.planner; diff --git a/fe/fe-core/src/main/java/org/apache/doris/rewrite/BetweenToCompoundRule.java b/fe/fe-core/src/main/java/org/apache/doris/rewrite/BetweenToCompoundRule.java index ba1f22b733..5373a1000d 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/rewrite/BetweenToCompoundRule.java +++ b/fe/fe-core/src/main/java/org/apache/doris/rewrite/BetweenToCompoundRule.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/BetweenToCompoundRule.java +// and modified by Doris package org.apache.doris.rewrite; diff --git a/fe/fe-core/src/main/java/org/apache/doris/rewrite/ExprRewriteRule.java b/fe/fe-core/src/main/java/org/apache/doris/rewrite/ExprRewriteRule.java index 80bc9f7d66..88ca47d7ab 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/rewrite/ExprRewriteRule.java +++ b/fe/fe-core/src/main/java/org/apache/doris/rewrite/ExprRewriteRule.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/ExprRewriteRule.java +// and modified by Doris package org.apache.doris.rewrite; diff --git a/fe/fe-core/src/main/java/org/apache/doris/rewrite/ExprRewriter.java b/fe/fe-core/src/main/java/org/apache/doris/rewrite/ExprRewriter.java index eb211807bc..29fd5d4e71 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/rewrite/ExprRewriter.java +++ b/fe/fe-core/src/main/java/org/apache/doris/rewrite/ExprRewriter.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/ExprRewriter.java +// and modified by Doris package org.apache.doris.rewrite; diff --git a/fe/fe-core/src/main/java/org/apache/doris/rewrite/FoldConstantsRule.java b/fe/fe-core/src/main/java/org/apache/doris/rewrite/FoldConstantsRule.java index 6f9bfa8042..fb8412cc81 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/rewrite/FoldConstantsRule.java +++ b/fe/fe-core/src/main/java/org/apache/doris/rewrite/FoldConstantsRule.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/FoldConstantsRule.java +// and modified by Doris package org.apache.doris.rewrite; diff --git a/fe/fe-core/src/main/java/org/apache/doris/rewrite/NormalizeBinaryPredicatesRule.java b/fe/fe-core/src/main/java/org/apache/doris/rewrite/NormalizeBinaryPredicatesRule.java index cef1efa5cd..5940961e03 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/rewrite/NormalizeBinaryPredicatesRule.java +++ b/fe/fe-core/src/main/java/org/apache/doris/rewrite/NormalizeBinaryPredicatesRule.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-2.9.0/fe/src/main/java/org/apache/impala/NormalizeBinaryPredicatesRule.java +// and modified by Doris package org.apache.doris.rewrite; diff --git a/fe/fe-core/src/main/jflex/sql_scanner.flex b/fe/fe-core/src/main/jflex/sql_scanner.flex index eabfbef4b3..aa2a3f3ff9 100644 --- a/fe/fe-core/src/main/jflex/sql_scanner.flex +++ b/fe/fe-core/src/main/jflex/sql_scanner.flex @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/cloudera/Impala/blob/v0.7refresh/fe/src/main/jflex/sql-scanner.flex +// and modified by Doris package org.apache.doris.analysis; diff --git a/fe/java-udf/src/main/java/org/apache/doris/udf/JMXJsonUtil.java b/fe/java-udf/src/main/java/org/apache/doris/udf/JMXJsonUtil.java index 47057d26b4..e65c7ae7f6 100644 --- a/fe/java-udf/src/main/java/org/apache/doris/udf/JMXJsonUtil.java +++ b/fe/java-udf/src/main/java/org/apache/doris/udf/JMXJsonUtil.java @@ -14,6 +14,9 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// This file is copied from +// https://github.com/apache/impala/blob/branch-4.0.0/fe/src/main/java/org/apache/impala/util/JMXJsonUtil.java +// and modified by Doris package org.apache.doris.udf; diff --git a/gensrc/script/doris_builtins_functions.py b/gensrc/script/doris_builtins_functions.py index 6dea5780a2..d655de36fc 100755 --- a/gensrc/script/doris_builtins_functions.py +++ b/gensrc/script/doris_builtins_functions.py @@ -17,6 +17,9 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +# This file is copied from +# https://github.com/apache/impala/blob/branch-2.9.0/common/function-registry/impala_functions.py +# and modified by Doris # This is a list of all the functions that are not auto-generated. # It contains all the meta data that describes the function. diff --git a/gensrc/script/file2array.sh b/gensrc/script/file2array.sh deleted file mode 100755 index 565871f438..0000000000 --- a/gensrc/script/file2array.sh +++ /dev/null @@ -1,108 +0,0 @@ -#!/bin/bash -# 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. - -#################################################################### -# This script is used to build Doris used in Baidu - -# Convert file to a C array with provided name. -# -# Also produce length variable of type size_t with _len suffix. -# -# We add an extra null byte on the end of the array, which is not -# included in the length, to allow it to be used as a string if needed. -# -set -e - -arrname="" -modifiers="" -null_terminate=0 - -usage () { - echo "Usage: $0 [options] [input file] " >&2 - echo "Options:" >&2 - echo " -v " >&2 - echo " Name of C variable in output file. Must be provided." >&2 - echo " -m " >&2 - echo " Modifiers for C variable in output file. Default is const." >&2 - echo " -n" >&2 - echo " Add a trailing null byte, not included in length." >&2 - exit 1 -} - -while getopts "m:nv:" opt; do - case $opt in - m) - if [[ $modifiers != "" ]]; then - echo "-m specified twice" >&2 - usage - fi - modifiers=$OPTARG - ;; - n) - null_terminate=1 - ;; - v) - if [[ $arrname != "" ]]; then - echo "-v specified twice" >&2 - usage - fi - arrname=$OPTARG - ;; - \?) - echo "Invalid option: -$OPTARG" >&2 - usage - esac -done -shift $((OPTIND - 1)) - -infile=$1 -if [[ $# > 1 ]]; then - echo "Too many remaining arguments: $@" >&2 - usage -fi - -if [ -z "$arrname" ]; then - echo "-v not provided or empty." >&2 - usage -fi - -if [ -z "$modifiers" ]; then - # Default is const with global linking visibility - modifiers="const" -fi - -echo "#include " # For size_t -echo -# Preceding extern declaration guarantees external linkage in C++ -echo "extern $modifiers unsigned char $arrname[];"; -echo "extern $modifiers size_t ${arrname}_len;" -echo -echo "$modifiers unsigned char $arrname[] = {" -xxd -i < $infile -if [ ${null_terminate} = 1 ]; then - echo ", 0x0" -fi -echo "};" - -echo -n "$modifiers size_t ${arrname}_len = " -if [ ${null_terminate} = 1 ]; then - echo "sizeof(${arrname}) - 1;" -else - echo "sizeof(${arrname});" -fi - diff --git a/gensrc/script/gen_functions.py b/gensrc/script/gen_functions.py index 839c870514..303e9fda02 100755 --- a/gensrc/script/gen_functions.py +++ b/gensrc/script/gen_functions.py @@ -17,6 +17,9 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +# This file is copied from +# https://github.com/cloudera/Impala/blob/v0.7refresh/common/function-registry/gen_functions.py +# and modified by Doris """ # This script will generate the implementation of the simple functions for the BE.