You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by he...@apache.org on 2026/03/09 10:44:59 UTC
(doris) branch master updated: [be](namespace) remove vecotorized and pipeline namespace (#61142)
This is an automated email from the ASF dual-hosted git repository.
hellostephen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 4d85ff1c8e5 [be](namespace) remove vecotorized and pipeline namespace (#61142)
4d85ff1c8e5 is described below
commit 4d85ff1c8e5af4f7cf5fa38582fd094de211ecae
Author: yiguolei <gu...@selectdb.com>
AuthorDate: Mon Mar 9 18:44:51 2026 +0800
[be](namespace) remove vecotorized and pipeline namespace (#61142)
---
be/benchmark/benchmark_fastunion.hpp | 20 +-
be/benchmark/benchmark_main.cpp | 4 +-
be/benchmark/benchmark_string.hpp | 4 +-
be/src/cloud/cloud_delta_writer.cpp | 3 +-
be/src/cloud/cloud_delta_writer.h | 2 +-
be/src/common/kerberos/kerberos_ticket_mgr.cpp | 3 +-
be/src/common/kerberos/kerberos_ticket_mgr.h | 4 +-
be/src/common/stack_trace.cpp | 2 +-
be/src/common/symbol_index.cpp | 4 +-
be/src/core/accurate_comparison.h | 4 +-
be/src/core/arena.h | 4 +-
be/src/core/arena_with_free_lists.h | 4 +-
be/src/core/block/block.cpp | 6 +-
be/src/core/block/block.h | 3 -
be/src/core/block/column_numbers.h | 2 +-
be/src/core/block/column_with_type_and_name.cpp | 8 +-
be/src/core/block/column_with_type_and_name.h | 7 +-
be/src/core/block/columns_with_type_and_name.h | 4 +-
be/src/core/block/materialize_block.cpp | 4 +-
be/src/core/block/materialize_block.h | 4 +-
be/src/core/call_on_type_index.h | 4 +-
be/src/core/column/column.cpp | 4 +-
be/src/core/column/column.h | 8 +-
be/src/core/column/column_array.cpp | 4 +-
be/src/core/column/column_array.h | 4 +-
be/src/core/column/column_complex.h | 4 +-
be/src/core/column/column_const.cpp | 4 +-
be/src/core/column/column_const.h | 4 +-
be/src/core/column/column_decimal.cpp | 6 +-
be/src/core/column/column_decimal.h | 4 +-
be/src/core/column/column_dictionary.h | 15 +-
be/src/core/column/column_dummy.h | 4 +-
be/src/core/column/column_execute_util.h | 4 +-
be/src/core/column/column_filter_helper.cpp | 8 +-
be/src/core/column/column_filter_helper.h | 4 +-
be/src/core/column/column_fixed_length_object.h | 4 +-
be/src/core/column/column_map.cpp | 4 +-
be/src/core/column/column_map.h | 4 +-
be/src/core/column/column_nothing.h | 4 +-
be/src/core/column/column_nullable.cpp | 8 +-
be/src/core/column/column_nullable.h | 4 +-
be/src/core/column/column_string.cpp | 8 +-
be/src/core/column/column_string.h | 4 +-
be/src/core/column/column_struct.cpp | 6 +-
be/src/core/column/column_struct.h | 4 +-
be/src/core/column/column_varbinary.cpp | 10 +-
be/src/core/column/column_varbinary.h | 4 +-
be/src/core/column/column_variant.cpp | 29 +-
be/src/core/column/column_variant.h | 13 +-
be/src/core/column/column_vector.cpp | 4 +-
be/src/core/column/column_vector.h | 12 +-
be/src/core/column/columns_common.cpp | 4 +-
be/src/core/column/columns_common.h | 4 +-
be/src/core/column/predicate_column.h | 4 +-
be/src/core/column/subcolumn_tree.h | 6 +-
be/src/core/cow.h | 9 +-
be/src/core/data_type/convert_field_to_type.cpp | 4 +-
be/src/core/data_type/convert_field_to_type.h | 4 +-
be/src/core/data_type/data_type.cpp | 10 +-
be/src/core/data_type/data_type.h | 2 -
be/src/core/data_type/data_type_agg_state.h | 4 +-
be/src/core/data_type/data_type_array.cpp | 4 +-
be/src/core/data_type/data_type_array.h | 6 +-
be/src/core/data_type/data_type_bitmap.cpp | 4 +-
be/src/core/data_type/data_type_bitmap.h | 4 +-
be/src/core/data_type/data_type_date.cpp | 4 +-
be/src/core/data_type/data_type_date.h | 4 +-
.../data_type/data_type_date_or_datetime_v2.cpp | 6 +-
.../core/data_type/data_type_date_or_datetime_v2.h | 6 +-
be/src/core/data_type/data_type_date_time.cpp | 4 +-
be/src/core/data_type/data_type_date_time.h | 4 +-
be/src/core/data_type/data_type_decimal.cpp | 4 +-
be/src/core/data_type/data_type_decimal.h | 6 +-
be/src/core/data_type/data_type_factory.cpp | 158 +++---
be/src/core/data_type/data_type_factory.hpp | 11 +-
.../data_type/data_type_fixed_length_object.cpp | 4 +-
.../core/data_type/data_type_fixed_length_object.h | 4 +-
be/src/core/data_type/data_type_hll.cpp | 4 +-
be/src/core/data_type/data_type_hll.h | 4 +-
be/src/core/data_type/data_type_ipv4.cpp | 4 +-
be/src/core/data_type/data_type_ipv4.h | 6 +-
be/src/core/data_type/data_type_ipv6.cpp | 4 +-
be/src/core/data_type/data_type_ipv6.h | 6 +-
be/src/core/data_type/data_type_jsonb.cpp | 6 +-
be/src/core/data_type/data_type_jsonb.h | 4 +-
be/src/core/data_type/data_type_map.cpp | 4 +-
be/src/core/data_type/data_type_map.h | 6 +-
be/src/core/data_type/data_type_nothing.cpp | 4 +-
be/src/core/data_type/data_type_nothing.h | 4 +-
be/src/core/data_type/data_type_nullable.cpp | 4 +-
be/src/core/data_type/data_type_nullable.h | 6 +-
be/src/core/data_type/data_type_number.h | 4 +-
be/src/core/data_type/data_type_number_base.cpp | 4 +-
be/src/core/data_type/data_type_number_base.h | 4 +-
be/src/core/data_type/data_type_quantilestate.cpp | 4 +-
be/src/core/data_type/data_type_quantilestate.h | 4 +-
be/src/core/data_type/data_type_string.cpp | 4 +-
be/src/core/data_type/data_type_string.h | 4 +-
be/src/core/data_type/data_type_struct.cpp | 4 +-
be/src/core/data_type/data_type_struct.h | 6 +-
be/src/core/data_type/data_type_time.cpp | 4 +-
be/src/core/data_type/data_type_time.h | 4 +-
be/src/core/data_type/data_type_timestamptz.cpp | 4 +-
be/src/core/data_type/data_type_timestamptz.h | 4 +-
be/src/core/data_type/data_type_varbinary.cpp | 4 +-
be/src/core/data_type/data_type_varbinary.h | 4 +-
be/src/core/data_type/data_type_variant.cpp | 6 +-
be/src/core/data_type/data_type_variant.h | 6 +-
be/src/core/data_type/get_least_supertype.cpp | 4 +-
be/src/core/data_type/get_least_supertype.h | 4 +-
be/src/core/data_type/nested_utils.cpp | 4 +-
be/src/core/data_type/nested_utils.h | 4 +-
be/src/core/data_type/number_traits.h | 4 +-
be/src/core/data_type/primitive_type.h | 192 ++++---
.../complex_type_deserialize_util.h | 4 +-
.../core/data_type_serde/data_type_array_serde.cpp | 6 +-
.../core/data_type_serde/data_type_array_serde.h | 4 +-
.../data_type_serde/data_type_bitmap_serde.cpp | 5 +-
.../core/data_type_serde/data_type_bitmap_serde.h | 4 +-
.../data_type_date_or_datetime_serde.cpp | 9 +-
.../data_type_date_or_datetime_serde.h | 8 +-
.../data_type_serde/data_type_datetimev2_serde.cpp | 9 +-
.../data_type_serde/data_type_datetimev2_serde.h | 8 +-
.../data_type_serde/data_type_datev2_serde.cpp | 9 +-
.../core/data_type_serde/data_type_datev2_serde.h | 8 +-
.../data_type_serde/data_type_decimal_serde.cpp | 12 +-
.../core/data_type_serde/data_type_decimal_serde.h | 6 +-
.../core/data_type_serde/data_type_hll_serde.cpp | 4 +-
be/src/core/data_type_serde/data_type_hll_serde.h | 4 +-
.../core/data_type_serde/data_type_ipv4_serde.cpp | 6 +-
be/src/core/data_type_serde/data_type_ipv4_serde.h | 6 +-
.../core/data_type_serde/data_type_ipv6_serde.cpp | 8 +-
be/src/core/data_type_serde/data_type_ipv6_serde.h | 6 +-
.../core/data_type_serde/data_type_jsonb_serde.cpp | 4 +-
.../core/data_type_serde/data_type_jsonb_serde.h | 4 +-
.../core/data_type_serde/data_type_map_serde.cpp | 4 +-
be/src/core/data_type_serde/data_type_map_serde.h | 4 +-
.../core/data_type_serde/data_type_nothing_serde.h | 4 +-
.../data_type_serde/data_type_nullable_serde.cpp | 9 +-
.../data_type_serde/data_type_nullable_serde.h | 6 +-
.../data_type_serde/data_type_number_serde.cpp | 9 +-
.../core/data_type_serde/data_type_number_serde.h | 6 +-
.../data_type_quantilestate_serde.cpp | 4 +-
.../data_type_quantilestate_serde.h | 4 +-
be/src/core/data_type_serde/data_type_serde.cpp | 4 +-
be/src/core/data_type_serde/data_type_serde.h | 6 +-
.../data_type_serde/data_type_string_serde.cpp | 9 +-
.../core/data_type_serde/data_type_string_serde.h | 6 +-
.../data_type_serde/data_type_struct_serde.cpp | 5 +-
.../core/data_type_serde/data_type_struct_serde.h | 4 +-
.../core/data_type_serde/data_type_time_serde.cpp | 4 +-
be/src/core/data_type_serde/data_type_time_serde.h | 2 -
.../data_type_timestamptz_serde.cpp | 9 +-
.../data_type_serde/data_type_timestamptz_serde.h | 8 +-
.../data_type_serde/data_type_varbinary_serde.cpp | 7 +-
.../data_type_serde/data_type_varbinary_serde.h | 4 +-
.../data_type_serde/data_type_variant_serde.cpp | 8 +-
.../core/data_type_serde/data_type_variant_serde.h | 4 +-
.../core/data_type_serde/datelike_serde_common.hpp | 4 +-
be/src/core/decimal_comparison.h | 4 +-
be/src/core/field.cpp | 4 +-
be/src/core/field.h | 10 +-
be/src/core/memcmp_small.h | 16 +-
be/src/core/memcpy_small.h | 6 +-
be/src/core/pod_array.cpp | 4 +-
be/src/core/pod_array.h | 4 +-
be/src/core/pod_array_fwd.h | 4 +-
be/src/core/string_buffer.hpp | 4 +-
be/src/core/string_ref.h | 18 +-
be/src/core/type_limit.h | 30 +-
be/src/core/types.h | 43 +-
be/src/core/uint128.h | 8 +-
be/src/core/value/bitmap_value.h | 2 +-
be/src/core/value/hll.cpp | 2 +-
be/src/core/value/hll.h | 2 +-
be/src/core/value/ip_address_cidr.h | 25 +-
be/src/core/value/ipv4_value.h | 12 +-
be/src/core/value/ipv6_value.h | 10 +-
be/src/core/value/timestamptz_value.cpp | 10 +-
be/src/core/value/timestamptz_value.h | 4 +-
be/src/core/value/vdatetime_value.cpp | 39 +-
be/src/core/value/vdatetime_value.h | 10 +-
be/src/exec/common/agg_utils.h | 149 ++---
.../exec/common/arrow_column_to_doris_column.cpp | 4 +-
be/src/exec/common/arrow_column_to_doris_column.h | 4 +-
be/src/exec/common/bit_helpers.h | 4 +-
be/src/exec/common/columns_hashing.h | 4 +-
be/src/exec/common/columns_hashing_impl.h | 4 +-
.../data_gen_functions/vdata_gen_function_inf.h | 6 +-
.../common/data_gen_functions/vnumbers_tvf.cpp | 16 +-
.../exec/common/data_gen_functions/vnumbers_tvf.h | 5 +-
be/src/exec/common/distinct_agg_utils.h | 128 ++---
be/src/exec/common/field_visitors.h | 4 +-
be/src/exec/common/format_ip.cpp | 4 +-
be/src/exec/common/format_ip.h | 4 +-
be/src/exec/common/hash_table/hash.h | 94 +--
be/src/exec/common/hash_table/hash_key_type.h | 19 +-
be/src/exec/common/hash_table/hash_map_context.h | 4 +-
be/src/exec/common/hash_table/hash_map_util.h | 7 +-
be/src/exec/common/hash_table/hash_table.h | 30 +-
.../exec/common/hash_table/hash_table_set_build.h | 4 +-
.../exec/common/hash_table/hash_table_set_probe.h | 4 +-
be/src/exec/common/hash_table/join_hash_table.h | 3 +-
be/src/exec/common/hash_table/ph_hash_map.h | 2 +-
be/src/exec/common/hash_table/ph_hash_set.h | 2 +-
be/src/exec/common/hash_table/phmap_fwd_decl.h | 4 +-
be/src/exec/common/hash_table/string_hash_table.h | 8 +-
be/src/exec/common/hex.cpp | 4 +-
be/src/exec/common/hex.h | 4 +-
be/src/exec/common/histogram_helpers.hpp | 4 +-
be/src/exec/common/ipv6_to_binary.h | 4 +-
be/src/exec/common/join_utils.h | 106 ++--
be/src/exec/common/partition_sort_utils.cpp | 15 +-
be/src/exec/common/partition_sort_utils.h | 100 ++--
be/src/exec/common/set_utils.h | 91 ++-
be/src/exec/common/sip_hash.h | 28 +-
be/src/exec/common/stringop_substring.h | 10 +-
be/src/exec/common/template_helpers.hpp | 4 +-
be/src/exec/common/util.hpp | 4 +-
be/src/exec/common/varbinaryop_subbinary.h | 9 +-
be/src/exec/common/variant_util.cpp | 24 +-
be/src/exec/common/variant_util.h | 18 +-
be/src/exec/connector/jni_connector.cpp | 8 +-
be/src/exec/connector/jni_connector.h | 6 +-
.../exec/connector/skewed_partition_rebalancer.cpp | 4 +-
.../exec/connector/skewed_partition_rebalancer.h | 4 +-
be/src/exec/connector/vjdbc_connector.cpp | 19 +-
be/src/exec/connector/vjdbc_connector.h | 5 +-
be/src/exec/es/es_scroll_parser.cpp | 58 +-
be/src/exec/es/es_scroll_parser.h | 7 +-
be/src/exec/exchange/exchange_writer.cpp | 45 +-
be/src/exec/exchange/exchange_writer.h | 38 +-
.../exec/exchange/local_exchange_sink_operator.cpp | 18 +-
.../exec/exchange/local_exchange_sink_operator.h | 12 +-
.../exchange/local_exchange_source_operator.cpp | 7 +-
.../exec/exchange/local_exchange_source_operator.h | 6 +-
be/src/exec/exchange/local_exchanger.cpp | 95 ++--
be/src/exec/exchange/local_exchanger.h | 68 +--
be/src/exec/exchange/vdata_stream_mgr.cpp | 2 -
be/src/exec/exchange/vdata_stream_mgr.h | 4 -
be/src/exec/exchange/vdata_stream_recvr.cpp | 14 +-
be/src/exec/exchange/vdata_stream_recvr.h | 20 +-
be/src/exec/exchange/vdata_stream_sender.cpp | 10 +-
be/src/exec/exchange/vdata_stream_sender.h | 29 +-
be/src/exec/operator/aggregation_sink_operator.cpp | 460 ++++++++-------
be/src/exec/operator/aggregation_sink_operator.h | 52 +-
.../exec/operator/aggregation_source_operator.cpp | 203 ++++---
be/src/exec/operator/aggregation_source_operator.h | 34 +-
be/src/exec/operator/analytic_sink_operator.cpp | 79 ++-
be/src/exec/operator/analytic_sink_operator.h | 55 +-
be/src/exec/operator/analytic_source_operator.cpp | 7 +-
be/src/exec/operator/analytic_source_operator.h | 4 +-
be/src/exec/operator/assert_num_rows_operator.cpp | 16 +-
be/src/exec/operator/assert_num_rows_operator.h | 6 +-
be/src/exec/operator/blackhole_sink_operator.cpp | 6 +-
be/src/exec/operator/blackhole_sink_operator.h | 9 +-
be/src/exec/operator/cache_sink_operator.cpp | 8 +-
be/src/exec/operator/cache_sink_operator.h | 4 +-
be/src/exec/operator/cache_source_operator.cpp | 12 +-
be/src/exec/operator/cache_source_operator.h | 10 +-
be/src/exec/operator/data_queue.cpp | 15 +-
be/src/exec/operator/data_queue.h | 17 +-
be/src/exec/operator/datagen_operator.cpp | 10 +-
be/src/exec/operator/datagen_operator.h | 6 +-
be/src/exec/operator/dict_sink_operator.cpp | 25 +-
be/src/exec/operator/dict_sink_operator.h | 12 +-
.../distinct_streaming_aggregation_operator.cpp | 118 ++--
.../distinct_streaming_aggregation_operator.h | 34 +-
be/src/exec/operator/empty_set_operator.cpp | 7 +-
be/src/exec/operator/empty_set_operator.h | 6 +-
be/src/exec/operator/es_scan_operator.cpp | 8 +-
be/src/exec/operator/es_scan_operator.h | 10 +-
be/src/exec/operator/exchange_sink_buffer.cpp | 36 +-
be/src/exec/operator/exchange_sink_buffer.h | 24 +-
be/src/exec/operator/exchange_sink_operator.cpp | 42 +-
be/src/exec/operator/exchange_sink_operator.h | 25 +-
be/src/exec/operator/exchange_source_operator.cpp | 11 +-
be/src/exec/operator/exchange_source_operator.h | 14 +-
be/src/exec/operator/file_scan_operator.cpp | 33 +-
be/src/exec/operator/file_scan_operator.h | 25 +-
.../operator/group_commit_block_sink_operator.cpp | 27 +-
.../operator/group_commit_block_sink_operator.h | 20 +-
.../exec/operator/group_commit_scan_operator.cpp | 10 +-
be/src/exec/operator/group_commit_scan_operator.h | 8 +-
be/src/exec/operator/hashjoin_build_sink.cpp | 148 +++--
be/src/exec/operator/hashjoin_build_sink.h | 40 +-
be/src/exec/operator/hashjoin_probe_operator.cpp | 88 ++-
be/src/exec/operator/hashjoin_probe_operator.h | 48 +-
be/src/exec/operator/hive_table_sink_operator.cpp | 4 +-
be/src/exec/operator/hive_table_sink_operator.h | 20 +-
.../exec/operator/iceberg_table_sink_operator.cpp | 4 +-
be/src/exec/operator/iceberg_table_sink_operator.h | 20 +-
be/src/exec/operator/jdbc_scan_operator.cpp | 12 +-
be/src/exec/operator/jdbc_scan_operator.h | 10 +-
be/src/exec/operator/jdbc_table_sink_operator.cpp | 12 +-
be/src/exec/operator/jdbc_table_sink_operator.h | 17 +-
be/src/exec/operator/join/full_outer_join_impl.cpp | 2 +-
be/src/exec/operator/join/inner_join_impl.cpp | 2 +-
be/src/exec/operator/join/left_anti_join_impl.cpp | 2 +-
be/src/exec/operator/join/left_outer_join_impl.cpp | 2 +-
be/src/exec/operator/join/left_semi_join_impl.cpp | 2 +-
.../join/null_aware_left_anti_join_impl.cpp | 2 +-
.../join/null_aware_left_semi_join_impl.cpp | 2 +-
.../exec/operator/join/process_hash_table_probe.h | 47 +-
.../operator/join/process_hash_table_probe_impl.h | 171 +++---
be/src/exec/operator/join/right_anti_join_impl.cpp | 2 +-
.../exec/operator/join/right_outer_join_impl.cpp | 2 +-
be/src/exec/operator/join/right_semi_join_impl.cpp | 2 +-
be/src/exec/operator/join_build_sink_operator.cpp | 4 +-
be/src/exec/operator/join_build_sink_operator.h | 4 +-
be/src/exec/operator/join_probe_operator.cpp | 12 +-
be/src/exec/operator/join_probe_operator.h | 12 +-
.../operator/local_merge_sort_source_operator.cpp | 28 +-
.../operator/local_merge_sort_source_operator.h | 15 +-
be/src/exec/operator/materialization_opertor.cpp | 45 +-
be/src/exec/operator/materialization_opertor.h | 19 +-
.../operator/maxcompute_table_sink_operator.cpp | 4 +-
.../exec/operator/maxcompute_table_sink_operator.h | 21 +-
.../exec/operator/memory_scratch_sink_operator.cpp | 17 +-
.../exec/operator/memory_scratch_sink_operator.h | 10 +-
be/src/exec/operator/meta_scan_operator.cpp | 12 +-
be/src/exec/operator/meta_scan_operator.h | 10 +-
be/src/exec/operator/mock_operator.h | 12 +-
be/src/exec/operator/mock_scan_operator.h | 15 +-
.../exec/operator/multi_cast_data_stream_sink.cpp | 7 +-
be/src/exec/operator/multi_cast_data_stream_sink.h | 6 +-
.../operator/multi_cast_data_stream_source.cpp | 20 +-
.../exec/operator/multi_cast_data_stream_source.h | 28 +-
be/src/exec/operator/multi_cast_data_streamer.cpp | 28 +-
be/src/exec/operator/multi_cast_data_streamer.h | 24 +-
.../operator/nested_loop_join_build_operator.cpp | 15 +-
.../operator/nested_loop_join_build_operator.h | 12 +-
.../operator/nested_loop_join_probe_operator.cpp | 114 ++--
.../operator/nested_loop_join_probe_operator.h | 40 +-
be/src/exec/operator/olap_scan_operator.cpp | 65 +--
be/src/exec/operator/olap_scan_operator.h | 28 +-
be/src/exec/operator/olap_table_sink_operator.h | 20 +-
be/src/exec/operator/olap_table_sink_v2_operator.h | 20 +-
be/src/exec/operator/operator.cpp | 104 ++--
be/src/exec/operator/operator.h | 72 ++-
.../exec/operator/partition_sort_sink_operator.cpp | 37 +-
.../exec/operator/partition_sort_sink_operator.h | 25 +-
.../operator/partition_sort_source_operator.cpp | 8 +-
.../exec/operator/partition_sort_source_operator.h | 7 +-
.../partitioned_aggregation_sink_operator.cpp | 51 +-
.../partitioned_aggregation_sink_operator.h | 27 +-
.../partitioned_aggregation_source_operator.cpp | 12 +-
.../partitioned_aggregation_source_operator.h | 7 +-
.../partitioned_hash_join_probe_operator.cpp | 47 +-
.../partitioned_hash_join_probe_operator.h | 25 +-
.../partitioned_hash_join_sink_operator.cpp | 52 +-
.../operator/partitioned_hash_join_sink_operator.h | 17 +-
.../exec/operator/rec_cte_anchor_sink_operator.cpp | 14 +-
.../exec/operator/rec_cte_anchor_sink_operator.h | 10 +-
be/src/exec/operator/rec_cte_scan_operator.h | 10 +-
be/src/exec/operator/rec_cte_sink_operator.cpp | 14 +-
be/src/exec/operator/rec_cte_sink_operator.h | 10 +-
be/src/exec/operator/rec_cte_source_operator.cpp | 8 +-
be/src/exec/operator/rec_cte_source_operator.h | 8 +-
be/src/exec/operator/repeat_operator.cpp | 50 +-
be/src/exec/operator/repeat_operator.h | 22 +-
be/src/exec/operator/result_file_sink_operator.cpp | 16 +-
be/src/exec/operator/result_file_sink_operator.h | 20 +-
be/src/exec/operator/result_sink_operator.cpp | 21 +-
be/src/exec/operator/result_sink_operator.h | 11 +-
be/src/exec/operator/scan_operator.cpp | 153 +++--
be/src/exec/operator/scan_operator.h | 106 ++--
be/src/exec/operator/schema_scan_operator.cpp | 25 +-
be/src/exec/operator/schema_scan_operator.h | 6 +-
be/src/exec/operator/select_operator.h | 6 +-
be/src/exec/operator/set_probe_sink_operator.cpp | 25 +-
be/src/exec/operator/set_probe_sink_operator.h | 20 +-
be/src/exec/operator/set_sink_operator.cpp | 31 +-
be/src/exec/operator/set_sink_operator.h | 22 +-
be/src/exec/operator/set_source_operator.cpp | 22 +-
be/src/exec/operator/set_source_operator.h | 15 +-
be/src/exec/operator/sort_sink_operator.cpp | 23 +-
be/src/exec/operator/sort_sink_operator.h | 16 +-
be/src/exec/operator/sort_source_operator.cpp | 9 +-
be/src/exec/operator/sort_source_operator.h | 7 +-
.../operator/spill_iceberg_table_sink_operator.cpp | 22 +-
.../operator/spill_iceberg_table_sink_operator.h | 14 +-
be/src/exec/operator/spill_sort_sink_operator.cpp | 12 +-
be/src/exec/operator/spill_sort_sink_operator.h | 8 +-
.../exec/operator/spill_sort_source_operator.cpp | 23 +-
be/src/exec/operator/spill_sort_source_operator.h | 11 +-
be/src/exec/operator/spill_utils.h | 6 +-
.../operator/streaming_aggregation_operator.cpp | 477 ++++++++--------
.../exec/operator/streaming_aggregation_operator.h | 106 ++--
be/src/exec/operator/table_function_operator.cpp | 86 +--
be/src/exec/operator/table_function_operator.h | 30 +-
be/src/exec/operator/tvf_table_sink_operator.cpp | 4 +-
be/src/exec/operator/tvf_table_sink_operator.h | 20 +-
be/src/exec/operator/union_sink_operator.cpp | 18 +-
be/src/exec/operator/union_sink_operator.h | 33 +-
be/src/exec/operator/union_source_operator.cpp | 23 +-
be/src/exec/operator/union_source_operator.h | 22 +-
be/src/exec/partitioner/partitioner.cpp | 4 +-
be/src/exec/partitioner/partitioner.h | 4 +-
be/src/exec/pipeline/dependency.cpp | 156 +++--
be/src/exec/pipeline/dependency.h | 124 ++--
be/src/exec/pipeline/pipeline.cpp | 4 +-
be/src/exec/pipeline/pipeline.h | 4 +-
be/src/exec/pipeline/pipeline_fragment_context.cpp | 8 +-
be/src/exec/pipeline/pipeline_fragment_context.h | 5 +-
be/src/exec/pipeline/pipeline_task.cpp | 12 +-
be/src/exec/pipeline/pipeline_task.h | 8 +-
be/src/exec/pipeline/pipeline_tracing.cpp | 4 +-
be/src/exec/pipeline/pipeline_tracing.h | 4 +-
be/src/exec/pipeline/rec_cte_shared_state.h | 79 ++-
be/src/exec/pipeline/revokable_task.h | 2 -
be/src/exec/pipeline/task_queue.cpp | 4 +-
be/src/exec/pipeline/task_queue.h | 4 +-
be/src/exec/pipeline/task_scheduler.cpp | 4 +-
be/src/exec/pipeline/task_scheduler.h | 4 +-
be/src/exec/rowid_fetcher.cpp | 102 ++--
be/src/exec/rowid_fetcher.h | 27 +-
be/src/exec/runtime_filter/runtime_filter.cpp | 9 +-
.../runtime_filter/runtime_filter_consumer.cpp | 65 ++-
.../exec/runtime_filter/runtime_filter_consumer.h | 13 +-
.../runtime_filter_consumer_helper.cpp | 27 +-
.../runtime_filter_consumer_helper.h | 11 +-
be/src/exec/runtime_filter/runtime_filter_merger.h | 4 +-
.../runtime_filter/runtime_filter_producer.cpp | 10 +-
.../exec/runtime_filter/runtime_filter_producer.h | 6 +-
.../runtime_filter_producer_helper.cpp | 12 +-
.../runtime_filter_producer_helper.h | 12 +-
.../runtime_filter_producer_helper_cross.h | 6 +-
.../runtime_filter_producer_helper_set.h | 2 +-
.../exec/runtime_filter/runtime_filter_wrapper.cpp | 12 +-
.../exec/runtime_filter/runtime_filter_wrapper.h | 4 +-
be/src/exec/runtime_filter/utils.cpp | 11 +-
be/src/exec/runtime_filter/utils.h | 18 +-
be/src/exec/scan/es_scanner.cpp | 18 +-
be/src/exec/scan/es_scanner.h | 12 +-
be/src/exec/scan/file_scanner.cpp | 74 ++-
be/src/exec/scan/file_scanner.h | 18 +-
be/src/exec/scan/jdbc_scanner.cpp | 8 +-
be/src/exec/scan/jdbc_scanner.h | 4 +-
be/src/exec/scan/meta_scanner.cpp | 35 +-
be/src/exec/scan/meta_scanner.h | 8 +-
be/src/exec/scan/olap_scanner.cpp | 30 +-
be/src/exec/scan/olap_scanner.h | 17 +-
be/src/exec/scan/parallel_scanner_builder.cpp | 2 -
be/src/exec/scan/parallel_scanner_builder.h | 16 +-
be/src/exec/scan/scan_node.h | 4 +-
be/src/exec/scan/scanner.cpp | 12 +-
be/src/exec/scan/scanner.h | 22 +-
be/src/exec/scan/scanner_context.cpp | 35 +-
be/src/exec/scan/scanner_context.h | 29 +-
be/src/exec/scan/scanner_scheduler.cpp | 13 +-
be/src/exec/scan/scanner_scheduler.h | 30 +-
be/src/exec/scan/simplified_scan_scheduler.cpp | 4 +-
be/src/exec/scan/split_source_connector.cpp | 4 +-
be/src/exec/scan/split_source_connector.h | 4 +-
be/src/exec/scan/task_executor/listenable_future.h | 2 -
be/src/exec/scan/task_executor/split_runner.h | 2 -
be/src/exec/scan/task_executor/task_executor.h | 2 -
be/src/exec/scan/task_executor/task_handle.h | 2 -
be/src/exec/scan/task_executor/task_id.h | 6 +-
be/src/exec/scan/task_executor/ticker.h | 2 -
.../time_sharing/multilevel_split_queue.cpp | 2 -
.../time_sharing/multilevel_split_queue.h | 2 -
.../time_sharing/prioritized_split_runner.cpp | 2 -
.../time_sharing/prioritized_split_runner.h | 2 -
.../scan/task_executor/time_sharing/priority.h | 2 -
.../time_sharing/split_concurrency_controller.h | 4 +-
.../scan/task_executor/time_sharing/split_queue.h | 2 -
.../time_sharing/time_sharing_task_executor.cpp | 36 +-
.../time_sharing/time_sharing_task_executor.h | 2 -
.../time_sharing/time_sharing_task_handle.cpp | 2 -
.../time_sharing/time_sharing_task_handle.h | 2 -
.../task_executor/tools/simulator/histogram.cpp | 2 -
.../scan/task_executor/tools/simulator/histogram.h | 2 -
.../tools/simulator/scheduled_executor.h | 2 -
.../tools/simulator/simulation_controller.cpp | 2 -
.../tools/simulator/simulation_controller.h | 2 -
.../tools/simulator/simulation_fifo_split_queue.h | 2 -
.../tools/simulator/simulation_split.cpp | 2 -
.../tools/simulator/simulation_split.h | 2 -
.../tools/simulator/simulation_task.cpp | 2 -
.../tools/simulator/simulation_task.h | 4 +-
.../tools/simulator/split_generators.cpp | 22 +-
.../tools/simulator/split_generators.h | 2 -
.../tools/simulator/split_specification.cpp | 2 -
.../tools/simulator/split_specification.h | 2 -
.../tools/simulator/task_executor_simulator.cpp | 4 +-
.../tools/simulator/task_executor_simulator.h | 2 -
be/src/exec/sink/autoinc_buffer.cpp | 4 +-
be/src/exec/sink/autoinc_buffer.h | 4 +-
be/src/exec/sink/delta_writer_v2_pool.cpp | 3 -
be/src/exec/sink/delta_writer_v2_pool.h | 3 -
.../sink/scale_writer_partitioning_exchanger.hpp | 7 +-
be/src/exec/sink/tablet_sink_hash_partitioner.cpp | 19 +-
be/src/exec/sink/tablet_sink_hash_partitioner.h | 18 +-
be/src/exec/sink/vrow_distribution.cpp | 6 +-
be/src/exec/sink/vrow_distribution.h | 4 +-
be/src/exec/sink/vtablet_block_convertor.cpp | 156 +++--
be/src/exec/sink/vtablet_block_convertor.h | 35 +-
be/src/exec/sink/vtablet_finder.cpp | 4 +-
be/src/exec/sink/vtablet_finder.h | 10 +-
be/src/exec/sink/writer/async_result_writer.cpp | 18 +-
be/src/exec/sink/writer/async_result_writer.h | 14 +-
be/src/exec/sink/writer/iceberg/partition_data.h | 6 +-
.../sink/writer/iceberg/partition_transformers.cpp | 2 -
.../sink/writer/iceberg/partition_transformers.h | 32 +-
.../writer/iceberg/viceberg_partition_writer.cpp | 4 +-
.../writer/iceberg/viceberg_partition_writer.h | 5 +-
.../sink/writer/iceberg/viceberg_sort_writer.cpp | 21 +-
.../sink/writer/iceberg/viceberg_sort_writer.h | 19 +-
.../sink/writer/iceberg/viceberg_table_writer.cpp | 40 +-
.../sink/writer/iceberg/viceberg_table_writer.h | 18 +-
.../sink/writer/iceberg/vpartition_writer_base.h | 5 +-
.../writer/maxcompute/vmc_partition_writer.cpp | 4 +-
.../sink/writer/maxcompute/vmc_partition_writer.h | 5 +-
.../sink/writer/maxcompute/vmc_table_writer.cpp | 11 +-
.../exec/sink/writer/maxcompute/vmc_table_writer.h | 8 +-
be/src/exec/sink/writer/result_writer.h | 4 +-
.../sink/writer/varrow_flight_result_writer.cpp | 14 +-
.../exec/sink/writer/varrow_flight_result_writer.h | 12 +-
be/src/exec/sink/writer/vfile_result_writer.cpp | 16 +-
be/src/exec/sink/writer/vfile_result_writer.h | 18 +-
be/src/exec/sink/writer/vhive_partition_writer.cpp | 4 +-
be/src/exec/sink/writer/vhive_partition_writer.h | 5 +-
be/src/exec/sink/writer/vhive_table_writer.cpp | 30 +-
be/src/exec/sink/writer/vhive_table_writer.h | 16 +-
be/src/exec/sink/writer/vhive_utils.cpp | 2 -
be/src/exec/sink/writer/vhive_utils.h | 2 -
be/src/exec/sink/writer/vjdbc_table_writer.cpp | 8 +-
be/src/exec/sink/writer/vjdbc_table_writer.h | 7 +-
be/src/exec/sink/writer/vmysql_result_writer.cpp | 4 +-
be/src/exec/sink/writer/vmysql_result_writer.h | 2 -
be/src/exec/sink/writer/vtablet_writer.cpp | 22 +-
be/src/exec/sink/writer/vtablet_writer.h | 26 +-
be/src/exec/sink/writer/vtablet_writer_v2.cpp | 14 +-
be/src/exec/sink/writer/vtablet_writer_v2.h | 9 +-
be/src/exec/sink/writer/vtvf_table_writer.cpp | 10 +-
be/src/exec/sink/writer/vtvf_table_writer.h | 7 +-
be/src/exec/sink/writer/vwal_writer.cpp | 4 +-
be/src/exec/sink/writer/vwal_writer.h | 4 +-
be/src/exec/sort/heap_sorter.cpp | 4 +-
be/src/exec/sort/heap_sorter.h | 4 +-
be/src/exec/sort/hybrid_sorter.h | 4 +-
be/src/exec/sort/partition_sorter.cpp | 6 +-
be/src/exec/sort/partition_sorter.h | 6 +-
be/src/exec/sort/sort_block.cpp | 4 +-
be/src/exec/sort/sort_block.h | 8 +-
be/src/exec/sort/sort_cursor.h | 4 +-
be/src/exec/sort/sort_description.h | 4 +-
be/src/exec/sort/sorter.cpp | 16 +-
be/src/exec/sort/sorter.h | 14 +-
be/src/exec/sort/topn_sorter.cpp | 6 +-
be/src/exec/sort/topn_sorter.h | 6 +-
be/src/exec/sort/vsort_exec_exprs.cpp | 4 +-
be/src/exec/sort/vsort_exec_exprs.h | 2 -
be/src/exec/sort/vsorted_run_merger.cpp | 4 +-
be/src/exec/sort/vsorted_run_merger.h | 4 +-
be/src/exec/spill/spill_reader.cpp | 2 -
be/src/exec/spill/spill_reader.h | 4 +-
be/src/exec/spill/spill_stream.cpp | 4 +-
be/src/exec/spill/spill_stream.h | 3 -
be/src/exec/spill/spill_stream_manager.cpp | 7 +-
be/src/exec/spill/spill_stream_manager.h | 7 +-
be/src/exec/spill/spill_writer.cpp | 4 +-
be/src/exec/spill/spill_writer.h | 2 -
be/src/exec/table_connector.h | 8 +-
be/src/exprs/aggregate/aggregate_function.h | 4 +-
.../exprs/aggregate/aggregate_function_ai_agg.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_ai_agg.h | 4 +-
.../aggregate_function_approx_count_distinct.cpp | 4 +-
.../aggregate_function_approx_count_distinct.h | 6 +-
.../aggregate/aggregate_function_array_agg.cpp | 4 +-
.../exprs/aggregate/aggregate_function_array_agg.h | 4 +-
be/src/exprs/aggregate/aggregate_function_avg.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_avg.h | 4 +-
.../aggregate/aggregate_function_avg_weighted.cpp | 4 +-
.../aggregate/aggregate_function_avg_weighted.h | 4 +-
be/src/exprs/aggregate/aggregate_function_binary.h | 4 +-
be/src/exprs/aggregate/aggregate_function_bit.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_bit.h | 4 +-
.../exprs/aggregate/aggregate_function_bitmap.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_bitmap.h | 4 +-
.../aggregate/aggregate_function_bitmap_agg.cpp | 4 +-
.../aggregate/aggregate_function_bitmap_agg.h | 6 +-
.../aggregate/aggregate_function_bool_union.cpp | 4 +-
.../aggregate/aggregate_function_bool_union.h | 4 +-
.../exprs/aggregate/aggregate_function_collect.cpp | 4 +-
.../exprs/aggregate/aggregate_function_collect.h | 4 +-
.../aggregate/aggregate_function_combinator.h | 4 +-
be/src/exprs/aggregate/aggregate_function_corr.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_corr.h | 4 +-
.../exprs/aggregate/aggregate_function_count.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_count.h | 9 +-
.../aggregate/aggregate_function_count_by_enum.cpp | 4 +-
.../aggregate/aggregate_function_count_by_enum.h | 4 +-
.../exprs/aggregate/aggregate_function_covar.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_covar.h | 4 +-
.../aggregate/aggregate_function_distinct.cpp | 4 +-
.../exprs/aggregate/aggregate_function_distinct.h | 6 +-
.../exprs/aggregate/aggregate_function_foreach.cpp | 4 +-
.../exprs/aggregate/aggregate_function_foreach.h | 4 +-
.../aggregate/aggregate_function_foreachv2.cpp | 4 +-
.../aggregate_function_group_array_set_op.cpp | 4 +-
.../aggregate_function_group_array_set_op.h | 8 +-
.../aggregate/aggregate_function_group_concat.cpp | 4 +-
.../aggregate/aggregate_function_group_concat.h | 6 +-
.../aggregate/aggregate_function_histogram.cpp | 4 +-
.../exprs/aggregate/aggregate_function_histogram.h | 4 +-
.../aggregate/aggregate_function_hll_union_agg.cpp | 4 +-
.../aggregate/aggregate_function_hll_union_agg.h | 6 +-
.../exprs/aggregate/aggregate_function_java_udaf.h | 4 +-
.../aggregate/aggregate_function_kurtosis.cpp | 4 +-
.../aggregate_function_linear_histogram.cpp | 4 +-
.../aggregate_function_linear_histogram.h | 4 +-
be/src/exprs/aggregate/aggregate_function_map.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_map.h | 4 +-
.../exprs/aggregate/aggregate_function_map_v2.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_map_v2.h | 4 +-
.../exprs/aggregate/aggregate_function_min_max.cpp | 4 +-
.../exprs/aggregate/aggregate_function_min_max.h | 6 +-
.../aggregate/aggregate_function_min_max_by.cpp | 4 +-
.../aggregate/aggregate_function_min_max_by.h | 4 +-
be/src/exprs/aggregate/aggregate_function_null.h | 4 +-
.../exprs/aggregate/aggregate_function_null_v2.h | 4 +-
.../aggregate_function_orthogonal_bitmap.cpp | 4 +-
.../aggregate_function_orthogonal_bitmap.h | 4 +-
.../aggregate/aggregate_function_percentile.cpp | 4 +-
.../aggregate/aggregate_function_percentile.h | 4 +-
.../aggregate_function_percentile_reservoir.cpp | 4 +-
.../aggregate_function_percentile_reservoir.h | 4 +-
.../exprs/aggregate/aggregate_function_product.h | 2 -
.../aggregate/aggregate_function_python_udaf.cpp | 4 +-
.../aggregate/aggregate_function_python_udaf.h | 4 +-
.../aggregate_function_quantile_state.cpp | 4 +-
.../aggregate/aggregate_function_quantile_state.h | 6 +-
.../exprs/aggregate/aggregate_function_reader.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_reader.h | 6 +-
.../aggregate_function_reader_first_last.h | 4 +-
.../aggregate/aggregate_function_regr_union.cpp | 4 +-
.../aggregate/aggregate_function_regr_union.h | 4 +-
.../aggregate/aggregate_function_retention.cpp | 4 +-
.../exprs/aggregate/aggregate_function_retention.h | 6 +-
be/src/exprs/aggregate/aggregate_function_rpc.h | 4 +-
be/src/exprs/aggregate/aggregate_function_sem.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_sem.h | 4 +-
.../aggregate_function_sequence_match.cpp | 4 +-
.../aggregate/aggregate_function_sequence_match.h | 6 +-
.../aggregate_function_simple_factory.cpp | 4 +-
.../aggregate/aggregate_function_simple_factory.h | 4 +-
be/src/exprs/aggregate/aggregate_function_skew.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_sort.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_sort.h | 6 +-
.../aggregate/aggregate_function_state_merge.h | 4 +-
.../aggregate/aggregate_function_state_union.h | 4 +-
.../exprs/aggregate/aggregate_function_statistic.h | 4 +-
.../exprs/aggregate/aggregate_function_stddev.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_stddev.h | 4 +-
be/src/exprs/aggregate/aggregate_function_sum.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_sum.h | 4 +-
be/src/exprs/aggregate/aggregate_function_topn.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_topn.h | 4 +-
be/src/exprs/aggregate/aggregate_function_uniq.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_uniq.h | 4 +-
.../aggregate_function_uniq_distribute_key.cpp | 4 +-
.../aggregate_function_uniq_distribute_key.h | 4 +-
.../exprs/aggregate/aggregate_function_window.cpp | 4 +-
be/src/exprs/aggregate/aggregate_function_window.h | 12 +-
.../aggregate/aggregate_function_window_funnel.cpp | 4 +-
.../aggregate/aggregate_function_window_funnel.h | 6 +-
be/src/exprs/aggregate/factory_helpers.h | 4 +-
be/src/exprs/aggregate/helpers.h | 4 +-
be/src/exprs/aggregate/moments.h | 4 +-
be/src/exprs/bloom_filter_func.h | 10 +-
be/src/exprs/bloom_filter_func_adaptor.h | 59 +-
be/src/exprs/bloom_filter_func_impl.h | 4 +-
be/src/exprs/function/ai/ai_adapter.h | 4 +-
be/src/exprs/function/ai/ai_classify.h | 4 +-
be/src/exprs/function/ai/ai_extract.h | 4 +-
be/src/exprs/function/ai/ai_filter.h | 4 +-
be/src/exprs/function/ai/ai_fix_grammar.h | 4 +-
be/src/exprs/function/ai/ai_functions.cpp | 4 +-
be/src/exprs/function/ai/ai_functions.h | 4 +-
be/src/exprs/function/ai/ai_generate.h | 4 +-
be/src/exprs/function/ai/ai_mask.h | 4 +-
be/src/exprs/function/ai/ai_sentiment.h | 4 +-
be/src/exprs/function/ai/ai_similarity.h | 4 +-
be/src/exprs/function/ai/ai_summarize.h | 4 +-
be/src/exprs/function/ai/ai_translate.h | 4 +-
be/src/exprs/function/ai/embed.h | 4 +-
.../function/array/function_array_aggregation.cpp | 4 +-
.../exprs/function/array/function_array_apply.cpp | 4 +-
.../exprs/function/array/function_array_binary.h | 4 +-
.../function/array/function_array_compact.cpp | 4 +-
.../exprs/function/array/function_array_compact.h | 4 +-
.../exprs/function/array/function_array_concat.cpp | 4 +-
.../function/array/function_array_constructor.cpp | 4 +-
.../function/array/function_array_contains_all.cpp | 4 +-
.../exprs/function/array/function_array_count.cpp | 4 +-
.../function/array/function_array_cum_sum.cpp | 4 +-
.../function/array/function_array_difference.cpp | 4 +-
.../function/array/function_array_difference.h | 4 +-
.../function/array/function_array_distance.cpp | 4 +-
.../exprs/function/array/function_array_distance.h | 4 +-
.../function/array/function_array_distinct.cpp | 4 +-
.../exprs/function/array/function_array_distinct.h | 4 +-
.../function/array/function_array_element.cpp | 4 +-
.../exprs/function/array/function_array_element.h | 4 +-
.../function/array/function_array_enumerate.cpp | 4 +-
.../array/function_array_enumerate_uniq.cpp | 4 +-
.../exprs/function/array/function_array_except.cpp | 4 +-
.../exprs/function/array/function_array_exists.cpp | 4 +-
.../exprs/function/array/function_array_filter.cpp | 6 +-
.../array/function_array_first_or_last_index.cpp | 4 +-
.../function/array/function_array_flatten.cpp | 4 +-
.../exprs/function/array/function_array_index.cpp | 4 +-
be/src/exprs/function/array/function_array_index.h | 6 +-
.../function/array/function_array_intersect.cpp | 4 +-
be/src/exprs/function/array/function_array_join.h | 4 +-
be/src/exprs/function/array/function_array_map.h | 4 +-
.../exprs/function/array/function_array_mapped.h | 2 -
be/src/exprs/function/array/function_array_nary.h | 4 +-
be/src/exprs/function/array/function_array_pop.cpp | 4 +-
.../function/array/function_array_pushback.cpp | 4 +-
.../function/array/function_array_pushfront.cpp | 4 +-
.../exprs/function/array/function_array_range.cpp | 8 +-
.../function/array/function_array_register.cpp | 4 +-
.../exprs/function/array/function_array_remove.cpp | 4 +-
.../exprs/function/array/function_array_remove.h | 4 +-
.../exprs/function/array/function_array_reverse.h | 4 +-
be/src/exprs/function/array/function_array_set.h | 4 +-
.../function/array/function_array_shuffle.cpp | 4 +-
.../exprs/function/array/function_array_slice.cpp | 4 +-
be/src/exprs/function/array/function_array_slice.h | 4 +-
.../exprs/function/array/function_array_sort.cpp | 4 +-
be/src/exprs/function/array/function_array_sort.h | 4 +-
.../exprs/function/array/function_array_sortby.cpp | 4 +-
.../exprs/function/array/function_array_split.cpp | 4 +-
.../exprs/function/array/function_array_union.cpp | 4 +-
.../exprs/function/array/function_array_utils.cpp | 4 +-
be/src/exprs/function/array/function_array_utils.h | 6 +-
.../array/function_array_with_constant.cpp | 6 +-
be/src/exprs/function/array/function_array_zip.cpp | 4 +-
.../function/array/function_arrays_overlap.cpp | 4 +-
.../exprs/function/array/function_arrays_overlap.h | 6 +-
.../exprs/function/array/varray_match_function.cpp | 4 +-
be/src/exprs/function/binary_arithmetic.h | 4 +-
be/src/exprs/function/cast/cast_base.cpp | 6 +-
be/src/exprs/function/cast/cast_base.h | 4 +-
be/src/exprs/function/cast/cast_parameters.h | 4 +-
be/src/exprs/function/cast/cast_to_array.h | 4 +-
.../function/cast/cast_to_basic_number_common.h | 6 +-
be/src/exprs/function/cast/cast_to_boolean.h | 4 +-
be/src/exprs/function/cast/cast_to_date.h | 4 +-
.../cast/cast_to_date_or_datetime_impl.hpp | 4 +-
.../function/cast/cast_to_datetimev2_impl.hpp | 4 +-
be/src/exprs/function/cast/cast_to_datev2_impl.hpp | 4 +-
be/src/exprs/function/cast/cast_to_decimal.h | 13 +-
be/src/exprs/function/cast/cast_to_float.h | 4 +-
be/src/exprs/function/cast/cast_to_int.h | 4 +-
be/src/exprs/function/cast/cast_to_ip.h | 4 +-
be/src/exprs/function/cast/cast_to_jsonb.h | 4 +-
be/src/exprs/function/cast/cast_to_map.h | 4 +-
be/src/exprs/function/cast/cast_to_string.h | 4 +-
be/src/exprs/function/cast/cast_to_struct.h | 4 +-
be/src/exprs/function/cast/cast_to_time_impl.hpp | 4 +-
be/src/exprs/function/cast/cast_to_timestamptz.h | 4 +-
be/src/exprs/function/cast/cast_to_variant.h | 4 +-
be/src/exprs/function/cast/function_cast.cpp | 4 +-
be/src/exprs/function/cast_type_to_either.h | 4 +-
be/src/exprs/function/comparison.cpp | 4 +-
.../exprs/function/comparison_equal_for_null.cpp | 4 +-
be/src/exprs/function/comparison_equals.cpp | 4 +-
be/src/exprs/function/comparison_greater.cpp | 4 +-
be/src/exprs/function/comparison_less.cpp | 4 +-
be/src/exprs/function/complex_dict_hash_map.h | 10 +-
.../exprs/function/complex_hash_map_dictionary.cpp | 118 ++--
.../exprs/function/complex_hash_map_dictionary.h | 4 +-
be/src/exprs/function/date_format_type.h | 4 +-
be/src/exprs/function/date_time_transforms.h | 14 +-
be/src/exprs/function/datetime_errors.h | 4 +-
be/src/exprs/function/dictionary.cpp | 6 +-
be/src/exprs/function/dictionary.h | 4 +-
be/src/exprs/function/dictionary_factory.cpp | 4 +-
be/src/exprs/function/dictionary_factory.h | 4 +-
be/src/exprs/function/dictionary_util.h | 4 +-
be/src/exprs/function/divide.cpp | 4 +-
be/src/exprs/function/function.cpp | 4 +-
be/src/exprs/function/function.h | 8 +-
be/src/exprs/function/function_agg_state.h | 4 +-
.../exprs/function/function_always_not_nullable.h | 4 +-
be/src/exprs/function/function_assert_true.cpp | 4 +-
be/src/exprs/function/function_bit.cpp | 4 +-
be/src/exprs/function/function_bit_count.cpp | 4 +-
be/src/exprs/function/function_bit_shift.cpp | 4 +-
be/src/exprs/function/function_bit_test.cpp | 4 +-
be/src/exprs/function/function_bitmap.cpp | 4 +-
be/src/exprs/function/function_bitmap_min_or_max.h | 4 +-
be/src/exprs/function/function_bitmap_variadic.cpp | 4 +-
be/src/exprs/function/function_collection_in.cpp | 4 +-
be/src/exprs/function/function_collection_in.h | 10 +-
be/src/exprs/function/function_compress.cpp | 4 +-
be/src/exprs/function/function_const.h | 4 +-
be/src/exprs/function/function_conv.cpp | 4 +-
be/src/exprs/function/function_convert_tz.cpp | 4 +-
.../function_date_or_datetime_computation.cpp | 4 +-
.../function_date_or_datetime_computation.h | 4 +-
.../function_date_or_datetime_to_something.h | 4 +-
.../function_date_or_datetime_to_string.cpp | 4 +-
.../function/function_datetime_floor_ceil.cpp | 4 +-
.../function_datetime_string_to_string.cpp | 4 +-
.../function/function_datetime_string_to_string.h | 4 +-
be/src/exprs/function/function_decode_varchar.cpp | 4 +-
be/src/exprs/function/function_dict_get.cpp | 4 +-
be/src/exprs/function/function_dict_get_many.cpp | 4 +-
be/src/exprs/function/function_encode_varchar.cpp | 4 +-
be/src/exprs/function/function_encryption.cpp | 4 +-
be/src/exprs/function/function_fake.cpp | 12 +-
be/src/exprs/function/function_fake.h | 6 +-
be/src/exprs/function/function_format.cpp | 4 +-
be/src/exprs/function/function_grouping.cpp | 4 +-
be/src/exprs/function/function_grouping.h | 4 +-
be/src/exprs/function/function_hash.cpp | 4 +-
be/src/exprs/function/function_hash.h | 4 +-
be/src/exprs/function/function_helpers.cpp | 4 +-
be/src/exprs/function/function_helpers.h | 4 +-
be/src/exprs/function/function_hex.cpp | 12 +-
be/src/exprs/function/function_hll.cpp | 4 +-
be/src/exprs/function/function_ifnull.h | 4 +-
be/src/exprs/function/function_ignore.cpp | 4 +-
be/src/exprs/function/function_interval.cpp | 4 +-
be/src/exprs/function/function_ip.cpp | 4 +-
be/src/exprs/function/function_ip.h | 6 +-
be/src/exprs/function/function_java_udf.cpp | 4 +-
be/src/exprs/function/function_java_udf.h | 4 +-
be/src/exprs/function/function_json.cpp | 4 +-
be/src/exprs/function/function_json_hash.cpp | 4 +-
be/src/exprs/function/function_jsonb.cpp | 15 +-
be/src/exprs/function/function_jsonb_transform.cpp | 4 +-
be/src/exprs/function/function_map.cpp | 4 +-
be/src/exprs/function/function_math_log.h | 4 +-
be/src/exprs/function/function_math_unary.h | 4 +-
.../function/function_math_unary_alway_nullable.h | 4 +-
be/src/exprs/function/function_multi_match.cpp | 6 +-
be/src/exprs/function/function_multi_match.h | 6 +-
be/src/exprs/function/function_multi_same_args.h | 4 +-
.../exprs/function/function_needs_to_handle_null.h | 4 +-
be/src/exprs/function/function_nullables.cpp | 4 +-
.../function/function_other_types_to_date.cpp | 4 +-
be/src/exprs/function/function_python_udf.cpp | 8 +-
be/src/exprs/function/function_python_udf.h | 4 +-
be/src/exprs/function/function_quantile_state.cpp | 4 +-
be/src/exprs/function/function_regexp.cpp | 4 +-
be/src/exprs/function/function_reverse.h | 4 +-
be/src/exprs/function/function_rpc.cpp | 4 +-
be/src/exprs/function/function_rpc.h | 13 +-
be/src/exprs/function/function_score.cpp | 4 +-
be/src/exprs/function/function_search.cpp | 15 +-
be/src/exprs/function/function_search.h | 20 +-
be/src/exprs/function/function_size.cpp | 4 +-
be/src/exprs/function/function_soundex.cpp | 4 +-
be/src/exprs/function/function_split_by_regexp.cpp | 4 +-
be/src/exprs/function/function_string.cpp | 4 +-
be/src/exprs/function/function_string.h | 68 +--
be/src/exprs/function/function_string_to_string.h | 4 +-
be/src/exprs/function/function_struct.cpp | 4 +-
be/src/exprs/function/function_struct_element.cpp | 4 +-
.../function/function_time_value_to_field.cpp | 4 +-
be/src/exprs/function/function_to_json.cpp | 4 +-
be/src/exprs/function/function_tokenize.cpp | 6 +-
be/src/exprs/function/function_tokenize.h | 6 +-
be/src/exprs/function/function_totype.h | 6 +-
be/src/exprs/function/function_unary_arithmetic.h | 4 +-
be/src/exprs/function/function_utility.cpp | 4 +-
be/src/exprs/function/function_uuid.cpp | 4 +-
be/src/exprs/function/function_varbinary.cpp | 4 +-
be/src/exprs/function/function_varbinary.h | 4 +-
.../exprs/function/function_variadic_arguments.h | 4 +-
be/src/exprs/function/function_variant_element.cpp | 17 +-
be/src/exprs/function/function_variant_type.cpp | 4 +-
be/src/exprs/function/function_width_bucket.cpp | 4 +-
be/src/exprs/function/functions_comparison.h | 6 +-
be/src/exprs/function/functions_logical.cpp | 4 +-
be/src/exprs/function/functions_logical.h | 6 +-
.../function/functions_multi_string_position.cpp | 7 +-
.../function/functions_multi_string_search.cpp | 7 +-
be/src/exprs/function/geo/functions_geo.cpp | 4 +-
be/src/exprs/function/geo/functions_geo.h | 6 +-
be/src/exprs/function/if.cpp | 6 +-
be/src/exprs/function/if.h | 4 +-
be/src/exprs/function/in.cpp | 4 +-
be/src/exprs/function/in.h | 19 +-
be/src/exprs/function/int_div.cpp | 4 +-
be/src/exprs/function/ip_address_dictionary.cpp | 4 +-
be/src/exprs/function/ip_address_dictionary.h | 4 +-
be/src/exprs/function/is_not_null.cpp | 4 +-
be/src/exprs/function/is_not_null.h | 6 +-
be/src/exprs/function/is_null.cpp | 4 +-
be/src/exprs/function/is_null.h | 6 +-
be/src/exprs/function/least_greast.cpp | 4 +-
be/src/exprs/function/like.cpp | 17 +-
be/src/exprs/function/like.h | 4 +-
be/src/exprs/function/match.cpp | 8 +-
be/src/exprs/function/match.h | 6 +-
be/src/exprs/function/math.cpp | 4 +-
be/src/exprs/function/minus.cpp | 4 +-
be/src/exprs/function/modulo.cpp | 4 +-
be/src/exprs/function/multiply.cpp | 4 +-
be/src/exprs/function/nullif.cpp | 8 +-
be/src/exprs/function/plus.cpp | 4 +-
be/src/exprs/function/random.cpp | 4 +-
be/src/exprs/function/regexps.h | 4 +-
be/src/exprs/function/round.cpp | 4 +-
be/src/exprs/function/round.h | 13 +-
be/src/exprs/function/simple_function_factory.h | 4 +-
be/src/exprs/function/string_hex_util.h | 4 +-
be/src/exprs/function/time_of_function.cpp | 4 +-
be/src/exprs/function/to_time_function.cpp | 4 +-
be/src/exprs/function/uniform.cpp | 4 +-
be/src/exprs/function/url/domain.h | 4 +-
be/src/exprs/function/url/function_url.cpp | 4 +-
be/src/exprs/function/url/functions_url.h | 4 +-
be/src/exprs/function/url/protocol.h | 4 +-
be/src/exprs/function/uuid.cpp | 4 +-
be/src/exprs/function/uuid_numeric.cpp | 4 +-
be/src/exprs/function_context.cpp | 8 +-
be/src/exprs/function_context.h | 18 +-
be/src/exprs/hybrid_set.h | 167 +++---
be/src/exprs/lambda_function/lambda_function.h | 6 +-
.../lambda_function/lambda_function_factory.h | 4 +-
.../lambda_function/varray_filter_function.cpp | 12 +-
.../exprs/lambda_function/varray_map_function.cpp | 14 +-
.../exprs/lambda_function/varray_sort_function.cpp | 14 +-
be/src/exprs/minmax_predicate.h | 27 +-
be/src/exprs/score_runtime.h | 4 +-
be/src/exprs/short_circuit_evaluation_expr.cpp | 4 +-
be/src/exprs/short_circuit_evaluation_expr.h | 4 +-
be/src/exprs/short_circuit_util.h | 4 +-
.../exprs/table_function/python_udtf_function.cpp | 6 +-
be/src/exprs/table_function/python_udtf_function.h | 4 +-
be/src/exprs/table_function/table_function.h | 4 +-
.../table_function/table_function_factory.cpp | 4 +-
.../exprs/table_function/table_function_factory.h | 2 -
be/src/exprs/table_function/udf_table_function.cpp | 4 +-
be/src/exprs/table_function/udf_table_function.h | 4 +-
be/src/exprs/table_function/vexplode.cpp | 4 +-
be/src/exprs/table_function/vexplode.h | 8 +-
be/src/exprs/table_function/vexplode_bitmap.cpp | 4 +-
be/src/exprs/table_function/vexplode_bitmap.h | 4 +-
.../exprs/table_function/vexplode_json_object.cpp | 4 +-
be/src/exprs/table_function/vexplode_json_object.h | 4 +-
be/src/exprs/table_function/vexplode_map.cpp | 4 +-
be/src/exprs/table_function/vexplode_map.h | 4 +-
be/src/exprs/table_function/vexplode_numbers.cpp | 4 +-
be/src/exprs/table_function/vexplode_numbers.h | 4 +-
be/src/exprs/table_function/vexplode_v2.cpp | 4 +-
be/src/exprs/table_function/vexplode_v2.h | 8 +-
be/src/exprs/varray_literal.cpp | 6 +-
be/src/exprs/varray_literal.h | 2 -
be/src/exprs/vbitmap_predicate.cpp | 24 +-
be/src/exprs/vbitmap_predicate.h | 6 +-
be/src/exprs/vbloom_predicate.cpp | 4 +-
be/src/exprs/vbloom_predicate.h | 6 +-
be/src/exprs/vcase_expr.cpp | 4 +-
be/src/exprs/vcase_expr.h | 6 +-
be/src/exprs/vcast_expr.cpp | 4 +-
be/src/exprs/vcast_expr.h | 6 +-
be/src/exprs/vcolumn_ref.h | 2 -
be/src/exprs/vcompound_pred.h | 4 +-
be/src/exprs/vcondition_expr.cpp | 4 +-
be/src/exprs/vcondition_expr.h | 4 +-
be/src/exprs/vdirect_in_predicate.h | 4 +-
be/src/exprs/vectorized_agg_fn.cpp | 8 +-
be/src/exprs/vectorized_agg_fn.h | 5 +-
be/src/exprs/vectorized_fn_call.cpp | 4 +-
be/src/exprs/vectorized_fn_call.h | 4 +-
be/src/exprs/vexpr.cpp | 12 +-
be/src/exprs/vexpr.h | 17 +-
be/src/exprs/vexpr_context.cpp | 11 +-
be/src/exprs/vexpr_context.h | 59 +-
be/src/exprs/vexpr_fwd.h | 4 +-
be/src/exprs/vin_predicate.cpp | 4 +-
be/src/exprs/vin_predicate.h | 6 +-
be/src/exprs/vinfo_func.cpp | 4 +-
be/src/exprs/vinfo_func.h | 2 -
be/src/exprs/virtual_slot_ref.cpp | 4 +-
be/src/exprs/virtual_slot_ref.h | 4 +-
be/src/exprs/vlambda_function_call_expr.h | 4 +-
be/src/exprs/vlambda_function_expr.h | 4 +-
be/src/exprs/vliteral.cpp | 8 +-
be/src/exprs/vliteral.h | 2 -
be/src/exprs/vmap_literal.cpp | 6 +-
be/src/exprs/vmap_literal.h | 3 -
be/src/exprs/vmatch_predicate.cpp | 4 +-
be/src/exprs/vmatch_predicate.h | 6 +-
be/src/exprs/vruntimefilter_wrapper.cpp | 4 +-
be/src/exprs/vruntimefilter_wrapper.h | 4 +-
be/src/exprs/vsearch.cpp | 8 +-
be/src/exprs/vsearch.h | 4 +-
be/src/exprs/vslot_ref.cpp | 4 +-
be/src/exprs/vslot_ref.h | 2 -
be/src/exprs/vstruct_literal.cpp | 6 +-
be/src/exprs/vstruct_literal.h | 2 -
be/src/exprs/vtopn_pred.h | 13 +-
be/src/format/arrow/arrow_block_convertor.cpp | 14 +-
be/src/format/arrow/arrow_block_convertor.h | 31 +-
be/src/format/arrow/arrow_pip_input_stream.cpp | 4 +-
be/src/format/arrow/arrow_pip_input_stream.h | 2 -
be/src/format/arrow/arrow_row_batch.cpp | 16 +-
be/src/format/arrow/arrow_row_batch.h | 9 +-
be/src/format/arrow/arrow_stream_reader.cpp | 7 +-
be/src/format/arrow/arrow_stream_reader.h | 4 +-
be/src/format/avro/avro_jni_reader.cpp | 4 +-
be/src/format/avro/avro_jni_reader.h | 6 +-
be/src/format/column_type_convert.cpp | 4 +-
be/src/format/column_type_convert.h | 27 +-
be/src/format/csv/csv_reader.cpp | 8 +-
be/src/format/csv/csv_reader.h | 6 +-
be/src/format/format_common.h | 4 +-
be/src/format/generic_reader.h | 4 +-
be/src/format/jni_reader.cpp | 6 +-
be/src/format/jni_reader.h | 6 +-
be/src/format/json/new_json_reader.cpp | 14 +-
be/src/format/json/new_json_reader.h | 19 +-
be/src/format/native/native_format.h | 4 +-
be/src/format/native/native_reader.cpp | 4 +-
be/src/format/native/native_reader.h | 4 +-
be/src/format/orc/orc_file_reader.cpp | 2 -
be/src/format/orc/orc_file_reader.h | 2 -
be/src/format/orc/orc_memory_pool.h | 4 +-
be/src/format/orc/vorc_reader.cpp | 8 +-
be/src/format/orc/vorc_reader.h | 6 +-
be/src/format/parquet/arrow_memory_pool.cpp | 4 +-
be/src/format/parquet/arrow_memory_pool.h | 4 +-
be/src/format/parquet/bool_plain_decoder.cpp | 4 +-
be/src/format/parquet/bool_plain_decoder.h | 6 +-
be/src/format/parquet/bool_rle_decoder.cpp | 4 +-
be/src/format/parquet/bool_rle_decoder.h | 6 +-
be/src/format/parquet/byte_array_dict_decoder.cpp | 4 +-
be/src/format/parquet/byte_array_dict_decoder.h | 4 +-
be/src/format/parquet/byte_array_plain_decoder.cpp | 4 +-
be/src/format/parquet/byte_array_plain_decoder.h | 6 +-
.../format/parquet/byte_stream_split_decoder.cpp | 4 +-
be/src/format/parquet/byte_stream_split_decoder.h | 4 +-
be/src/format/parquet/decoder.cpp | 4 +-
be/src/format/parquet/decoder.h | 4 +-
be/src/format/parquet/delta_bit_pack_decoder.cpp | 4 +-
be/src/format/parquet/delta_bit_pack_decoder.h | 8 +-
be/src/format/parquet/fix_length_dict_decoder.hpp | 4 +-
be/src/format/parquet/fix_length_plain_decoder.cpp | 4 +-
be/src/format/parquet/fix_length_plain_decoder.h | 8 +-
be/src/format/parquet/level_decoder.cpp | 13 +-
be/src/format/parquet/level_decoder.h | 4 +-
.../parquet/parquet_block_split_bloom_filter.cpp | 2 -
.../parquet/parquet_block_split_bloom_filter.h | 2 -
be/src/format/parquet/parquet_column_convert.cpp | 4 +-
be/src/format/parquet/parquet_column_convert.h | 18 +-
be/src/format/parquet/parquet_common.cpp | 4 +-
be/src/format/parquet/parquet_common.h | 4 +-
be/src/format/parquet/parquet_predicate.h | 6 +-
be/src/format/parquet/parquet_thrift_util.h | 4 +-
be/src/format/parquet/schema_desc.cpp | 4 +-
be/src/format/parquet/schema_desc.h | 4 +-
.../parquet/vparquet_column_chunk_reader.cpp | 4 +-
.../format/parquet/vparquet_column_chunk_reader.h | 4 +-
be/src/format/parquet/vparquet_column_reader.cpp | 18 +-
be/src/format/parquet/vparquet_column_reader.h | 6 +-
be/src/format/parquet/vparquet_file_metadata.cpp | 4 +-
be/src/format/parquet/vparquet_file_metadata.h | 4 +-
be/src/format/parquet/vparquet_group_reader.cpp | 8 +-
be/src/format/parquet/vparquet_group_reader.h | 6 +-
be/src/format/parquet/vparquet_page_index.cpp | 6 +-
be/src/format/parquet/vparquet_page_index.h | 6 +-
be/src/format/parquet/vparquet_page_reader.cpp | 4 +-
be/src/format/parquet/vparquet_page_reader.h | 4 +-
be/src/format/parquet/vparquet_reader.cpp | 9 +-
be/src/format/parquet/vparquet_reader.h | 6 +-
be/src/format/table/deletion_vector_reader.cpp | 2 -
be/src/format/table/deletion_vector_reader.h | 2 -
be/src/format/table/equality_delete.cpp | 4 +-
be/src/format/table/equality_delete.h | 4 +-
.../table/hive/hive_orc_nested_column_utils.cpp | 4 +-
.../table/hive/hive_orc_nested_column_utils.h | 4 +-
.../hive/hive_parquet_nested_column_utils.cpp | 4 +-
.../table/hive/hive_parquet_nested_column_utils.h | 4 +-
be/src/format/table/hive_reader.cpp | 4 +-
be/src/format/table/hive_reader.h | 4 +-
be/src/format/table/hudi_jni_reader.cpp | 6 +-
be/src/format/table/hudi_jni_reader.h | 6 +-
be/src/format/table/hudi_reader.cpp | 4 +-
be/src/format/table/hudi_reader.h | 4 +-
.../iceberg/iceberg_orc_nested_column_utils.cpp | 4 +-
.../iceberg/iceberg_orc_nested_column_utils.h | 4 +-
.../iceberg_parquet_nested_column_utils.cpp | 4 +-
.../iceberg/iceberg_parquet_nested_column_utils.h | 4 +-
be/src/format/table/iceberg_reader.cpp | 6 +-
be/src/format/table/iceberg_reader.h | 2 -
.../format/table/iceberg_sys_table_jni_reader.cpp | 4 +-
be/src/format/table/iceberg_sys_table_jni_reader.h | 6 +-
be/src/format/table/lakesoul_jni_reader.cpp | 6 +-
be/src/format/table/lakesoul_jni_reader.h | 6 +-
be/src/format/table/max_compute_jni_reader.cpp | 6 +-
be/src/format/table/max_compute_jni_reader.h | 6 +-
be/src/format/table/nested_column_access_helper.h | 4 +-
be/src/format/table/paimon_cpp_reader.cpp | 7 +-
be/src/format/table/paimon_cpp_reader.h | 4 +-
be/src/format/table/paimon_doris_file_system.cpp | 4 +-
be/src/format/table/paimon_doris_file_system.h | 4 +-
be/src/format/table/paimon_jni_reader.cpp | 6 +-
be/src/format/table/paimon_jni_reader.h | 6 +-
be/src/format/table/paimon_predicate_converter.cpp | 4 +-
be/src/format/table/paimon_predicate_converter.h | 4 +-
be/src/format/table/paimon_reader.cpp | 4 +-
be/src/format/table/paimon_reader.h | 4 +-
be/src/format/table/parquet_metadata_reader.cpp | 4 +-
be/src/format/table/parquet_metadata_reader.h | 4 +-
be/src/format/table/parquet_utils.cpp | 4 +-
be/src/format/table/parquet_utils.h | 4 +-
be/src/format/table/remote_doris_reader.cpp | 8 +-
be/src/format/table/remote_doris_reader.h | 6 +-
be/src/format/table/table_format_reader.cpp | 4 +-
be/src/format/table/table_format_reader.h | 6 +-
be/src/format/table/transactional_hive_common.cpp | 4 +-
be/src/format/table/transactional_hive_common.h | 4 +-
be/src/format/table/transactional_hive_reader.cpp | 6 +-
be/src/format/table/transactional_hive_reader.h | 4 +-
be/src/format/table/trino_connector_jni_reader.cpp | 6 +-
be/src/format/table/trino_connector_jni_reader.h | 6 +-
be/src/format/text/text_reader.cpp | 4 +-
be/src/format/text/text_reader.h | 4 +-
be/src/format/transformer/vcsv_transformer.cpp | 4 +-
be/src/format/transformer/vcsv_transformer.h | 4 +-
.../format/transformer/vfile_format_transformer.h | 10 +-
.../vfile_format_transformer_factory.cpp | 4 +-
.../transformer/vfile_format_transformer_factory.h | 4 +-
.../format/transformer/vjni_format_transformer.cpp | 4 +-
.../format/transformer/vjni_format_transformer.h | 4 +-
be/src/format/transformer/vnative_transformer.cpp | 4 +-
be/src/format/transformer/vnative_transformer.h | 4 +-
be/src/format/transformer/vorc_transformer.cpp | 16 +-
be/src/format/transformer/vorc_transformer.h | 6 +-
be/src/format/transformer/vparquet_transformer.cpp | 4 +-
be/src/format/transformer/vparquet_transformer.h | 4 +-
.../schema_active_queries_scanner.cpp | 14 +-
.../schema_active_queries_scanner.h | 6 +-
.../schema_backend_active_tasks.cpp | 15 +-
.../schema_backend_active_tasks.h | 6 +-
.../schema_backend_configuration_scanner.cpp | 3 +-
.../schema_backend_configuration_scanner.h | 4 +-
.../schema_backend_kerberos_ticket_cache.cpp | 15 +-
.../schema_backend_kerberos_ticket_cache.h | 6 +-
.../schema_catalog_meta_cache_stats_scanner.cpp | 15 +-
.../schema_catalog_meta_cache_stats_scanner.h | 6 +-
.../information_schema/schema_charsets_scanner.cpp | 6 +-
.../information_schema/schema_charsets_scanner.h | 6 +-
.../schema_cluster_snapshot_properties_scanner.cpp | 7 +-
.../schema_cluster_snapshot_properties_scanner.h | 6 +-
.../schema_cluster_snapshots_scanner.cpp | 6 +-
.../schema_cluster_snapshots_scanner.h | 6 +-
.../schema_collations_scanner.cpp | 6 +-
.../information_schema/schema_collations_scanner.h | 6 +-
.../schema_column_data_sizes_scanner.cpp | 6 +-
.../schema_column_data_sizes_scanner.h | 6 +-
.../information_schema/schema_columns_scanner.cpp | 6 +-
be/src/information_schema/schema_columns_scanner.h | 6 +-
.../schema_database_properties_scanner.cpp | 15 +-
.../schema_database_properties_scanner.h | 6 +-
be/src/information_schema/schema_dummy_scanner.cpp | 4 +-
be/src/information_schema/schema_dummy_scanner.h | 4 +-
.../schema_encryption_keys_scanner.cpp | 6 +-
.../schema_encryption_keys_scanner.h | 6 +-
.../schema_file_cache_info_scanner.cpp | 4 +-
.../schema_file_cache_info_scanner.h | 6 +-
.../schema_file_cache_statistics.cpp | 15 +-
.../schema_file_cache_statistics.h | 6 +-
be/src/information_schema/schema_files_scanner.cpp | 4 +-
be/src/information_schema/schema_files_scanner.h | 4 +-
.../information_schema/schema_load_job_scanner.cpp | 6 +-
.../information_schema/schema_load_job_scanner.h | 6 +-
.../schema_metadata_name_ids_scanner.cpp | 6 +-
.../schema_metadata_name_ids_scanner.h | 6 +-
.../schema_partitions_scanner.cpp | 16 +-
.../information_schema/schema_partitions_scanner.h | 6 +-
.../schema_processlist_scanner.cpp | 4 +-
.../schema_processlist_scanner.h | 6 +-
.../schema_profiling_scanner.cpp | 4 +-
.../information_schema/schema_profiling_scanner.h | 4 +-
.../schema_routine_load_job_scanner.cpp | 6 +-
.../schema_routine_load_job_scanner.h | 6 +-
.../information_schema/schema_rowsets_scanner.cpp | 6 +-
be/src/information_schema/schema_rowsets_scanner.h | 6 +-
be/src/information_schema/schema_scanner.cpp | 91 ++-
be/src/information_schema/schema_scanner.h | 22 +-
.../information_schema/schema_scanner_helper.cpp | 77 ++-
be/src/information_schema/schema_scanner_helper.h | 18 +-
.../schema_schema_privileges_scanner.cpp | 6 +-
.../schema_schema_privileges_scanner.h | 6 +-
.../information_schema/schema_schemata_scanner.cpp | 6 +-
.../information_schema/schema_schemata_scanner.h | 6 +-
.../schema_sql_block_rule_status_scanner.cpp | 11 +-
.../schema_sql_block_rule_status_scanner.h | 6 +-
.../schema_table_options_scanner.cpp | 14 +-
.../schema_table_options_scanner.h | 6 +-
.../schema_table_privileges_scanner.cpp | 6 +-
.../schema_table_privileges_scanner.h | 6 +-
.../schema_table_properties_scanner.cpp | 14 +-
.../schema_table_properties_scanner.h | 6 +-
.../information_schema/schema_tables_scanner.cpp | 6 +-
be/src/information_schema/schema_tables_scanner.h | 6 +-
.../information_schema/schema_tablets_scanner.cpp | 6 +-
be/src/information_schema/schema_tablets_scanner.h | 6 +-
.../schema_user_privileges_scanner.cpp | 6 +-
.../schema_user_privileges_scanner.h | 6 +-
be/src/information_schema/schema_user_scanner.cpp | 4 +-
be/src/information_schema/schema_user_scanner.h | 6 +-
.../schema_variables_scanner.cpp | 6 +-
.../information_schema/schema_variables_scanner.h | 6 +-
.../schema_view_dependency_scanner.cpp | 12 +-
.../schema_view_dependency_scanner.h | 6 +-
be/src/information_schema/schema_views_scanner.cpp | 6 +-
be/src/information_schema/schema_views_scanner.h | 6 +-
.../schema_workload_group_privileges.cpp | 13 +-
.../schema_workload_group_privileges.h | 6 +-
...chema_workload_group_resource_usage_scanner.cpp | 15 +-
.../schema_workload_group_resource_usage_scanner.h | 6 +-
.../schema_workload_groups_scanner.cpp | 14 +-
.../schema_workload_groups_scanner.h | 6 +-
.../schema_workload_sched_policy_scanner.cpp | 15 +-
.../schema_workload_sched_policy_scanner.h | 6 +-
be/src/io/cache/block_file_cache_factory.cpp | 2 +-
be/src/io/cache/block_file_cache_factory.h | 4 +-
be/src/io/cache/file_cache_common.cpp | 2 +-
be/src/io/cache/file_cache_common.h | 2 +-
be/src/io/cache/fs_file_cache_storage.cpp | 6 +-
be/src/load/channel/load_stream_writer.h | 2 -
be/src/load/channel/tablets_channel.cpp | 2 +-
be/src/load/delta_writer/delta_writer.cpp | 2 +-
be/src/load/delta_writer/delta_writer.h | 6 +-
be/src/load/delta_writer/delta_writer_v2.cpp | 2 +-
be/src/load/delta_writer/delta_writer_v2.h | 4 +-
be/src/load/delta_writer/push_handler.cpp | 68 +--
be/src/load/delta_writer/push_handler.h | 24 +-
be/src/load/group_commit/group_commit_mgr.cpp | 32 +-
be/src/load/group_commit/group_commit_mgr.h | 47 +-
be/src/load/group_commit/wal/wal_reader.cpp | 12 +-
be/src/load/group_commit/wal/wal_reader.h | 4 +-
be/src/load/memtable/memtable.cpp | 96 ++--
be/src/load/memtable/memtable.h | 39 +-
be/src/load/memtable/memtable_flush_executor.cpp | 2 +-
be/src/load/memtable/memtable_writer.cpp | 3 +-
be/src/load/memtable/memtable_writer.h | 4 +-
.../exec/partitioned_aggregation_source_operator.h | 16 +-
be/src/runtime/descriptors.cpp | 16 +-
be/src/runtime/descriptors.h | 8 +-
be/src/runtime/exec_env.h | 34 +-
be/src/runtime/exec_env_init.cpp | 20 +-
be/src/runtime/fold_constant_executor.cpp | 30 +-
be/src/runtime/fold_constant_executor.h | 7 +-
be/src/runtime/fragment_mgr.cpp | 23 +-
be/src/runtime/fragment_mgr.h | 9 +-
be/src/runtime/query_cache/query_cache.cpp | 5 +-
be/src/runtime/query_cache/query_cache.h | 2 +-
be/src/runtime/query_context.cpp | 17 +-
be/src/runtime/query_context.h | 39 +-
be/src/runtime/record_batch_queue.h | 6 +-
be/src/runtime/result_block_buffer.cpp | 16 +-
be/src/runtime/result_block_buffer.h | 12 +-
be/src/runtime/result_buffer_mgr.cpp | 12 +-
be/src/runtime/result_buffer_mgr.h | 2 -
be/src/runtime/runtime_predicate.cpp | 4 +-
be/src/runtime/runtime_predicate.h | 9 +-
be/src/runtime/runtime_query_statistics_mgr.cpp | 2 +-
be/src/runtime/runtime_query_statistics_mgr.h | 4 +-
be/src/runtime/runtime_state.cpp | 10 +-
be/src/runtime/runtime_state.h | 10 +-
be/src/runtime/workload_group/workload_group.cpp | 51 +-
be/src/runtime/workload_group/workload_group.h | 16 +-
.../workload_group/workload_group_manager.cpp | 2 +-
.../workload_group/workload_group_manager.h | 6 +-
.../workload_management/query_task_controller.cpp | 15 +-
.../workload_management/query_task_controller.h | 2 +-
.../runtime/workload_management/task_controller.h | 4 +-
.../arrow_flight/arrow_flight_batch_reader.cpp | 8 +-
.../arrow_flight/arrow_flight_batch_reader.h | 4 +-
be/src/service/internal_service.cpp | 63 +-
be/src/service/point_query_executor.cpp | 39 +-
be/src/service/point_query_executor.h | 16 +-
.../storage/compaction/collection_similarity.cpp | 16 +-
be/src/storage/compaction/collection_similarity.h | 4 +-
.../storage/compaction/collection_statistics.cpp | 25 +-
be/src/storage/compaction/collection_statistics.h | 5 +-
be/src/storage/compaction/compaction.cpp | 18 +-
be/src/storage/delete/delete_bitmap_calculator.cpp | 6 +-
be/src/storage/delete/delete_bitmap_calculator.h | 6 +-
be/src/storage/delete/delete_handler.cpp | 95 ++--
be/src/storage/delete/delete_handler.h | 2 +-
be/src/storage/field.h | 124 ++--
be/src/storage/index/ann/ann_index.cpp | 8 +-
be/src/storage/index/ann/ann_index.h | 4 +-
be/src/storage/index/ann/ann_index_writer.cpp | 2 +-
be/src/storage/index/ann/ann_index_writer.h | 2 +-
.../storage/index/ann/ann_range_search_runtime.cpp | 2 +-
.../storage/index/ann/ann_range_search_runtime.h | 2 +-
be/src/storage/index/ann/ann_topn_runtime.cpp | 54 +-
be/src/storage/index/ann/ann_topn_runtime.h | 17 +-
be/src/storage/index/ann/faiss_ann_index.cpp | 26 +-
be/src/storage/index/ann/faiss_ann_index.h | 4 +-
.../bloom_filter/bloom_filter_index_reader.cpp | 4 +-
.../bloom_filter/bloom_filter_index_writer.cpp | 2 +-
.../index/bloom_filter/bloom_filter_index_writer.h | 4 +-
be/src/storage/index/index_iterator.h | 2 +-
be/src/storage/index/index_writer.cpp | 2 +-
be/src/storage/index/index_writer.h | 4 +-
be/src/storage/index/indexed_column_reader.cpp | 2 +-
be/src/storage/index/indexed_column_reader.h | 2 +-
be/src/storage/index/indexed_column_writer.h | 2 +-
.../inverted/analyzer/ik/core/AnalyzeContext.cpp | 2 +-
.../inverted/analyzer/ik/core/AnalyzeContext.h | 2 +-
.../index/inverted/analyzer/ik/core/IKArbitrator.h | 4 +-
.../index/inverted/analyzer/ik/core/IKSegmenter.h | 2 +-
.../index/inverted/analyzer/ik/core/LexemePath.cpp | 6 +-
.../index/inverted/analyzer/ik/core/LexemePath.h | 6 +-
.../index/inverted/analyzer/ik/core/QuickSortSet.h | 4 +-
.../index/inverted/inverted_index_iterator.cpp | 2 +-
.../index/inverted/inverted_index_iterator.h | 4 +-
.../storage/index/inverted/inverted_index_reader.h | 12 +-
be/src/storage/index/zone_map/zone_map_index.cpp | 48 +-
be/src/storage/index/zone_map/zone_map_index.h | 18 +-
be/src/storage/iterator/block_reader.cpp | 8 +-
be/src/storage/iterator/block_reader.h | 3 -
be/src/storage/iterator/olap_data_convertor.cpp | 110 ++--
be/src/storage/iterator/olap_data_convertor.h | 36 +-
be/src/storage/iterator/vcollect_iterator.cpp | 6 +-
be/src/storage/iterator/vcollect_iterator.h | 3 -
be/src/storage/iterator/vertical_block_reader.cpp | 6 +-
be/src/storage/iterator/vertical_block_reader.h | 2 -
.../storage/iterator/vertical_merge_iterator.cpp | 7 +-
be/src/storage/iterator/vertical_merge_iterator.h | 5 +-
be/src/storage/iterator/vgeneric_iterators.cpp | 2 -
be/src/storage/iterator/vgeneric_iterators.h | 2 -
be/src/storage/iterators.h | 28 +-
be/src/storage/key_coder.h | 9 +-
be/src/storage/merger.cpp | 25 +-
be/src/storage/merger.h | 19 +-
be/src/storage/olap_common.h | 8 +-
be/src/storage/olap_scan_common.h | 12 +-
be/src/storage/partial_update_info.cpp | 143 ++---
be/src/storage/partial_update_info.h | 69 +--
be/src/storage/predicate/accept_null_predicate.h | 32 +-
be/src/storage/predicate/bitmap_filter_predicate.h | 14 +-
.../storage/predicate/block_column_predicate.cpp | 30 +-
be/src/storage/predicate/block_column_predicate.h | 55 +-
be/src/storage/predicate/bloom_filter_predicate.h | 16 +-
be/src/storage/predicate/column_predicate.h | 24 +-
be/src/storage/predicate/comparison_predicate.h | 117 ++--
be/src/storage/predicate/in_list_predicate.h | 83 ++-
be/src/storage/predicate/like_column_predicate.cpp | 26 +-
be/src/storage/predicate/like_column_predicate.h | 25 +-
be/src/storage/predicate/null_predicate.cpp | 10 +-
be/src/storage/predicate/null_predicate.h | 22 +-
be/src/storage/predicate/predicate_creator.cpp | 4 +-
be/src/storage/predicate/predicate_creator.h | 34 +-
be/src/storage/predicate/shared_predicate.h | 22 +-
be/src/storage/row_cursor.cpp | 2 +-
be/src/storage/row_cursor.h | 4 +-
be/src/storage/rowset/beta_rowset_reader.cpp | 9 +-
be/src/storage/rowset/beta_rowset_reader.h | 6 +-
be/src/storage/rowset/beta_rowset_writer.cpp | 7 +-
be/src/storage/rowset/beta_rowset_writer.h | 9 +-
be/src/storage/rowset/beta_rowset_writer_v2.cpp | 5 +-
be/src/storage/rowset/beta_rowset_writer_v2.h | 9 +-
be/src/storage/rowset/rowset_meta.cpp | 2 +-
be/src/storage/rowset/rowset_reader.h | 6 +-
be/src/storage/rowset/rowset_reader_context.h | 14 +-
be/src/storage/rowset/rowset_writer.h | 9 +-
be/src/storage/rowset/segcompaction.cpp | 14 +-
be/src/storage/rowset/segcompaction.h | 9 +-
be/src/storage/rowset/segment_creator.cpp | 12 +-
be/src/storage/rowset/segment_creator.h | 18 +-
.../storage/rowset/vertical_beta_rowset_writer.cpp | 2 +-
.../storage/rowset/vertical_beta_rowset_writer.h | 6 +-
be/src/storage/rowset_builder.h | 2 -
be/src/storage/schema.cpp | 72 ++-
be/src/storage/schema.h | 23 +-
be/src/storage/schema_change/column_mapping.h | 2 +-
be/src/storage/schema_change/schema_change.cpp | 117 ++--
be/src/storage/schema_change/schema_change.h | 19 +-
be/src/storage/segment/binary_dict_page.cpp | 4 +-
be/src/storage/segment/binary_dict_page.h | 6 +-
be/src/storage/segment/binary_plain_page.h | 4 +-
be/src/storage/segment/binary_prefix_page.cpp | 2 +-
be/src/storage/segment/binary_prefix_page.h | 2 +-
be/src/storage/segment/bitshuffle_page.h | 14 +-
be/src/storage/segment/column_reader.cpp | 166 +++---
be/src/storage/segment/column_reader.h | 67 ++-
be/src/storage/segment/column_reader_cache.cpp | 3 +-
be/src/storage/segment/column_reader_cache.h | 4 +-
be/src/storage/segment/column_writer.cpp | 69 ++-
be/src/storage/segment/column_writer.h | 28 +-
be/src/storage/segment/empty_segment_iterator.cpp | 4 +-
be/src/storage/segment/empty_segment_iterator.h | 4 +-
be/src/storage/segment/frame_of_reference_page.h | 4 +-
.../storage/segment/lazy_init_segment_iterator.h | 2 -
be/src/storage/segment/page_decoder.h | 6 +-
be/src/storage/segment/plain_page.h | 4 +-
be/src/storage/segment/rle_page.h | 4 +-
be/src/storage/segment/segment.cpp | 35 +-
be/src/storage/segment/segment.h | 17 +-
be/src/storage/segment/segment_iterator.cpp | 174 +++---
be/src/storage/segment/segment_iterator.h | 81 ++-
be/src/storage/segment/segment_writer.cpp | 63 +-
be/src/storage/segment/segment_writer.h | 34 +-
be/src/storage/segment/stream_reader.cpp | 5 +-
be/src/storage/segment/stream_reader.h | 16 +-
.../variant/binary_column_extract_iterator.h | 39 +-
.../segment/variant/binary_column_reader.cpp | 14 +-
.../storage/segment/variant/binary_column_reader.h | 8 +-
.../segment/variant/hierarchical_data_iterator.cpp | 57 +-
.../segment/variant/hierarchical_data_iterator.h | 35 +-
.../segment/variant/nested_group_provider.cpp | 18 +-
.../segment/variant/nested_group_provider.h | 18 +-
.../segment/variant/nested_group_routing_plan.cpp | 14 +-
.../segment/variant/nested_group_routing_plan.h | 9 +-
.../variant/sparse_column_merge_iterator.cpp | 41 +-
.../segment/variant/sparse_column_merge_iterator.h | 15 +-
.../segment/variant/variant_column_reader.cpp | 218 ++++---
.../segment/variant/variant_column_reader.h | 72 ++-
.../segment/variant/variant_column_writer_impl.cpp | 339 ++++++-----
.../segment/variant/variant_column_writer_impl.h | 77 ++-
.../variant_doc_snpashot_compact_iterator.h | 20 +-
.../segment/variant/variant_ext_meta_writer.cpp | 4 +-
.../variant/variant_external_meta_reader.cpp | 20 +-
.../storage/segment/variant_stats_calculator.cpp | 12 +-
be/src/storage/segment/variant_stats_calculator.h | 7 +-
be/src/storage/segment/vertical_segment_writer.cpp | 88 ++-
be/src/storage/segment/vertical_segment_writer.h | 48 +-
be/src/storage/segment/virtual_column_iterator.cpp | 26 +-
be/src/storage/segment/virtual_column_iterator.h | 12 +-
be/src/storage/tablet/base_tablet.cpp | 77 ++-
be/src/storage/tablet/base_tablet.h | 19 +-
be/src/storage/tablet/tablet.cpp | 2 -
be/src/storage/tablet/tablet.h | 2 -
be/src/storage/tablet/tablet_reader.cpp | 15 +-
be/src/storage/tablet/tablet_reader.h | 24 +-
be/src/storage/tablet/tablet_schema.cpp | 62 +-
be/src/storage/tablet/tablet_schema.h | 35 +-
be/src/storage/tablet_info.cpp | 29 +-
be/src/storage/tablet_info.h | 30 +-
be/src/storage/task/engine_checksum_task.cpp | 4 +-
be/src/storage/task/index_builder.cpp | 20 +-
be/src/storage/task/index_builder.h | 13 +-
be/src/storage/types.h | 25 +-
be/src/tools/meta_tool.cpp | 6 +-
be/src/udf/python/python_udf_meta.cpp | 3 +-
be/src/udf/python/python_udf_meta.h | 7 +-
be/src/util/counts.h | 12 +-
be/src/util/io_helper.cpp | 4 +-
be/src/util/io_helper.h | 4 +-
be/src/util/json/json_parser.cpp | 4 +-
be/src/util/json/json_parser.h | 4 +-
be/src/util/json/path_in_data.cpp | 4 +-
be/src/util/json/path_in_data.h | 16 +-
be/src/util/json/simd_json_parser.h | 4 +-
be/src/util/jsonb/serialize.cpp | 4 +-
be/src/util/jsonb/serialize.h | 4 +-
be/src/util/jsonb_document.h | 15 +-
be/src/util/jsonb_document_cast.h | 38 +-
be/src/util/jsonb_utils.cpp | 20 +-
be/src/util/jsonb_utils.h | 8 +-
be/src/util/jsonb_writer.h | 6 +-
be/src/util/reservoir_sampler.h | 6 +-
be/src/util/simd/reverse_copy_bytes.h | 6 +-
be/src/util/string_parser.cpp | 8 +-
be/src/util/string_parser.hpp | 6 +-
be/src/util/timezone_utils.cpp | 4 +-
be/src/util/var_int.h | 4 +-
be/test/ai/aggregate_function_ai_agg_test.cpp | 4 +-
be/test/ai/ai_adapter_test.cpp | 8 +-
be/test/ai/ai_function_test.cpp | 4 +-
be/test/ai/embed_test.cpp | 4 +-
be/test/common/check_overflow.cpp | 4 +-
be/test/core/accurate_comparison_test.cpp | 4 +-
be/test/core/block/block_test.cpp | 617 ++++++++++----------
be/test/core/block/column_array_test.cpp | 4 +-
be/test/core/block/column_complex_test.cpp | 6 +-
be/test/core/block/column_map_test.cpp | 4 +-
be/test/core/block/column_nullable_test.cpp | 4 +-
be/test/core/block/column_struct_test.cpp | 4 +-
be/test/core/block/column_test.cpp | 4 +-
be/test/core/block/column_vector_test.cpp | 4 +-
.../core/block/column_with_type_and_name_test.cpp | 4 +-
be/test/core/block/get_common_type_test.cpp | 6 +-
be/test/core/block/number_traits_test.cpp | 24 +-
.../core/column/check_and_get_column_ptr_test.cpp | 4 +-
.../check_column_with_type_and_name_test.cpp | 4 +-
be/test/core/column/column_array_test.cpp | 7 +-
be/test/core/column/column_base_test.cpp | 4 +-
.../column_check_const_only_in_top_level_test.cpp | 4 +-
be/test/core/column/column_const_test.cpp | 4 +-
be/test/core/column/column_decimal_test.cpp | 8 +-
be/test/core/column/column_dictionary_test.cpp | 4 +-
be/test/core/column/column_execute_util_test.cpp | 4 +-
.../column/column_fixed_length_object_test.cpp | 6 +-
be/test/core/column/column_hash_func_test.cpp | 65 ++-
be/test/core/column/column_ip_test.cpp | 8 +-
be/test/core/column/column_map_test.cpp | 4 +-
be/test/core/column/column_nothing_test.cpp | 4 +-
.../column/column_nullable_seriazlization_test.cpp | 2 +-
be/test/core/column/column_nullable_test.cpp | 4 +-
be/test/core/column/column_nullable_test.h | 10 +-
be/test/core/column/column_resize_test.cpp | 6 +-
be/test/core/column/column_self_check.cpp | 4 +-
be/test/core/column/column_string_test.cpp | 6 +-
be/test/core/column/column_struct_test.cpp | 4 +-
be/test/core/column/column_varbinary_test.cpp | 4 +-
be/test/core/column/column_variant_test.cpp | 203 +++----
be/test/core/column/column_vector_test.cpp | 4 +-
be/test/core/column/common_column_test.h | 8 +-
be/test/core/column/pod_array_type_test.cpp | 4 +-
be/test/core/data_type/block_check_type.cpp | 4 +-
.../core/data_type/common_data_type_serder_test.h | 4 +-
be/test/core/data_type/common_data_type_test.h | 4 +-
be/test/core/data_type/complex_type_test.cpp | 4 +-
.../core/data_type/data_type_agg_state_test.cpp | 4 +-
be/test/core/data_type/data_type_array_test.cpp | 4 +-
be/test/core/data_type/data_type_bitmap_test.cpp | 10 +-
.../core/data_type/data_type_datetime_v1_test.cpp | 4 +-
.../core/data_type/data_type_datetime_v2_test.cpp | 4 +-
be/test/core/data_type/data_type_decimal_test.cpp | 4 +-
.../data_type_fixed_length_object_test.cpp | 4 +-
be/test/core/data_type/data_type_hll_test.cpp | 10 +-
be/test/core/data_type/data_type_ip_test.cpp | 8 +-
be/test/core/data_type/data_type_jsonb_test.cpp | 4 +-
be/test/core/data_type/data_type_map_test.cpp | 10 +-
be/test/core/data_type/data_type_nothing_test.cpp | 4 +-
be/test/core/data_type/data_type_number_test.cpp | 4 +-
.../data_type/data_type_quantile_state_test.cpp | 12 +-
be/test/core/data_type/data_type_string_test.cpp | 4 +-
be/test/core/data_type/data_type_struct_test.cpp | 14 +-
.../core/data_type/data_type_timestamptz_test.cpp | 4 +-
.../core/data_type/data_type_varbinary_test.cpp | 4 +-
be/test/core/data_type/datetime_round_test.cpp | 6 +-
be/test/core/data_type/decimal_test.cpp | 60 +-
be/test/core/data_type/from_string_test.cpp | 4 +-
be/test/core/data_type/serde_utils.h | 4 +-
.../data_type_serde/data_type_from_string_test.cpp | 4 +-
.../data_type_serde/data_type_jsonb_serde_test.cpp | 4 +-
.../data_type_serde_agg_state_test.cpp | 4 +-
.../data_type_serde/data_type_serde_arrow_test.cpp | 128 ++---
.../data_type_serde_bitmap_test.cpp | 16 +-
.../data_type_serde/data_type_serde_csv_test.cpp | 4 +-
.../data_type_serde_datetime_v1_test.cpp | 4 +-
.../data_type_serde_datetime_v2_test.cpp | 4 +-
.../data_type_serde_decimal_test.cpp | 4 +-
.../data_type_serde_fixed_length_object_test.cpp | 24 +-
.../data_type_serde_get_name_test.cpp | 4 +-
.../data_type_serde/data_type_serde_hll_test.cpp | 16 +-
.../data_type_serde/data_type_serde_map_test.cpp | 4 +-
.../data_type_serde/data_type_serde_mysql_test.cpp | 105 ++--
.../data_type_serde_number_test.cpp | 4 +-
.../data_type_serde/data_type_serde_pb_test.cpp | 201 +++----
.../data_type_serde_quantile_state_test.cpp | 12 +-
.../data_type_serde_string_test.cpp | 4 +-
.../data_type_serde_struct_test.cpp | 4 +-
.../core/data_type_serde/data_type_serde_test.cpp | 61 +-
.../data_type_serde/data_type_serde_text_test.cpp | 4 +-
.../data_type_serde_timestamptz_test.cpp | 4 +-
.../data_type_serde_varbinary_test.cpp | 4 +-
.../data_type_serde/data_type_to_string_test.cpp | 4 +-
.../data_type_write_to_jsonb_test.cpp | 4 +-
be/test/core/field_test.cpp | 4 +-
be/test/core/jsonb/convert_field_to_type_test.cpp | 4 +-
be/test/core/jsonb/json_parser_test.cpp | 41 +-
be/test/core/jsonb/jsonb_document_cast_test.cpp | 4 +-
be/test/core/jsonb/jsonb_document_test.cpp | 8 +-
be/test/core/jsonb/path_in_data_test.cpp | 4 +-
be/test/core/jsonb/serialize_test.cpp | 165 +++---
be/test/core/pod_array_test.cpp | 69 ++-
be/test/core/string_buffer_test.cpp | 4 +-
.../utils/arrow_column_to_doris_column_test.cpp | 40 +-
be/test/core/utils/histogram_helpers_test.cpp | 4 +-
be/test/core/utils/small_size_hash_set_test.cpp | 4 +-
be/test/core/utils/stringop_substring_test.cpp | 4 +-
be/test/core/value/bitmap_value_test.cpp | 2 +-
be/test/core/value/ip_value_test.cpp | 4 +-
be/test/core/value/jsonb_value_test2.cpp | 22 +-
be/test/core/value/sort_merger_test.cpp | 187 +++---
be/test/core/value/vdatetime_value_test.cpp | 4 +-
be/test/core/wide_integer_test.cpp | 4 +-
be/test/exec/agg/agg_fn_evaluator_test.cpp | 24 +-
be/test/exec/column_type_convert_test.cpp | 135 ++---
be/test/exec/common/schema_util_rowset_test.cpp | 18 +-
be/test/exec/common/schema_util_test.cpp | 220 ++++---
be/test/exec/common/string_utils_test.cpp | 4 +-
be/test/exec/concurrent_queue_order.cpp | 4 +-
be/test/exec/connector/vjdbc_connector_test.cpp | 4 +-
.../dictionary/dictionary_get_nullable_test.cpp | 4 +-
.../exec/dictionary/dictionary_ip_trie_test.cpp | 4 +-
be/test/exec/dictionary/dictionary_status_test.cpp | 4 +-
be/test/exec/dictionary/dictionary_util_test.cpp | 4 +-
.../exec/dictionary/dictionary_version_test.cpp | 4 +-
be/test/exec/exchange/exchange_sink_test.cpp | 14 +-
be/test/exec/exchange/exchange_sink_test.h | 33 +-
be/test/exec/exchange/exchange_writer_test.cpp | 28 +-
.../split_concurrency_controller_test.cpp | 4 +-
.../time_sharing_task_executor_test.cpp | 2 -
be/test/exec/hash_map/hash_table_method_test.cpp | 4 +-
.../agg_operator_group_by_limit_opt_test.cpp | 193 +++----
be/test/exec/operator/agg_operator_test.cpp | 199 +++----
be/test/exec/operator/agg_shared_state_test.cpp | 24 +-
.../exec/operator/analytic_sink_operator_test.cpp | 71 ++-
.../exec/operator/assert_nums_rows_operator.cpp | 7 +-
be/test/exec/operator/datagen_operator_test.cpp | 16 +-
...istinct_streaming_aggregation_operator_test.cpp | 5 +-
be/test/exec/operator/empty_set_operator_test.cpp | 6 +-
.../exec/operator/exchange_sink_operator_test.cpp | 7 +-
.../operator/exchange_source_operator_test.cpp | 6 +-
be/test/exec/operator/hash_join_test_helper.cpp | 4 +-
be/test/exec/operator/hash_join_test_helper.h | 4 +-
be/test/exec/operator/hashjoin_build_sink_test.cpp | 16 +-
.../exec/operator/hashjoin_probe_operator_test.cpp | 453 +++++++--------
be/test/exec/operator/join_test_helper.cpp | 4 +-
be/test/exec/operator/join_test_helper.h | 4 +-
.../local_merge_sort_source_operator_test.cpp | 10 +-
.../operator/materialization_shared_state_test.cpp | 110 ++--
be/test/exec/operator/operator_helper.h | 4 +-
.../operator/partition_sort_sink_operator_test.cpp | 94 ++-
.../partitioned_aggregation_sink_operator_test.cpp | 51 +-
...artitioned_aggregation_source_operator_test.cpp | 27 +-
.../partitioned_aggregation_test_helper.cpp | 4 +-
.../operator/partitioned_aggregation_test_helper.h | 10 +-
.../partitioned_hash_join_probe_operator_test.cpp | 94 ++-
.../partitioned_hash_join_sink_operator_test.cpp | 19 +-
.../operator/partitioned_hash_join_test_helper.cpp | 4 +-
.../operator/partitioned_hash_join_test_helper.h | 20 +-
.../exec/operator/query_cache_operator_test.cpp | 19 +-
be/test/exec/operator/repeat_operator_test.cpp | 5 +-
.../operator/scan_normalize_predicate_test.cpp | 162 +++---
be/test/exec/operator/set_operator_test.cpp | 6 +-
be/test/exec/operator/sort_operator_test.cpp | 27 +-
.../operator/spill_sort_sink_operator_test.cpp | 50 +-
.../operator/spill_sort_source_operator_test.cpp | 55 +-
be/test/exec/operator/spill_sort_test_helper.cpp | 4 +-
be/test/exec/operator/spill_sort_test_helper.h | 8 +-
.../operator/spillable_operator_test_helper.cpp | 11 +-
.../exec/operator/spillable_operator_test_helper.h | 14 +-
.../exec/operator/streaming_agg_operator_test.cpp | 74 ++-
.../exec/operator/table_function_operator_test.cpp | 47 +-
be/test/exec/operator/union_operator_test.cpp | 6 +-
be/test/exec/pipeline/common/agg_utils_test.cpp | 78 ++-
.../pipeline/common/distinct_agg_utils_test.cpp | 133 ++---
be/test/exec/pipeline/common/set_utils_test.cpp | 73 +--
be/test/exec/pipeline/data_queue_test.cpp | 6 +-
be/test/exec/pipeline/dummy_task_queue.h | 4 +-
be/test/exec/pipeline/local_exchanger_test.cpp | 162 +++---
.../pipeline/multi_cast_data_streamer_test.cpp | 16 +-
be/test/exec/pipeline/pipeline_task_test.cpp | 12 +-
be/test/exec/pipeline/pipeline_test.cpp | 33 +-
be/test/exec/pipeline/query_cache_test.cpp | 5 +-
be/test/exec/pipeline/vdata_stream_recvr_test.cpp | 5 +-
.../runtime_filter_consumer_helper_test.cpp | 33 +-
.../runtime_filter_consumer_test.cpp | 8 +-
.../runtime_filter/runtime_filter_mgr_test.cpp | 4 +-
.../runtime_filter_producer_helper_cross_test.cpp | 40 +-
.../runtime_filter_producer_helper_set_test.cpp | 36 +-
.../runtime_filter_producer_helper_test.cpp | 90 +--
.../runtime_filter_producer_test.cpp | 8 +-
.../runtime_filter/runtime_filter_wrapper_test.cpp | 118 ++--
be/test/exec/runtime_filter/utils_test.cpp | 22 +-
be/test/exec/scan/mock_simplified_scan_scheduler.h | 4 +-
be/test/exec/scan/scan_operator_test.cpp | 8 +-
be/test/exec/scan/scanner_context_test.cpp | 74 +--
be/test/exec/scan/vfile_scanner_exception_test.cpp | 28 +-
be/test/exec/scan/vgeneric_iterators_test.cpp | 58 +-
be/test/exec/scan/vhive_utils_test.cpp | 4 +-
...ma_cluster_snapshot_properties_scanner_test.cpp | 2 +-
.../schema_cluster_snapshots_scanner_test.cpp | 2 +-
.../schema_encryption_keys_scanner_test.cpp | 2 +-
.../exec/sink/arrow_result_block_buffer_test.cpp | 16 +-
be/test/exec/sink/get_result_batch_test.cpp | 4 +-
be/test/exec/sink/result_block_buffer_test.cpp | 12 +-
be/test/exec/sink/sink_test_utils.h | 7 +-
.../sink/tablet_sink_hash_partitioner_test.cpp | 10 +-
be/test/exec/sink/vrow_distribution_test.cpp | 6 +-
be/test/exec/sink/vtablet_writer_v2_test.cpp | 10 +-
.../writer/iceberg/partition_transformers_test.cpp | 22 +-
be/test/exec/skewed_partition_rebalancer_test.cpp | 4 +-
be/test/exec/sort/full_sort_test.cpp | 4 +-
be/test/exec/sort/heap_sorter_test.cpp | 4 +-
be/test/exec/sort/merge_sorter_state.cpp | 4 +-
be/test/exec/sort/partition_sorter_test.cpp | 4 +-
be/test/exec/sort/sort_test.cpp | 34 +-
be/test/exec/sort/topn_sort_test.cpp | 4 +-
be/test/exprs/aggregate/agg_array_agg_test.cpp | 6 +-
be/test/exprs/aggregate/agg_avg_test.cpp | 4 +-
be/test/exprs/aggregate/agg_bit_test.cpp | 4 +-
be/test/exprs/aggregate/agg_bitmap_test.cpp | 4 +-
be/test/exprs/aggregate/agg_bool_union_test.cpp | 4 +-
be/test/exprs/aggregate/agg_collect_test.cpp | 8 +-
be/test/exprs/aggregate/agg_corr_test.cpp | 4 +-
be/test/exprs/aggregate/agg_count_test.cpp | 4 +-
be/test/exprs/aggregate/agg_function_test.h | 30 +-
.../aggregate/agg_group_array_intersect_test.cpp | 141 +++--
be/test/exprs/aggregate/agg_histogram_test.cpp | 6 +-
.../exprs/aggregate/agg_linear_histogram_test.cpp | 6 +-
be/test/exprs/aggregate/agg_min_max_by_test.cpp | 6 +-
be/test/exprs/aggregate/agg_min_max_test.cpp | 4 +-
be/test/exprs/aggregate/agg_replace_test.cpp | 26 +-
be/test/exprs/aggregate/agg_test.cpp | 10 +-
be/test/exprs/aggregate/vec_count_by_enum_test.cpp | 46 +-
be/test/exprs/aggregate/vec_retention_test.cpp | 78 ++-
.../exprs/aggregate/vec_sequence_match_test.cpp | 86 ++-
be/test/exprs/aggregate/vec_window_funnel_test.cpp | 186 +++---
be/test/exprs/bloom_filter_func_test.cpp | 59 +-
be/test/exprs/function/cast/cast_test.h | 4 +-
be/test/exprs/function/cast/cast_to_array_test.cpp | 4 +-
.../exprs/function/cast/cast_to_boolean_test.cpp | 4 +-
be/test/exprs/function/cast/cast_to_date_test.cpp | 4 +-
.../exprs/function/cast/cast_to_datetime_test.cpp | 4 +-
be/test/exprs/function/cast/cast_to_decimal.cpp | 4 +-
.../cast/cast_to_decimal128_from_decimal128.cpp | 4 +-
...cast_to_decimal128_from_decimal128_overflow.cpp | 4 +-
.../cast/cast_to_decimal128_from_decimal256.cpp | 4 +-
...cast_to_decimal128_from_decimal256_overflow.cpp | 4 +-
.../cast/cast_to_decimal128_from_decimal32.cpp | 4 +-
.../cast_to_decimal128_from_decimal32_overflow.cpp | 4 +-
.../cast/cast_to_decimal128_from_decimal64.cpp | 4 +-
.../cast_to_decimal128_from_decimal64_overflow.cpp | 4 +-
.../cast/cast_to_decimal128_from_double.cpp | 4 +-
.../cast_to_decimal128_from_double_overflow.cpp | 4 +-
.../cast/cast_to_decimal128_from_float.cpp | 4 +-
.../cast_to_decimal128_from_float_overflow.cpp | 4 +-
.../function/cast/cast_to_decimal128_from_int.cpp | 4 +-
.../cast/cast_to_decimal128_from_int_overflow.cpp | 4 +-
.../cast/cast_to_decimal128_from_string.cpp | 4 +-
.../cast_to_decimal128_from_string_overflow.cpp | 4 +-
.../function/cast/cast_to_decimal128_perf.cpp | 4 +-
.../cast/cast_to_decimal256_from_decimal128.cpp | 4 +-
...cast_to_decimal256_from_decimal128_overflow.cpp | 4 +-
.../cast/cast_to_decimal256_from_decimal256.cpp | 4 +-
...cast_to_decimal256_from_decimal256_overflow.cpp | 4 +-
.../cast/cast_to_decimal256_from_decimal32.cpp | 4 +-
.../cast_to_decimal256_from_decimal32_overflow.cpp | 4 +-
.../cast/cast_to_decimal256_from_decimal64.cpp | 4 +-
.../cast_to_decimal256_from_decimal64_overflow.cpp | 4 +-
.../cast/cast_to_decimal256_from_double.cpp | 4 +-
.../cast_to_decimal256_from_double_overflow.cpp | 4 +-
.../cast/cast_to_decimal256_from_float.cpp | 4 +-
.../cast_to_decimal256_from_float_overflow.cpp | 4 +-
.../function/cast/cast_to_decimal256_from_int.cpp | 4 +-
.../cast/cast_to_decimal256_from_int_overflow.cpp | 4 +-
.../cast/cast_to_decimal256_from_string.cpp | 4 +-
.../cast_to_decimal256_from_string_overflow.cpp | 4 +-
.../cast/cast_to_decimal32_from_decimal128.cpp | 4 +-
.../cast_to_decimal32_from_decimal128_overflow.cpp | 4 +-
.../cast/cast_to_decimal32_from_decimal256.cpp | 4 +-
.../cast_to_decimal32_from_decimal256_overflow.cpp | 4 +-
.../cast/cast_to_decimal32_from_decimal32.cpp | 4 +-
.../cast_to_decimal32_from_decimal32_overflow.cpp | 4 +-
.../cast/cast_to_decimal32_from_decimal64.cpp | 4 +-
.../cast_to_decimal32_from_decimal64_overflow.cpp | 4 +-
.../cast/cast_to_decimal32_from_double.cpp | 4 +-
.../cast_to_decimal32_from_double_overflow.cpp | 4 +-
.../function/cast/cast_to_decimal32_from_float.cpp | 4 +-
.../cast/cast_to_decimal32_from_float_overflow.cpp | 4 +-
.../function/cast/cast_to_decimal32_from_int.cpp | 4 +-
.../cast/cast_to_decimal32_from_int_overflow.cpp | 4 +-
.../cast/cast_to_decimal32_from_string.cpp | 4 +-
.../cast_to_decimal32_from_string_overflow.cpp | 4 +-
.../cast/cast_to_decimal64_from_decimal128.cpp | 4 +-
.../cast_to_decimal64_from_decimal128_overflow.cpp | 4 +-
.../cast/cast_to_decimal64_from_decimal256.cpp | 4 +-
.../cast_to_decimal64_from_decimal256_overflow.cpp | 4 +-
.../cast/cast_to_decimal64_from_decimal32.cpp | 4 +-
.../cast_to_decimal64_from_decimal32_overflow.cpp | 4 +-
.../cast/cast_to_decimal64_from_decimal64.cpp | 4 +-
.../cast_to_decimal64_from_decimal64_overflow.cpp | 4 +-
.../cast/cast_to_decimal64_from_double.cpp | 4 +-
.../cast_to_decimal64_from_double_overflow.cpp | 4 +-
.../function/cast/cast_to_decimal64_from_float.cpp | 4 +-
.../cast/cast_to_decimal64_from_float_overflow.cpp | 4 +-
.../function/cast/cast_to_decimal64_from_int.cpp | 4 +-
.../cast/cast_to_decimal64_from_int_overflow.cpp | 4 +-
.../cast/cast_to_decimal64_from_string.cpp | 4 +-
.../cast_to_decimal64_from_string_overflow.cpp | 4 +-
be/test/exprs/function/cast/cast_to_decimal_test.h | 8 +-
.../exprs/function/cast/cast_to_float_double.cpp | 4 +-
be/test/exprs/function/cast/cast_to_integer.cpp | 4 +-
be/test/exprs/function/cast/cast_to_ip_test.cpp | 4 +-
be/test/exprs/function/cast/cast_to_map_test.cpp | 4 +-
be/test/exprs/function/cast/cast_to_string.cpp | 4 +-
.../function/cast/cast_to_string_api_test.cpp | 4 +-
.../exprs/function/cast/cast_to_struct_test.cpp | 4 +-
be/test/exprs/function/cast/cast_to_time_test.cpp | 4 +-
.../function/cast/cast_to_timestamptz_test.cpp | 4 +-
.../function/cast/function_variant_cast_test.cpp | 19 +-
.../exprs/function/function_arithmetic_test.cpp | 4 +-
.../function/function_array_aggregation_test.cpp | 4 +-
.../function_array_cosine_similarity_test.cpp | 4 +-
.../exprs/function/function_array_element_test.cpp | 4 +-
.../exprs/function/function_array_index_test.cpp | 4 +-
.../exprs/function/function_array_size_test.cpp | 4 +-
.../function/function_arrays_overlap_test.cpp | 4 +-
be/test/exprs/function/function_bitmap_test.cpp | 4 +-
...ion_comparison_evaluate_inverted_index_test.cpp | 4 +-
.../function_complex_hash_map_dict_test.cpp | 4 +-
.../function_compressed_materialization_test.cpp | 4 +-
.../exprs/function/function_dict_get_many_test.cpp | 4 +-
be/test/exprs/function/function_dict_get_test.cpp | 4 +-
.../exprs/function/function_eq_for_null_test.cpp | 44 +-
be/test/exprs/function/function_geo_test.cpp | 4 +-
.../exprs/function/function_hash_map_dict_test.cpp | 4 +-
.../exprs/function/function_hash_map_dict_test.h | 4 +-
be/test/exprs/function/function_hash_test.cpp | 4 +-
be/test/exprs/function/function_hll_test.cpp | 4 +-
be/test/exprs/function/function_ip_dict_test.cpp | 4 +-
be/test/exprs/function/function_ip_dict_test.h | 4 +-
be/test/exprs/function/function_ip_test.cpp | 4 +-
be/test/exprs/function/function_is_null_test.cpp | 24 +-
be/test/exprs/function/function_jsonb_test.cpp | 4 +-
be/test/exprs/function/function_like_test.cpp | 4 +-
be/test/exprs/function/function_map_test.cpp | 4 +-
be/test/exprs/function/function_match_test.cpp | 4 +-
be/test/exprs/function/function_math_test.cpp | 4 +-
.../exprs/function/function_money_format_test.cpp | 4 +-
.../exprs/function/function_multi_match_test.cpp | 4 +-
be/test/exprs/function/function_nullif_test.cpp | 4 +-
be/test/exprs/function/function_num_if_test.cpp | 4 +-
.../function/function_quantile_state_test.cpp | 4 +-
be/test/exprs/function/function_round_test.cpp | 4 +-
.../exprs/function/function_search_nested_test.cpp | 24 +-
be/test/exprs/function/function_search_test.cpp | 55 +-
be/test/exprs/function/function_string_test.cpp | 4 +-
.../function/function_struct_element_test.cpp | 4 +-
.../exprs/function/function_sub_replace_test.cpp | 4 +-
be/test/exprs/function/function_test_template.cpp | 4 +-
be/test/exprs/function/function_test_util.cpp | 6 +-
be/test/exprs/function/function_test_util.h | 4 +-
.../function/function_throw_exception_test.cpp | 4 +-
be/test/exprs/function/function_time_test.cpp | 4 +-
be/test/exprs/function/function_tokenize_test.cpp | 4 +-
be/test/exprs/function/function_url_test.cpp | 4 +-
be/test/exprs/function/function_uuid_test.cpp | 4 +-
be/test/exprs/function/function_varbinary_test.cpp | 4 +-
.../function/function_variant_element_test.cpp | 6 +-
.../function/simple_function_factory_test.cpp | 4 +-
be/test/exprs/function/table_function_test.cpp | 4 +-
be/test/exprs/hybrid_set_test.cpp | 42 +-
be/test/exprs/minmax_predicate_test.cpp | 22 +-
be/test/exprs/mock_vexpr.h | 9 +-
be/test/exprs/score_runtime_test.cpp | 4 +-
be/test/exprs/short_circuit_util_test.cpp | 4 +-
be/test/exprs/try_cast_expr_test.cpp | 4 +-
.../exprs/vexpr_evalute_inverted_index_test.cpp | 25 +-
be/test/exprs/vexpr_test.cpp | 20 +-
be/test/exprs/virtual_slot_ref_test.cpp | 4 +-
be/test/exprs/vsearch_expr_test.cpp | 4 +-
.../new_plain_text_line_reader_test.cpp | 4 +-
.../format/native/native_reader_writer_test.cpp | 4 +-
be/test/format/orc/orc_convert_dict_test.cpp | 3 -
.../format/orc/orc_convert_to_orc_literal_test.cpp | 2 -
be/test/format/orc/orc_file_reader_test.cpp | 2 -
be/test/format/orc/orc_memory_stream_test.h | 2 -
be/test/format/orc/orc_read_lines.cpp | 42 +-
be/test/format/orc/orc_reader_fill_data_test.cpp | 2 -
be/test/format/orc/orc_reader_init_column_test.cpp | 2 -
be/test/format/orc/orc_reader_test.cpp | 4 +-
be/test/format/parquet/bool_plain_decoder_test.cpp | 4 +-
be/test/format/parquet/bool_rle_decoder_test.cpp | 4 +-
.../parquet/byte_array_dict_decoder_test.cpp | 12 +-
.../parquet/byte_array_plain_decoder_test.cpp | 4 +-
.../parquet/byte_stream_split_decoder_test.cpp | 4 +-
.../format/parquet/delta_bit_pack_decoder_test.cpp | 4 +-
.../parquet/delta_byte_array_decoder_test.cpp | 4 +-
.../delta_length_byte_array_decoder_test.cpp | 4 +-
.../parquet/fix_length_dict_decoder_test.cpp | 12 +-
.../parquet/fix_length_plain_decoder_test.cpp | 4 +-
be/test/format/parquet/level_decoder_test.cpp | 4 +-
be/test/format/parquet/parquet_common_test.cpp | 4 +-
.../parquet/parquet_corrupt_statistics_test.cpp | 2 -
be/test/format/parquet/parquet_expr_test.cpp | 60 +-
.../parquet_nested_type_cross_page_test.cpp | 4 +-
be/test/format/parquet/parquet_page_cache_test.cpp | 2 +-
be/test/format/parquet/parquet_read_lines.cpp | 6 +-
be/test/format/parquet/parquet_reader_test.cpp | 2 -
be/test/format/parquet/parquet_statistics_test.cpp | 2 -
be/test/format/parquet/parquet_thrift_test.cpp | 18 +-
be/test/format/parquet/parquet_utils_test.cpp | 4 +-
be/test/format/parquet/parquet_version_test.cpp | 2 -
.../hive/hive_reader_create_column_ids_test.cpp | 4 +-
be/test/format/table/hive/hive_reader_test.cpp | 4 +-
.../iceberg_reader_create_column_ids_test.cpp | 4 +-
.../format/table/iceberg/iceberg_reader_test.cpp | 4 +-
be/test/format/table/paimon_cpp_reader_test.cpp | 4 +-
.../table/table_schema_change_helper_test.cpp | 129 ++---
.../format/text/hive_text_field_splitter_test.cpp | 4 +-
be/test/format/wal/wal_manager_test.cpp | 30 +-
be/test/format/wal/wal_reader_writer_test.cpp | 15 +-
be/test/gutil/strings/numbers_test.cpp | 36 +-
be/test/io/cache/need_update_lru_blocks_test.cpp | 2 +-
.../delta_writer/delta_writer_cluster_key_test.cpp | 8 +-
be/test/load/delta_writer/delta_writer_test.cpp | 28 +-
.../delta_writer/delta_writer_v2_pool_test.cpp | 4 +-
.../load/memtable/memtable_flush_executor_test.cpp | 15 -
.../load/memtable/memtable_memory_limiter_test.cpp | 6 +-
be/test/runtime/arena_test.cpp | 12 +-
be/test/runtime/result_buffer_mgr_test.cpp | 2 +-
be/test/runtime/snapshot_loader_test.cpp | 6 +-
be/test/runtime/timestamptz_value_test.cpp | 4 +-
.../workload_group/workload_group_manager_test.cpp | 11 +-
.../compaction/collection_similarity_test.cpp | 96 ++--
.../compaction/collection_statistics_test.cpp | 66 +--
.../compaction/ordered_data_compaction_test.cpp | 13 +-
.../storage/compaction/segcompaction_mow_test.cpp | 37 +-
be/test/storage/compaction/segcompaction_test.cpp | 61 +-
.../variant_doc_mode_compaction_test.cpp | 9 +-
.../compaction/vertical_compaction_test.cpp | 23 +-
.../storage/index/ann/ann_index_edge_case_test.cpp | 4 +-
.../storage/index/ann/ann_index_iterator_test.cpp | 6 +-
.../storage/index/ann/ann_index_reader_test.cpp | 4 +-
be/test/storage/index/ann/ann_index_smoke_test.cpp | 2 +-
.../storage/index/ann/ann_index_writer_test.cpp | 6 +-
.../storage/index/ann/ann_range_search_test.cpp | 40 +-
.../storage/index/ann/ann_topn_descriptor_test.cpp | 24 +-
.../index/ann/ann_topn_runtime_negative_test.cpp | 6 +-
.../storage/index/ann/faiss_vector_index_test.cpp | 4 +-
be/test/storage/index/ann/vector_search_utils.h | 6 +-
.../index/ann/virtual_column_iterator_test.cpp | 83 ++-
be/test/storage/index/date_bloom_filter_test.cpp | 6 +-
be/test/storage/index/index_builder_test.cpp | 109 ++--
.../index/inverted/analyzer/ik_anayzer_test.cpp | 2 +-
.../common/inverted_index_gc_binlogs_test.cpp | 6 +-
.../index_compaction_performance_test.cpp | 2 +-
.../inverted/compaction/index_compaction_test.cpp | 2 +-
.../compaction/util/index_compaction_utils.cpp | 27 +-
.../inverted/query/phrase_edge_query_test.cpp | 4 +-
.../inverted/query/phrase_prefix_query_test.cpp | 4 +-
.../index/inverted/query/phrase_query_test.cpp | 4 +-
be/test/storage/index/primary_key_index_test.cpp | 2 +-
.../iterator/vertical_merge_iterator_test.cpp | 4 +-
be/test/storage/metadata_adder_test.cpp | 10 +-
be/test/storage/olap_type_test.cpp | 10 +-
.../predicate/accept_null_predicate_test.cpp | 13 +-
.../predicate/block_column_predicate_test.cpp | 631 ++++++++++-----------
be/test/storage/row_cursor_test.cpp | 4 +-
be/test/storage/rowid_conversion_test.cpp | 4 +-
be/test/storage/segment/binary_dict_page_test.cpp | 28 +-
be/test/storage/segment/binary_plain_page_test.cpp | 2 +-
.../storage/segment/binary_plain_page_v2_test.cpp | 18 +-
.../storage/segment/binary_prefix_page_test.cpp | 14 +-
be/test/storage/segment/bitshuffle_page_test.cpp | 4 +-
.../storage/segment/block_bloom_filter_test.cpp | 2 +-
.../storage/segment/column_reader_cache_test.cpp | 10 +-
be/test/storage/segment/column_reader_test.cpp | 13 +-
.../storage/segment/column_reader_writer_test.cpp | 52 +-
.../segment/external_col_meta_util_test.cpp | 2 +-
.../segment/frame_of_reference_page_test.cpp | 4 +-
.../segment/hierarchical_data_iterator_test.cpp | 23 +-
.../storage/segment/inverted_index_array_test.cpp | 352 ++++++------
.../segment/inverted_index_file_writer_test.cpp | 2 +-
.../segment/inverted_index_iterator_test.cpp | 4 +-
.../segment/inverted_index_query_param_test.cpp | 120 ++--
.../storage/segment/inverted_index_reader_test.cpp | 18 +-
.../storage/segment/inverted_index_writer_test.cpp | 96 ++--
.../storage/segment/nested_group_provider_test.cpp | 10 +-
be/test/storage/segment/plain_page_test.cpp | 4 +-
be/test/storage/segment/rle_page_test.cpp | 4 +-
be/test/storage/segment/segment_cache_test.cpp | 8 +-
.../segment_writer_full_encode_keys_test.cpp | 6 +-
.../segments_key_bounds_truncation_test.cpp | 48 +-
.../segment/variant_column_writer_reader_test.cpp | 207 ++++---
.../segment/variant_stats_calculator_test.cpp | 107 ++--
be/test/storage/segment/variant_util_test.cpp | 80 ++-
be/test/storage/segment/zone_map_index_test.cpp | 124 ++--
be/test/storage/storage_types_test.cpp | 8 +-
be/test/storage/tablet/tablet_cooldown_test.cpp | 6 +-
be/test/storage/tablet/tablet_index_test.cpp | 12 +-
be/test/storage/tablet/tablet_schema_helper.cpp | 4 +-
be/test/storage/tablet/tablet_schema_helper.h | 6 +-
be/test/storage/tablet/tablet_schema_test.cpp | 10 +-
be/test/testutil/column_helper.cpp | 4 +-
be/test/testutil/column_helper.h | 4 +-
be/test/testutil/creators.h | 24 +-
be/test/testutil/desc_tbl_builder.cpp | 17 +-
be/test/testutil/desc_tbl_builder.h | 10 +-
be/test/testutil/function_utils.cpp | 5 +-
be/test/testutil/function_utils.h | 4 +-
be/test/testutil/mock/mock_agg_fn_evaluator.cpp | 4 +-
be/test/testutil/mock/mock_agg_fn_evaluator.h | 4 +-
be/test/testutil/mock/mock_data_stream_sender.h | 7 +-
be/test/testutil/mock/mock_descriptors.h | 4 +-
be/test/testutil/mock/mock_fn_call.cpp | 4 +-
be/test/testutil/mock/mock_fn_call.h | 4 +-
be/test/testutil/mock/mock_in_expr.cpp | 8 +-
be/test/testutil/mock/mock_in_expr.h | 4 +-
be/test/testutil/mock/mock_literal_expr.cpp | 4 +-
be/test/testutil/mock/mock_literal_expr.h | 2 -
be/test/testutil/mock/mock_operators.h | 17 +-
be/test/testutil/mock/mock_slot_ref.cpp | 4 +-
be/test/testutil/mock/mock_slot_ref.h | 2 -
be/test/testutil/mock/mock_sorter.h | 4 +-
be/test/testutil/run_all_tests.cpp | 2 +-
be/test/testutil/test_util.cpp | 15 +-
be/test/testutil/test_util.h | 13 +-
be/test/testutil/variant_util.h | 132 ++---
be/test/udf/python/python_udf_meta_test.cpp | 22 +-
be/test/util/bit_util_test.cpp | 42 +-
be/test/util/char_type_padding_test.cpp | 4 +-
be/test/util/counts_test.cpp | 8 +-
be/test/util/decompress_test.cpp | 2 +-
be/test/util/jsonb_serialize_test.cpp | 9 +-
be/test/util/profile_spec_test.cpp | 6 +-
2011 files changed, 14158 insertions(+), 16942 deletions(-)
diff --git a/be/benchmark/benchmark_fastunion.hpp b/be/benchmark/benchmark_fastunion.hpp
index 1692c6a3300..ba469b75fa6 100644
--- a/be/benchmark/benchmark_fastunion.hpp
+++ b/be/benchmark/benchmark_fastunion.hpp
@@ -23,7 +23,7 @@
using Roaring64Map = doris::detail::Roaring64Map;
-namespace doris::vectorized {
+namespace doris {
const uint32_t num_bitmaps = 100;
const uint32_t num_outer_slots = 1000;
@@ -79,26 +79,26 @@ static void CustomCounters(benchmark::State& state) {
state.counters["TotalValues"] = num_bitmaps * num_outer_slots * num_inner_values;
state.counters["Overlap%"] = overlap_percent;
}
-} // namespace doris::vectorized
+} // namespace doris
static void BM_FastUnionOptimized(benchmark::State& state) {
for (auto _ : state) {
- auto result = Roaring64Map::fastunion(doris::vectorized::test_map_ptrs.size(),
- doris::vectorized::test_map_ptrs.data());
+ auto result =
+ Roaring64Map::fastunion(doris::test_map_ptrs.size(), doris::test_map_ptrs.data());
benchmark::DoNotOptimize(result);
}
- doris::vectorized::CustomCounters(state);
- state.SetComplexityN(doris::vectorized::num_bitmaps);
+ doris::CustomCounters(state);
+ state.SetComplexityN(doris::num_bitmaps);
}
static void BM_FastUnionLegacy(benchmark::State& state) {
for (auto _ : state) {
- auto result = doris::vectorized::legacy_fastunion(doris::vectorized::test_map_ptrs.size(),
- doris::vectorized::test_map_ptrs.data());
+ auto result =
+ doris::legacy_fastunion(doris::test_map_ptrs.size(), doris::test_map_ptrs.data());
benchmark::DoNotOptimize(result);
}
- doris::vectorized::CustomCounters(state);
- state.SetComplexityN(doris::vectorized::num_bitmaps);
+ doris::CustomCounters(state);
+ state.SetComplexityN(doris::num_bitmaps);
}
BENCHMARK(BM_FastUnionOptimized)
diff --git a/be/benchmark/benchmark_main.cpp b/be/benchmark/benchmark_main.cpp
index 9c9aede58d1..8441df3f962 100644
--- a/be/benchmark/benchmark_main.cpp
+++ b/be/benchmark/benchmark_main.cpp
@@ -29,7 +29,7 @@
#include "vec/data_types/data_type.h"
#include "vec/data_types/data_type_string.h"
-namespace doris::vectorized { // change if need
+namespace doris { // change if need
static void Example1(benchmark::State& state) {
// init. dont time it.
@@ -51,6 +51,6 @@ static void Example1(benchmark::State& state) {
}
// could BENCHMARK many functions to compare them together.
BENCHMARK(Example1);
-} // namespace doris::vectorized
+} // namespace doris
BENCHMARK_MAIN();
diff --git a/be/benchmark/benchmark_string.hpp b/be/benchmark/benchmark_string.hpp
index 3bd2a2d442a..fc993e75744 100644
--- a/be/benchmark/benchmark_string.hpp
+++ b/be/benchmark/benchmark_string.hpp
@@ -23,7 +23,7 @@
#include "vec/functions/function_string.cpp"
#include "vec/functions/string_hex_util.h"
-namespace doris::vectorized {
+namespace doris {
// old logic for to_base64
struct OldToBase64Impl {
@@ -391,4 +391,4 @@ BENCHMARK(BM_UnhexNullImpl_New)
->Args({100, 100000})
->Unit(benchmark::kNanosecond);
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/cloud/cloud_delta_writer.cpp b/be/src/cloud/cloud_delta_writer.cpp
index adffcb911ae..299182b45cb 100644
--- a/be/src/cloud/cloud_delta_writer.cpp
+++ b/be/src/cloud/cloud_delta_writer.cpp
@@ -64,8 +64,7 @@ Status CloudDeltaWriter::batch_init(std::vector<CloudDeltaWriter*> writers) {
return cloud::bthread_fork_join(tasks, 10);
}
-Status CloudDeltaWriter::write(const vectorized::Block* block,
- const DorisVector<uint32_t>& row_idxs) {
+Status CloudDeltaWriter::write(const Block* block, const DorisVector<uint32_t>& row_idxs) {
if (row_idxs.empty()) [[unlikely]] {
return Status::OK();
}
diff --git a/be/src/cloud/cloud_delta_writer.h b/be/src/cloud/cloud_delta_writer.h
index cac14eeff3c..846149137b1 100644
--- a/be/src/cloud/cloud_delta_writer.h
+++ b/be/src/cloud/cloud_delta_writer.h
@@ -33,7 +33,7 @@ public:
const UniqueId& load_id);
~CloudDeltaWriter() override;
- Status write(const vectorized::Block* block, const DorisVector<uint32_t>& row_idxs) override;
+ Status write(const Block* block, const DorisVector<uint32_t>& row_idxs) override;
Status close() override;
diff --git a/be/src/common/kerberos/kerberos_ticket_mgr.cpp b/be/src/common/kerberos/kerberos_ticket_mgr.cpp
index 030bd25249d..720167ba05f 100644
--- a/be/src/common/kerberos/kerberos_ticket_mgr.cpp
+++ b/be/src/common/kerberos/kerberos_ticket_mgr.cpp
@@ -155,8 +155,7 @@ std::vector<KerberosTicketInfo> KerberosTicketMgr::get_krb_ticket_cache_info() {
return result;
}
-void KerberosTicketMgr::get_ticket_cache_info_block(vectorized::Block* block,
- const cctz::time_zone& ctz) {
+void KerberosTicketMgr::get_ticket_cache_info_block(Block* block, const cctz::time_zone& ctz) {
TBackend be = BackendOptions::get_local_backend();
int64_t be_id = be.id;
std::string be_ip = be.host;
diff --git a/be/src/common/kerberos/kerberos_ticket_mgr.h b/be/src/common/kerberos/kerberos_ticket_mgr.h
index 67c660d0b46..07a73d6181b 100644
--- a/be/src/common/kerberos/kerberos_ticket_mgr.h
+++ b/be/src/common/kerberos/kerberos_ticket_mgr.h
@@ -33,9 +33,7 @@
namespace doris {
-namespace vectorized {
class Block;
-}
namespace kerberos {
@@ -70,7 +68,7 @@ public:
// Set the cleanup interval for testing purpose
void set_cleanup_interval(std::chrono::seconds interval) { _cleanup_interval = interval; }
- void get_ticket_cache_info_block(vectorized::Block* block, const cctz::time_zone& ctz);
+ void get_ticket_cache_info_block(Block* block, const cctz::time_zone& ctz);
virtual ~KerberosTicketMgr();
diff --git a/be/src/common/stack_trace.cpp b/be/src/common/stack_trace.cpp
index b440ab5ae70..440c8d54f5b 100644
--- a/be/src/common/stack_trace.cpp
+++ b/be/src/common/stack_trace.cpp
@@ -53,7 +53,7 @@ std::atomic<bool> show_addresses = true;
// void writePointerHex(const void* ptr, std::stringstream& buf) {
// buf.write("0x", 2);
// char hex_str[2 * sizeof(ptr)];
-// doris::vectorized::write_hex_uint_lowercase(reinterpret_cast<uintptr_t>(ptr), hex_str);
+// doris::write_hex_uint_lowercase(reinterpret_cast<uintptr_t>(ptr), hex_str);
// buf.write(hex_str, 2 * sizeof(ptr));
// }
// #endif
diff --git a/be/src/common/symbol_index.cpp b/be/src/common/symbol_index.cpp
index 0db4b895828..4fccbd0e696 100644
--- a/be/src/common/symbol_index.cpp
+++ b/be/src/common/symbol_index.cpp
@@ -413,7 +413,7 @@ void collectSymbolsFromELF(dl_phdr_info* info, std::vector<SymbolIndex::Symbol>&
char* pos = build_id_hex.data();
for (auto c : build_id) {
- vectorized::write_hex_byte_lowercase(c, pos);
+ write_hex_byte_lowercase(c, pos);
pos += 2;
}
@@ -533,7 +533,7 @@ std::string SymbolIndex::getBuildIDHex() const {
char* pos = build_id_hex.data();
for (auto c : build_id_binary) {
- vectorized::write_hex_byte_uppercase(c, pos);
+ write_hex_byte_uppercase(c, pos);
pos += 2;
}
diff --git a/be/src/core/accurate_comparison.h b/be/src/core/accurate_comparison.h
index 2b5b6c22741..72b3a934dcc 100644
--- a/be/src/core/accurate_comparison.h
+++ b/be/src/core/accurate_comparison.h
@@ -24,7 +24,7 @@
#include "core/data_type/primitive_type.h"
#include "core/string_ref.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
template <PrimitiveType PT>
struct CompareType {
@@ -393,4 +393,4 @@ struct GreaterOrEqualsOp<TYPE_TIMESTAMPTZ> {
static UInt8 apply(const TimestampTzValue& a, const TimestampTzValue& b) { return a >= b; }
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/arena.h b/be/src/core/arena.h
index 0d854132c32..32859b47b40 100644
--- a/be/src/core/arena.h
+++ b/be/src/core/arena.h
@@ -31,7 +31,7 @@
#include "core/allocator.h"
#include "core/allocator_fwd.h"
-namespace doris::vectorized {
+namespace doris {
/** Memory pool to append something. For example, short strings.
* Usage scenario:
@@ -345,4 +345,4 @@ public:
using ArenaPtr = std::shared_ptr<Arena>;
using Arenas = std::vector<ArenaPtr>;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/arena_with_free_lists.h b/be/src/core/arena_with_free_lists.h
index 524bcb1ead9..d778f760a9a 100644
--- a/be/src/core/arena_with_free_lists.h
+++ b/be/src/core/arena_with_free_lists.h
@@ -25,7 +25,7 @@
#include "core/arena.h"
#include "exec/common/bit_helpers.h"
-namespace doris::vectorized {
+namespace doris {
class ArenaWithFreeLists : private Allocator<false>, private boost::noncopyable {
private:
@@ -100,4 +100,4 @@ public:
size_t allocated_bytes() const { return pool.size(); }
};
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/core/block/block.cpp b/be/src/core/block/block.cpp
index 7ef4f3139b1..ff1894458ce 100644
--- a/be/src/core/block/block.cpp
+++ b/be/src/core/block/block.cpp
@@ -62,7 +62,7 @@ namespace doris::segment_v2 {
enum CompressionTypePB : int;
} // namespace doris::segment_v2
#include "common/compile_check_begin.h"
-namespace doris::vectorized {
+namespace doris {
template <typename T>
void clear_blocks(moodycamel::ConcurrentQueue<T>& blocks,
RuntimeProfile::Counter* memory_used_counter = nullptr) {
@@ -845,7 +845,7 @@ Status Block::filter_block(Block* block, const std::vector<uint32_t>& columns_to
}
} else {
const IColumn::Filter& filter =
- assert_cast<const doris::vectorized::ColumnUInt8&>(*filter_column).get_data();
+ assert_cast<const doris::ColumnUInt8&>(*filter_column).get_data();
RETURN_IF_CATCH_EXCEPTION(filter_block_internal(block, columns_to_filter, filter));
}
@@ -1155,4 +1155,4 @@ std::string MutableBlock::dump_names() const {
return out;
}
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/block/block.h b/be/src/core/block/block.h
index f89f173d6f0..958a746ba8c 100644
--- a/be/src/core/block/block.h
+++ b/be/src/core/block/block.h
@@ -58,8 +58,6 @@ namespace segment_v2 {
enum CompressionTypePB : int;
} // namespace segment_v2
-namespace vectorized {
-
/** Container for set of columns for bunch of rows in memory.
* This is unit of data processing.
* Also contains metadata - data types of columns and their names
@@ -615,5 +613,4 @@ struct IteratorRowRef {
using BlockView = std::vector<IteratorRowRef>;
using BlockUPtr = std::unique_ptr<Block>;
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/block/column_numbers.h b/be/src/core/block/column_numbers.h
index 32a0dd5804a..1c5a10cb670 100644
--- a/be/src/core/block/column_numbers.h
+++ b/be/src/core/block/column_numbers.h
@@ -23,7 +23,7 @@
#include <cstdint>
#include <vector>
-namespace doris::vectorized {
+namespace doris {
using ColumnNumbers = std::vector<uint32_t>;
}
diff --git a/be/src/core/block/column_with_type_and_name.cpp b/be/src/core/block/column_with_type_and_name.cpp
index e70a47c6195..ec3f4a61386 100644
--- a/be/src/core/block/column_with_type_and_name.cpp
+++ b/be/src/core/block/column_with_type_and_name.cpp
@@ -35,7 +35,7 @@
#include "core/types.h"
#include "util/simd/bits.h"
-namespace doris::vectorized {
+namespace doris {
ColumnWithTypeAndName ColumnWithTypeAndName::clone_empty() const {
ColumnWithTypeAndName res;
@@ -85,14 +85,14 @@ String ColumnWithTypeAndName::dump_structure() const {
}
std::string ColumnWithTypeAndName::to_string(
- size_t row_num, const vectorized::DataTypeSerDe::FormatOptions& format_options) const {
+ size_t row_num, const DataTypeSerDe::FormatOptions& format_options) const {
return type->to_string(*column->convert_to_full_column_if_const().get(), row_num,
format_options);
}
#ifdef BE_TEST
std::string ColumnWithTypeAndName::to_string(size_t row_num) const {
- auto format_options = vectorized::DataTypeSerDe::get_default_format_options();
+ auto format_options = DataTypeSerDe::get_default_format_options();
auto timezone = cctz::utc_time_zone();
format_options.timezone = &timezone;
return type->to_string(*column->convert_to_full_column_if_const().get(), row_num,
@@ -163,4 +163,4 @@ Status ColumnWithTypeAndName::check_type_and_column_match() const {
}
return Status::OK();
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/block/column_with_type_and_name.h b/be/src/core/block/column_with_type_and_name.h
index d5844e35a83..9b1c357ac66 100644
--- a/be/src/core/block/column_with_type_and_name.h
+++ b/be/src/core/block/column_with_type_and_name.h
@@ -35,7 +35,7 @@ namespace doris {
class PColumnMeta;
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
// class WriteBuffer;
@@ -62,8 +62,7 @@ struct ColumnWithTypeAndName {
void dump_structure(std::ostream& out) const;
String dump_structure() const;
- std::string to_string(size_t row_num,
- const vectorized::DataTypeSerDe::FormatOptions& format_options) const;
+ std::string to_string(size_t row_num, const DataTypeSerDe::FormatOptions& format_options) const;
#ifdef BE_TEST
std::string to_string(size_t row_num) const;
#endif
@@ -75,4 +74,4 @@ struct ColumnWithTypeAndName {
Status check_type_and_column_match() const;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/block/columns_with_type_and_name.h b/be/src/core/block/columns_with_type_and_name.h
index 7e16c713fb2..61b377ed82d 100644
--- a/be/src/core/block/columns_with_type_and_name.h
+++ b/be/src/core/block/columns_with_type_and_name.h
@@ -27,7 +27,7 @@
#include "core/block/column_with_type_and_name.h"
#include "core/data_type/data_type.h"
-namespace doris::vectorized {
+namespace doris {
using ColumnsWithTypeAndName = std::vector<ColumnWithTypeAndName>;
// only used in inverted index
@@ -40,4 +40,4 @@ using ColumnsWithTypeAndName = std::vector<ColumnWithTypeAndName>;
// storage_type is the data type in Doris
using IndexFieldNameAndTypePair = std::pair<std::string, DataTypePtr>;
using NameAndTypePairs = std::vector<std::pair<std::string, DataTypePtr>>;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/block/materialize_block.cpp b/be/src/core/block/materialize_block.cpp
index e13001e3698..96384031b71 100644
--- a/be/src/core/block/materialize_block.cpp
+++ b/be/src/core/block/materialize_block.cpp
@@ -25,7 +25,7 @@
#include "core/block/column_with_type_and_name.h"
#include "core/column/column.h"
-namespace doris::vectorized {
+namespace doris {
void materialize_block_inplace(Block& block) {
for (size_t i = 0; i < block.columns(); ++i) {
@@ -33,4 +33,4 @@ void materialize_block_inplace(Block& block) {
}
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/block/materialize_block.h b/be/src/core/block/materialize_block.h
index d63685c3fb7..b6a9842f339 100644
--- a/be/src/core/block/materialize_block.h
+++ b/be/src/core/block/materialize_block.h
@@ -22,7 +22,7 @@
#include "core/block/block.h"
-namespace doris::vectorized {
+namespace doris {
/** Converts columns-constants to full columns ("materializes" them).
*/
@@ -35,4 +35,4 @@ void materialize_block_inplace(Block& block, Iterator start, Iterator end) {
++start;
}
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/call_on_type_index.h b/be/src/core/call_on_type_index.h
index 43d14e7cd39..c82c8529551 100644
--- a/be/src/core/call_on_type_index.h
+++ b/be/src/core/call_on_type_index.h
@@ -26,7 +26,7 @@
#include "core/data_type/data_type_timestamptz.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
template <typename T, typename U>
struct TypePair {
@@ -309,4 +309,4 @@ bool dispatch_switch_decimalv3(PrimitiveType number, F&& f) {
return dispatch_type_base<F, DispatchDataTypeMask::DECIMALV3>(number, std::forward<F>(f));
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column.cpp b/be/src/core/column/column.cpp
index 5e1c750d296..b0056e3d437 100644
--- a/be/src/core/column/column.cpp
+++ b/be/src/core/column/column.cpp
@@ -26,7 +26,7 @@
#include "exec/sort/sort_block.h"
#include "util/simd/bits.h"
-namespace doris::vectorized {
+namespace doris {
std::string IColumn::dump_structure() const {
std::stringstream res;
@@ -241,4 +241,4 @@ void IColumn::check_const_only_in_top_level() const {
const_cast<IColumn*>(this)->for_each_subcolumn(throw_if_const);
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column.h b/be/src/core/column/column.h
index 6b73602d59f..080be3b776e 100644
--- a/be/src/core/column/column.h
+++ b/be/src/core/column/column.h
@@ -43,7 +43,7 @@ namespace doris {
class SipHash;
}
-namespace doris::vectorized {
+namespace doris {
class Arena;
class ColumnSorter;
@@ -836,13 +836,13 @@ bool is_column_const(const IColumn& column);
/// True if column's an ColumnNullable instance. It's just a syntax sugar for type check.
bool is_column_nullable(const IColumn& column);
-} // namespace doris::vectorized
+} // namespace doris
// Wrap `ColumnPtr` because `ColumnPtr` can't be used in forward declaration.
namespace doris {
struct ColumnPtrWrapper {
- vectorized::ColumnPtr column_ptr;
+ ColumnPtr column_ptr;
- ColumnPtrWrapper(vectorized::ColumnPtr col) : column_ptr(std::move(col)) {}
+ ColumnPtrWrapper(ColumnPtr col) : column_ptr(std::move(col)) {}
};
} // namespace doris
diff --git a/be/src/core/column/column_array.cpp b/be/src/core/column/column_array.cpp
index 49fc4ad9d2c..673199b4ab6 100644
--- a/be/src/core/column/column_array.cpp
+++ b/be/src/core/column/column_array.cpp
@@ -46,7 +46,7 @@
class SipHash;
-namespace doris::vectorized {
+namespace doris {
ColumnArray::ColumnArray(MutableColumnPtr&& nested_column, MutableColumnPtr&& offsets_column)
: data(std::move(nested_column)), offsets(std::move(offsets_column)) {
@@ -1007,4 +1007,4 @@ void ColumnArray::replace_float_special_values() {
get_data().replace_float_special_values();
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_array.h b/be/src/core/column/column_array.h
index 50da55fbe6e..c11547bdbf5 100644
--- a/be/src/core/column/column_array.h
+++ b/be/src/core/column/column_array.h
@@ -50,7 +50,7 @@ class SipHash;
#define ALL_COLUMNS_NUMERIC ALL_COLUMNS_NUMBER, ALL_COLUMNS_TIME
#define ALL_COLUMNS_SIMPLE ALL_COLUMNS_NUMERIC, ColumnString, ColumnIPv4, ColumnIPv6
-namespace doris::vectorized {
+namespace doris {
class Arena;
@@ -257,4 +257,4 @@ private:
WrappedPtr offsets;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_complex.h b/be/src/core/column/column_complex.h
index ca000b52fe6..4db384610db 100644
--- a/be/src/core/column/column_complex.h
+++ b/be/src/core/column/column_complex.h
@@ -33,7 +33,7 @@
#include "core/types.h"
#include "core/value/hll.h"
-namespace doris::vectorized {
+namespace doris {
template <PrimitiveType T>
class ColumnComplexType final : public COWHelper<IColumn, ColumnComplexType<T>> {
@@ -377,4 +377,4 @@ struct is_complex<TYPE_QUANTILE_STATE> : std::true_type {};
template <PrimitiveType T>
constexpr bool is_complex_v = is_complex<T>::value;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_const.cpp b/be/src/core/column/column_const.cpp
index a31d3e902b2..d8253d2815b 100644
--- a/be/src/core/column/column_const.cpp
+++ b/be/src/core/column/column_const.cpp
@@ -31,7 +31,7 @@
#include "core/column/columns_common.h"
#include "core/typeid_cast.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
ColumnPtr squash_const(const ColumnPtr& col) {
@@ -165,4 +165,4 @@ void default_preprocess_parameter_columns(ColumnPtr* columns, const bool* col_co
}
}
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_const.h b/be/src/core/column/column_const.h
index ddb08bf18c9..1b01462c03e 100644
--- a/be/src/core/column/column_const.h
+++ b/be/src/core/column/column_const.h
@@ -45,7 +45,7 @@
class SipHash;
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
class Arena;
@@ -338,5 +338,5 @@ const Type* check_and_get_column_with_const(const IColumn& column) {
return check_and_get_column<Type>(column);
}
-} // namespace doris::vectorized
+} // namespace doris
#include "common/compile_check_end.h"
diff --git a/be/src/core/column/column_decimal.cpp b/be/src/core/column/column_decimal.cpp
index 7df8c7bbfff..47c9b74327e 100644
--- a/be/src/core/column/column_decimal.cpp
+++ b/be/src/core/column/column_decimal.cpp
@@ -40,9 +40,9 @@
#include "util/unaligned.h"
template <typename T>
-bool decimal_less(T x, T y, doris::vectorized::UInt32 x_scale, doris::vectorized::UInt32 y_scale);
+bool decimal_less(T x, T y, doris::UInt32 x_scale, doris::UInt32 y_scale);
-namespace doris::vectorized {
+namespace doris {
template <PrimitiveType T>
int ColumnDecimal<T>::compare_at(size_t n, size_t m, const IColumn& rhs_, int) const {
@@ -558,4 +558,4 @@ template class ColumnDecimal<TYPE_DECIMAL64>;
template class ColumnDecimal<TYPE_DECIMALV2>;
template class ColumnDecimal<TYPE_DECIMAL128I>;
template class ColumnDecimal<TYPE_DECIMAL256>;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_decimal.h b/be/src/core/column/column_decimal.h
index 0ded882f8cd..de3013b4d49 100644
--- a/be/src/core/column/column_decimal.h
+++ b/be/src/core/column/column_decimal.h
@@ -42,7 +42,7 @@
class SipHash;
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
class Arena;
class ColumnSorter;
@@ -311,5 +311,5 @@ using ColumnDecimal128V2 = ColumnDecimal<TYPE_DECIMALV2>;
using ColumnDecimal128V3 = ColumnDecimal<TYPE_DECIMAL128I>;
using ColumnDecimal256 = ColumnDecimal<TYPE_DECIMAL256>;
-} // namespace doris::vectorized
+} // namespace doris
#include "common/compile_check_end.h"
diff --git a/be/src/core/column/column_dictionary.h b/be/src/core/column/column_dictionary.h
index 418d680cf46..f572326b56f 100644
--- a/be/src/core/column/column_dictionary.h
+++ b/be/src/core/column/column_dictionary.h
@@ -28,7 +28,7 @@
#include "core/string_ref.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
/**
@@ -155,7 +155,7 @@ public:
}
Status filter_by_selector(const uint16_t* sel, size_t sel_size, IColumn* col_ptr) override {
- auto* res_col = assert_cast<vectorized::ColumnString*>(col_ptr);
+ auto* res_col = assert_cast<ColumnString*>(col_ptr);
_strings.resize(sel_size);
size_t length = 0;
for (size_t i = 0; i != sel_size; ++i) {
@@ -235,7 +235,7 @@ public:
uint32_t get_hash_value(uint32_t idx) const { return _dict.get_hash_value(_codes[idx], _type); }
template <typename HybridSetType>
- void find_codes(const HybridSetType* values, std::vector<vectorized::UInt8>& selected) const {
+ void find_codes(const HybridSetType* values, std::vector<UInt8>& selected) const {
return _dict.find_codes(values, selected);
}
@@ -261,9 +261,9 @@ public:
// because the string length will different from varchar and string which needed to be processed after.
auto create_column = [this]() -> MutableColumnPtr {
if (_type == FieldType::OLAP_FIELD_TYPE_CHAR) {
- return vectorized::PredicateColumnType<TYPE_CHAR>::create();
+ return PredicateColumnType<TYPE_CHAR>::create();
}
- return vectorized::PredicateColumnType<TYPE_STRING>::create();
+ return PredicateColumnType<TYPE_STRING>::create();
};
auto res = create_column();
@@ -382,8 +382,7 @@ public:
}
template <typename HybridSetType>
- void find_codes(const HybridSetType* values,
- std::vector<vectorized::UInt8>& selected) const {
+ void find_codes(const HybridSetType* values, std::vector<UInt8>& selected) const {
size_t dict_word_num = _dict_data->size();
selected.resize(dict_word_num);
selected.assign(dict_word_num, false);
@@ -491,5 +490,5 @@ private:
std::vector<StringRef> _strings;
};
-} // namespace doris::vectorized
+} // namespace doris
#include "common/compile_check_end.h"
diff --git a/be/src/core/column/column_dummy.h b/be/src/core/column/column_dummy.h
index 632dca3e77c..30264f672cc 100644
--- a/be/src/core/column/column_dummy.h
+++ b/be/src/core/column/column_dummy.h
@@ -25,7 +25,7 @@
#include "core/column/columns_common.h"
#include "core/pod_array.h"
-namespace doris::vectorized {
+namespace doris {
/** Base class for columns-constants that contain a value that is not in the `Field`.
* Not a full-fledged column and is used in a special way.
@@ -180,4 +180,4 @@ protected:
size_t s;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_execute_util.h b/be/src/core/column/column_execute_util.h
index e35deadf366..d8f33782c48 100644
--- a/be/src/core/column/column_execute_util.h
+++ b/be/src/core/column/column_execute_util.h
@@ -28,7 +28,7 @@
#include "core/data_type/primitive_type.h"
#include "core/field.h"
-namespace doris::vectorized {
+namespace doris {
// Utility tools for convenient column execution
@@ -98,4 +98,4 @@ struct ColumnView {
size_t size() const { return count; }
};
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/core/column/column_filter_helper.cpp b/be/src/core/column/column_filter_helper.cpp
index af2eb474415..c8b7146524a 100644
--- a/be/src/core/column/column_filter_helper.cpp
+++ b/be/src/core/column/column_filter_helper.cpp
@@ -17,18 +17,18 @@
#include "core/column/column_filter_helper.h"
-namespace doris::vectorized {
+namespace doris {
ColumnFilterHelper::ColumnFilterHelper(IColumn& column_)
: _column(assert_cast<ColumnNullable&>(column_)),
_value_column(assert_cast<ColumnUInt8&>(_column.get_nested_column())),
_null_map_column(_column.get_null_map_column()) {}
-void ColumnFilterHelper::resize_fill(size_t size, doris::vectorized::UInt8 value) {
+void ColumnFilterHelper::resize_fill(size_t size, doris::UInt8 value) {
_value_column.get_data().resize_fill(size, value);
_null_map_column.get_data().resize_fill(size, 0);
}
-void ColumnFilterHelper::insert_value(doris::vectorized::UInt8 value) {
+void ColumnFilterHelper::insert_value(doris::UInt8 value) {
_value_column.get_data().push_back(value);
_null_map_column.get_data().push_back(0);
}
@@ -38,4 +38,4 @@ void ColumnFilterHelper::reserve(size_t size) {
_null_map_column.reserve(size);
}
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/core/column/column_filter_helper.h b/be/src/core/column/column_filter_helper.h
index d7650e1ec47..c44b8ba01b9 100644
--- a/be/src/core/column/column_filter_helper.h
+++ b/be/src/core/column/column_filter_helper.h
@@ -19,7 +19,7 @@
#include "core/column/column_nullable.h"
-namespace doris::vectorized {
+namespace doris {
class ColumnFilterHelper {
public:
ColumnFilterHelper(IColumn&);
@@ -35,4 +35,4 @@ private:
ColumnUInt8& _value_column;
ColumnUInt8& _null_map_column;
};
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/core/column/column_fixed_length_object.h b/be/src/core/column/column_fixed_length_object.h
index c79f18b02ac..6de772984bb 100644
--- a/be/src/core/column/column_fixed_length_object.h
+++ b/be/src/core/column/column_fixed_length_object.h
@@ -30,7 +30,7 @@
#include "core/pod_array.h"
#include "exec/common/sip_hash.h"
-namespace doris::vectorized {
+namespace doris {
class ColumnFixedLengthObject final : public COWHelper<IColumn, ColumnFixedLengthObject> {
private:
@@ -301,4 +301,4 @@ protected:
size_t _item_count;
Container _data;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_map.cpp b/be/src/core/column/column_map.cpp
index 1c857933769..48db377d888 100644
--- a/be/src/core/column/column_map.cpp
+++ b/be/src/core/column/column_map.cpp
@@ -40,7 +40,7 @@
class SipHash;
-namespace doris::vectorized {
+namespace doris {
/** A column of map values.
*/
@@ -794,4 +794,4 @@ void ColumnMap::replace_float_special_values() {
values_column->replace_float_special_values();
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_map.h b/be/src/core/column/column_map.h
index 27c7ef2277b..12f8fe4f818 100644
--- a/be/src/core/column/column_map.h
+++ b/be/src/core/column/column_map.h
@@ -46,7 +46,7 @@
class SipHash;
-namespace doris::vectorized {
+namespace doris {
class Arena;
/** A column of map values.
@@ -249,4 +249,4 @@ private:
ColumnMap(const ColumnMap&) = default;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_nothing.h b/be/src/core/column/column_nothing.h
index 9d4f880d692..da4bfefa45f 100644
--- a/be/src/core/column/column_nothing.h
+++ b/be/src/core/column/column_nothing.h
@@ -22,7 +22,7 @@
#include "core/column/column_dummy.h"
-namespace doris::vectorized {
+namespace doris {
class ColumnNothing final : public COWHelper<IColumnDummy, ColumnNothing> {
private:
@@ -48,4 +48,4 @@ public:
}
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_nullable.cpp b/be/src/core/column/column_nullable.cpp
index 989b9c3da85..83dc9630565 100644
--- a/be/src/core/column/column_nullable.cpp
+++ b/be/src/core/column/column_nullable.cpp
@@ -27,7 +27,7 @@
#include "exec/common/sip_hash.h"
#include "exec/sort/sort_block.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
ColumnNullable::ColumnNullable(MutableColumnPtr&& nested_column_, MutableColumnPtr&& null_map_)
@@ -287,8 +287,8 @@ void ColumnNullable::deserialize(StringRef* keys, const size_t num_rows) {
_nested_column->deserialize_with_nullable(keys, num_rows, null_maps);
}
-void ColumnNullable::insert_range_from_ignore_overflow(const doris::vectorized::IColumn& src,
- size_t start, size_t length) {
+void ColumnNullable::insert_range_from_ignore_overflow(const doris::IColumn& src, size_t start,
+ size_t length) {
const auto& nullable_col = assert_cast<const ColumnNullable&>(src);
get_null_map_column().insert_range_from(nullable_col.get_null_map_column(), start, length);
get_nested_column().insert_range_from_ignore_overflow(*nullable_col._nested_column, start,
@@ -650,4 +650,4 @@ ColumnPtr remove_nullable(const ColumnPtr& column) {
return column;
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_nullable.h b/be/src/core/column/column_nullable.h
index 2dd4c23df45..51f88dc7542 100644
--- a/be/src/core/column/column_nullable.h
+++ b/be/src/core/column/column_nullable.h
@@ -35,7 +35,7 @@
class SipHash;
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
class Arena;
class ColumnSorter;
@@ -406,5 +406,5 @@ private:
ColumnPtr make_nullable(const ColumnPtr& column, bool is_nullable = false);
ColumnPtr remove_nullable(const ColumnPtr& column);
-} // namespace doris::vectorized
+} // namespace doris
#include "common/compile_check_end.h"
diff --git a/be/src/core/column/column_string.cpp b/be/src/core/column/column_string.cpp
index d9161ad2191..f4d72bb76f0 100644
--- a/be/src/core/column/column_string.cpp
+++ b/be/src/core/column/column_string.cpp
@@ -36,7 +36,7 @@
#include "util/simd/bits.h"
#include "util/simd/vstring_function.h"
#include "util/unaligned.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
template <typename T>
@@ -112,8 +112,8 @@ void ColumnStr<T>::shrink_padding_chars() {
// will be converted to ColumnStr<uint64_t> if the total string length
// exceeds the 4G limit by calling Block::replace_if_overflow.
template <typename T>
-void ColumnStr<T>::insert_range_from_ignore_overflow(const doris::vectorized::IColumn& src,
- size_t start, size_t length) {
+void ColumnStr<T>::insert_range_from_ignore_overflow(const doris::IColumn& src, size_t start,
+ size_t length) {
if (length == 0) {
return;
}
@@ -762,4 +762,4 @@ bool ColumnStr<T>::is_ascii() const {
template class ColumnStr<uint32_t>;
template class ColumnStr<uint64_t>;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_string.h b/be/src/core/column/column_string.h
index 2a6a60ff574..1f35b8b602b 100644
--- a/be/src/core/column/column_string.h
+++ b/be/src/core/column/column_string.h
@@ -46,7 +46,7 @@
#include "exec/common/sip_hash.h"
#include "util/hash_util.hpp"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
class Arena;
class ColumnSorter;
@@ -551,5 +551,5 @@ public:
using ColumnString = ColumnStr<UInt32>;
using ColumnString64 = ColumnStr<UInt64>;
-} // namespace doris::vectorized
+} // namespace doris
#include "common/compile_check_end.h"
diff --git a/be/src/core/column/column_struct.cpp b/be/src/core/column/column_struct.cpp
index 3a5de334cad..5ddce06d19c 100644
--- a/be/src/core/column/column_struct.cpp
+++ b/be/src/core/column/column_struct.cpp
@@ -30,12 +30,10 @@
class SipHash;
namespace doris {
-namespace vectorized {
class Arena;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
std::string ColumnStruct::get_name() const {
std::stringstream res;
@@ -479,4 +477,4 @@ void ColumnStruct::replace_float_special_values() {
}
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_struct.h b/be/src/core/column/column_struct.h
index 9601c76d77f..ca77868d056 100644
--- a/be/src/core/column/column_struct.h
+++ b/be/src/core/column/column_struct.h
@@ -42,7 +42,7 @@
class SipHash;
-namespace doris::vectorized {
+namespace doris {
class Arena;
/** Column, that is just group of few another columns.
@@ -205,4 +205,4 @@ public:
struct less;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_varbinary.cpp b/be/src/core/column/column_varbinary.cpp
index 8709331d0b5..34b0e729e78 100644
--- a/be/src/core/column/column_varbinary.cpp
+++ b/be/src/core/column/column_varbinary.cpp
@@ -30,7 +30,7 @@
#include "core/data_type/primitive_type.h"
#include "exec/sort/sort_block.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
MutableColumnPtr ColumnVarbinary::clone_resized(size_t size) const {
auto res = create();
@@ -84,9 +84,9 @@ ColumnPtr ColumnVarbinary::filter(const IColumn::Filter& filt, ssize_t result_si
column_match_filter_size(size, filt.size());
if (_data.size() == 0) {
- return doris::vectorized::ColumnVarbinary::create();
+ return doris::ColumnVarbinary::create();
}
- auto res = doris::vectorized::ColumnVarbinary::create();
+ auto res = doris::ColumnVarbinary::create();
Container& res_data = res->get_data();
if (result_size_hint) {
@@ -137,7 +137,7 @@ MutableColumnPtr ColumnVarbinary::permute(const IColumn::Permutation& perm, size
__builtin_unreachable();
}
- auto res = doris::vectorized::ColumnVarbinary::create(limit);
+ auto res = doris::ColumnVarbinary::create(limit);
typename Self::Container& res_data = res->get_data();
for (size_t i = 0; i < limit; ++i) {
auto val = _data[perm[i]];
@@ -231,4 +231,4 @@ void ColumnVarbinary::sort_column(const ColumnSorter* sorter, EqualFlags& flags,
}
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_varbinary.h b/be/src/core/column/column_varbinary.h
index 3b3a9dc95c7..fe836586b2e 100644
--- a/be/src/core/column/column_varbinary.h
+++ b/be/src/core/column/column_varbinary.h
@@ -29,7 +29,7 @@
#include "core/data_type/primitive_type.h"
#include "core/string_view.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
class ColumnVarbinary final : public COWHelper<IColumn, ColumnVarbinary> {
private:
@@ -193,4 +193,4 @@ private:
Arena _arena;
};
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_variant.cpp b/be/src/core/column/column_variant.cpp
index 2d231607483..9dafa0c5230 100644
--- a/be/src/core/column/column_variant.cpp
+++ b/be/src/core/column/column_variant.cpp
@@ -75,7 +75,7 @@
#include "util/simd/bits.h"
#include "util/unaligned.h"
-namespace doris::vectorized {
+namespace doris {
namespace {
#include "common/compile_check_begin.h"
@@ -657,7 +657,7 @@ void ColumnVariant::Subcolumn::remove_nullable() {
if (!is_finalized()) {
throw doris::Exception(ErrorCode::INTERNAL_ERROR, "Subcolumn is not finalized");
}
- data[0] = doris::vectorized::remove_nullable(data[0]);
+ data[0] = doris::remove_nullable(data[0]);
least_common_type.remove_nullable();
}
@@ -1481,7 +1481,7 @@ bool ColumnVariant::is_finalized() const {
void ColumnVariant::Subcolumn::wrapp_array_nullable() {
// Wrap array with nullable, treat empty array as null to elimate conflict at present
auto& result_column = get_finalized_column_ptr();
- if (is_column<vectorized::ColumnArray>(result_column.get()) && !result_column->is_nullable()) {
+ if (is_column<ColumnArray>(result_column.get()) && !result_column->is_nullable()) {
auto new_null_map = ColumnUInt8::create();
new_null_map->reserve(result_column->size());
auto& null_map_data = new_null_map->get_data();
@@ -1945,13 +1945,13 @@ Status ColumnVariant::convert_typed_path_to_storage_type(
for (auto&& entry : subcolumns) {
if (auto it = typed_paths.find(entry->path.get_path()); it != typed_paths.end()) {
CHECK(entry->data.is_finalized());
- vectorized::DataTypePtr storage_type =
- vectorized::DataTypeFactory::instance().create_data_type(it->second.column);
- vectorized::DataTypePtr finalized_type = entry->data.get_least_common_type();
+ DataTypePtr storage_type =
+ DataTypeFactory::instance().create_data_type(it->second.column);
+ DataTypePtr finalized_type = entry->data.get_least_common_type();
auto current_column = entry->data.get_finalized_column_ptr()->get_ptr();
if (!storage_type->equals(*finalized_type)) {
- RETURN_IF_ERROR(vectorized::variant_util::cast_column(
- {current_column, finalized_type, ""}, storage_type, ¤t_column));
+ RETURN_IF_ERROR(variant_util::cast_column({current_column, finalized_type, ""},
+ storage_type, ¤t_column));
}
VLOG_DEBUG << "convert " << entry->path.get_path() << " from type"
<< entry->data.get_least_common_type()->get_name() << " to "
@@ -2252,13 +2252,12 @@ bool NO_SANITIZE_UNDEFINED ColumnVariant::is_scalar_variant() const {
doc_value_offsets[num_rows - 1] == 0; // no sparse data
}
-const DataTypePtr ColumnVariant::NESTED_TYPE = std::make_shared<vectorized::DataTypeNullable>(
- std::make_shared<vectorized::DataTypeArray>(std::make_shared<vectorized::DataTypeNullable>(
- std::make_shared<vectorized::DataTypeVariant>(0))));
+const DataTypePtr ColumnVariant::NESTED_TYPE =
+ std::make_shared<DataTypeNullable>(std::make_shared<DataTypeArray>(
+ std::make_shared<DataTypeNullable>(std::make_shared<DataTypeVariant>(0))));
-const DataTypePtr ColumnVariant::NESTED_TYPE_AS_ARRAY_OF_JSONB =
- std::make_shared<vectorized::DataTypeArray>(std::make_shared<vectorized::DataTypeNullable>(
- std::make_shared<vectorized::DataTypeJsonb>()));
+const DataTypePtr ColumnVariant::NESTED_TYPE_AS_ARRAY_OF_JSONB = std::make_shared<DataTypeArray>(
+ std::make_shared<DataTypeNullable>(std::make_shared<DataTypeJsonb>()));
DataTypePtr ColumnVariant::get_root_type() const {
return subcolumns.get_root()->data.get_least_common_type();
@@ -2670,4 +2669,4 @@ bool ColumnVariant::is_doc_mode() const {
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_variant.h b/be/src/core/column/column_variant.h
index cebeb747289..2c3c427454e 100644
--- a/be/src/core/column/column_variant.h
+++ b/be/src/core/column/column_variant.h
@@ -57,12 +57,10 @@
class SipHash;
namespace doris {
-namespace vectorized {
class Arena;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
#ifdef NDEBUG
#define ENABLE_CHECK_CONSISTENCY (void)/* Nothing */
@@ -228,7 +226,7 @@ public:
size_t get_dimensions() const { return num_dimensions; }
- void remove_nullable() { type = doris::vectorized::remove_nullable(type); }
+ void remove_nullable() { type = doris::remove_nullable(type); }
const DataTypeSerDeSPtr& get_serde() const { return least_common_type_serder; }
@@ -406,9 +404,8 @@ public:
// use sparse_subcolumns_schema to record sparse column's path info and type
static MutableColumnPtr create_binary_column_fn() {
- return vectorized::ColumnMap::create(vectorized::ColumnString::create(),
- vectorized::ColumnString::create(),
- vectorized::ColumnArray::ColumnOffsets::create());
+ return ColumnMap::create(ColumnString::create(), ColumnString::create(),
+ ColumnArray::ColumnOffsets::create());
}
static const DataTypePtr& get_binary_column_type() {
@@ -673,4 +670,4 @@ private:
bool is_visible_root_value(size_t nrow) const;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_vector.cpp b/be/src/core/column/column_vector.cpp
index 81a991320fc..a684d4ce10a 100644
--- a/be/src/core/column/column_vector.cpp
+++ b/be/src/core/column/column_vector.cpp
@@ -43,7 +43,7 @@
#include "util/simd/bits.h"
#include "util/unaligned.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
template <PrimitiveType T>
@@ -548,4 +548,4 @@ template class ColumnVector<TYPE_TIMEV2>;
template class ColumnVector<TYPE_TIMESTAMPTZ>;
template class ColumnVector<TYPE_UINT32>;
template class ColumnVector<TYPE_UINT64>;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/column_vector.h b/be/src/core/column/column_vector.h
index bc5c4de8c97..9f3a43ec71d 100644
--- a/be/src/core/column/column_vector.h
+++ b/be/src/core/column/column_vector.h
@@ -52,17 +52,17 @@
class SipHash;
-namespace doris::pipeline {
+namespace doris {
template <int JoinOpType>
struct ProcessHashTableProbe;
}
-namespace doris::vectorized {
+namespace doris {
class Arena;
class ColumnSorter;
-} // namespace doris::vectorized
+} // namespace doris
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
/** A template for columns that use a simple array to store.
@@ -78,7 +78,7 @@ private:
friend class COWHelper<IColumn, Self>;
template <int JoinOpType>
- friend struct doris::pipeline::ProcessHashTableProbe;
+ friend struct doris::ProcessHashTableProbe;
struct less;
struct greater;
@@ -431,5 +431,5 @@ using ColumnTimeStampTz = ColumnVector<TYPE_TIMESTAMPTZ>;
using ColumnOffset32 = ColumnVector<TYPE_UINT32>;
using ColumnOffset64 = ColumnVector<TYPE_UINT64>;
-} // namespace doris::vectorized
+} // namespace doris
#include "common/compile_check_end.h"
diff --git a/be/src/core/column/columns_common.cpp b/be/src/core/column/columns_common.cpp
index c13f4ae2190..bfaee36a8e0 100644
--- a/be/src/core/column/columns_common.cpp
+++ b/be/src/core/column/columns_common.cpp
@@ -29,7 +29,7 @@
#include "util/simd/bits.h"
#include "util/sse_util.hpp"
-namespace doris::vectorized {
+namespace doris {
template <PrimitiveType T>
class ColumnVector;
@@ -396,4 +396,4 @@ INSTANTIATE(Decimal256, ColumnArray::Offset64)
#undef INSTANTIATE
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/columns_common.h b/be/src/core/column/columns_common.h
index 8acd2506543..6966d411dae 100644
--- a/be/src/core/column/columns_common.h
+++ b/be/src/core/column/columns_common.h
@@ -37,7 +37,7 @@
/// Common helper methods for implementation of different columns.
-namespace doris::vectorized {
+namespace doris {
/// Counts how many bytes of `filt` are greater than zero.
size_t count_bytes_in_filter(const IColumn::Filter& filt);
@@ -77,4 +77,4 @@ inline void column_match_filter_size(size_t size, size_t filter_size) {
}
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/predicate_column.h b/be/src/core/column/predicate_column.h
index 034c5534322..fc46a830345 100644
--- a/be/src/core/column/predicate_column.h
+++ b/be/src/core/column/predicate_column.h
@@ -31,7 +31,7 @@
#include "core/types.h"
#include "core/uint24.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
/**
@@ -435,4 +435,4 @@ private:
};
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/column/subcolumn_tree.h b/be/src/core/column/subcolumn_tree.h
index ab904cb090e..c7d23f691b5 100644
--- a/be/src/core/column/subcolumn_tree.h
+++ b/be/src/core/column/subcolumn_tree.h
@@ -29,7 +29,7 @@
#include "runtime/exec_env.h"
#include "runtime/thread_context.h"
#include "util/json/path_in_data.h"
-namespace doris::vectorized {
+namespace doris {
// Tree that represents paths in document with additional data in nodes.
// IsShared mean this object shared above multiple tasks, need swtich to subcolumns_tree_tracker
template <typename NodeData, bool IsShared>
@@ -301,7 +301,7 @@ public:
Node* get_mutable_root() const { return root.get(); }
static void get_leaves_of_node(const Node* node, std::vector<const Node*>& nodes,
- vectorized::PathsInData& paths) {
+ PathsInData& paths) {
if (node->is_scalar()) {
nodes.push_back(node);
paths.push_back(node->path);
@@ -369,4 +369,4 @@ private:
Nodes leaves;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/cow.h b/be/src/core/cow.h
index 127fb25cf6a..e45015cbdf9 100644
--- a/be/src/core/cow.h
+++ b/be/src/core/cow.h
@@ -394,15 +394,12 @@ public:
*
* See example in "cow_columns.cpp".
*/
-namespace vectorized {
class IColumn;
class Field;
-} // namespace vectorized
template <typename Base, typename Derived>
class COWHelper : public Base {
public:
- static_assert(std::is_base_of_v<doris::vectorized::IColumn, Base>,
- "COWHelper only use in IColumn");
+ static_assert(std::is_base_of_v<doris::IColumn, Base>, "COWHelper only use in IColumn");
using Ptr = typename Base::template immutable_ptr<Derived>;
using MutablePtr = typename Base::template mutable_ptr<Derived>;
@@ -432,7 +429,7 @@ public:
const typename Base::Selector& selector) const override {
this->template append_data_by_selector_impl<Derived>(res, selector);
}
- void insert_duplicate_fields(const vectorized::Field& x, const size_t n) override {
+ void insert_duplicate_fields(const Field& x, const size_t n) override {
this->template insert_impl<Derived>(x, n);
}
@@ -442,7 +439,7 @@ public:
this->template append_data_by_selector_impl<Derived>(res, selector, begin, end);
}
- void insert_from_multi_column(const std::vector<const vectorized::IColumn*>& srcs,
+ void insert_from_multi_column(const std::vector<const IColumn*>& srcs,
const std::vector<size_t>& positions) override {
this->template insert_from_multi_column_impl<Derived>(srcs, positions);
}
diff --git a/be/src/core/data_type/convert_field_to_type.cpp b/be/src/core/data_type/convert_field_to_type.cpp
index 8630ceff74c..bd1dd2ab2ef 100644
--- a/be/src/core/data_type/convert_field_to_type.cpp
+++ b/be/src/core/data_type/convert_field_to_type.cpp
@@ -47,7 +47,7 @@
#include "util/jsonb_document.h"
#include "util/jsonb_writer.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
template <typename F> /// Field template parameter may be const or non-const Field.
@@ -830,4 +830,4 @@ void convert_field_to_type(const Field& from_value, const IDataType& to_type, Fi
}
}
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/core/data_type/convert_field_to_type.h b/be/src/core/data_type/convert_field_to_type.h
index d6a8938644e..cd8c5469b1c 100644
--- a/be/src/core/data_type/convert_field_to_type.h
+++ b/be/src/core/data_type/convert_field_to_type.h
@@ -22,7 +22,7 @@
#include "common/status.h"
#include "core/field.h"
-namespace doris::vectorized {
+namespace doris {
class IDataType;
/** Used to interpret expressions in a set in IN,
@@ -36,4 +36,4 @@ class IDataType;
void convert_field_to_type(const Field& from_value, const IDataType& to_type, Field* field,
const IDataType* from_type_hint = nullptr);
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type.cpp b/be/src/core/data_type/data_type.cpp
index e668b6f8b6b..e4c93e38dbb 100644
--- a/be/src/core/data_type/data_type.cpp
+++ b/be/src/core/data_type/data_type.cpp
@@ -36,12 +36,10 @@
#include "core/field.h"
namespace doris {
-namespace vectorized {
class BufferWritable;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
IDataType::IDataType() = default;
@@ -176,7 +174,7 @@ char* serialize_const_flag_and_row_num(const IColumn** column, char* buf,
buf += sizeof(size_t);
if (is_const_column) {
- const auto& const_column = assert_cast<const vectorized::ColumnConst&>(*col);
+ const auto& const_column = assert_cast<const ColumnConst&>(*col);
*column = &(const_column.get_data_column());
}
return buf;
@@ -221,11 +219,11 @@ std::string IDataType::to_string(const IColumn& column, size_t row_num,
#ifdef BE_TEST
std::string IDataType::to_string(const IColumn& column, size_t row_num) const {
- auto format_options = vectorized::DataTypeSerDe::get_default_format_options();
+ auto format_options = DataTypeSerDe::get_default_format_options();
auto timezone = cctz::utc_time_zone();
format_options.timezone = &timezone;
return to_string(column, row_num, format_options);
}
#endif
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type.h b/be/src/core/data_type/data_type.h
index 6f990bccbb6..e013fa206c9 100644
--- a/be/src/core/data_type/data_type.h
+++ b/be/src/core/data_type/data_type.h
@@ -45,7 +45,6 @@ namespace doris {
class PColumnMeta;
enum PGenericType_TypeId : int;
-namespace vectorized {
#include "common/compile_check_begin.h"
class IDataType;
class IColumn;
@@ -236,7 +235,6 @@ char* serialize_const_flag_and_row_num(const IColumn** column, char* buf,
size_t* real_need_copy_num);
const char* deserialize_const_flag_and_row_num(const char* buf, MutableColumnPtr* column,
size_t* real_have_saved_num);
-} // namespace vectorized
#include "common/compile_check_end.h"
} // namespace doris
diff --git a/be/src/core/data_type/data_type_agg_state.h b/be/src/core/data_type/data_type_agg_state.h
index 7ff681b687d..f1513c97c76 100644
--- a/be/src/core/data_type/data_type_agg_state.h
+++ b/be/src/core/data_type/data_type_agg_state.h
@@ -32,7 +32,7 @@
#include "exprs/aggregate/aggregate_function.h"
#include "exprs/aggregate/aggregate_function_simple_factory.h"
-namespace doris::vectorized {
+namespace doris {
class DataTypeAggState : public DataTypeString {
public:
@@ -164,4 +164,4 @@ inline DataTypePtr get_serialized_type(const DataTypePtr& type) {
}
return type;
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_array.cpp b/be/src/core/data_type/data_type_array.cpp
index c9bb32dc2d2..a923ee47734 100644
--- a/be/src/core/data_type/data_type_array.cpp
+++ b/be/src/core/data_type/data_type_array.cpp
@@ -42,7 +42,7 @@
#include "core/typeid_cast.h"
#include "core/value/decimalv2_value.h"
-namespace doris::vectorized {
+namespace doris {
namespace ErrorCodes {
extern const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH;
@@ -186,4 +186,4 @@ FieldWithDataType DataTypeArray::get_field_with_data_type(const IColumn& column,
};
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_array.h b/be/src/core/data_type/data_type_array.h
index 3f088648396..d17743cd958 100644
--- a/be/src/core/data_type/data_type_array.h
+++ b/be/src/core/data_type/data_type_array.h
@@ -38,13 +38,11 @@
namespace doris {
class PColumnMeta;
-namespace vectorized {
class BufferWritable;
class IColumn;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
class DataTypeArray final : public IDataType {
private:
@@ -114,4 +112,4 @@ public:
#endif
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_bitmap.cpp b/be/src/core/data_type/data_type_bitmap.cpp
index d85a7e0fa0f..9f286f7f36f 100644
--- a/be/src/core/data_type/data_type_bitmap.cpp
+++ b/be/src/core/data_type/data_type_bitmap.cpp
@@ -29,7 +29,7 @@
#include "core/value/bitmap_value.h"
#include "util/io_helper.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
// binary: const flag| row num | real saved num | size array | bitmap array
// <size array>: bitmap1 size | bitmap2 size | ...
@@ -119,4 +119,4 @@ void DataTypeBitMap::deserialize_as_stream(BitmapValue& value, BufferReadable& b
buf.read_binary(ref);
value.deserialize(ref.data);
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_bitmap.h b/be/src/core/data_type/data_type_bitmap.h
index ef8efbe0767..66fd0a8a114 100644
--- a/be/src/core/data_type/data_type_bitmap.h
+++ b/be/src/core/data_type/data_type_bitmap.h
@@ -36,7 +36,7 @@
#include "core/types.h"
#include "core/value/bitmap_value.h"
-namespace doris::vectorized {
+namespace doris {
class BufferReadable;
class BufferWritable;
class IColumn;
@@ -93,4 +93,4 @@ public:
};
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_date.cpp b/be/src/core/data_type/data_type_date.cpp
index 3c62edc0395..5feb16612c6 100644
--- a/be/src/core/data_type/data_type_date.cpp
+++ b/be/src/core/data_type/data_type_date.cpp
@@ -34,7 +34,7 @@
#include "core/value/vdatetime_value.h"
#include "util/io_helper.h"
-namespace doris::vectorized {
+namespace doris {
bool DataTypeDate::equals(const IDataType& rhs) const {
return typeid(rhs) == typeid(*this);
}
@@ -47,4 +47,4 @@ MutableColumnPtr DataTypeDate::create_column() const {
return DataTypeNumberBase<PrimitiveType::TYPE_DATE>::create_column();
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_date.h b/be/src/core/data_type/data_type_date.h
index 4519e226f7e..74bb6ee72ce 100644
--- a/be/src/core/data_type/data_type_date.h
+++ b/be/src/core/data_type/data_type_date.h
@@ -33,7 +33,7 @@
#include "core/data_type_serde/data_type_date_or_datetime_serde.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
class BufferWritable;
class IColumn;
@@ -79,4 +79,4 @@ public:
}
};
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_date_or_datetime_v2.cpp b/be/src/core/data_type/data_type_date_or_datetime_v2.cpp
index dcbbede4a09..4650d2d57e5 100644
--- a/be/src/core/data_type/data_type_date_or_datetime_v2.cpp
+++ b/be/src/core/data_type/data_type_date_or_datetime_v2.cpp
@@ -37,9 +37,7 @@
namespace doris {
#include "common/compile_check_begin.h"
-namespace vectorized {
class IColumn;
-} // namespace vectorized
} // namespace doris
// FIXME: This file contains widespread UB due to unsafe type-punning casts.
@@ -51,7 +49,7 @@ class IColumn;
#pragma GCC diagnostic ignored "-Wcast-user-defined"
#endif
-namespace doris::vectorized {
+namespace doris {
bool DataTypeDateV2::equals(const IDataType& rhs) const {
return typeid(rhs) == typeid(*this);
}
@@ -164,7 +162,7 @@ DataTypePtr create_datetimev2(UInt64 scale_value) {
return std::make_shared<DataTypeDateTimeV2>(scale_value);
}
-} // namespace doris::vectorized
+} // namespace doris
#if defined(__GNUC__) && (__GNUC__ >= 15)
#pragma GCC diagnostic pop
diff --git a/be/src/core/data_type/data_type_date_or_datetime_v2.h b/be/src/core/data_type/data_type_date_or_datetime_v2.h
index d88f9fe9c7b..9029dd31800 100644
--- a/be/src/core/data_type/data_type_date_or_datetime_v2.h
+++ b/be/src/core/data_type/data_type_date_or_datetime_v2.h
@@ -40,13 +40,11 @@
namespace doris {
class PColumnMeta;
-namespace vectorized {
class BufferWritable;
class IColumn;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
/**
* Use UInt32 as underlying type to represent DateV2 type.
@@ -191,4 +189,4 @@ constexpr bool IsDataTypeDateTimeV2 = false;
template <>
inline constexpr bool IsDataTypeDateTimeV2<DataTypeDateTimeV2> = true;
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_date_time.cpp b/be/src/core/data_type/data_type_date_time.cpp
index 83c38dbe0c1..df7aab459dc 100644
--- a/be/src/core/data_type/data_type_date_time.cpp
+++ b/be/src/core/data_type/data_type_date_time.cpp
@@ -35,7 +35,7 @@
#include "exprs/function/cast/cast_to_string.h"
#include "util/io_helper.h"
-namespace doris::vectorized {
+namespace doris {
bool DataTypeDateTime::equals(const IDataType& rhs) const {
return typeid(rhs) == typeid(*this);
@@ -49,4 +49,4 @@ MutableColumnPtr DataTypeDateTime::create_column() const {
return DataTypeNumberBase<PrimitiveType::TYPE_DATETIME>::create_column();
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_date_time.h b/be/src/core/data_type/data_type_date_time.h
index 30a486fdf0d..cca241f0cbf 100644
--- a/be/src/core/data_type/data_type_date_time.h
+++ b/be/src/core/data_type/data_type_date_time.h
@@ -34,7 +34,7 @@
#include "core/data_type_serde/data_type_date_or_datetime_serde.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
class BufferWritable;
class IColumn;
class DataTypeDate;
@@ -146,4 +146,4 @@ constexpr bool IsDatelikeTypes =
IsDatelikeV1Types<DataType> || IsDatelikeV2Types<DataType> || IsTimeV2Type<DataType>;
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_decimal.cpp b/be/src/core/data_type/data_type_decimal.cpp
index 4c5d7a5e6e1..16d9c5662dd 100644
--- a/be/src/core/data_type/data_type_decimal.cpp
+++ b/be/src/core/data_type/data_type_decimal.cpp
@@ -49,7 +49,7 @@
#include "util/io_helper.h"
#include "util/string_parser.hpp"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
DataTypePtr get_data_type_with_default_argument(DataTypePtr type) {
@@ -288,4 +288,4 @@ template class DataTypeDecimal<TYPE_DECIMALV2>;
template class DataTypeDecimal<TYPE_DECIMAL128I>;
template class DataTypeDecimal<TYPE_DECIMAL256>;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_decimal.h b/be/src/core/data_type/data_type_decimal.h
index 5f660634187..91546d3352b 100644
--- a/be/src/core/data_type/data_type_decimal.h
+++ b/be/src/core/data_type/data_type_decimal.h
@@ -52,13 +52,11 @@ namespace doris {
class DecimalV2Value;
class PColumnMeta;
-namespace vectorized {
class BufferWritable;
class IColumn;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
template <PrimitiveType T>
@@ -527,4 +525,4 @@ static_assert(!has_original_precision_and_scale<DataTypeDecimal128>);
static_assert(!has_original_precision_and_scale<DataTypeDecimal256>);
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_factory.cpp b/be/src/core/data_type/data_type_factory.cpp
index eb26a5a6835..a0f2fed6e99 100644
--- a/be/src/core/data_type/data_type_factory.cpp
+++ b/be/src/core/data_type/data_type_factory.cpp
@@ -68,9 +68,9 @@
#include "storage/field.h"
#include "storage/olap_common.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
-DataTypePtr DataTypeFactory::create_data_type(const doris::Field& col_desc) {
+DataTypePtr DataTypeFactory::create_data_type(const doris::StorageField& col_desc) {
return create_data_type(col_desc.get_desc(), col_desc.is_nullable());
}
@@ -81,17 +81,16 @@ DataTypePtr DataTypeFactory::create_data_type(const TabletColumn& col_desc, bool
for (UInt32 i = 0; i < col_desc.get_subtype_count(); i++) {
dataTypes.push_back(create_data_type(col_desc.get_sub_column(i)));
}
- nested = std::make_shared<vectorized::DataTypeAggState>(
- dataTypes, col_desc.get_result_is_nullable(), col_desc.get_aggregation_name(),
- col_desc.get_be_exec_version());
+ nested = std::make_shared<DataTypeAggState>(dataTypes, col_desc.get_result_is_nullable(),
+ col_desc.get_aggregation_name(),
+ col_desc.get_be_exec_version());
} else if (col_desc.type() == FieldType::OLAP_FIELD_TYPE_ARRAY) {
DCHECK(col_desc.get_subtype_count() == 1);
nested = std::make_shared<DataTypeArray>(create_data_type(col_desc.get_sub_column(0)));
} else if (col_desc.type() == FieldType::OLAP_FIELD_TYPE_MAP) {
DCHECK(col_desc.get_subtype_count() == 2);
- nested = std::make_shared<vectorized::DataTypeMap>(
- create_data_type(col_desc.get_sub_column(0)),
- create_data_type(col_desc.get_sub_column(1)));
+ nested = std::make_shared<DataTypeMap>(create_data_type(col_desc.get_sub_column(0)),
+ create_data_type(col_desc.get_sub_column(1)));
} else if (col_desc.type() == FieldType::OLAP_FIELD_TYPE_STRUCT) {
DCHECK(col_desc.get_subtype_count() >= 1);
size_t col_size = col_desc.get_subtype_count();
@@ -122,82 +121,82 @@ DataTypePtr DataTypeFactory::_create_primitive_data_type(const FieldType& type,
DataTypePtr result = nullptr;
switch (type) {
case FieldType::OLAP_FIELD_TYPE_BOOL:
- result = std::make_shared<vectorized::DataTypeUInt8>();
+ result = std::make_shared<DataTypeUInt8>();
break;
case FieldType::OLAP_FIELD_TYPE_TINYINT:
- result = std::make_shared<vectorized::DataTypeInt8>();
+ result = std::make_shared<DataTypeInt8>();
break;
case FieldType::OLAP_FIELD_TYPE_SMALLINT:
- result = std::make_shared<vectorized::DataTypeInt16>();
+ result = std::make_shared<DataTypeInt16>();
break;
case FieldType::OLAP_FIELD_TYPE_INT:
- result = std::make_shared<vectorized::DataTypeInt32>();
+ result = std::make_shared<DataTypeInt32>();
break;
case FieldType::OLAP_FIELD_TYPE_FLOAT:
- result = std::make_shared<vectorized::DataTypeFloat32>();
+ result = std::make_shared<DataTypeFloat32>();
break;
case FieldType::OLAP_FIELD_TYPE_BIGINT:
- result = std::make_shared<vectorized::DataTypeInt64>();
+ result = std::make_shared<DataTypeInt64>();
break;
case FieldType::OLAP_FIELD_TYPE_LARGEINT:
- result = std::make_shared<vectorized::DataTypeInt128>();
+ result = std::make_shared<DataTypeInt128>();
break;
case FieldType::OLAP_FIELD_TYPE_IPV4:
- result = std::make_shared<vectorized::DataTypeIPv4>();
+ result = std::make_shared<DataTypeIPv4>();
break;
case FieldType::OLAP_FIELD_TYPE_IPV6:
- result = std::make_shared<vectorized::DataTypeIPv6>();
+ result = std::make_shared<DataTypeIPv6>();
break;
case FieldType::OLAP_FIELD_TYPE_DATE:
- result = std::make_shared<vectorized::DataTypeDate>();
+ result = std::make_shared<DataTypeDate>();
break;
case FieldType::OLAP_FIELD_TYPE_DATEV2:
- result = std::make_shared<vectorized::DataTypeDateV2>();
+ result = std::make_shared<DataTypeDateV2>();
break;
case FieldType::OLAP_FIELD_TYPE_DATETIMEV2:
- result = vectorized::create_datetimev2(scale);
+ result = create_datetimev2(scale);
break;
case FieldType::OLAP_FIELD_TYPE_TIMESTAMPTZ:
result = std::make_shared<DataTypeTimeStampTz>(scale);
break;
case FieldType::OLAP_FIELD_TYPE_DATETIME:
- result = std::make_shared<vectorized::DataTypeDateTime>();
+ result = std::make_shared<DataTypeDateTime>();
break;
case FieldType::OLAP_FIELD_TYPE_DOUBLE:
- result = std::make_shared<vectorized::DataTypeFloat64>();
+ result = std::make_shared<DataTypeFloat64>();
break;
case FieldType::OLAP_FIELD_TYPE_CHAR:
- result = std::make_shared<vectorized::DataTypeString>(length, TYPE_CHAR);
+ result = std::make_shared<DataTypeString>(length, TYPE_CHAR);
break;
case FieldType::OLAP_FIELD_TYPE_VARCHAR:
- result = std::make_shared<vectorized::DataTypeString>(-1, TYPE_VARCHAR);
+ result = std::make_shared<DataTypeString>(-1, TYPE_VARCHAR);
break;
case FieldType::OLAP_FIELD_TYPE_STRING:
- result = std::make_shared<vectorized::DataTypeString>(-1, TYPE_STRING);
+ result = std::make_shared<DataTypeString>(-1, TYPE_STRING);
break;
case FieldType::OLAP_FIELD_TYPE_VARIANT:
- result = std::make_shared<vectorized::DataTypeVariant>(0);
+ result = std::make_shared<DataTypeVariant>(0);
break;
case FieldType::OLAP_FIELD_TYPE_JSONB:
- result = std::make_shared<vectorized::DataTypeJsonb>();
+ result = std::make_shared<DataTypeJsonb>();
break;
case FieldType::OLAP_FIELD_TYPE_HLL:
- result = std::make_shared<vectorized::DataTypeHLL>();
+ result = std::make_shared<DataTypeHLL>();
break;
case FieldType::OLAP_FIELD_TYPE_BITMAP:
- result = std::make_shared<vectorized::DataTypeBitMap>();
+ result = std::make_shared<DataTypeBitMap>();
break;
case FieldType::OLAP_FIELD_TYPE_DECIMAL:
- result = std::make_shared<vectorized::DataTypeDecimalV2>(27, 9, precision, scale);
+ result = std::make_shared<DataTypeDecimalV2>(27, 9, precision, scale);
break;
case FieldType::OLAP_FIELD_TYPE_QUANTILE_STATE:
- result = std::make_shared<vectorized::DataTypeQuantileState>();
+ result = std::make_shared<DataTypeQuantileState>();
break;
case FieldType::OLAP_FIELD_TYPE_DECIMAL32:
case FieldType::OLAP_FIELD_TYPE_DECIMAL64:
case FieldType::OLAP_FIELD_TYPE_DECIMAL128I:
case FieldType::OLAP_FIELD_TYPE_DECIMAL256:
- result = vectorized::create_decimal(precision, scale, false);
+ result = create_decimal(precision, scale, false);
break;
default:
result = nullptr;
@@ -303,8 +302,8 @@ DataTypePtr DataTypeFactory::create_data_type(const PColumnMeta& pcolumn) {
case PGenericType::MAP:
DCHECK(pcolumn.children_size() == 2);
// here to check pcolumn is list?
- nested = std::make_shared<vectorized::DataTypeMap>(create_data_type(pcolumn.children(0)),
- create_data_type(pcolumn.children(1)));
+ nested = std::make_shared<DataTypeMap>(create_data_type(pcolumn.children(0)),
+ create_data_type(pcolumn.children(1)));
break;
case PGenericType::STRUCT: {
int col_size = pcolumn.children_size();
@@ -362,18 +361,17 @@ DataTypePtr DataTypeFactory::create_data_type(const segment_v2::ColumnMetaPB& pc
data_types.push_back(type);
}
}
- nested = std::make_shared<vectorized::DataTypeAggState>(
- data_types, pcolumn.result_is_nullable(), pcolumn.function_name(),
- pcolumn.be_exec_version());
+ nested = std::make_shared<DataTypeAggState>(data_types, pcolumn.result_is_nullable(),
+ pcolumn.function_name(),
+ pcolumn.be_exec_version());
} else if (pcolumn.type() == static_cast<int>(FieldType::OLAP_FIELD_TYPE_ARRAY)) {
// Item subcolumn and length subcolumn, for sparse columns only subcolumn
DCHECK_GE(pcolumn.children_columns().size(), 1) << pcolumn.DebugString();
nested = std::make_shared<DataTypeArray>(create_data_type(pcolumn.children_columns(0)));
} else if (pcolumn.type() == static_cast<int>(FieldType::OLAP_FIELD_TYPE_MAP)) {
DCHECK_GE(pcolumn.children_columns().size(), 2) << pcolumn.DebugString();
- nested = std::make_shared<vectorized::DataTypeMap>(
- create_data_type(pcolumn.children_columns(0)),
- create_data_type(pcolumn.children_columns(1)));
+ nested = std::make_shared<DataTypeMap>(create_data_type(pcolumn.children_columns(0)),
+ create_data_type(pcolumn.children_columns(1)));
} else if (pcolumn.type() == static_cast<int>(FieldType::OLAP_FIELD_TYPE_STRUCT)) {
DCHECK_GE(pcolumn.children_columns().size(), 1);
Int32 col_size = pcolumn.children_columns().size();
@@ -401,95 +399,95 @@ DataTypePtr DataTypeFactory::create_data_type(const PrimitiveType primitive_type
DataTypes subTypes;
switch (primitive_type) {
case TYPE_BOOLEAN:
- nested = std::make_shared<vectorized::DataTypeUInt8>();
+ nested = std::make_shared<DataTypeUInt8>();
break;
case TYPE_TINYINT:
- nested = std::make_shared<vectorized::DataTypeInt8>();
+ nested = std::make_shared<DataTypeInt8>();
break;
case TYPE_SMALLINT:
- nested = std::make_shared<vectorized::DataTypeInt16>();
+ nested = std::make_shared<DataTypeInt16>();
break;
case TYPE_INT:
- nested = std::make_shared<vectorized::DataTypeInt32>();
+ nested = std::make_shared<DataTypeInt32>();
break;
case TYPE_FLOAT:
- nested = std::make_shared<vectorized::DataTypeFloat32>();
+ nested = std::make_shared<DataTypeFloat32>();
break;
case TYPE_BIGINT:
- nested = std::make_shared<vectorized::DataTypeInt64>();
+ nested = std::make_shared<DataTypeInt64>();
break;
case TYPE_LARGEINT:
- nested = std::make_shared<vectorized::DataTypeInt128>();
+ nested = std::make_shared<DataTypeInt128>();
break;
case TYPE_IPV4:
- nested = std::make_shared<vectorized::DataTypeIPv4>();
+ nested = std::make_shared<DataTypeIPv4>();
break;
case TYPE_IPV6:
- nested = std::make_shared<vectorized::DataTypeIPv6>();
+ nested = std::make_shared<DataTypeIPv6>();
break;
case TYPE_DATE:
- nested = std::make_shared<vectorized::DataTypeDate>();
+ nested = std::make_shared<DataTypeDate>();
break;
case TYPE_DATEV2:
- nested = std::make_shared<vectorized::DataTypeDateV2>();
+ nested = std::make_shared<DataTypeDateV2>();
break;
case TYPE_DATETIMEV2:
- nested = vectorized::create_datetimev2(scale);
+ nested = create_datetimev2(scale);
break;
case TYPE_DATETIME:
- nested = std::make_shared<vectorized::DataTypeDateTime>();
+ nested = std::make_shared<DataTypeDateTime>();
break;
case TYPE_TIMEV2:
- nested = std::make_shared<vectorized::DataTypeTimeV2>(scale);
+ nested = std::make_shared<DataTypeTimeV2>(scale);
break;
case TYPE_TIMESTAMPTZ:
- nested = std::make_shared<vectorized::DataTypeTimeStampTz>(scale);
+ nested = std::make_shared<DataTypeTimeStampTz>(scale);
break;
case TYPE_DOUBLE:
- nested = std::make_shared<vectorized::DataTypeFloat64>();
+ nested = std::make_shared<DataTypeFloat64>();
break;
case TYPE_VARIANT:
- nested = std::make_shared<vectorized::DataTypeVariant>(0);
+ nested = std::make_shared<DataTypeVariant>(0);
break;
case TYPE_STRING:
case TYPE_CHAR:
case TYPE_VARCHAR:
- nested = std::make_shared<vectorized::DataTypeString>(len, primitive_type);
+ nested = std::make_shared<DataTypeString>(len, primitive_type);
break;
case TYPE_BINARY:
case TYPE_LAMBDA_FUNCTION:
- nested = std::make_shared<vectorized::DataTypeString>(len, TYPE_STRING);
+ nested = std::make_shared<DataTypeString>(len, TYPE_STRING);
break;
case TYPE_JSONB:
- nested = std::make_shared<vectorized::DataTypeJsonb>();
+ nested = std::make_shared<DataTypeJsonb>();
break;
case TYPE_HLL:
- nested = std::make_shared<vectorized::DataTypeHLL>();
+ nested = std::make_shared<DataTypeHLL>();
break;
case TYPE_BITMAP:
- nested = std::make_shared<vectorized::DataTypeBitMap>();
+ nested = std::make_shared<DataTypeBitMap>();
break;
case TYPE_DECIMALV2:
- nested = std::make_shared<vectorized::DataTypeDecimalV2>(27, 9, precision, scale);
+ nested = std::make_shared<DataTypeDecimalV2>(27, 9, precision, scale);
break;
case TYPE_QUANTILE_STATE:
- nested = std::make_shared<vectorized::DataTypeQuantileState>();
+ nested = std::make_shared<DataTypeQuantileState>();
break;
case TYPE_DECIMAL32:
case TYPE_DECIMAL64:
case TYPE_DECIMAL128I:
case TYPE_DECIMAL256:
- nested = vectorized::create_decimal(precision, scale, false);
+ nested = create_decimal(precision, scale, false);
break;
// Just Mock A NULL Type in Vec Exec Engine
case TYPE_NULL: {
- auto temp_nested = std::make_shared<vectorized::DataTypeUInt8>();
+ auto temp_nested = std::make_shared<DataTypeUInt8>();
temp_nested->set_null_literal(true);
nested = std::move(temp_nested);
break;
}
case TYPE_VARBINARY:
- nested = std::make_shared<vectorized::DataTypeVarbinary>(len, TYPE_VARBINARY);
+ nested = std::make_shared<DataTypeVarbinary>(len, TYPE_VARBINARY);
break;
case TYPE_AGG_STATE:
case TYPE_ARRAY:
@@ -524,9 +522,9 @@ DataTypePtr DataTypeFactory::create_data_type(const std::vector<TTypeNode>& type
if (scalar_type.type == TPrimitiveType::VARIANT) {
DCHECK(scalar_type.variant_max_subcolumns_count >= 0)
<< "count is: " << scalar_type.variant_max_subcolumns_count;
- return is_nullable ? make_nullable(std::make_shared<vectorized::DataTypeVariant>(
+ return is_nullable ? make_nullable(std::make_shared<DataTypeVariant>(
scalar_type.variant_max_subcolumns_count))
- : std::make_shared<vectorized::DataTypeVariant>(
+ : std::make_shared<DataTypeVariant>(
scalar_type.variant_max_subcolumns_count);
}
return create_data_type(thrift_to_type(scalar_type.type), is_nullable,
@@ -541,7 +539,7 @@ DataTypePtr DataTypeFactory::create_data_type(const std::vector<TTypeNode>& type
<< node.__isset.contains_nulls
<< " size: " << (node.__isset.contains_nulls ? node.contains_nulls.size() : 0);
++(*idx);
- nested = std::make_shared<vectorized::DataTypeArray>(
+ nested = std::make_shared<DataTypeArray>(
create_data_type(types, idx, node.contains_nulls[0]));
break;
}
@@ -573,7 +571,7 @@ DataTypePtr DataTypeFactory::create_data_type(const std::vector<TTypeNode>& type
++(*idx);
data_types.push_back(create_data_type(types, idx, node.contains_nulls[i]));
}
- nested = std::make_shared<vectorized::DataTypeMap>(data_types[0], data_types[1]);
+ nested = std::make_shared<DataTypeMap>(data_types[0], data_types[1]);
break;
}
default:
@@ -601,7 +599,7 @@ DataTypePtr DataTypeFactory::create_data_type(
auto primitive_type = thrift_to_type((TPrimitiveType::type)scalar_type.type());
if (primitive_type == TYPE_ARRAY) {
++(*idx);
- nested = std::make_shared<vectorized::DataTypeArray>(create_data_type(
+ nested = std::make_shared<DataTypeArray>(create_data_type(
types, idx, node.has_contains_null() ? node.contains_null() : true));
} else if (primitive_type == TYPE_MAP) {
DataTypes data_types;
@@ -613,7 +611,7 @@ DataTypePtr DataTypeFactory::create_data_type(
? node.contains_nulls(cast_set<int>(i))
: true);
}
- nested = std::make_shared<vectorized::DataTypeMap>(data_types[0], data_types[1]);
+ nested = std::make_shared<DataTypeMap>(data_types[0], data_types[1]);
} else if (primitive_type == TYPE_STRUCT) {
DataTypes data_types;
Strings names;
@@ -640,7 +638,7 @@ DataTypePtr DataTypeFactory::create_data_type(
}
case TTypeNodeType::ARRAY: {
++(*idx);
- nested = std::make_shared<vectorized::DataTypeArray>(create_data_type(
+ nested = std::make_shared<DataTypeArray>(create_data_type(
types, idx, node.has_contains_null() ? node.contains_null() : true));
break;
}
@@ -653,7 +651,7 @@ DataTypePtr DataTypeFactory::create_data_type(
types, idx,
node.contains_nulls_size() > 1 ? node.contains_nulls(cast_set<int>(i)) : true));
}
- nested = std::make_shared<vectorized::DataTypeMap>(data_types[0], data_types[1]);
+ nested = std::make_shared<DataTypeMap>(data_types[0], data_types[1]);
break;
}
case TTypeNodeType::STRUCT: {
@@ -700,8 +698,8 @@ DataTypePtr DataTypeFactory::create_data_type(const TTypeDesc& t) {
}
DCHECK(t.__isset.result_is_nullable);
DCHECK(t.__isset.function_name);
- nested = std::make_shared<vectorized::DataTypeAggState>(subTypes, t.result_is_nullable,
- t.function_name, t.be_exec_version);
+ nested = std::make_shared<DataTypeAggState>(subTypes, t.result_is_nullable, t.function_name,
+ t.be_exec_version);
return t.is_nullable ? make_nullable(nested) : nested;
} else {
int idx = 0;
@@ -728,8 +726,8 @@ DataTypePtr DataTypeFactory::create_data_type(const TTypeDesc& t, bool is_nullab
}
DCHECK(t.__isset.result_is_nullable);
DCHECK(t.__isset.function_name);
- nested = std::make_shared<vectorized::DataTypeAggState>(subTypes, t.result_is_nullable,
- t.function_name, t.be_exec_version);
+ nested = std::make_shared<DataTypeAggState>(subTypes, t.result_is_nullable, t.function_name,
+ t.be_exec_version);
return is_nullable ? make_nullable(nested) : nested;
} else {
int idx = 0;
@@ -739,4 +737,4 @@ DataTypePtr DataTypeFactory::create_data_type(const TTypeDesc& t, bool is_nullab
}
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_factory.hpp b/be/src/core/data_type/data_type_factory.hpp
index 6066f7d4779..15c55a99450 100644
--- a/be/src/core/data_type/data_type_factory.hpp
+++ b/be/src/core/data_type/data_type_factory.hpp
@@ -33,7 +33,7 @@ namespace arrow {
class DataType;
} // namespace arrow
namespace doris {
-class Field;
+class StorageField;
class PColumnMeta;
enum class FieldType;
@@ -43,19 +43,16 @@ class ColumnMetaPB;
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
class DataTypeFactory {
- using DataTypeMap = std::unordered_map<std::string, DataTypePtr>;
- using InvertedDataTypeMap = std::vector<std::pair<DataTypePtr, std::string>>;
-
public:
static DataTypeFactory& instance() {
static DataTypeFactory instance;
return instance;
}
- DataTypePtr create_data_type(const doris::Field& col_desc);
+ DataTypePtr create_data_type(const doris::StorageField& col_desc);
DataTypePtr create_data_type(const TabletColumn& col_desc, bool is_nullable = false);
DataTypePtr create_data_type(const PColumnMeta& pcolumn);
@@ -90,4 +87,4 @@ private:
std::string _empty_string;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_fixed_length_object.cpp b/be/src/core/data_type/data_type_fixed_length_object.cpp
index e18292f53d5..a8eaa4ddb05 100644
--- a/be/src/core/data_type/data_type_fixed_length_object.cpp
+++ b/be/src/core/data_type/data_type_fixed_length_object.cpp
@@ -29,7 +29,7 @@
#include "core/column/column.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
char* DataTypeFixedLengthObject::serialize(const IColumn& column, char* buf,
@@ -188,4 +188,4 @@ Status DataTypeFixedLengthObject::check_column(const IColumn& column) const {
return check_column_non_nested_type<ColumnType>(column);
}
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/core/data_type/data_type_fixed_length_object.h b/be/src/core/data_type/data_type_fixed_length_object.h
index 4451dcf9dac..fae94895ee0 100644
--- a/be/src/core/data_type/data_type_fixed_length_object.h
+++ b/be/src/core/data_type/data_type_fixed_length_object.h
@@ -32,7 +32,7 @@
#include "core/field.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
class IColumn;
class DataTypeFixedLengthObject final : public IDataType {
@@ -76,4 +76,4 @@ public:
};
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_hll.cpp b/be/src/core/data_type/data_type_hll.cpp
index cff238c56a1..ad421fc789d 100644
--- a/be/src/core/data_type/data_type_hll.cpp
+++ b/be/src/core/data_type/data_type_hll.cpp
@@ -30,7 +30,7 @@
#include "util/io_helper.h"
#include "util/slice.h"
-namespace doris::vectorized {
+namespace doris {
// Two part of binary: <size array> | <hll data array>
// first: const flag| row num | real_saved_num | hll1 size | hll2 size | ...
@@ -135,4 +135,4 @@ void DataTypeHLL::deserialize_as_stream(HyperLogLog& value, BufferReadable& buf)
buf.read_binary(str);
value.deserialize(Slice(str));
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_hll.h b/be/src/core/data_type/data_type_hll.h
index ac4a9233c5b..0b111b2ff3f 100644
--- a/be/src/core/data_type/data_type_hll.h
+++ b/be/src/core/data_type/data_type_hll.h
@@ -35,7 +35,7 @@
#include "core/types.h"
#include "core/value/hll.h"
-namespace doris::vectorized {
+namespace doris {
class BufferReadable;
class BufferWritable;
class IColumn;
@@ -86,4 +86,4 @@ public:
};
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_ipv4.cpp b/be/src/core/data_type/data_type_ipv4.cpp
index bf84f1fae95..e3ed7a91e56 100644
--- a/be/src/core/data_type/data_type_ipv4.cpp
+++ b/be/src/core/data_type/data_type_ipv4.cpp
@@ -27,7 +27,7 @@
#include "exprs/function/cast/cast_to_string.h"
#include "util/io_helper.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
@@ -45,4 +45,4 @@ Field DataTypeIPv4::get_field(const TExprNode& node) const {
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_ipv4.h b/be/src/core/data_type/data_type_ipv4.h
index 8884c3eab8c..488e297736f 100644
--- a/be/src/core/data_type/data_type_ipv4.h
+++ b/be/src/core/data_type/data_type_ipv4.h
@@ -33,13 +33,11 @@
#include "storage/olap_common.h"
namespace doris {
-namespace vectorized {
class BufferWritable;
class IColumn;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
class DataTypeIPv4 final : public DataTypeNumberBase<PrimitiveType::TYPE_IPV4> {
public:
@@ -68,4 +66,4 @@ constexpr bool IsIPv4Type = false;
template <>
inline constexpr bool IsIPv4Type<DataTypeIPv4> = true;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_ipv6.cpp b/be/src/core/data_type/data_type_ipv6.cpp
index 9d60dc46744..a29d7878798 100644
--- a/be/src/core/data_type/data_type_ipv6.cpp
+++ b/be/src/core/data_type/data_type_ipv6.cpp
@@ -28,7 +28,7 @@
#include "exprs/function/cast/cast_to_string.h"
#include "util/io_helper.h"
-namespace doris::vectorized {
+namespace doris {
bool DataTypeIPv6::equals(const IDataType& rhs) const {
return typeid(rhs) == typeid(*this);
}
@@ -37,4 +37,4 @@ MutableColumnPtr DataTypeIPv6::create_column() const {
return ColumnIPv6::create();
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_ipv6.h b/be/src/core/data_type/data_type_ipv6.h
index 6c44a3c9635..cc48d3c7284 100644
--- a/be/src/core/data_type/data_type_ipv6.h
+++ b/be/src/core/data_type/data_type_ipv6.h
@@ -33,13 +33,11 @@
#include "core/types.h"
namespace doris {
-namespace vectorized {
class BufferWritable;
class IColumn;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
class DataTypeIPv6 final : public DataTypeNumberBase<PrimitiveType::TYPE_IPV6> {
public:
@@ -76,4 +74,4 @@ inline constexpr bool IsIPv6Type<DataTypeIPv6> = true;
template <typename DataType>
constexpr bool IsIPType = IsIPv4Type<DataType> || IsIPv6Type<DataType>;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_jsonb.cpp b/be/src/core/data_type/data_type_jsonb.cpp
index cd686d63002..d829ebb9a5e 100644
--- a/be/src/core/data_type/data_type_jsonb.cpp
+++ b/be/src/core/data_type/data_type_jsonb.cpp
@@ -30,12 +30,10 @@
#include "util/jsonb_utils.h"
namespace doris {
-namespace vectorized {
class IColumn;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
Field DataTypeJsonb::get_default() const {
std::string default_json = "null";
@@ -92,4 +90,4 @@ FieldWithDataType DataTypeJsonb::get_field_with_data_type(const IColumn& column,
.base_scalar_type_id = get_primitive_type()};
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_jsonb.h b/be/src/core/data_type/data_type_jsonb.h
index 3f4e5990155..d921e2b3307 100644
--- a/be/src/core/data_type/data_type_jsonb.h
+++ b/be/src/core/data_type/data_type_jsonb.h
@@ -36,7 +36,7 @@
#include "core/field.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
class BufferWritable;
@@ -82,4 +82,4 @@ private:
};
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_map.cpp b/be/src/core/data_type/data_type_map.cpp
index 1c20766e417..3a83848d82e 100644
--- a/be/src/core/data_type/data_type_map.cpp
+++ b/be/src/core/data_type/data_type_map.cpp
@@ -37,7 +37,7 @@
#include "core/string_buffer.hpp"
#include "core/string_ref.h"
-namespace doris::vectorized {
+namespace doris {
DataTypeMap::DataTypeMap(const DataTypePtr& key_type_, const DataTypePtr& value_type_) {
key_type = key_type_;
@@ -151,4 +151,4 @@ const char* DataTypeMap::deserialize(const char* buf, MutableColumnPtr* column,
buf = get_value_type()->deserialize(buf, &nested_values_column, be_exec_version);
return buf;
}
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/core/data_type/data_type_map.h b/be/src/core/data_type/data_type_map.h
index 7d6f97d5e82..2224eb0adcb 100644
--- a/be/src/core/data_type/data_type_map.h
+++ b/be/src/core/data_type/data_type_map.h
@@ -38,13 +38,11 @@
namespace doris {
class PColumnMeta;
-namespace vectorized {
class BufferWritable;
class IColumn;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
/** Map data type.
*/
class DataTypeMap final : public IDataType {
@@ -109,4 +107,4 @@ public:
#endif
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_nothing.cpp b/be/src/core/data_type/data_type_nothing.cpp
index 44709b3d9bf..c47222e2853 100644
--- a/be/src/core/data_type/data_type_nothing.cpp
+++ b/be/src/core/data_type/data_type_nothing.cpp
@@ -24,7 +24,7 @@
#include "core/column/column_nothing.h"
-namespace doris::vectorized {
+namespace doris {
MutableColumnPtr DataTypeNothing::create_column() const {
return ColumnNothing::create(0);
@@ -49,4 +49,4 @@ bool DataTypeNothing::equals(const IDataType& rhs) const {
return typeid(rhs) == typeid(*this);
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_nothing.h b/be/src/core/data_type/data_type_nothing.h
index 22598f103b8..e50c9c87a94 100644
--- a/be/src/core/data_type/data_type_nothing.h
+++ b/be/src/core/data_type/data_type_nothing.h
@@ -36,7 +36,7 @@
#include "core/field.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
class IColumn;
@@ -91,4 +91,4 @@ public:
}
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_nullable.cpp b/be/src/core/data_type/data_type_nullable.cpp
index c59da6ca618..f1129a47567 100644
--- a/be/src/core/data_type/data_type_nullable.cpp
+++ b/be/src/core/data_type/data_type_nullable.cpp
@@ -41,7 +41,7 @@
#include "core/string_buffer.hpp"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
DataTypeNullable::DataTypeNullable(const DataTypePtr& nested_data_type_)
: nested_data_type {nested_data_type_} {
@@ -196,4 +196,4 @@ bool have_nullable(const DataTypes& types) {
return std::ranges::any_of(types, [](const DataTypePtr& type) { return type->is_nullable(); });
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_nullable.h b/be/src/core/data_type/data_type_nullable.h
index f423620bb20..fbb653ba1a1 100644
--- a/be/src/core/data_type/data_type_nullable.h
+++ b/be/src/core/data_type/data_type_nullable.h
@@ -38,13 +38,11 @@
namespace doris {
class PColumnMeta;
-namespace vectorized {
class BufferWritable;
class IColumn;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
/// A nullable data type is an ordinary data type provided with a tag
/// indicating that it also contains the NULL value. The following class
@@ -125,4 +123,4 @@ DataTypePtr remove_nullable(const DataTypePtr& type);
DataTypes remove_nullable(const DataTypes& types);
bool have_nullable(const DataTypes& types);
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_number.h b/be/src/core/data_type/data_type_number.h
index 796ad464765..99b8bb42880 100644
--- a/be/src/core/data_type/data_type_number.h
+++ b/be/src/core/data_type/data_type_number.h
@@ -24,7 +24,7 @@
#include "core/data_type/data_type_number_base.h"
#include "core/data_type/define_primitive_type.h"
-namespace doris::vectorized {
+namespace doris {
template <PrimitiveType T>
class DataTypeNumber final : public DataTypeNumberBase<T> {
@@ -77,4 +77,4 @@ inline constexpr bool IsDataTypeFloat<DataTypeFloat32> = true;
template <>
inline constexpr bool IsDataTypeFloat<DataTypeFloat64> = true;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_number_base.cpp b/be/src/core/data_type/data_type_number_base.cpp
index 9184370d793..ec1507675e6 100644
--- a/be/src/core/data_type/data_type_number_base.cpp
+++ b/be/src/core/data_type/data_type_number_base.cpp
@@ -46,7 +46,7 @@
#include "util/string_parser.hpp"
#include "util/to_string.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
#ifdef BE_TEST
template <PrimitiveType T>
@@ -212,4 +212,4 @@ template class DataTypeNumberBase<TYPE_TIME>;
template class DataTypeNumberBase<TYPE_TIMEV2>;
template class DataTypeNumberBase<TYPE_TIMESTAMPTZ>;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_number_base.h b/be/src/core/data_type/data_type_number_base.h
index 5dac8677638..6614f25930b 100644
--- a/be/src/core/data_type/data_type_number_base.h
+++ b/be/src/core/data_type/data_type_number_base.h
@@ -38,7 +38,7 @@
#include "core/field.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
class BufferWritable;
@@ -151,4 +151,4 @@ private:
bool _is_null_literal = false;
};
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_quantilestate.cpp b/be/src/core/data_type/data_type_quantilestate.cpp
index f8f8247b154..0e976e1b5af 100644
--- a/be/src/core/data_type/data_type_quantilestate.cpp
+++ b/be/src/core/data_type/data_type_quantilestate.cpp
@@ -26,7 +26,7 @@
#include "util/io_helper.h"
#include "util/slice.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
// binary: const flag | row num | read saved num | <size array> | <quantilestate array>
// <size array>: quantilestate1 size | quantilestate2 size | ...
@@ -118,4 +118,4 @@ void DataTypeQuantileState::deserialize_as_stream(QuantileState& value, BufferRe
value.deserialize(ref.to_slice());
}
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/core/data_type/data_type_quantilestate.h b/be/src/core/data_type/data_type_quantilestate.h
index 1b6d6a7ca33..210873642c8 100644
--- a/be/src/core/data_type/data_type_quantilestate.h
+++ b/be/src/core/data_type/data_type_quantilestate.h
@@ -34,7 +34,7 @@
#include "core/types.h"
#include "core/value/quantile_state.h"
-namespace doris::vectorized {
+namespace doris {
class BufferReadable;
class BufferWritable;
class IColumn;
@@ -81,4 +81,4 @@ public:
return std::make_shared<SerDeType>(nesting_level);
};
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_string.cpp b/be/src/core/data_type/data_type_string.cpp
index 5458ad29a23..dd72509c4a6 100644
--- a/be/src/core/data_type/data_type_string.cpp
+++ b/be/src/core/data_type/data_type_string.cpp
@@ -41,7 +41,7 @@
#include "core/string_ref.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
Field DataTypeString::get_default() const {
@@ -192,4 +192,4 @@ FieldWithDataType DataTypeString::get_field_with_data_type(const IColumn& column
.base_scalar_type_id = get_primitive_type()};
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_string.h b/be/src/core/data_type/data_type_string.h
index 812f45210ab..083c153dfb3 100644
--- a/be/src/core/data_type/data_type_string.h
+++ b/be/src/core/data_type/data_type_string.h
@@ -36,7 +36,7 @@
#include "core/field.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
class BufferWritable;
class IColumn;
@@ -109,4 +109,4 @@ constexpr static bool IsStringType = false;
template <>
inline constexpr bool IsStringType<DataTypeString> = true;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_struct.cpp b/be/src/core/data_type/data_type_struct.cpp
index 5acd7de25a4..fa50fa6e72d 100644
--- a/be/src/core/data_type/data_type_struct.cpp
+++ b/be/src/core/data_type/data_type_struct.cpp
@@ -45,7 +45,7 @@
#include "core/string_buffer.hpp"
#include "core/string_ref.h"
-namespace doris::vectorized {
+namespace doris {
DataTypeStruct::DataTypeStruct(const DataTypes& elems_)
: elems(elems_), have_explicit_names(false) {
@@ -251,4 +251,4 @@ size_t DataTypeStruct::get_size_of_value_in_memory() const {
return res;
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_struct.h b/be/src/core/data_type/data_type_struct.h
index 1aaa811e39a..9f7d90667a7 100644
--- a/be/src/core/data_type/data_type_struct.h
+++ b/be/src/core/data_type/data_type_struct.h
@@ -40,13 +40,11 @@
namespace doris {
class PColumnMeta;
-namespace vectorized {
class BufferWritable;
class IColumn;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
/** Struct data type.
* Used as an intermediate result when evaluating expressions.
@@ -146,4 +144,4 @@ public:
#endif
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_time.cpp b/be/src/core/data_type/data_type_time.cpp
index f9c2aca7732..a9dec7084f3 100644
--- a/be/src/core/data_type/data_type_time.cpp
+++ b/be/src/core/data_type/data_type_time.cpp
@@ -32,7 +32,7 @@
#include "exprs/function/cast/cast_to_string.h"
#include "util/date_func.h"
-namespace doris::vectorized {
+namespace doris {
class IColumn;
void DataTypeTimeV2::to_pb_column_meta(PColumnMeta* col_meta) const {
@@ -55,4 +55,4 @@ Field DataTypeTimeV2::get_field(const TExprNode& node) const {
return Field::create_field<TYPE_TIMEV2>(node.timev2_literal.value);
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_time.h b/be/src/core/data_type/data_type_time.h
index 5d1e4cf746f..afcc97fe8e1 100644
--- a/be/src/core/data_type/data_type_time.h
+++ b/be/src/core/data_type/data_type_time.h
@@ -34,7 +34,7 @@
#include "core/data_type_serde/data_type_time_serde.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
class BufferWritable;
class IColumn;
@@ -73,4 +73,4 @@ public:
private:
UInt32 _scale;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_timestamptz.cpp b/be/src/core/data_type/data_type_timestamptz.cpp
index 877e7e75c6e..52af2ea270b 100644
--- a/be/src/core/data_type/data_type_timestamptz.cpp
+++ b/be/src/core/data_type/data_type_timestamptz.cpp
@@ -22,7 +22,7 @@
#include "exprs/function/cast/cast_to_timestamptz.h"
-namespace doris::vectorized {
+namespace doris {
Field DataTypeTimeStampTz::get_field(const TExprNode& node) const {
TimestampTzValue res;
CastParameters params {.status = Status::OK(), .is_strict = true};
@@ -38,4 +38,4 @@ Field DataTypeTimeStampTz::get_field(const TExprNode& node) const {
}
}
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/core/data_type/data_type_timestamptz.h b/be/src/core/data_type/data_type_timestamptz.h
index 9fded13ad3d..4a3fba0616c 100644
--- a/be/src/core/data_type/data_type_timestamptz.h
+++ b/be/src/core/data_type/data_type_timestamptz.h
@@ -32,7 +32,7 @@
#include "core/data_type_serde/data_type_serde.h"
#include "core/data_type_serde/data_type_timestamptz_serde.h"
-namespace doris::vectorized {
+namespace doris {
class DataTypeTimeStampTz final : public DataTypeNumberBase<PrimitiveType::TYPE_TIMESTAMPTZ> {
public:
@@ -69,4 +69,4 @@ private:
const UInt32 _scale = 6; // Default precision is 6
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_varbinary.cpp b/be/src/core/data_type/data_type_varbinary.cpp
index 66fe66bde24..e794481fd2d 100644
--- a/be/src/core/data_type/data_type_varbinary.cpp
+++ b/be/src/core/data_type/data_type_varbinary.cpp
@@ -39,7 +39,7 @@
#include "core/string_view.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
Field DataTypeVarbinary::get_default() const {
@@ -133,4 +133,4 @@ FieldWithDataType DataTypeVarbinary::get_field_with_data_type(const IColumn& col
.base_scalar_type_id = get_primitive_type()};
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_varbinary.h b/be/src/core/data_type/data_type_varbinary.h
index 08212737716..c987cb946c2 100644
--- a/be/src/core/data_type/data_type_varbinary.h
+++ b/be/src/core/data_type/data_type_varbinary.h
@@ -33,7 +33,7 @@
#include "core/field.h"
#include "core/string_view.h"
-namespace doris::vectorized {
+namespace doris {
class BufferWritable;
class IColumn;
@@ -99,4 +99,4 @@ constexpr static bool IsVarBinaryType = false;
template <>
inline constexpr bool IsVarBinaryType<DataTypeVarbinary> = true;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/data_type_variant.cpp b/be/src/core/data_type/data_type_variant.cpp
index a99aa40129b..2837b0532d8 100644
--- a/be/src/core/data_type/data_type_variant.cpp
+++ b/be/src/core/data_type/data_type_variant.cpp
@@ -40,12 +40,10 @@
#include "util/string_util.h"
namespace doris {
-namespace vectorized {
class IColumn;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
DataTypeVariant::DataTypeVariant(int32_t max_subcolumns_count)
@@ -248,4 +246,4 @@ MutableColumnPtr DataTypeVariant::create_column() const {
return ColumnVariant::create(_max_subcolumns_count);
}
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/core/data_type/data_type_variant.h b/be/src/core/data_type/data_type_variant.h
index ac8b385765a..fd59733f452 100644
--- a/be/src/core/data_type/data_type_variant.h
+++ b/be/src/core/data_type/data_type_variant.h
@@ -41,12 +41,10 @@
#include "core/types.h"
namespace doris {
-namespace vectorized {
class IColumn;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
class DataTypeVariant : public IDataType {
private:
int32_t _max_subcolumns_count = 0;
@@ -87,4 +85,4 @@ public:
void to_pb_column_meta(PColumnMeta* col_meta) const override;
int32_t variant_max_subcolumns_count() const { return _max_subcolumns_count; }
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/get_least_supertype.cpp b/be/src/core/data_type/get_least_supertype.cpp
index ae73b7260a5..56aa5e111a5 100644
--- a/be/src/core/data_type/get_least_supertype.cpp
+++ b/be/src/core/data_type/get_least_supertype.cpp
@@ -44,7 +44,7 @@
#include "core/types.h"
#include "exprs/aggregate/helpers.h"
-namespace doris::vectorized {
+namespace doris {
void get_numeric_type(const PrimitiveTypeSet& types, DataTypePtr* type) {
bool all_numbers = true;
@@ -322,4 +322,4 @@ void get_least_supertype_jsonb(const PrimitiveTypeSet& types, DataTypePtr* type)
*type = std::make_shared<DataTypeJsonb>();
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/get_least_supertype.h b/be/src/core/data_type/get_least_supertype.h
index 6008d3aefa6..f9693ed23db 100644
--- a/be/src/core/data_type/get_least_supertype.h
+++ b/be/src/core/data_type/get_least_supertype.h
@@ -25,11 +25,11 @@
#include "common/status.h"
#include "core/data_type/data_type.h"
-namespace doris::vectorized {
+namespace doris {
using PrimitiveTypeSet = phmap::flat_hash_set<PrimitiveType>;
void get_least_supertype_jsonb(const DataTypes& types, DataTypePtr* type);
void get_least_supertype_jsonb(const PrimitiveTypeSet& types, DataTypePtr* type);
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/nested_utils.cpp b/be/src/core/data_type/nested_utils.cpp
index 3edeb70532a..ba48234931a 100644
--- a/be/src/core/data_type/nested_utils.cpp
+++ b/be/src/core/data_type/nested_utils.cpp
@@ -22,7 +22,7 @@
#include "exec/common/string_utils/string_utils.h"
-namespace doris::vectorized {
+namespace doris {
namespace Nested {
@@ -68,4 +68,4 @@ std::string extract_table_name(const std::string& nested_name) {
} // namespace Nested
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/nested_utils.h b/be/src/core/data_type/nested_utils.h
index 31e56a519eb..8a7d166e8c8 100644
--- a/be/src/core/data_type/nested_utils.h
+++ b/be/src/core/data_type/nested_utils.h
@@ -25,7 +25,7 @@
#include "core/block/block.h"
-namespace doris::vectorized {
+namespace doris {
namespace Nested {
std::string concatenate_name(const std::string& nested_table_name,
@@ -43,4 +43,4 @@ Block flatten(const Block& block);
void validate_array_sizes(const Block& block);
} // namespace Nested
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/number_traits.h b/be/src/core/data_type/number_traits.h
index cd5772ce1ad..3b8c742470d 100644
--- a/be/src/core/data_type/number_traits.h
+++ b/be/src/core/data_type/number_traits.h
@@ -29,7 +29,7 @@
#include "core/types.h"
#include "core/uint128.h"
-namespace doris::vectorized {
+namespace doris {
/** Allows get the result type of the functions +, -, *, /, %, intDiv (integer division).
* The rules are different from those used in C++.
@@ -326,4 +326,4 @@ inline constexpr int max_ascii_len<double>() {
}
} // namespace NumberTraits
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type/primitive_type.h b/be/src/core/data_type/primitive_type.h
index d96b4b0da3d..e3cbd05d1e6 100644
--- a/be/src/core/data_type/primitive_type.h
+++ b/be/src/core/data_type/primitive_type.h
@@ -38,7 +38,6 @@
namespace doris {
#include "common/compile_check_begin.h"
-namespace vectorized {
template <typename T>
class ColumnStr;
class IColumnDummy;
@@ -128,7 +127,6 @@ using ColumnDecimal128V2 = ColumnDecimal<TYPE_DECIMALV2>;
using ColumnDecimal128V3 = ColumnDecimal<TYPE_DECIMAL128I>;
using ColumnDecimal256 = ColumnDecimal<TYPE_DECIMAL256>;
class ColumnArray;
-} // namespace vectorized
class DecimalV2Value;
@@ -277,117 +275,117 @@ struct PrimitiveTypeTraits;
*/
template <>
struct PrimitiveTypeTraits<TYPE_BOOLEAN> {
- using CppType = vectorized::UInt8;
+ using CppType = UInt8;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeBool;
- using ColumnType = vectorized::ColumnUInt8;
+ using DataType = DataTypeBool;
+ using ColumnType = ColumnUInt8;
};
template <>
struct PrimitiveTypeTraits<TYPE_TINYINT> {
using CppType = int8_t;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeInt8;
- using ColumnType = vectorized::ColumnInt8;
+ using DataType = DataTypeInt8;
+ using ColumnType = ColumnInt8;
};
template <>
struct PrimitiveTypeTraits<TYPE_SMALLINT> {
using CppType = int16_t;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeInt16;
- using ColumnType = vectorized::ColumnInt16;
+ using DataType = DataTypeInt16;
+ using ColumnType = ColumnInt16;
};
template <>
struct PrimitiveTypeTraits<TYPE_INT> {
using CppType = int32_t;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeInt32;
- using ColumnType = vectorized::ColumnInt32;
+ using DataType = DataTypeInt32;
+ using ColumnType = ColumnInt32;
};
template <>
struct PrimitiveTypeTraits<TYPE_BIGINT> {
using CppType = int64_t;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeInt64;
- using ColumnType = vectorized::ColumnInt64;
+ using DataType = DataTypeInt64;
+ using ColumnType = ColumnInt64;
};
template <>
struct PrimitiveTypeTraits<TYPE_LARGEINT> {
using CppType = __int128_t;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeInt128;
- using ColumnType = vectorized::ColumnInt128;
+ using DataType = DataTypeInt128;
+ using ColumnType = ColumnInt128;
};
template <>
struct PrimitiveTypeTraits<TYPE_NULL> {
- using CppType = vectorized::Null;
+ using CppType = Null;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeNothing;
- using ColumnType = vectorized::IColumnDummy;
+ using DataType = DataTypeNothing;
+ using ColumnType = IColumnDummy;
};
template <>
struct PrimitiveTypeTraits<TYPE_FLOAT> {
using CppType = float;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeFloat32;
- using ColumnType = vectorized::ColumnFloat32;
+ using DataType = DataTypeFloat32;
+ using ColumnType = ColumnFloat32;
};
template <>
struct PrimitiveTypeTraits<TYPE_DOUBLE> {
using CppType = double;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeFloat64;
- using ColumnType = vectorized::ColumnFloat64;
+ using DataType = DataTypeFloat64;
+ using ColumnType = ColumnFloat64;
};
template <>
struct PrimitiveTypeTraits<TYPE_TIMEV2> {
- using CppType = vectorized::Float64;
+ using CppType = Float64;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeTimeV2;
- using ColumnType = vectorized::ColumnTimeV2;
+ using DataType = DataTypeTimeV2;
+ using ColumnType = ColumnTimeV2;
};
template <>
struct PrimitiveTypeTraits<TYPE_TIME> {
- using CppType = vectorized::Float64;
+ using CppType = Float64;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeTimeV2;
- using ColumnType = vectorized::ColumnTime;
+ using DataType = DataTypeTimeV2;
+ using ColumnType = ColumnTime;
};
template <>
struct PrimitiveTypeTraits<TYPE_DATE> {
using CppType = doris::VecDateTimeValue;
/// Different with compute layer, the DateV1 was stored as uint24_t(3 bytes).
using StorageFieldType = uint24_t;
- using DataType = vectorized::DataTypeDate;
- using ColumnType = vectorized::ColumnDate;
+ using DataType = DataTypeDate;
+ using ColumnType = ColumnDate;
};
template <>
struct PrimitiveTypeTraits<TYPE_DATETIME> {
using CppType = doris::VecDateTimeValue;
using StorageFieldType = uint64_t;
- using DataType = vectorized::DataTypeDateTime;
- using ColumnType = vectorized::ColumnDateTime;
+ using DataType = DataTypeDateTime;
+ using ColumnType = ColumnDateTime;
};
template <>
struct PrimitiveTypeTraits<TYPE_DATETIMEV2> {
using CppType = DateV2Value<DateTimeV2ValueType>;
using StorageFieldType = uint64_t;
- using DataType = vectorized::DataTypeDateTimeV2;
- using ColumnType = vectorized::ColumnDateTimeV2;
+ using DataType = DataTypeDateTimeV2;
+ using ColumnType = ColumnDateTimeV2;
};
template <>
struct PrimitiveTypeTraits<TYPE_DATEV2> {
using CppType = DateV2Value<DateV2ValueType>;
using StorageFieldType = uint32_t;
- using DataType = vectorized::DataTypeDateV2;
- using ColumnType = vectorized::ColumnDateV2;
+ using DataType = DataTypeDateV2;
+ using ColumnType = ColumnDateV2;
};
template <>
struct PrimitiveTypeTraits<TYPE_TIMESTAMPTZ> {
using CppType = TimestampTzValue;
using StorageFieldType = uint64_t;
- using DataType = vectorized::DataTypeTimeStampTz;
- using ColumnType = vectorized::ColumnTimeStampTz;
+ using DataType = DataTypeTimeStampTz;
+ using ColumnType = ColumnTimeStampTz;
};
template <>
@@ -395,148 +393,148 @@ struct PrimitiveTypeTraits<TYPE_DECIMALV2> {
using CppType = DecimalV2Value;
/// Different with compute layer, the DecimalV1 was stored as decimal12_t(12 bytes).
using StorageFieldType = decimal12_t;
- using DataType = vectorized::DataTypeDecimalV2;
- using ColumnType = vectorized::ColumnDecimal128V2;
+ using DataType = DataTypeDecimalV2;
+ using ColumnType = ColumnDecimal128V2;
};
template <>
struct PrimitiveTypeTraits<TYPE_DECIMAL32> {
- using CppType = vectorized::Decimal32;
- using StorageFieldType = vectorized::Int32;
- using DataType = vectorized::DataTypeDecimal32;
- using ColumnType = vectorized::ColumnDecimal32;
+ using CppType = Decimal32;
+ using StorageFieldType = Int32;
+ using DataType = DataTypeDecimal32;
+ using ColumnType = ColumnDecimal32;
};
template <>
struct PrimitiveTypeTraits<TYPE_DECIMAL64> {
- using CppType = vectorized::Decimal64;
- using StorageFieldType = vectorized::Int64;
- using DataType = vectorized::DataTypeDecimal64;
- using ColumnType = vectorized::ColumnDecimal64;
+ using CppType = Decimal64;
+ using StorageFieldType = Int64;
+ using DataType = DataTypeDecimal64;
+ using ColumnType = ColumnDecimal64;
};
template <>
struct PrimitiveTypeTraits<TYPE_DECIMAL128I> {
- using CppType = vectorized::Decimal128V3;
- using StorageFieldType = vectorized::Int128;
- using DataType = vectorized::DataTypeDecimal128;
- using ColumnType = vectorized::ColumnDecimal128V3;
+ using CppType = Decimal128V3;
+ using StorageFieldType = Int128;
+ using DataType = DataTypeDecimal128;
+ using ColumnType = ColumnDecimal128V3;
};
template <>
struct PrimitiveTypeTraits<TYPE_DECIMAL256> {
- using CppType = vectorized::Decimal256;
+ using CppType = Decimal256;
using StorageFieldType = wide::Int256;
- using DataType = vectorized::DataTypeDecimal256;
- using ColumnType = vectorized::ColumnDecimal256;
+ using DataType = DataTypeDecimal256;
+ using ColumnType = ColumnDecimal256;
};
template <>
struct PrimitiveTypeTraits<TYPE_IPV4> {
using CppType = IPv4;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeIPv4;
- using ColumnType = vectorized::ColumnIPv4;
+ using DataType = DataTypeIPv4;
+ using ColumnType = ColumnIPv4;
};
template <>
struct PrimitiveTypeTraits<TYPE_IPV6> {
using CppType = IPv6;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeIPv6;
- using ColumnType = vectorized::ColumnIPv6;
+ using DataType = DataTypeIPv6;
+ using ColumnType = ColumnIPv6;
};
template <>
struct PrimitiveTypeTraits<TYPE_CHAR> {
- using CppType = vectorized::String;
+ using CppType = String;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeString;
- using ColumnType = vectorized::ColumnString;
+ using DataType = DataTypeString;
+ using ColumnType = ColumnString;
};
template <>
struct PrimitiveTypeTraits<TYPE_VARCHAR> {
- using CppType = vectorized::String;
+ using CppType = String;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeString;
- using ColumnType = vectorized::ColumnString;
+ using DataType = DataTypeString;
+ using ColumnType = ColumnString;
};
template <>
struct PrimitiveTypeTraits<TYPE_STRING> {
- using CppType = vectorized::String;
+ using CppType = String;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeString;
- using ColumnType = vectorized::ColumnString;
+ using DataType = DataTypeString;
+ using ColumnType = ColumnString;
};
template <>
struct PrimitiveTypeTraits<TYPE_VARBINARY> {
using CppType = doris::StringView;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeVarbinary;
- using ColumnType = vectorized::ColumnVarbinary;
+ using DataType = DataTypeVarbinary;
+ using ColumnType = ColumnVarbinary;
};
template <>
struct PrimitiveTypeTraits<TYPE_HLL> {
using CppType = HyperLogLog;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeHLL;
- using ColumnType = vectorized::ColumnHLL;
+ using DataType = DataTypeHLL;
+ using ColumnType = ColumnHLL;
};
template <>
struct PrimitiveTypeTraits<TYPE_JSONB> {
- using CppType = vectorized::JsonbField;
+ using CppType = JsonbField;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeJsonb;
- using ColumnType = vectorized::ColumnString;
+ using DataType = DataTypeJsonb;
+ using ColumnType = ColumnString;
};
template <>
struct PrimitiveTypeTraits<TYPE_ARRAY> {
- using CppType = vectorized::Array;
+ using CppType = Array;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeArray;
- using ColumnType = vectorized::ColumnArray;
+ using DataType = DataTypeArray;
+ using ColumnType = ColumnArray;
};
template <>
struct PrimitiveTypeTraits<TYPE_MAP> {
- using CppType = vectorized::Map;
+ using CppType = Map;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeMap;
- using ColumnType = vectorized::ColumnMap;
+ using DataType = DataTypeMap;
+ using ColumnType = ColumnMap;
};
template <>
struct PrimitiveTypeTraits<TYPE_STRUCT> {
- using CppType = vectorized::Tuple;
+ using CppType = Tuple;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeStruct;
- using ColumnType = vectorized::ColumnStruct;
+ using DataType = DataTypeStruct;
+ using ColumnType = ColumnStruct;
};
template <>
struct PrimitiveTypeTraits<TYPE_VARIANT> {
- using CppType = vectorized::VariantMap;
+ using CppType = VariantMap;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeVariant;
- using ColumnType = vectorized::ColumnVariant;
+ using DataType = DataTypeVariant;
+ using ColumnType = ColumnVariant;
};
template <>
struct PrimitiveTypeTraits<TYPE_BITMAP> {
using CppType = BitmapValue;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeBitMap;
- using ColumnType = vectorized::ColumnBitmap;
+ using DataType = DataTypeBitMap;
+ using ColumnType = ColumnBitmap;
};
template <>
struct PrimitiveTypeTraits<TYPE_QUANTILE_STATE> {
using CppType = QuantileState;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeQuantileState;
- using ColumnType = vectorized::ColumnQuantileState;
+ using DataType = DataTypeQuantileState;
+ using ColumnType = ColumnQuantileState;
};
template <>
struct PrimitiveTypeTraits<TYPE_UINT32> {
- using CppType = vectorized::UInt32;
+ using CppType = UInt32;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeNothing;
- using ColumnType = vectorized::ColumnOffset32;
+ using DataType = DataTypeNothing;
+ using ColumnType = ColumnOffset32;
};
template <>
struct PrimitiveTypeTraits<TYPE_UINT64> {
- using CppType = vectorized::UInt64;
+ using CppType = UInt64;
using StorageFieldType = CppType;
- using DataType = vectorized::DataTypeNothing;
- using ColumnType = vectorized::ColumnOffset64;
+ using DataType = DataTypeNothing;
+ using ColumnType = ColumnOffset64;
};
template <PrimitiveType PT>
diff --git a/be/src/core/data_type_serde/complex_type_deserialize_util.h b/be/src/core/data_type_serde/complex_type_deserialize_util.h
index 933ed6807f4..20f49636c76 100644
--- a/be/src/core/data_type_serde/complex_type_deserialize_util.h
+++ b/be/src/core/data_type_serde/complex_type_deserialize_util.h
@@ -18,7 +18,7 @@
#include "core/data_type_serde/data_type_serde.h"
#include "core/string_ref.h"
-namespace doris::vectorized {
+namespace doris {
struct ComplexTypeDeserializeUtil {
// SplitResult is used to store the result of splitting a string by a delimiter.
@@ -103,4 +103,4 @@ struct ComplexTypeDeserializeUtil {
}
};
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/core/data_type_serde/data_type_array_serde.cpp b/be/src/core/data_type_serde/data_type_array_serde.cpp
index b0c6643d3d8..14a88813a56 100644
--- a/be/src/core/data_type_serde/data_type_array_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_array_serde.cpp
@@ -32,7 +32,7 @@
#include "util/jsonb_document.h"
#include "util/jsonb_writer.h"
-namespace doris::vectorized {
+namespace doris {
class Arena;
#include "common/compile_check_begin.h"
@@ -357,7 +357,7 @@ Status DataTypeArraySerDe::write_column_to_mysql_binary(const IColumn& column,
Status DataTypeArraySerDe::write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch, int64_t start,
- int64_t end, vectorized::Arena& arena,
+ int64_t end, Arena& arena,
const FormatOptions& options) const {
auto* cur_batch = dynamic_cast<orc::ListVectorBatch*>(orc_col_batch);
cur_batch->offsets[0] = 0;
@@ -582,4 +582,4 @@ bool DataTypeArraySerDe::write_column_to_hive_text(const IColumn& column, Buffer
return true;
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_array_serde.h b/be/src/core/data_type_serde/data_type_array_serde.h
index 1854bc6dc7c..2fcb7f3c9c4 100644
--- a/be/src/core/data_type_serde/data_type_array_serde.h
+++ b/be/src/core/data_type_serde/data_type_array_serde.h
@@ -32,7 +32,6 @@ class PValues;
struct JsonbValue;
class JsonWriter;
-namespace vectorized {
class IColumn;
class Arena;
class IDataType;
@@ -103,7 +102,7 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
Status serialize_column_to_jsonb(const IColumn& from_column, int64_t row_num,
@@ -136,5 +135,4 @@ private:
DataTypeSerDeSPtr nested_serde;
};
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_bitmap_serde.cpp b/be/src/core/data_type_serde/data_type_bitmap_serde.cpp
index 608bcda7aaf..fbd1b470398 100644
--- a/be/src/core/data_type_serde/data_type_bitmap_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_bitmap_serde.cpp
@@ -33,7 +33,6 @@
namespace doris {
-namespace vectorized {
class IColumn;
#include "common/compile_check_begin.h"
@@ -176,8 +175,7 @@ bool DataTypeBitMapSerDe::write_column_to_mysql_text(const IColumn& column, Buff
Status DataTypeBitMapSerDe::write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end,
- vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const {
auto& col_data = assert_cast<const ColumnBitmap&>(column);
orc::StringVectorBatch* cur_batch = dynamic_cast<orc::StringVectorBatch*>(orc_col_batch);
@@ -244,5 +242,4 @@ void DataTypeBitMapSerDe::to_string(const IColumn& column, size_t row_num, Buffe
bw.write(buffer.c_str(), buffer.size());
}
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_bitmap_serde.h b/be/src/core/data_type_serde/data_type_bitmap_serde.h
index 085c41708b0..49ed3cd875e 100644
--- a/be/src/core/data_type_serde/data_type_bitmap_serde.h
+++ b/be/src/core/data_type_serde/data_type_bitmap_serde.h
@@ -26,7 +26,6 @@ namespace doris {
class PValues;
struct JsonbValue;
-namespace vectorized {
class IColumn;
class Arena;
@@ -83,11 +82,10 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
void to_string(const IColumn& column, size_t row_num, BufferWritable& bw,
const FormatOptions& options) const override;
};
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_date_or_datetime_serde.cpp b/be/src/core/data_type_serde/data_type_date_or_datetime_serde.cpp
index 1b7298ee64f..8c055c22626 100644
--- a/be/src/core/data_type_serde/data_type_date_or_datetime_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_date_or_datetime_serde.cpp
@@ -29,7 +29,7 @@
#include "exprs/function/cast/cast_to_date_or_datetime_impl.hpp"
#include "util/io_helper.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
template <PrimitiveType T>
@@ -266,8 +266,7 @@ template <PrimitiveType T>
Status DataTypeDateSerDe<T>::write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end,
- vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const {
const auto& col_data = assert_cast<const ColumnVector<T>&>(column).get_data();
auto* cur_batch = dynamic_cast<orc::StringVectorBatch*>(orc_col_batch);
@@ -578,7 +577,7 @@ Status DataTypeDateSerDe<T>::from_decimal_strict_mode_batch(
}
template <PrimitiveType T>
-std::string DataTypeDateSerDe<T>::to_olap_string(const vectorized::Field& field) const {
+std::string DataTypeDateSerDe<T>::to_olap_string(const Field& field) const {
char buf[64];
char* pos = field.get<T>().to_string(buf);
return std::string(buf, pos - buf - 1);
@@ -689,4 +688,4 @@ DataTypeDateSerDe<TYPE_DATETIME>::from_decimal_strict_mode_batch<DataTypeDecimal
template Status
DataTypeDateSerDe<TYPE_DATETIME>::from_decimal_strict_mode_batch<DataTypeDecimal256>(
const DataTypeDecimal256::ColumnType& decimal_col, IColumn& target_col) const;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_date_or_datetime_serde.h b/be/src/core/data_type_serde/data_type_date_or_datetime_serde.h
index 56ed04de3ab..c28677b117f 100644
--- a/be/src/core/data_type_serde/data_type_date_or_datetime_serde.h
+++ b/be/src/core/data_type_serde/data_type_date_or_datetime_serde.h
@@ -32,7 +32,7 @@
#include "core/string_ref.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
class Arena;
template <PrimitiveType T = PrimitiveType::TYPE_DATE>
@@ -113,10 +113,10 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
- std::string to_olap_string(const vectorized::Field& field) const override;
+ std::string to_olap_string(const Field& field) const override;
protected:
template <bool is_date>
@@ -145,4 +145,4 @@ public:
Status read_column_from_arrow(IColumn& column, const arrow::Array* arrow_array, int64_t start,
int64_t end, const cctz::time_zone& ctz) const override;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_datetimev2_serde.cpp b/be/src/core/data_type_serde/data_type_datetimev2_serde.cpp
index 5d36c66da9a..a6f54024f75 100644
--- a/be/src/core/data_type_serde/data_type_datetimev2_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_datetimev2_serde.cpp
@@ -41,7 +41,7 @@ enum {
DIVISOR_FOR_NANO = 1000000000
};
-namespace doris::vectorized {
+namespace doris {
static const int64_t micro_to_nano_second = 1000;
#include "common/compile_check_begin.h"
@@ -444,8 +444,7 @@ Status DataTypeDateTimeV2SerDe::write_column_to_mysql_binary(const IColumn& colu
Status DataTypeDateTimeV2SerDe::write_column_to_orc(const std::string& timezone,
const IColumn& column, const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end,
- vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const {
const auto& col_data = assert_cast<const ColumnDateTimeV2&>(column).get_data();
auto* cur_batch = dynamic_cast<orc::TimestampVectorBatch*>(orc_col_batch);
@@ -513,7 +512,7 @@ void DataTypeDateTimeV2SerDe::write_one_cell_to_binary(const IColumn& src_column
data_ref.size);
}
-std::string DataTypeDateTimeV2SerDe::to_olap_string(const vectorized::Field& field) const {
+std::string DataTypeDateTimeV2SerDe::to_olap_string(const Field& field) const {
return CastToString::from_datetimev2(field.get<TYPE_DATETIMEV2>());
}
@@ -569,4 +568,4 @@ template Status DataTypeDateTimeV2SerDe::from_decimal_strict_mode_batch<DataType
const DataTypeDecimal128::ColumnType& decimal_col, IColumn& target_col) const;
template Status DataTypeDateTimeV2SerDe::from_decimal_strict_mode_batch<DataTypeDecimal256>(
const DataTypeDecimal256::ColumnType& decimal_col, IColumn& target_col) const;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_datetimev2_serde.h b/be/src/core/data_type_serde/data_type_datetimev2_serde.h
index d3f0bb1c452..22f6d072428 100644
--- a/be/src/core/data_type_serde/data_type_datetimev2_serde.h
+++ b/be/src/core/data_type_serde/data_type_datetimev2_serde.h
@@ -30,7 +30,7 @@
#include "core/types.h"
#include "core/value/vdatetime_value.h"
-namespace doris::vectorized {
+namespace doris {
class Arena;
class DataTypeDateTimeV2SerDe : public DataTypeNumberSerDe<PrimitiveType::TYPE_DATETIMEV2> {
@@ -98,7 +98,7 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
Status deserialize_column_from_fixed_json(IColumn& column, Slice& slice, uint64_t rows,
@@ -110,9 +110,9 @@ public:
int64_t row_num) const override;
int get_scale() const override { return _scale; }
- std::string to_olap_string(const vectorized::Field& field) const override;
+ std::string to_olap_string(const Field& field) const override;
private:
int _scale;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_datev2_serde.cpp b/be/src/core/data_type_serde/data_type_datev2_serde.cpp
index 441677b5deb..87c577d076b 100644
--- a/be/src/core/data_type_serde/data_type_datev2_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_datev2_serde.cpp
@@ -33,7 +33,7 @@
#include "exprs/function/cast/cast_to_string.h"
#include "util/io_helper.h"
-namespace doris::vectorized {
+namespace doris {
// This number represents the number of days from 0000-01-01 to 1970-01-01
static const int32_t date_threshold = 719528;
@@ -142,8 +142,7 @@ Status DataTypeDateV2SerDe::write_column_to_mysql_binary(const IColumn& column,
Status DataTypeDateV2SerDe::write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end,
- vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const {
const auto& col_data = assert_cast<const ColumnDateV2&>(column).get_data();
auto* cur_batch = dynamic_cast<orc::LongVectorBatch*>(orc_col_batch);
@@ -442,7 +441,7 @@ Status DataTypeDateV2SerDe::from_decimal_strict_mode_batch(
return Status::OK();
}
-std::string DataTypeDateV2SerDe::to_olap_string(const vectorized::Field& field) const {
+std::string DataTypeDateV2SerDe::to_olap_string(const Field& field) const {
return CastToString::from_datev2(field.get<TYPE_DATEV2>());
}
// NOLINTEND(readability-function-cognitive-complexity)
@@ -498,4 +497,4 @@ template Status DataTypeDateV2SerDe::from_decimal_strict_mode_batch<DataTypeDeci
template Status DataTypeDateV2SerDe::from_decimal_strict_mode_batch<DataTypeDecimal256>(
const DataTypeDecimal256::ColumnType& decimal_col, IColumn& target_col) const;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_datev2_serde.h b/be/src/core/data_type_serde/data_type_datev2_serde.h
index 136222a9311..0a33c51c806 100644
--- a/be/src/core/data_type_serde/data_type_datev2_serde.h
+++ b/be/src/core/data_type_serde/data_type_datev2_serde.h
@@ -29,7 +29,7 @@
#include "core/string_ref.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
class Arena;
class DataTypeDateV2SerDe : public DataTypeNumberSerDe<PrimitiveType::TYPE_DATEV2> {
@@ -95,7 +95,7 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
Status deserialize_column_from_fixed_json(IColumn& column, Slice& slice, uint64_t rows,
@@ -107,6 +107,6 @@ public:
void write_one_cell_to_binary(const IColumn& src_column, ColumnString::Chars& chars,
int64_t row_num) const override;
- std::string to_olap_string(const vectorized::Field& field) const override;
+ std::string to_olap_string(const Field& field) const override;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_decimal_serde.cpp b/be/src/core/data_type_serde/data_type_decimal_serde.cpp
index 15e14e1c7ca..10babcd9a54 100644
--- a/be/src/core/data_type_serde/data_type_decimal_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_decimal_serde.cpp
@@ -41,7 +41,7 @@
#include "util/jsonb_document_cast.h"
#include "util/jsonb_writer.h"
-namespace doris::vectorized {
+namespace doris {
// #include "common/compile_check_begin.h"
template <PrimitiveType T>
@@ -326,8 +326,7 @@ Status DataTypeDecimalSerDe<T>::read_column_from_arrow(IColumn& column,
const auto arrow_scale = arrow_decimal_type->scale();
// TODO check precision
for (auto value_i = start; value_i < end; ++value_i) {
- auto value = *reinterpret_cast<const vectorized::Decimal128V2*>(
- concrete_array->Value(value_i));
+ auto value = *reinterpret_cast<const Decimal128V2*>(concrete_array->Value(value_i));
// convert scale to 9;
if (9 > arrow_scale) {
using MaxNativeType = typename Decimal128V2::NativeType;
@@ -395,8 +394,7 @@ template <PrimitiveType T>
Status DataTypeDecimalSerDe<T>::write_column_to_orc(const std::string& timezone,
const IColumn& column, const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end,
- vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const {
if constexpr (T == TYPE_DECIMAL256) {
return Status::NotSupported("write_column_to_orc with type " + column.get_name());
@@ -503,7 +501,7 @@ void DataTypeDecimalSerDe<T>::to_string(const IColumn& column, size_t row_num, B
}
template <PrimitiveType T>
-std::string DataTypeDecimalSerDe<T>::to_olap_string(const vectorized::Field& field) const {
+std::string DataTypeDecimalSerDe<T>::to_olap_string(const Field& field) const {
auto value = field.get<T>();
if constexpr (T == TYPE_DECIMALV2) {
decimal12_t decimal_val(value.int_value(), value.frac_value());
@@ -743,4 +741,4 @@ template class DataTypeDecimalSerDe<TYPE_DECIMAL64>;
template class DataTypeDecimalSerDe<TYPE_DECIMAL128I>;
template class DataTypeDecimalSerDe<TYPE_DECIMALV2>;
template class DataTypeDecimalSerDe<TYPE_DECIMAL256>;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_decimal_serde.h b/be/src/core/data_type_serde/data_type_decimal_serde.h
index c62a539a2ca..61349fa6eef 100644
--- a/be/src/core/data_type_serde/data_type_decimal_serde.h
+++ b/be/src/core/data_type_serde/data_type_decimal_serde.h
@@ -32,7 +32,6 @@
namespace doris {
-namespace vectorized {
template <PrimitiveType T>
class ColumnDecimal;
class Arena;
@@ -118,7 +117,7 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
Status deserialize_column_from_fixed_json(IColumn& column, Slice& slice, uint64_t rows,
@@ -133,7 +132,7 @@ public:
void to_string(const IColumn& column, size_t row_num, BufferWritable& bw,
const FormatOptions& options) const override;
- std::string to_olap_string(const vectorized::Field& field) const override;
+ std::string to_olap_string(const Field& field) const override;
void to_string_batch(const IColumn& column, ColumnString& column_to,
const FormatOptions& options) const override;
@@ -188,5 +187,4 @@ Status DataTypeDecimalSerDe<T>::read_column_from_pb(IColumn& column, const PValu
}
#include "common/compile_check_end.h"
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_hll_serde.cpp b/be/src/core/data_type_serde/data_type_hll_serde.cpp
index a2612f3fcf6..319be5d57b7 100644
--- a/be/src/core/data_type_serde/data_type_hll_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_hll_serde.cpp
@@ -37,7 +37,6 @@
namespace doris {
-namespace vectorized {
class IColumn;
#include "common/compile_check_begin.h"
@@ -173,7 +172,7 @@ bool DataTypeHLLSerDe::write_column_to_mysql_text(const IColumn& column, BufferW
Status DataTypeHLLSerDe::write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch, int64_t start,
- int64_t end, vectorized::Arena& arena,
+ int64_t end, Arena& arena,
const FormatOptions& options) const {
auto& col_data = assert_cast<const ColumnHLL&>(column);
orc::StringVectorBatch* cur_batch = dynamic_cast<orc::StringVectorBatch*>(orc_col_batch);
@@ -236,5 +235,4 @@ void DataTypeHLLSerDe::to_string(const IColumn& column, size_t row_num, BufferWr
bw.write(result.c_str(), result.size());
}
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_hll_serde.h b/be/src/core/data_type_serde/data_type_hll_serde.h
index 17170e3a98d..96b5b083da7 100644
--- a/be/src/core/data_type_serde/data_type_hll_serde.h
+++ b/be/src/core/data_type_serde/data_type_hll_serde.h
@@ -26,7 +26,6 @@ namespace doris {
class PValues;
struct JsonbValue;
-namespace vectorized {
class IColumn;
class Arena;
@@ -78,11 +77,10 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
void to_string(const IColumn& column, size_t row_num, BufferWritable& bw,
const FormatOptions& options) const override;
};
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_ipv4_serde.cpp b/be/src/core/data_type_serde/data_type_ipv4_serde.cpp
index 31f076a2392..d5b4813c1f3 100644
--- a/be/src/core/data_type_serde/data_type_ipv4_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_ipv4_serde.cpp
@@ -25,7 +25,7 @@
#include "exprs/function/cast/cast_to_string.h"
#include "util/io_helper.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
Status DataTypeIPv4SerDe::write_column_to_mysql_binary(const IColumn& column,
@@ -222,8 +222,8 @@ void DataTypeIPv4SerDe::write_one_cell_to_binary(const IColumn& src_column,
memcpy(chars.data() + old_size + sizeof(uint8_t), data_ref.data, data_ref.size);
}
-std::string DataTypeIPv4SerDe::to_olap_string(const vectorized::Field& field) const {
+std::string DataTypeIPv4SerDe::to_olap_string(const Field& field) const {
return CastToString::from_ip(field.get<TYPE_IPV4>());
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_ipv4_serde.h b/be/src/core/data_type_serde/data_type_ipv4_serde.h
index e77c2a57d24..a3ff4bf9036 100644
--- a/be/src/core/data_type_serde/data_type_ipv4_serde.h
+++ b/be/src/core/data_type_serde/data_type_ipv4_serde.h
@@ -33,7 +33,7 @@
#include "core/value/ipv4_value.h"
#include "storage/olap_common.h"
-namespace doris::vectorized {
+namespace doris {
class DataTypeIPv4SerDe : public DataTypeNumberSerDe<PrimitiveType::TYPE_IPV4> {
public:
@@ -74,6 +74,6 @@ public:
void write_one_cell_to_binary(const IColumn& src_column, ColumnString::Chars& chars,
int64_t row_num) const override;
- std::string to_olap_string(const vectorized::Field& field) const override;
+ std::string to_olap_string(const Field& field) const override;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_ipv6_serde.cpp b/be/src/core/data_type_serde/data_type_ipv6_serde.cpp
index b5333df005d..f60dc892fbf 100644
--- a/be/src/core/data_type_serde/data_type_ipv6_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_ipv6_serde.cpp
@@ -29,7 +29,7 @@
#include "util/io_helper.h"
#include "util/jsonb_writer.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
Status DataTypeIPv6SerDe::write_column_to_mysql_binary(const IColumn& column,
@@ -175,7 +175,7 @@ Status DataTypeIPv6SerDe::read_column_from_arrow(IColumn& column, const arrow::A
Status DataTypeIPv6SerDe::write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch, int64_t start,
- int64_t end, vectorized::Arena& arena,
+ int64_t end, Arena& arena,
const FormatOptions& options) const {
const auto& col_data = assert_cast<const ColumnIPv6&>(column).get_data();
auto* cur_batch = assert_cast<orc::StringVectorBatch*>(orc_col_batch);
@@ -320,8 +320,8 @@ void DataTypeIPv6SerDe::write_one_cell_to_binary(const IColumn& src_column,
memcpy(chars.data() + old_size + sizeof(uint8_t), data_ref.data, data_ref.size);
}
-std::string DataTypeIPv6SerDe::to_olap_string(const vectorized::Field& field) const {
+std::string DataTypeIPv6SerDe::to_olap_string(const Field& field) const {
return CastToString::from_ip(field.get<TYPE_IPV6>());
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_ipv6_serde.h b/be/src/core/data_type_serde/data_type_ipv6_serde.h
index 467ce09aabd..20b6960e61d 100644
--- a/be/src/core/data_type_serde/data_type_ipv6_serde.h
+++ b/be/src/core/data_type_serde/data_type_ipv6_serde.h
@@ -35,7 +35,6 @@
namespace doris {
-namespace vectorized {
class Arena;
class DataTypeIPv6SerDe : public DataTypeNumberSerDe<PrimitiveType::TYPE_IPV6> {
@@ -55,7 +54,7 @@ public:
Status read_column_from_pb(IColumn& column, const PValues& arg) const override;
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
Status write_column_to_arrow(const IColumn& column, const NullMap* null_map,
arrow::ArrayBuilder* array_builder, int64_t start, int64_t end,
@@ -85,7 +84,6 @@ public:
void write_one_cell_to_binary(const IColumn& src_column, ColumnString::Chars& chars,
int64_t row_num) const override;
- std::string to_olap_string(const vectorized::Field& field) const override;
+ std::string to_olap_string(const Field& field) const override;
};
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_jsonb_serde.cpp b/be/src/core/data_type_serde/data_type_jsonb_serde.cpp
index 937dd02e5b9..4b0c5b2e2c3 100644
--- a/be/src/core/data_type_serde/data_type_jsonb_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_jsonb_serde.cpp
@@ -32,7 +32,6 @@
#include "exprs/json_functions.h"
#include "util/jsonb_parser_simd.h"
namespace doris {
-namespace vectorized {
#include "common/compile_check_begin.h"
Status DataTypeJsonbSerDe::write_column_to_mysql_binary(const IColumn& column,
@@ -193,7 +192,7 @@ Status DataTypeJsonbSerDe::read_column_from_arrow(IColumn& column, const arrow::
Status DataTypeJsonbSerDe::write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch, int64_t start,
- int64_t end, vectorized::Arena& arena,
+ int64_t end, Arena& arena,
const FormatOptions& options) const {
auto* cur_batch = dynamic_cast<orc::StringVectorBatch*>(orc_col_batch);
const auto& string_column = assert_cast<const ColumnString&>(column);
@@ -442,5 +441,4 @@ bool DataTypeJsonbSerDe::write_column_to_presto_text(const IColumn& column, Buff
return true;
}
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_jsonb_serde.h b/be/src/core/data_type_serde/data_type_jsonb_serde.h
index acc65c546bb..3a243a1c1a8 100644
--- a/be/src/core/data_type_serde/data_type_jsonb_serde.h
+++ b/be/src/core/data_type_serde/data_type_jsonb_serde.h
@@ -29,7 +29,6 @@
namespace doris {
class JsonbOutStream;
-namespace vectorized {
class Arena;
class DataTypeJsonbSerDe : public DataTypeStringSerDe {
@@ -64,7 +63,7 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
bool write_column_to_presto_text(const IColumn& column, BufferWritable& bw, int64_t row_idx,
@@ -94,5 +93,4 @@ public:
void convert_jsonb_to_rapidjson(const JsonbValue& val, rapidjson::Value& target,
rapidjson::Document::AllocatorType& allocator);
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_map_serde.cpp b/be/src/core/data_type_serde/data_type_map_serde.cpp
index 53151010048..44fbde623e7 100644
--- a/be/src/core/data_type_serde/data_type_map_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_map_serde.cpp
@@ -30,7 +30,6 @@
#include "util/simd/bits.h"
namespace doris {
-namespace vectorized {
class Arena;
#include "common/compile_check_begin.h"
Status DataTypeMapSerDe::serialize_column_to_json(const IColumn& column, int64_t start_idx,
@@ -429,7 +428,7 @@ Status DataTypeMapSerDe::write_column_to_mysql_binary(const IColumn& column,
Status DataTypeMapSerDe::write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch, int64_t start,
- int64_t end, vectorized::Arena& arena,
+ int64_t end, Arena& arena,
const FormatOptions& options) const {
auto* cur_batch = dynamic_cast<orc::MapVectorBatch*>(orc_col_batch);
cur_batch->offsets[0] = 0;
@@ -687,5 +686,4 @@ bool DataTypeMapSerDe::write_column_to_hive_text(const IColumn& column, BufferWr
return true;
}
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_map_serde.h b/be/src/core/data_type_serde/data_type_map_serde.h
index 773642b296b..b4aa88f3cbe 100644
--- a/be/src/core/data_type_serde/data_type_map_serde.h
+++ b/be/src/core/data_type_serde/data_type_map_serde.h
@@ -28,7 +28,6 @@
namespace doris {
class PValues;
-namespace vectorized {
class IColumn;
class Arena;
#include "common/compile_check_begin.h"
@@ -93,7 +92,7 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
bool write_column_to_presto_text(const IColumn& column, BufferWritable& bw, int64_t row_idx,
@@ -125,5 +124,4 @@ private:
DataTypeSerDeSPtr value_serde;
};
#include "common/compile_check_end.h"
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_nothing_serde.h b/be/src/core/data_type_serde/data_type_nothing_serde.h
index 41f49426105..1e164e85a91 100644
--- a/be/src/core/data_type_serde/data_type_nothing_serde.h
+++ b/be/src/core/data_type_serde/data_type_nothing_serde.h
@@ -30,7 +30,6 @@ namespace doris {
class PValues;
struct JsonbValue;
-namespace vectorized {
class IColumn;
class Arena;
@@ -100,10 +99,9 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override {
return Status::NotSupported("write_column_to_orc with type " + column.get_name());
}
};
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_nullable_serde.cpp b/be/src/core/data_type_serde/data_type_nullable_serde.cpp
index 66ba2c33423..175da193187 100644
--- a/be/src/core/data_type_serde/data_type_nullable_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_nullable_serde.cpp
@@ -36,7 +36,7 @@
#include "util/jsonb_document.h"
#include "util/jsonb_writer.h"
-namespace doris::vectorized {
+namespace doris {
class Arena;
#include "common/compile_check_begin.h"
Status DataTypeNullableSerDe::serialize_column_to_json(const IColumn& column, int64_t start_idx,
@@ -427,8 +427,7 @@ Status DataTypeNullableSerDe::write_column_to_mysql_binary(const IColumn& column
Status DataTypeNullableSerDe::write_column_to_orc(const std::string& timezone,
const IColumn& column, const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end,
- vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const {
const auto& column_nullable = assert_cast<const ColumnNullable&>(column);
orc_col_batch->hasNulls = true;
@@ -476,7 +475,7 @@ void DataTypeNullableSerDe::to_string(const IColumn& column, size_t row_num, Buf
}
}
-std::string DataTypeNullableSerDe::to_olap_string(const vectorized::Field& field) const {
+std::string DataTypeNullableSerDe::to_olap_string(const Field& field) const {
return nested_serde->to_olap_string(field);
}
@@ -515,4 +514,4 @@ Status DataTypeNullableSerDe::from_string_strict_mode(StringRef& str, IColumn& c
null_column.get_null_map_data().push_back(0);
return Status::OK();
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_nullable_serde.h b/be/src/core/data_type_serde/data_type_nullable_serde.h
index 75b8048cd1c..49d9d55f9f2 100644
--- a/be/src/core/data_type_serde/data_type_nullable_serde.h
+++ b/be/src/core/data_type_serde/data_type_nullable_serde.h
@@ -27,7 +27,6 @@
namespace doris {
class PValues;
-namespace vectorized {
class IColumn;
class Arena;
#include "common/compile_check_begin.h"
@@ -96,7 +95,7 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
bool write_column_to_presto_text(const IColumn& column, BufferWritable& bw, int64_t row_idx,
@@ -126,11 +125,10 @@ public:
void to_string(const IColumn& column, size_t row_num, BufferWritable& bw,
const FormatOptions& options) const override;
- std::string to_olap_string(const vectorized::Field& field) const override;
+ std::string to_olap_string(const Field& field) const override;
private:
DataTypeSerDeSPtr nested_serde;
};
#include "common/compile_check_end.h"
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_number_serde.cpp b/be/src/core/data_type_serde/data_type_number_serde.cpp
index 59beaf472e2..a76bc39ca4d 100644
--- a/be/src/core/data_type_serde/data_type_number_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_number_serde.cpp
@@ -41,7 +41,7 @@
#include "util/mysql_global.h"
#include "util/to_string.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
// Type map的基本结构
template <typename Key, typename Value, typename... Rest>
@@ -585,8 +585,7 @@ template <PrimitiveType T>
Status DataTypeNumberSerDe<T>::write_column_to_orc(const std::string& timezone,
const IColumn& column, const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end,
- vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const {
auto& col_data = assert_cast<const ColumnType&>(column).get_data();
@@ -751,7 +750,7 @@ Status DataTypeNumberSerDe<T>::from_string(StringRef& str, IColumn& column,
}
template <PrimitiveType T>
-std::string DataTypeNumberSerDe<T>::to_olap_string(const vectorized::Field& field) const {
+std::string DataTypeNumberSerDe<T>::to_olap_string(const Field& field) const {
if constexpr (T == TYPE_BOOLEAN) {
char buf[8] = {'\0'};
snprintf(buf, sizeof(buf), "%d", field.get<T>());
@@ -1095,4 +1094,4 @@ template class DataTypeNumberSerDe<TYPE_IPV6>;
template class DataTypeNumberSerDe<TYPE_TIME>;
template class DataTypeNumberSerDe<TYPE_TIMEV2>;
template class DataTypeNumberSerDe<TYPE_TIMESTAMPTZ>;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_number_serde.h b/be/src/core/data_type_serde/data_type_number_serde.h
index 43e44432529..2158919d112 100644
--- a/be/src/core/data_type_serde/data_type_number_serde.h
+++ b/be/src/core/data_type_serde/data_type_number_serde.h
@@ -37,7 +37,6 @@
namespace doris {
class JsonbOutStream;
#include "common/compile_check_begin.h"
-namespace vectorized {
class Arena;
// special data type using, maybe has various serde actions, so use specific date serde
@@ -127,7 +126,7 @@ public:
const FormatOptions& options) const override;
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
void write_one_cell_to_binary(const IColumn& src_column, ColumnString::Chars& chars,
@@ -144,7 +143,7 @@ public:
void to_string_batch(const IColumn& column, ColumnString& column_to,
const FormatOptions& options) const override;
- std::string to_olap_string(const vectorized::Field& field) const override;
+ std::string to_olap_string(const Field& field) const override;
// will override in DateTime and Time
virtual int get_scale() const { return 0; }
@@ -313,5 +312,4 @@ Status DataTypeNumberSerDe<T>::write_column_to_pb(const IColumn& column, PValues
}
#include "common/compile_check_end.h"
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_quantilestate_serde.cpp b/be/src/core/data_type_serde/data_type_quantilestate_serde.cpp
index eff49487d1e..ea05c736101 100644
--- a/be/src/core/data_type_serde/data_type_quantilestate_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_quantilestate_serde.cpp
@@ -19,7 +19,7 @@
#include "util/jsonb_writer.h"
-namespace doris::vectorized {
+namespace doris {
Status DataTypeQuantileStateSerDe::from_olap_string(const std::string& str, Field& field,
const FormatOptions& options) const {
@@ -72,4 +72,4 @@ bool DataTypeQuantileStateSerDe::write_column_to_mysql_text(const IColumn& colum
}
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_quantilestate_serde.h b/be/src/core/data_type_serde/data_type_quantilestate_serde.h
index 91d7f472722..eeaa266bfd6 100644
--- a/be/src/core/data_type_serde/data_type_quantilestate_serde.h
+++ b/be/src/core/data_type_serde/data_type_quantilestate_serde.h
@@ -35,7 +35,6 @@
namespace doris {
-namespace vectorized {
#include "common/compile_check_begin.h"
class DataTypeQuantileStateSerDe : public DataTypeSerDe {
public:
@@ -140,7 +139,7 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override {
auto& col_data = assert_cast<const ColumnQuantileState&>(column);
orc::StringVectorBatch* cur_batch = dynamic_cast<orc::StringVectorBatch*>(orc_col_batch);
@@ -192,5 +191,4 @@ public:
}
};
#include "common/compile_check_end.h"
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_serde.cpp b/be/src/core/data_type_serde/data_type_serde.cpp
index 8521f4cea59..5fa8fa2fab8 100644
--- a/be/src/core/data_type_serde/data_type_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_serde.cpp
@@ -32,7 +32,6 @@
#include "util/jsonb_document.h"
#include "util/jsonb_writer.h"
namespace doris {
-namespace vectorized {
#include "common/compile_check_begin.h"
DataTypeSerDe::~DataTypeSerDe() = default;
@@ -137,7 +136,7 @@ void DataTypeSerDe::to_string(const IColumn& column, size_t row_num, BufferWrita
"Data type {} to_string_batch not implement.", get_name());
}
-std::string DataTypeSerDe::to_olap_string(const vectorized::Field& value) const {
+std::string DataTypeSerDe::to_olap_string(const Field& value) const {
throw doris::Exception(ErrorCode::NOT_IMPLEMENTED_ERROR,
"Data type {} to_olap_string not implement.", get_name());
return "";
@@ -292,5 +291,4 @@ const uint8_t* DataTypeSerDe::deserialize_binary_to_field(const uint8_t* data, F
return end;
}
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_serde.h b/be/src/core/data_type_serde/data_type_serde.h
index 9787fcd660a..1f9ac312cce 100644
--- a/be/src/core/data_type_serde/data_type_serde.h
+++ b/be/src/core/data_type_serde/data_type_serde.h
@@ -84,7 +84,6 @@ class JsonbWriterT;
using JsonbWriter = JsonbWriterT<JsonbOutStream>;
#include "common/compile_check_begin.h"
-namespace vectorized {
class IColumn;
class Arena;
class IDataType;
@@ -300,7 +299,7 @@ public:
virtual void to_string(const IColumn& column, size_t row_num, BufferWritable& bw,
const FormatOptions& options) const;
- virtual std::string to_olap_string(const vectorized::Field& field) const;
+ virtual std::string to_olap_string(const Field& field) const;
// All types can override this function
// When this function is called, column should be of the corresponding type
@@ -476,7 +475,7 @@ public:
virtual Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch, int64_t start,
- int64_t end, vectorized::Arena& arena,
+ int64_t end, Arena& arena,
const FormatOptions& options) const = 0;
// ORC deserializer
@@ -555,5 +554,4 @@ DataTypeSerDeSPtrs create_data_type_serdes(
const std::vector<std::shared_ptr<const IDataType>>& types);
DataTypeSerDeSPtrs create_data_type_serdes(const std::vector<SlotDescriptor*>& slots);
#include "common/compile_check_end.h"
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_string_serde.cpp b/be/src/core/data_type_serde/data_type_string_serde.cpp
index 1863affce42..492bdf0f811 100644
--- a/be/src/core/data_type_serde/data_type_string_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_string_serde.cpp
@@ -23,7 +23,7 @@
#include "util/jsonb_utils.h"
#include "util/jsonb_writer.h"
-namespace doris::vectorized {
+namespace doris {
template <typename ColumnType>
Status DataTypeStringSerDeBase<ColumnType>::serialize_column_to_json(const IColumn& column,
@@ -317,7 +317,7 @@ Status DataTypeStringSerDeBase<ColumnType>::read_column_from_arrow(
template <typename ColumnType>
Status DataTypeStringSerDeBase<ColumnType>::write_column_to_orc(
const std::string& timezone, const IColumn& column, const NullMap* null_map,
- orc::ColumnVectorBatch* orc_col_batch, int64_t start, int64_t end, vectorized::Arena& arena,
+ orc::ColumnVectorBatch* orc_col_batch, int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const {
auto* cur_batch = dynamic_cast<orc::StringVectorBatch*>(orc_col_batch);
@@ -437,8 +437,7 @@ void DataTypeStringSerDeBase<ColumnType>::to_string(const IColumn& column, size_
}
template <typename ColumnType>
-std::string DataTypeStringSerDeBase<ColumnType>::to_olap_string(
- const vectorized::Field& field) const {
+std::string DataTypeStringSerDeBase<ColumnType>::to_olap_string(const Field& field) const {
return field.get<TYPE_STRING>();
}
@@ -478,4 +477,4 @@ template class DataTypeStringSerDeBase<ColumnString>;
template class DataTypeStringSerDeBase<ColumnString64>;
template class DataTypeStringSerDeBase<ColumnFixedLengthObject>;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_string_serde.h b/be/src/core/data_type_serde/data_type_string_serde.h
index 93c64dbd924..faa1b149171 100644
--- a/be/src/core/data_type_serde/data_type_string_serde.h
+++ b/be/src/core/data_type_serde/data_type_string_serde.h
@@ -33,7 +33,6 @@ namespace doris {
class PValues;
struct JsonbValue;
-namespace vectorized {
class IColumn;
class Arena;
#include "common/compile_check_begin.h"
@@ -218,7 +217,7 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
bool write_column_to_presto_text(const IColumn& column, BufferWritable& bw, int64_t row_idx,
@@ -264,7 +263,7 @@ public:
void to_string(const IColumn& column, size_t row_num, BufferWritable& bw,
const FormatOptions& options) const override;
- std::string to_olap_string(const vectorized::Field& field) const override;
+ std::string to_olap_string(const Field& field) const override;
private:
const PrimitiveType _type;
@@ -274,5 +273,4 @@ private:
using DataTypeStringSerDe = DataTypeStringSerDeBase<ColumnString>;
using DataTypeFixedLengthObjectSerDe = DataTypeStringSerDeBase<ColumnFixedLengthObject>;
#include "common/compile_check_end.h"
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_struct_serde.cpp b/be/src/core/data_type_serde/data_type_struct_serde.cpp
index 1d75bf028ea..55a215ca1e9 100644
--- a/be/src/core/data_type_serde/data_type_struct_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_struct_serde.cpp
@@ -30,7 +30,6 @@
namespace doris {
-namespace vectorized {
class Arena;
#include "common/compile_check_begin.h"
@@ -439,8 +438,7 @@ Status DataTypeStructSerDe::write_column_to_mysql_binary(const IColumn& column,
Status DataTypeStructSerDe::write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end,
- vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const {
auto* cur_batch = dynamic_cast<orc::StructVectorBatch*>(orc_col_batch);
const auto& struct_col = assert_cast<const ColumnStruct&>(column);
@@ -638,5 +636,4 @@ bool DataTypeStructSerDe::write_column_to_hive_text(const IColumn& column, Buffe
return true;
}
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_struct_serde.h b/be/src/core/data_type_serde/data_type_struct_serde.h
index 5f739904f38..70053fdeb31 100644
--- a/be/src/core/data_type_serde/data_type_struct_serde.h
+++ b/be/src/core/data_type_serde/data_type_struct_serde.h
@@ -28,7 +28,6 @@ namespace doris {
class PValues;
struct JsonbValue;
-namespace vectorized {
class IColumn;
class Arena;
#include "common/compile_check_begin.h"
@@ -94,7 +93,7 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
bool write_column_to_presto_text(const IColumn& column, BufferWritable& bw, int64_t row_idx,
@@ -129,5 +128,4 @@ private:
Strings elem_names;
};
#include "common/compile_check_end.h"
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_time_serde.cpp b/be/src/core/data_type_serde/data_type_time_serde.cpp
index 25a1b12ca12..f6a1f312aa8 100644
--- a/be/src/core/data_type_serde/data_type_time_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_time_serde.cpp
@@ -24,7 +24,7 @@
#include "exprs/function/cast/cast_base.h"
#include "exprs/function/cast/cast_to_time_impl.hpp"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
Status DataTypeTimeV2SerDe::write_column_to_mysql_binary(const IColumn& column,
@@ -330,4 +330,4 @@ template Status DataTypeTimeV2SerDe::from_decimal_strict_mode_batch<DataTypeDeci
template Status DataTypeTimeV2SerDe::from_decimal_strict_mode_batch<DataTypeDecimal256>(
const DataTypeDecimal256::ColumnType& decimal_col, IColumn& target_col) const;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_time_serde.h b/be/src/core/data_type_serde/data_type_time_serde.h
index c200a0be745..924d4b97190 100644
--- a/be/src/core/data_type_serde/data_type_time_serde.h
+++ b/be/src/core/data_type_serde/data_type_time_serde.h
@@ -27,7 +27,6 @@
namespace doris {
class JsonbOutStream;
#include "common/compile_check_begin.h"
-namespace vectorized {
class DataTypeTimeV2SerDe : public DataTypeNumberSerDe<PrimitiveType::TYPE_TIMEV2> {
public:
DataTypeTimeV2SerDe(int scale = 0, int nesting_level = 1)
@@ -78,5 +77,4 @@ private:
int _scale;
};
#include "common/compile_check_end.h"
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_timestamptz_serde.cpp b/be/src/core/data_type_serde/data_type_timestamptz_serde.cpp
index 0414d632000..1ea754c5bda 100644
--- a/be/src/core/data_type_serde/data_type_timestamptz_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_timestamptz_serde.cpp
@@ -24,7 +24,7 @@
#include "exprs/function/cast/cast_parameters.h"
#include "exprs/function/cast/cast_to_string.h"
#include "exprs/function/cast/cast_to_timestamptz.h"
-namespace doris::vectorized {
+namespace doris {
// The implementation of these functions mainly refers to data_type_datetimev2_serde.cpp
@@ -225,8 +225,7 @@ Status DataTypeTimeStampTzSerDe::write_column_to_arrow(const IColumn& column,
Status DataTypeTimeStampTzSerDe::write_column_to_orc(const std::string& timezone,
const IColumn& column, const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end,
- vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const {
const auto& col_data = assert_cast<const ColumnTimeStampTz&>(column).get_data();
auto* cur_batch = dynamic_cast<orc::TimestampVectorBatch*>(orc_col_batch);
@@ -247,8 +246,8 @@ Status DataTypeTimeStampTzSerDe::write_column_to_orc(const std::string& timezone
return Status::OK();
}
-std::string DataTypeTimeStampTzSerDe::to_olap_string(const vectorized::Field& field) const {
+std::string DataTypeTimeStampTzSerDe::to_olap_string(const Field& field) const {
return CastToString::from_timestamptz(field.get<TYPE_TIMESTAMPTZ>(), 6);
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_timestamptz_serde.h b/be/src/core/data_type_serde/data_type_timestamptz_serde.h
index 0e918caabcc..8048731460f 100644
--- a/be/src/core/data_type_serde/data_type_timestamptz_serde.h
+++ b/be/src/core/data_type_serde/data_type_timestamptz_serde.h
@@ -25,7 +25,7 @@
#include "core/types.h"
#include "core/value/time_value.h"
-namespace doris::vectorized {
+namespace doris {
class DataTypeTimeStampTzSerDe : public DataTypeNumberSerDe<PrimitiveType::TYPE_TIMESTAMPTZ> {
public:
DataTypeTimeStampTzSerDe(const UInt32 scale, int nesting_level = 1)
@@ -72,12 +72,12 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
- std::string to_olap_string(const vectorized::Field& field) const override;
+ std::string to_olap_string(const Field& field) const override;
private:
const UInt32 _scale = 6;
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_varbinary_serde.cpp b/be/src/core/data_type_serde/data_type_varbinary_serde.cpp
index 156eff47797..76ac43d535c 100644
--- a/be/src/core/data_type_serde/data_type_varbinary_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_varbinary_serde.cpp
@@ -19,7 +19,7 @@
#include "core/column/column_varbinary.h"
-namespace doris::vectorized {
+namespace doris {
void DataTypeVarbinarySerDe::write_one_cell_to_jsonb(const IColumn& column, JsonbWriter& result,
Arena& arena, int32_t col_id, int64_t row_num,
@@ -84,8 +84,7 @@ Status DataTypeVarbinarySerDe::write_column_to_arrow(const IColumn& column, cons
Status DataTypeVarbinarySerDe::write_column_to_orc(const std::string& timezone,
const IColumn& column, const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end,
- vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const {
auto* cur_batch = dynamic_cast<orc::StringVectorBatch*>(orc_col_batch);
const auto& varbinary_column_data = assert_cast<const ColumnVarbinary&>(column).get_data();
@@ -127,4 +126,4 @@ void DataTypeVarbinarySerDe::to_string(const IColumn& column, size_t row_num, Bu
}
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_varbinary_serde.h b/be/src/core/data_type_serde/data_type_varbinary_serde.h
index 98e68afc4ab..a3ce30f6f7d 100644
--- a/be/src/core/data_type_serde/data_type_varbinary_serde.h
+++ b/be/src/core/data_type_serde/data_type_varbinary_serde.h
@@ -32,7 +32,6 @@
namespace doris {
-namespace vectorized {
#include "common/compile_check_begin.h"
class DataTypeVarbinarySerDe : public DataTypeSerDe {
public:
@@ -89,7 +88,7 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
void to_string(const IColumn& column, size_t row_num, BufferWritable& bw,
@@ -97,5 +96,4 @@ public:
};
#include "common/compile_check_end.h"
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_variant_serde.cpp b/be/src/core/data_type_serde/data_type_variant_serde.cpp
index 7bc8e5269b5..983d5dabcff 100644
--- a/be/src/core/data_type_serde/data_type_variant_serde.cpp
+++ b/be/src/core/data_type_serde/data_type_variant_serde.cpp
@@ -37,7 +37,6 @@
namespace doris {
-namespace vectorized {
#include "common/compile_check_begin.h"
Status DataTypeVariantSerDe::write_column_to_mysql_binary(const IColumn& column,
@@ -110,7 +109,7 @@ Status DataTypeVariantSerDe::serialize_one_cell_to_json(const IColumn& column, i
Status DataTypeVariantSerDe::deserialize_one_cell_from_json(IColumn& column, Slice& slice,
const FormatOptions& options) const {
- vectorized::ParseConfig config;
+ ParseConfig config;
StringRef json_ref(slice.data, slice.size);
RETURN_IF_CATCH_EXCEPTION(
variant_util::parse_json_to_variant(column, json_ref, nullptr, config));
@@ -157,8 +156,7 @@ void DataTypeVariantSerDe::to_string(const IColumn& column, size_t row_num, Buff
Status DataTypeVariantSerDe::write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map,
orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end,
- vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const {
const auto* var = check_and_get_column<ColumnVariant>(column);
orc::StringVectorBatch* cur_batch = dynamic_cast<orc::StringVectorBatch*>(orc_col_batch);
@@ -203,6 +201,4 @@ Status DataTypeVariantSerDe::write_column_to_orc(const std::string& timezone, co
return Status::OK();
}
-} // namespace vectorized
-
} // namespace doris
diff --git a/be/src/core/data_type_serde/data_type_variant_serde.h b/be/src/core/data_type_serde/data_type_variant_serde.h
index b4392bba5f8..dd121cc55d1 100644
--- a/be/src/core/data_type_serde/data_type_variant_serde.h
+++ b/be/src/core/data_type_serde/data_type_variant_serde.h
@@ -28,7 +28,6 @@
namespace doris {
class PValues;
#include "common/compile_check_begin.h"
-namespace vectorized {
class IColumn;
class Arena;
@@ -79,11 +78,10 @@ public:
Status write_column_to_orc(const std::string& timezone, const IColumn& column,
const NullMap* null_map, orc::ColumnVectorBatch* orc_col_batch,
- int64_t start, int64_t end, vectorized::Arena& arena,
+ int64_t start, int64_t end, Arena& arena,
const FormatOptions& options) const override;
void to_string(const IColumn& column, size_t row_num, BufferWritable& bw,
const FormatOptions& options) const override;
};
#include "common/compile_check_end.h"
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/data_type_serde/datelike_serde_common.hpp b/be/src/core/data_type_serde/datelike_serde_common.hpp
index 9165285c209..eef56e19be3 100644
--- a/be/src/core/data_type_serde/datelike_serde_common.hpp
+++ b/be/src/core/data_type_serde/datelike_serde_common.hpp
@@ -22,7 +22,7 @@
#include "common/config.h"
#include "core/value/vdatetime_value.h"
-namespace doris::vectorized {
+namespace doris {
inline PURE uint32_t complete_4digit_year(uint32_t year) {
if (year < 70) {
@@ -43,4 +43,4 @@ inline bool try_convert_set_zero_date(T& date_val, uint32_t year, uint32_t month
}
return false;
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/decimal_comparison.h b/be/src/core/decimal_comparison.h
index 5d1fb5ca61a..db879c92802 100644
--- a/be/src/core/decimal_comparison.h
+++ b/be/src/core/decimal_comparison.h
@@ -30,7 +30,7 @@
#include "exec/common/arithmetic_overflow.h"
#include "exprs/function/function_helpers.h" /// todo core should not depend on function"
-namespace doris::vectorized {
+namespace doris {
template <size_t>
struct ConstructDecInt {
@@ -331,4 +331,4 @@ private:
}
};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/field.cpp b/be/src/core/field.cpp
index 8754085a329..8aeab58346a 100644
--- a/be/src/core/field.cpp
+++ b/be/src/core/field.cpp
@@ -33,7 +33,7 @@
#include "util/io_helper.h"
#include "util/var_int.h"
-namespace doris::vectorized {
+namespace doris {
class BufferReadable;
class BufferWritable;
@@ -1018,4 +1018,4 @@ DECLARE_FUNCTION(TYPE_TIMEV2)
DECLARE_FUNCTION(TYPE_UINT32)
DECLARE_FUNCTION(TYPE_UINT64)
#undef DECLARE_FUNCTION
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/field.h b/be/src/core/field.h
index 7f17487be5b..2c311727941 100644
--- a/be/src/core/field.h
+++ b/be/src/core/field.h
@@ -47,14 +47,12 @@
namespace doris {
template <PrimitiveType type>
struct PrimitiveTypeTraits;
-namespace vectorized {
template <typename T>
struct TypeName;
-} // namespace vectorized
struct PackedInt128;
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
class Field;
@@ -324,11 +322,11 @@ struct FieldWithDataType {
int scale = -1;
};
-} // namespace doris::vectorized
+} // namespace doris
template <>
-struct std::hash<doris::vectorized::Field> {
- size_t operator()(const doris::vectorized::Field& field) const {
+struct std::hash<doris::Field> {
+ size_t operator()(const doris::Field& field) const {
if (field.is_null()) {
return 0;
}
diff --git a/be/src/core/memcmp_small.h b/be/src/core/memcmp_small.h
index e4287b9ecff..5f8eca28588 100644
--- a/be/src/core/memcmp_small.h
+++ b/be/src/core/memcmp_small.h
@@ -23,7 +23,7 @@
#include <algorithm>
#include <cstdint>
-namespace doris::vectorized::detail {
+namespace doris::detail {
#include "common/compile_check_begin.h"
inline int cmp(uint8_t a, uint8_t b) {
if (a < b) return -1;
@@ -36,7 +36,7 @@ inline int cmp(size_t a, size_t b) {
if (a > b) return 1;
return 0;
}
-} // namespace doris::vectorized::detail
+} // namespace doris::detail
/// We can process uninitialized memory in the functions below.
/// Results don't depend on the values inside uninitialized memory but Memory Sanitizer cannot see it.
@@ -65,11 +65,11 @@ inline int memcmp_small_allow_overflow15(const uint8_t* a, size_t a_size, const
if (offset >= min_size) break;
- return doris::vectorized::detail::cmp(a[offset], b[offset]);
+ return doris::detail::cmp(a[offset], b[offset]);
}
}
- return doris::vectorized::detail::cmp(a_size, b_size);
+ return doris::detail::cmp(a_size, b_size);
}
/** Variant when memory regions have same size.
@@ -87,7 +87,7 @@ inline int memcmp_small_allow_overflow15(const uint8_t* a, const uint8_t* b, siz
if (offset >= size) return 0;
- return doris::vectorized::detail::cmp(a[offset], b[offset]);
+ return doris::detail::cmp(a[offset], b[offset]);
}
}
@@ -126,7 +126,7 @@ inline int memcmp_small_multiple_of16(const uint8_t* a, const uint8_t* b, size_t
if (mask) {
offset += __builtin_ctz(mask);
- return doris::vectorized::detail::cmp(a[offset], b[offset]);
+ return doris::detail::cmp(a[offset], b[offset]);
}
}
@@ -143,7 +143,7 @@ inline int memcmp16(const uint8_t* a, const uint8_t* b) {
if (mask) {
auto offset = __builtin_ctz(mask);
- return doris::vectorized::detail::cmp(a[offset], b[offset]);
+ return doris::detail::cmp(a[offset], b[offset]);
}
return 0;
@@ -185,7 +185,7 @@ inline int memcmp_small_allow_overflow15(const uint8_t* a, size_t a_size, const
if (auto res = memcmp(a, b, std::min(a_size, b_size)))
return res;
else
- return doris::vectorized::detail::cmp(a_size, b_size);
+ return doris::detail::cmp(a_size, b_size);
}
inline int memcmp_small_allow_overflow15(const uint8_t* a, const uint8_t* b, size_t size) {
diff --git a/be/src/core/memcpy_small.h b/be/src/core/memcpy_small.h
index 62e7059a61e..bcdcaa84549 100644
--- a/be/src/core/memcpy_small.h
+++ b/be/src/core/memcpy_small.h
@@ -50,7 +50,7 @@
* Use with caution.
*/
-namespace doris::vectorized::detail {
+namespace doris::detail {
inline void memcpy_small_allow_read_write_overflow15_impl(char* __restrict dst,
const char* __restrict src, ssize_t n) {
while (n > 0) {
@@ -62,14 +62,14 @@ inline void memcpy_small_allow_read_write_overflow15_impl(char* __restrict dst,
n -= 16;
}
}
-} // namespace doris::vectorized::detail
+} // namespace doris::detail
/** Works under assumption, that it's possible to read up to 15 excessive bytes after end of 'src' region
* and to write any garbage into up to 15 bytes after end of 'dst' region.
*/
inline void memcpy_small_allow_read_write_overflow15(void* __restrict dst,
const void* __restrict src, size_t n) {
- doris::vectorized::detail::memcpy_small_allow_read_write_overflow15_impl(
+ doris::detail::memcpy_small_allow_read_write_overflow15_impl(
reinterpret_cast<char*>(dst), reinterpret_cast<const char*>(src), n);
}
diff --git a/be/src/core/pod_array.cpp b/be/src/core/pod_array.cpp
index 1b629128cf8..7de200ee002 100644
--- a/be/src/core/pod_array.cpp
+++ b/be/src/core/pod_array.cpp
@@ -20,8 +20,8 @@
#include "core/pod_array.h"
-namespace doris::vectorized {
+namespace doris {
/// Used for left padding of PODArray when empty
const char empty_pod_array[EmptyPODArraySize] {};
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/pod_array.h b/be/src/core/pod_array.h
index c2abccb0578..43079e38326 100644
--- a/be/src/core/pod_array.h
+++ b/be/src/core/pod_array.h
@@ -43,7 +43,7 @@
#include "core/pod_array_fwd.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_avoid_begin.h"
/** For zero argument, result is zero.
* For arguments with most significand bit set, result is zero.
@@ -805,5 +805,5 @@ void swap(PODArray<T, initial_bytes, TAllocator, pad_right_, pad_left_>& lhs,
lhs.swap(rhs);
}
-} // namespace doris::vectorized
+} // namespace doris
#include "common/compile_check_avoid_end.h"
\ No newline at end of file
diff --git a/be/src/core/pod_array_fwd.h b/be/src/core/pod_array_fwd.h
index 6330a93d4b1..d18a8654702 100644
--- a/be/src/core/pod_array_fwd.h
+++ b/be/src/core/pod_array_fwd.h
@@ -26,7 +26,7 @@
#include "core/allocator_fwd.h"
-namespace doris::vectorized {
+namespace doris {
inline constexpr size_t integerRoundUp(size_t value, size_t dividend) {
return ((value + dividend - 1) / dividend) * dividend;
@@ -56,4 +56,4 @@ using PODArrayWithStackMemory = PODArray<
AllocatorWithStackMemory<Allocator<false, false, false, DefaultMemoryAllocator, false>,
rounded_bytes, alignof(T)>>;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/string_buffer.hpp b/be/src/core/string_buffer.hpp
index 7b0dca4907b..0d8593bc092 100644
--- a/be/src/core/string_buffer.hpp
+++ b/be/src/core/string_buffer.hpp
@@ -24,7 +24,7 @@
#include "core/column/column_string.h"
#include "core/string_ref.h"
-namespace doris::vectorized {
+namespace doris {
static constexpr size_t DEFAULT_MAX_STRING_SIZE = 1073741824; // 1GB
static constexpr size_t DEFAULT_MAX_JSON_SIZE = 1073741824; // 1GB
@@ -320,4 +320,4 @@ private:
using VectorBufferReader = BufferReadable;
using BufferReader = BufferReadable;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/core/string_ref.h b/be/src/core/string_ref.h
index 98fd3b36524..7288527e97f 100644
--- a/be/src/core/string_ref.h
+++ b/be/src/core/string_ref.h
@@ -312,25 +312,24 @@ using StringRefs = std::vector<StringRef>;
/// Parts are taken from CityHash.
-inline doris::vectorized::UInt64 hash_len16(doris::vectorized::UInt64 u,
- doris::vectorized::UInt64 v) {
+inline doris::UInt64 hash_len16(doris::UInt64 u, doris::UInt64 v) {
return util_hash::HashLen16(u, v);
}
-inline doris::vectorized::UInt64 shift_mix(doris::vectorized::UInt64 val) {
+inline doris::UInt64 shift_mix(doris::UInt64 val) {
return val ^ (val >> 47);
}
-inline doris::vectorized::UInt64 rotate_by_at_least1(doris::vectorized::UInt64 val, int shift) {
+inline doris::UInt64 rotate_by_at_least1(doris::UInt64 val, int shift) {
return (val >> shift) | (val << (64 - shift));
}
inline size_t hash_less_than8(const char* data, size_t size) {
- static constexpr doris::vectorized::UInt64 k2 = 0x9ae16a3b2f90404fULL;
- static constexpr doris::vectorized::UInt64 k3 = 0xc949d7c7509e6557ULL;
+ static constexpr doris::UInt64 k2 = 0x9ae16a3b2f90404fULL;
+ static constexpr doris::UInt64 k3 = 0xc949d7c7509e6557ULL;
if (size >= 4) {
- doris::vectorized::UInt64 a = unaligned_load<uint32_t>(data);
+ doris::UInt64 a = unaligned_load<uint32_t>(data);
return hash_len16(size + (a << 3), unaligned_load<uint32_t>(data + size - 4));
}
@@ -359,14 +358,13 @@ inline size_t crc32_hash(const char* pos, size_t size) {
size_t res = -1ULL;
do {
- auto word = unaligned_load<doris::vectorized::UInt64>(pos);
+ auto word = unaligned_load<doris::UInt64>(pos);
res = _mm_crc32_u64(res, word);
pos += 8;
} while (pos + 8 < end);
- auto word =
- unaligned_load<doris::vectorized::UInt64>(end - 8); /// I'm not sure if this is normal.
+ auto word = unaligned_load<doris::UInt64>(end - 8); /// I'm not sure if this is normal.
res = _mm_crc32_u64(res, word);
return res;
diff --git a/be/src/core/type_limit.h b/be/src/core/type_limit.h
index 009dc60e4c8..824433a0319 100644
--- a/be/src/core/type_limit.h
+++ b/be/src/core/type_limit.h
@@ -55,37 +55,37 @@ struct type_limit<DecimalV2Value> {
};
template <>
-struct type_limit<vectorized::Decimal32> {
- static vectorized::Decimal32 max() { return 999999999; }
- static vectorized::Decimal32 min() { return -max(); }
+struct type_limit<Decimal32> {
+ static Decimal32 max() { return 999999999; }
+ static Decimal32 min() { return -max(); }
};
template <>
-struct type_limit<vectorized::Decimal64> {
- static vectorized::Decimal64 max() { return int64_t(999999999999999999ll); }
- static vectorized::Decimal64 min() { return -max(); }
+struct type_limit<Decimal64> {
+ static Decimal64 max() { return int64_t(999999999999999999ll); }
+ static Decimal64 min() { return -max(); }
};
template <>
-struct type_limit<vectorized::Decimal128V3> {
- static vectorized::Decimal128V3 max() {
+struct type_limit<Decimal128V3> {
+ static Decimal128V3 max() {
return (static_cast<int128_t>(999999999999999999ll) * 100000000000000000ll * 1000ll +
static_cast<int128_t>(99999999999999999ll) * 1000ll + 999ll);
}
- static vectorized::Decimal128V3 min() { return -max(); }
+ static Decimal128V3 min() { return -max(); }
};
template <>
-struct type_limit<vectorized::Decimal128V2> {
- static vectorized::Decimal128V2 max() { return DecimalV2Value::get_max_decimal().value(); }
- static vectorized::Decimal128V2 min() { return -max(); }
+struct type_limit<Decimal128V2> {
+ static Decimal128V2 max() { return DecimalV2Value::get_max_decimal().value(); }
+ static Decimal128V2 min() { return -max(); }
};
static wide::Int256 MAX_DECIMAL256_INT({18446744073709551615ul, 8607968719199866879ul,
532749306367912313ul, 1593091911132452277ul});
template <>
-struct type_limit<vectorized::Decimal256> {
- static vectorized::Decimal256 max() { return vectorized::Decimal256(MAX_DECIMAL256_INT); }
- static vectorized::Decimal256 min() { return vectorized::Decimal256(-MAX_DECIMAL256_INT); }
+struct type_limit<Decimal256> {
+ static Decimal256 max() { return Decimal256(MAX_DECIMAL256_INT); }
+ static Decimal256 min() { return Decimal256(-MAX_DECIMAL256_INT); }
};
template <>
diff --git a/be/src/core/types.h b/be/src/core/types.h
index 897e3041b91..f78c72a1645 100644
--- a/be/src/core/types.h
+++ b/be/src/core/types.h
@@ -46,8 +46,6 @@ struct StringRef;
using IPv4 = uint32_t;
using IPv6 = uint128_t;
-namespace vectorized {
-
/// Data types for representing elementary values from a database in RAM.
struct Null {};
@@ -577,37 +575,34 @@ struct NativeType<Decimal256> {
};
// NOLINTEND(readability-function-size)
-} // namespace vectorized
#include "common/compile_check_end.h"
} // namespace doris
/// Specialization of `std::hash` for the Decimal<T> types.
template <typename T>
-struct std::hash<doris::vectorized::Decimal<T>> {
- size_t operator()(const doris::vectorized::Decimal<T>& x) const { return hash<T>()(x.value); }
+struct std::hash<doris::Decimal<T>> {
+ size_t operator()(const doris::Decimal<T>& x) const { return hash<T>()(x.value); }
};
template <>
-struct std::hash<doris::vectorized::Decimal128V2> {
- size_t operator()(const doris::vectorized::Decimal128V2& x) const {
- return std::hash<doris::vectorized::Int64>()(x.value >> 64) ^
- std::hash<doris::vectorized::Int64>()(
- x.value & std::numeric_limits<doris::vectorized::UInt64>::max());
+struct std::hash<doris::Decimal128V2> {
+ size_t operator()(const doris::Decimal128V2& x) const {
+ return std::hash<doris::Int64>()(x.value >> 64) ^
+ std::hash<doris::Int64>()(x.value & std::numeric_limits<doris::UInt64>::max());
}
};
template <>
-struct std::hash<doris::vectorized::Decimal128V3> {
- size_t operator()(const doris::vectorized::Decimal128V3& x) const {
- return std::hash<doris::vectorized::Int64>()(x.value >> 64) ^
- std::hash<doris::vectorized::Int64>()(
- x.value & std::numeric_limits<doris::vectorized::UInt64>::max());
+struct std::hash<doris::Decimal128V3> {
+ size_t operator()(const doris::Decimal128V3& x) const {
+ return std::hash<doris::Int64>()(x.value >> 64) ^
+ std::hash<doris::Int64>()(x.value & std::numeric_limits<doris::UInt64>::max());
}
};
template <>
-struct std::hash<doris::vectorized::Decimal256> {
- size_t operator()(const doris::vectorized::Decimal256& x) const {
+struct std::hash<doris::Decimal256> {
+ size_t operator()(const doris::Decimal256& x) const {
return std::hash<uint64_t>()(x.value >> 192) ^ std::hash<uint64_t>()(x.value >> 128) ^
std::hash<uint64_t>()(x.value >> 64) ^
std::hash<uint64_t>()(x.value & std::numeric_limits<uint64_t>::max());
@@ -615,7 +610,7 @@ struct std::hash<doris::vectorized::Decimal256> {
};
template <typename T>
-struct fmt::formatter<doris::vectorized::Decimal<T>> {
+struct fmt::formatter<doris::Decimal<T>> {
constexpr auto parse(format_parse_context& ctx) {
const auto* it = ctx.begin();
const auto* end = ctx.end();
@@ -629,13 +624,13 @@ struct fmt::formatter<doris::vectorized::Decimal<T>> {
}
template <typename FormatContext>
- auto format(const doris::vectorized::Decimal<T>& value, FormatContext& ctx) const {
+ auto format(const doris::Decimal<T>& value, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{}", to_string(value.value));
}
};
-extern template struct fmt::formatter<doris::vectorized::Decimal32>;
-extern template struct fmt::formatter<doris::vectorized::Decimal64>;
-extern template struct fmt::formatter<doris::vectorized::Decimal128V2>;
-extern template struct fmt::formatter<doris::vectorized::Decimal128V3>;
-extern template struct fmt::formatter<doris::vectorized::Decimal256>;
+extern template struct fmt::formatter<doris::Decimal32>;
+extern template struct fmt::formatter<doris::Decimal64>;
+extern template struct fmt::formatter<doris::Decimal128V2>;
+extern template struct fmt::formatter<doris::Decimal128V3>;
+extern template struct fmt::formatter<doris::Decimal256>;
diff --git a/be/src/core/uint128.h b/be/src/core/uint128.h
index c6b4b779eb2..35d2ad2906f 100644
--- a/be/src/core/uint128.h
+++ b/be/src/core/uint128.h
@@ -30,7 +30,7 @@
#include "util/hash/city.h"
#include "util/sse_util.hpp"
-namespace doris::vectorized {
+namespace doris {
using UInt128 = wide::UInt128;
@@ -99,12 +99,12 @@ struct UInt136 {
};
#pragma pack()
-} // namespace doris::vectorized
+} // namespace doris
/// Overload hash for type casting
template <>
-struct std::hash<doris::vectorized::UInt128> {
- size_t operator()(const doris::vectorized::UInt128& u) const {
+struct std::hash<doris::UInt128> {
+ size_t operator()(const doris::UInt128& u) const {
return doris::util_hash::HashLen16(u.low(), u.high());
}
};
diff --git a/be/src/core/value/bitmap_value.h b/be/src/core/value/bitmap_value.h
index 501ada77bba..3b7b05d04a1 100644
--- a/be/src/core/value/bitmap_value.h
+++ b/be/src/core/value/bitmap_value.h
@@ -2316,7 +2316,7 @@ public:
}
//for function bitmap_to_array
- void to_array(vectorized::PaddedPODArray<int64_t>& data) const {
+ void to_array(PaddedPODArray<int64_t>& data) const {
switch (_type) {
case EMPTY:
break;
diff --git a/be/src/core/value/hll.cpp b/be/src/core/value/hll.cpp
index a8ccc8a8ca1..5f2852958d4 100644
--- a/be/src/core/value/hll.cpp
+++ b/be/src/core/value/hll.cpp
@@ -48,7 +48,7 @@ void HyperLogLog::_convert_explicit_to_register() {
_update_registers(value);
}
// clear _hash_set
- vectorized::flat_hash_set<uint64_t>().swap(_hash_set);
+ flat_hash_set<uint64_t>().swap(_hash_set);
}
// Change HLL_DATA_EXPLICIT to HLL_DATA_FULL directly, because HLL_DATA_SPARSE
diff --git a/be/src/core/value/hll.h b/be/src/core/value/hll.h
index 67f9cc1bb5d..78531f52111 100644
--- a/be/src/core/value/hll.h
+++ b/be/src/core/value/hll.h
@@ -282,7 +282,7 @@ private:
}
HllDataType _type = HLL_DATA_EMPTY;
- vectorized::flat_hash_set<uint64_t> _hash_set;
+ flat_hash_set<uint64_t> _hash_set;
// This field is much space consuming(HLL_REGISTERS_COUNT), we create
// it only when it is really needed.
diff --git a/be/src/core/value/ip_address_cidr.h b/be/src/core/value/ip_address_cidr.h
index 227384e675f..cae23db68e0 100644
--- a/be/src/core/value/ip_address_cidr.h
+++ b/be/src/core/value/ip_address_cidr.h
@@ -26,7 +26,6 @@
namespace doris {
#include "common/compile_check_begin.h"
-namespace vectorized {
static inline std::pair<UInt32, UInt32> apply_cidr_mask(UInt32 src, UInt8 bits_to_keep) {
if (bits_to_keep >= 8 * sizeof(UInt32)) {
return {src, src};
@@ -62,34 +61,32 @@ static inline void apply_cidr_mask(const char* __restrict src, char* __restrict
}
}
-} // namespace vectorized
-
class IPAddressVariant {
public:
explicit IPAddressVariant(std::string_view address_str) {
- vectorized::Int64 v4 = 0;
- if (vectorized::parse_ipv4_whole(address_str.begin(), address_str.end(),
- reinterpret_cast<unsigned char*>(&v4))) {
- _addr = static_cast<vectorized::UInt32>(v4);
+ Int64 v4 = 0;
+ if (parse_ipv4_whole(address_str.begin(), address_str.end(),
+ reinterpret_cast<unsigned char*>(&v4))) {
+ _addr = static_cast<UInt32>(v4);
} else {
_addr = IPv6AddrType();
// parse ipv6 in little-endian
- if (!vectorized::parse_ipv6_whole(address_str.begin(), address_str.end(),
- std::get<IPv6AddrType>(_addr).data())) {
+ if (!parse_ipv6_whole(address_str.begin(), address_str.end(),
+ std::get<IPv6AddrType>(_addr).data())) {
throw Exception(ErrorCode::INVALID_ARGUMENT, "Neither IPv4 nor IPv6 address: '{}'",
address_str);
}
}
}
- vectorized::UInt32 as_v4() const {
+ UInt32 as_v4() const {
if (const auto* val = std::get_if<IPv4AddrType>(&_addr)) {
return *val;
}
return 0;
}
- const vectorized::UInt8* as_v6() const {
+ const UInt8* as_v6() const {
if (const auto* val = std::get_if<IPv6AddrType>(&_addr)) {
return val->data();
}
@@ -97,15 +94,15 @@ public:
}
private:
- using IPv4AddrType = vectorized::UInt32;
- using IPv6AddrType = std::array<vectorized::UInt8, IPV6_BINARY_LENGTH>;
+ using IPv4AddrType = UInt32;
+ using IPv6AddrType = std::array<UInt8, IPV6_BINARY_LENGTH>;
std::variant<IPv4AddrType, IPv6AddrType> _addr;
};
struct IPAddressCIDR {
IPAddressVariant _address;
- vectorized::UInt8 _prefix;
+ UInt8 _prefix;
};
inline bool match_ipv4_subnet(uint32_t addr, uint32_t cidr_addr, uint8_t prefix) {
diff --git a/be/src/core/value/ipv4_value.h b/be/src/core/value/ipv4_value.h
index df4923b47c7..07a9df143d9 100644
--- a/be/src/core/value/ipv4_value.h
+++ b/be/src/core/value/ipv4_value.h
@@ -58,8 +58,8 @@ public:
while (end > begin && std::isspace(ipv4_str[end])) {
--end;
}
- if (!vectorized::parse_ipv4_whole(ipv4_str + begin, ipv4_str + end + 1,
- reinterpret_cast<unsigned char*>(&parse_value))) {
+ if (!parse_ipv4_whole(ipv4_str + begin, ipv4_str + end + 1,
+ reinterpret_cast<unsigned char*>(&parse_value))) {
return false;
}
value = static_cast<IPv4>(parse_value);
@@ -75,7 +75,7 @@ public:
char* start = buf;
char* end = buf;
const auto* src = reinterpret_cast<const unsigned char*>(&value);
- vectorized::format_ipv4(src, end);
+ format_ipv4(src, end);
size_t len = end - start;
return {buf, len};
}
@@ -93,15 +93,14 @@ public:
while (end > begin && std::isspace(ipv4_str[end])) {
--end;
}
- return vectorized::parse_ipv4_whole(ipv4_str + begin, ipv4_str + end + 1,
- reinterpret_cast<unsigned char*>(&parse_value));
+ return parse_ipv4_whole(ipv4_str + begin, ipv4_str + end + 1,
+ reinterpret_cast<unsigned char*>(&parse_value));
}
private:
IPv4 _value;
};
-namespace vectorized {
void inline map_ipv4_to_ipv6(IPv4 ipv4, UInt8* buf) {
unaligned_store<UInt64>(buf, 0x0000FFFF00000000ULL | static_cast<UInt64>(ipv4));
unaligned_store<UInt64>(buf + 8, 0);
@@ -112,7 +111,6 @@ IPv6 inline ipv4_to_ipv6(IPv4 ipv4) {
map_ipv4_to_ipv6(ipv4, reinterpret_cast<UInt8*>(&ipv6));
return ipv6;
}
-} // namespace vectorized
} // namespace doris
diff --git a/be/src/core/value/ipv6_value.h b/be/src/core/value/ipv6_value.h
index 0dffc7a1db2..16f07e198ff 100644
--- a/be/src/core/value/ipv6_value.h
+++ b/be/src/core/value/ipv6_value.h
@@ -67,8 +67,8 @@ public:
--end;
}
// parse and store in little-endian
- return vectorized::parse_ipv6_whole(ipv6_str + begin, ipv6_str + end + 1,
- reinterpret_cast<unsigned char*>(&value));
+ return parse_ipv6_whole(ipv6_str + begin, ipv6_str + end + 1,
+ reinterpret_cast<unsigned char*>(&value));
}
static bool from_string(IPv6& value, const std::string& ipv6_str) {
@@ -83,7 +83,7 @@ public:
char* end = buf;
auto* src = reinterpret_cast<unsigned char*>(&value);
// load and format in little-endian
- vectorized::format_ipv6(src, end);
+ format_ipv6(src, end);
size_t len = end - start;
return {buf, len};
}
@@ -101,8 +101,8 @@ public:
while (end > begin && std::isspace(ipv6_str[end])) {
--end;
}
- return vectorized::parse_ipv6_whole(ipv6_str + begin, ipv6_str + end + 1,
- reinterpret_cast<unsigned char*>(&value));
+ return parse_ipv6_whole(ipv6_str + begin, ipv6_str + end + 1,
+ reinterpret_cast<unsigned char*>(&value));
}
private:
diff --git a/be/src/core/value/timestamptz_value.cpp b/be/src/core/value/timestamptz_value.cpp
index f59d865059a..1226c3bf3cc 100644
--- a/be/src/core/value/timestamptz_value.cpp
+++ b/be/src/core/value/timestamptz_value.cpp
@@ -25,8 +25,7 @@ const TimestampTzValue TimestampTzValue::FIRST_DAY =
TimestampTzValue(DateV2Value<DateTimeV2ValueType>::FIRST_DAY.to_date_int_val());
bool TimestampTzValue::from_string(const StringRef& str, const cctz::time_zone* local_time_zone,
- vectorized::CastParameters& params, uint32_t to_scale) {
- using namespace vectorized;
+ CastParameters& params, uint32_t to_scale) {
if (params.is_strict) {
return CastToDatetimeV2::from_string_strict_mode<true, DataTimeCastEnumType::TIMESTAMP_TZ>(
str, _utc_dt, local_time_zone, to_scale, params);
@@ -93,8 +92,8 @@ bool TimestampTzValue::from_datetime(const DateV2Value<DateTimeV2ValueType>& ori
int tz_scale) {
PrimitiveTypeTraits<TYPE_DATETIMEV2>::CppType dt_value;
- PROPAGATE_FALSE(vectorized::transform_date_scale(tz_scale, dt_scale, dt_value,
- origin_dt.to_date_int_val()));
+ PROPAGATE_FALSE(
+ transform_date_scale(tz_scale, dt_scale, dt_value, origin_dt.to_date_int_val()));
DateV2Value<DateTimeV2ValueType> dt {dt_value};
@@ -115,8 +114,7 @@ bool TimestampTzValue::to_datetime(DateV2Value<DateTimeV2ValueType>& dt,
int tz_scale) const {
PrimitiveTypeTraits<TYPE_DATETIMEV2>::CppType dt_value;
- PROPAGATE_FALSE(vectorized::transform_date_scale(dt_scale, tz_scale, dt_value,
- _utc_dt.to_date_int_val()));
+ PROPAGATE_FALSE(transform_date_scale(dt_scale, tz_scale, dt_value, _utc_dt.to_date_int_val()));
dt = DateV2Value<DateTimeV2ValueType> {dt_value};
diff --git a/be/src/core/value/timestamptz_value.h b/be/src/core/value/timestamptz_value.h
index 8a9bb48eb7f..0f95ac7a152 100644
--- a/be/src/core/value/timestamptz_value.h
+++ b/be/src/core/value/timestamptz_value.h
@@ -31,9 +31,7 @@ namespace doris {
struct StringRef;
-namespace vectorized {
struct CastParameters;
-}
// TIMESTAMPTZ can be understood as a DATETIME type with timezone conversion functionality.
// Doris automatically handles timezone conversions internally.
@@ -65,7 +63,7 @@ public:
// Parses a string, CastParameters can control whether strict mode is used
bool from_string(const StringRef& str, const cctz::time_zone* local_time_zone,
- vectorized::CastParameters& params, uint32_t to_scale);
+ CastParameters& params, uint32_t to_scale);
// Converts from a datetime value
bool from_datetime(const DateV2Value<DateTimeV2ValueType>& dt,
diff --git a/be/src/core/value/vdatetime_value.cpp b/be/src/core/value/vdatetime_value.cpp
index b9c528d08c6..bdec05028f8 100644
--- a/be/src/core/value/vdatetime_value.cpp
+++ b/be/src/core/value/vdatetime_value.cpp
@@ -87,24 +87,24 @@ bool VecDateTimeValue::check_date(uint32_t year, uint32_t month, uint32_t day) {
}
bool VecDateTimeValue::from_date_str(const char* date_str, size_t len) {
- vectorized::CastParameters params;
+ CastParameters params;
if (type() == TIME_DATE) {
- return vectorized::CastToDateOrDatetime::from_string_non_strict_mode<false>(
- {date_str, len}, *this, nullptr, params);
+ return CastToDateOrDatetime::from_string_non_strict_mode<false>({date_str, len}, *this,
+ nullptr, params);
} else {
- return vectorized::CastToDateOrDatetime::from_string_non_strict_mode<true>(
- {date_str, len}, *this, nullptr, params);
+ return CastToDateOrDatetime::from_string_non_strict_mode<true>({date_str, len}, *this,
+ nullptr, params);
}
}
bool VecDateTimeValue::from_date_str(const char* date_str, size_t len,
const cctz::time_zone& local_time_zone) {
- vectorized::CastParameters params;
+ CastParameters params;
if (type() == TIME_DATE) {
- return vectorized::CastToDateOrDatetime::from_string_non_strict_mode<false>(
- {date_str, len}, *this, &local_time_zone, params);
+ return CastToDateOrDatetime::from_string_non_strict_mode<false>({date_str, len}, *this,
+ &local_time_zone, params);
} else {
- return vectorized::CastToDateOrDatetime::from_string_non_strict_mode<true>(
- {date_str, len}, *this, &local_time_zone, params);
+ return CastToDateOrDatetime::from_string_non_strict_mode<true>({date_str, len}, *this,
+ &local_time_zone, params);
}
}
@@ -1806,13 +1806,12 @@ void DateV2Value<T>::format_datetime(uint32_t* date_val, bool* carry_bits) const
template <typename T>
bool DateV2Value<T>::from_date_str(const char* date_str, size_t len, int scale /* = -1*/,
bool convert_zero) {
- vectorized::CastParameters params;
+ CastParameters params;
if constexpr (is_datetime) {
- return vectorized::CastToDatetimeV2::from_string_non_strict_mode({date_str, len}, *this,
- nullptr, scale, params);
+ return CastToDatetimeV2::from_string_non_strict_mode({date_str, len}, *this, nullptr, scale,
+ params);
} else {
- return vectorized::CastToDateV2::from_string_non_strict_mode({date_str, len}, *this,
- nullptr, params);
+ return CastToDateV2::from_string_non_strict_mode({date_str, len}, *this, nullptr, params);
}
}
@@ -1820,13 +1819,13 @@ template <typename T>
bool DateV2Value<T>::from_date_str(const char* date_str, size_t len,
const cctz::time_zone& local_time_zone, int scale /* = -1*/,
bool convert_zero) {
- vectorized::CastParameters params;
+ CastParameters params;
if constexpr (is_datetime) {
- return vectorized::CastToDatetimeV2::from_string_non_strict_mode(
- {date_str, len}, *this, &local_time_zone, scale, params);
+ return CastToDatetimeV2::from_string_non_strict_mode({date_str, len}, *this,
+ &local_time_zone, scale, params);
} else {
- return vectorized::CastToDateV2::from_string_non_strict_mode({date_str, len}, *this,
- &local_time_zone, params);
+ return CastToDateV2::from_string_non_strict_mode({date_str, len}, *this, &local_time_zone,
+ params);
}
}
diff --git a/be/src/core/value/vdatetime_value.h b/be/src/core/value/vdatetime_value.h
index a6fd4c7dc3c..e6cc43f285c 100644
--- a/be/src/core/value/vdatetime_value.h
+++ b/be/src/core/value/vdatetime_value.h
@@ -42,11 +42,11 @@ namespace cctz {
class time_zone;
} // namespace cctz
-namespace doris::vectorized {
+namespace doris {
class DataTypeDateTime;
class DataTypeDateV2;
class DataTypeDateTimeV2;
-} // namespace doris::vectorized
+} // namespace doris
namespace doris {
#include "common/compile_check_avoid_begin.h"
@@ -1805,19 +1805,19 @@ struct DateTraits {};
template <>
struct DateTraits<int64_t> {
using T = VecDateTimeValue;
- using DateType = vectorized::DataTypeDateTime;
+ using DateType = DataTypeDateTime;
};
template <>
struct DateTraits<uint32_t> {
using T = DateV2Value<DateV2ValueType>;
- using DateType = vectorized::DataTypeDateV2;
+ using DateType = DataTypeDateV2;
};
template <>
struct DateTraits<uint64_t> {
using T = DateV2Value<DateTimeV2ValueType>;
- using DateType = vectorized::DataTypeDateTimeV2;
+ using DateType = DataTypeDateTimeV2;
};
#include "common/compile_check_avoid_end.h"
} // namespace doris
diff --git a/be/src/exec/common/agg_utils.h b/be/src/exec/common/agg_utils.h
index 10934ed5d0a..fada1b49e30 100644
--- a/be/src/exec/common/agg_utils.h
+++ b/be/src/exec/common/agg_utils.h
@@ -29,140 +29,115 @@
namespace doris {
template <typename T>
-using AggData = PHHashMap<T, vectorized::AggregateDataPtr, HashCRC32<T>>;
+using AggData = PHHashMap<T, AggregateDataPtr, HashCRC32<T>>;
template <typename T>
-using AggDataNullable = vectorized::DataWithNullKey<AggData<T>>;
+using AggDataNullable = DataWithNullKey<AggData<T>>;
-using AggregatedDataWithoutKey = vectorized::AggregateDataPtr;
-using AggregatedDataWithStringKey = PHHashMap<StringRef, vectorized::AggregateDataPtr>;
-using AggregatedDataWithShortStringKey = StringHashMap<vectorized::AggregateDataPtr>;
+using AggregatedDataWithoutKey = AggregateDataPtr;
+using AggregatedDataWithStringKey = PHHashMap<StringRef, AggregateDataPtr>;
+using AggregatedDataWithShortStringKey = StringHashMap<AggregateDataPtr>;
using AggregatedDataWithUInt32KeyPhase2 =
- PHHashMap<vectorized::UInt32, vectorized::AggregateDataPtr,
- HashMixWrapper<vectorized::UInt32>>;
+ PHHashMap<UInt32, AggregateDataPtr, HashMixWrapper<UInt32>>;
using AggregatedDataWithUInt64KeyPhase2 =
- PHHashMap<vectorized::UInt64, vectorized::AggregateDataPtr,
- HashMixWrapper<vectorized::UInt64>>;
+ PHHashMap<UInt64, AggregateDataPtr, HashMixWrapper<UInt64>>;
using AggregatedDataWithNullableUInt32KeyPhase2 =
- vectorized::DataWithNullKey<AggregatedDataWithUInt32KeyPhase2>;
+ DataWithNullKey<AggregatedDataWithUInt32KeyPhase2>;
using AggregatedDataWithNullableUInt64KeyPhase2 =
- vectorized::DataWithNullKey<AggregatedDataWithUInt64KeyPhase2>;
-using AggregatedDataWithNullableShortStringKey =
- vectorized::DataWithNullKey<AggregatedDataWithShortStringKey>;
+ DataWithNullKey<AggregatedDataWithUInt64KeyPhase2>;
+using AggregatedDataWithNullableShortStringKey = DataWithNullKey<AggregatedDataWithShortStringKey>;
using AggregatedMethodVariants = std::variant<
- std::monostate, vectorized::MethodSerialized<AggregatedDataWithStringKey>,
- vectorized::MethodOneNumber<vectorized::UInt8, AggData<vectorized::UInt8>>,
- vectorized::MethodOneNumber<vectorized::UInt16, AggData<vectorized::UInt16>>,
- vectorized::MethodOneNumber<vectorized::UInt32, AggData<vectorized::UInt32>>,
- vectorized::MethodOneNumber<vectorized::UInt64, AggData<vectorized::UInt64>>,
- vectorized::MethodStringNoCache<AggregatedDataWithShortStringKey>,
- vectorized::MethodOneNumber<vectorized::UInt128, AggData<vectorized::UInt128>>,
- vectorized::MethodOneNumber<vectorized::UInt256, AggData<vectorized::UInt256>>,
- vectorized::MethodOneNumber<vectorized::UInt32, AggregatedDataWithUInt32KeyPhase2>,
- vectorized::MethodOneNumber<vectorized::UInt64, AggregatedDataWithUInt64KeyPhase2>,
- vectorized::MethodSingleNullableColumn<
- vectorized::MethodOneNumber<vectorized::UInt8, AggDataNullable<vectorized::UInt8>>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt16, AggDataNullable<vectorized::UInt16>>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt32, AggDataNullable<vectorized::UInt32>>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt64, AggDataNullable<vectorized::UInt64>>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt32, AggregatedDataWithNullableUInt32KeyPhase2>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt64, AggregatedDataWithNullableUInt64KeyPhase2>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt128, AggDataNullable<vectorized::UInt128>>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt256, AggDataNullable<vectorized::UInt256>>>,
- vectorized::MethodSingleNullableColumn<
- vectorized::MethodStringNoCache<AggregatedDataWithNullableShortStringKey>>,
- vectorized::MethodKeysFixed<AggData<vectorized::UInt64>>,
- vectorized::MethodKeysFixed<AggData<vectorized::UInt72>>,
- vectorized::MethodKeysFixed<AggData<vectorized::UInt96>>,
- vectorized::MethodKeysFixed<AggData<vectorized::UInt104>>,
- vectorized::MethodKeysFixed<AggData<vectorized::UInt128>>,
- vectorized::MethodKeysFixed<AggData<vectorized::UInt136>>,
- vectorized::MethodKeysFixed<AggData<vectorized::UInt256>>>;
+ std::monostate, MethodSerialized<AggregatedDataWithStringKey>,
+ MethodOneNumber<UInt8, AggData<UInt8>>, MethodOneNumber<UInt16, AggData<UInt16>>,
+ MethodOneNumber<UInt32, AggData<UInt32>>, MethodOneNumber<UInt64, AggData<UInt64>>,
+ MethodStringNoCache<AggregatedDataWithShortStringKey>,
+ MethodOneNumber<UInt128, AggData<UInt128>>, MethodOneNumber<UInt256, AggData<UInt256>>,
+ MethodOneNumber<UInt32, AggregatedDataWithUInt32KeyPhase2>,
+ MethodOneNumber<UInt64, AggregatedDataWithUInt64KeyPhase2>,
+ MethodSingleNullableColumn<MethodOneNumber<UInt8, AggDataNullable<UInt8>>>,
+ MethodSingleNullableColumn<MethodOneNumber<UInt16, AggDataNullable<UInt16>>>,
+ MethodSingleNullableColumn<MethodOneNumber<UInt32, AggDataNullable<UInt32>>>,
+ MethodSingleNullableColumn<MethodOneNumber<UInt64, AggDataNullable<UInt64>>>,
+ MethodSingleNullableColumn<
+ MethodOneNumber<UInt32, AggregatedDataWithNullableUInt32KeyPhase2>>,
+ MethodSingleNullableColumn<
+ MethodOneNumber<UInt64, AggregatedDataWithNullableUInt64KeyPhase2>>,
+ MethodSingleNullableColumn<MethodOneNumber<UInt128, AggDataNullable<UInt128>>>,
+ MethodSingleNullableColumn<MethodOneNumber<UInt256, AggDataNullable<UInt256>>>,
+ MethodSingleNullableColumn<MethodStringNoCache<AggregatedDataWithNullableShortStringKey>>,
+ MethodKeysFixed<AggData<UInt64>>, MethodKeysFixed<AggData<UInt72>>,
+ MethodKeysFixed<AggData<UInt96>>, MethodKeysFixed<AggData<UInt104>>,
+ MethodKeysFixed<AggData<UInt128>>, MethodKeysFixed<AggData<UInt136>>,
+ MethodKeysFixed<AggData<UInt256>>>;
struct AggregatedDataVariants
- : public DataVariants<AggregatedMethodVariants, vectorized::MethodSingleNullableColumn,
- vectorized::MethodOneNumber, vectorized::DataWithNullKey> {
+ : public DataVariants<AggregatedMethodVariants, MethodSingleNullableColumn, MethodOneNumber,
+ DataWithNullKey> {
AggregatedDataWithoutKey without_key = nullptr;
- void init(const std::vector<vectorized::DataTypePtr>& data_types, HashKeyType type) {
+ void init(const std::vector<DataTypePtr>& data_types, HashKeyType type) {
bool nullable = data_types.size() == 1 && data_types[0]->is_nullable();
switch (type) {
case HashKeyType::without_key:
break;
case HashKeyType::serialized:
- method_variant.emplace<vectorized::MethodSerialized<AggregatedDataWithStringKey>>();
+ method_variant.emplace<MethodSerialized<AggregatedDataWithStringKey>>();
break;
case HashKeyType::int8_key:
- emplace_single<vectorized::UInt8, AggData<vectorized::UInt8>>(nullable);
+ emplace_single<UInt8, AggData<UInt8>>(nullable);
break;
case HashKeyType::int16_key:
- emplace_single<vectorized::UInt16, AggData<vectorized::UInt16>>(nullable);
+ emplace_single<UInt16, AggData<UInt16>>(nullable);
break;
case HashKeyType::int32_key:
- emplace_single<vectorized::UInt32, AggData<vectorized::UInt32>>(nullable);
+ emplace_single<UInt32, AggData<UInt32>>(nullable);
break;
case HashKeyType::int32_key_phase2:
- emplace_single<vectorized::UInt32, AggregatedDataWithUInt32KeyPhase2>(nullable);
+ emplace_single<UInt32, AggregatedDataWithUInt32KeyPhase2>(nullable);
break;
case HashKeyType::int64_key:
- emplace_single<vectorized::UInt64, AggData<vectorized::UInt64>>(nullable);
+ emplace_single<UInt64, AggData<UInt64>>(nullable);
break;
case HashKeyType::int64_key_phase2:
- emplace_single<vectorized::UInt64, AggregatedDataWithUInt64KeyPhase2>(nullable);
+ emplace_single<UInt64, AggregatedDataWithUInt64KeyPhase2>(nullable);
break;
case HashKeyType::int128_key:
- emplace_single<vectorized::UInt128, AggData<vectorized::UInt128>>(nullable);
+ emplace_single<UInt128, AggData<UInt128>>(nullable);
break;
case HashKeyType::int256_key:
- emplace_single<vectorized::UInt256, AggData<vectorized::UInt256>>(nullable);
+ emplace_single<UInt256, AggData<UInt256>>(nullable);
break;
case HashKeyType::string_key:
if (nullable) {
- method_variant.emplace<
- vectorized::MethodSingleNullableColumn<vectorized::MethodStringNoCache<
- AggregatedDataWithNullableShortStringKey>>>();
+ method_variant.emplace<MethodSingleNullableColumn<
+ MethodStringNoCache<AggregatedDataWithNullableShortStringKey>>>();
} else {
- method_variant.emplace<
- vectorized::MethodStringNoCache<AggregatedDataWithShortStringKey>>();
+ method_variant.emplace<MethodStringNoCache<AggregatedDataWithShortStringKey>>();
}
break;
case HashKeyType::fixed64:
- method_variant.emplace<vectorized::MethodKeysFixed<AggData<vectorized::UInt64>>>(
- get_key_sizes(data_types));
+ method_variant.emplace<MethodKeysFixed<AggData<UInt64>>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed72:
- method_variant.emplace<vectorized::MethodKeysFixed<AggData<vectorized::UInt72>>>(
- get_key_sizes(data_types));
+ method_variant.emplace<MethodKeysFixed<AggData<UInt72>>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed96:
- method_variant.emplace<vectorized::MethodKeysFixed<AggData<vectorized::UInt96>>>(
- get_key_sizes(data_types));
+ method_variant.emplace<MethodKeysFixed<AggData<UInt96>>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed104:
- method_variant.emplace<vectorized::MethodKeysFixed<AggData<vectorized::UInt104>>>(
- get_key_sizes(data_types));
+ method_variant.emplace<MethodKeysFixed<AggData<UInt104>>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed128:
- method_variant.emplace<vectorized::MethodKeysFixed<AggData<vectorized::UInt128>>>(
- get_key_sizes(data_types));
+ method_variant.emplace<MethodKeysFixed<AggData<UInt128>>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed136:
- method_variant.emplace<vectorized::MethodKeysFixed<AggData<vectorized::UInt136>>>(
- get_key_sizes(data_types));
+ method_variant.emplace<MethodKeysFixed<AggData<UInt136>>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed256:
- method_variant.emplace<vectorized::MethodKeysFixed<AggData<vectorized::UInt256>>>(
- get_key_sizes(data_types));
+ method_variant.emplace<MethodKeysFixed<AggData<UInt256>>>(get_key_sizes(data_types));
break;
default:
throw Exception(ErrorCode::INTERNAL_ERROR,
@@ -172,7 +147,7 @@ struct AggregatedDataVariants
};
using AggregatedDataVariantsUPtr = std::unique_ptr<AggregatedDataVariants>;
-using ArenaUPtr = std::unique_ptr<vectorized::Arena>;
+using ArenaUPtr = std::unique_ptr<Arena>;
struct AggregateDataContainer {
public:
@@ -182,7 +157,7 @@ public:
int64_t memory_usage() const { return _arena_pool.size(); }
template <typename KeyType>
- vectorized::AggregateDataPtr append_data(const KeyType& key) {
+ AggregateDataPtr append_data(const KeyType& key) {
DCHECK_EQ(sizeof(KeyType), _size_of_key);
// SUB_CONTAINER_CAPACITY should add a new sub container, and also expand when it is zero
if (UNLIKELY(_index_in_sub_container % SUB_CONTAINER_CAPACITY == 0)) {
@@ -238,7 +213,7 @@ public:
[index_in_sub_container];
}
- vectorized::AggregateDataPtr get_aggregate_data() {
+ AggregateDataPtr get_aggregate_data() {
return &(container->_value_containers[sub_container_index]
[container->_size_of_aggregate_states *
index_in_sub_container]);
@@ -305,8 +280,8 @@ private:
_current_keys = _arena_pool.alloc(_size_of_key * SUB_CONTAINER_CAPACITY);
_key_containers.emplace_back(_current_keys);
- _current_agg_data = (vectorized::AggregateDataPtr)_arena_pool.alloc(
- _size_of_aggregate_states * SUB_CONTAINER_CAPACITY);
+ _current_agg_data = (AggregateDataPtr)_arena_pool.alloc(_size_of_aggregate_states *
+ SUB_CONTAINER_CAPACITY);
_value_containers.emplace_back(_current_agg_data);
} catch (...) {
if (_current_keys) {
@@ -322,10 +297,10 @@ private:
}
static constexpr uint32_t SUB_CONTAINER_CAPACITY = 8192;
- vectorized::Arena _arena_pool;
+ Arena _arena_pool;
std::vector<char*> _key_containers;
- std::vector<vectorized::AggregateDataPtr> _value_containers;
- vectorized::AggregateDataPtr _current_agg_data = nullptr;
+ std::vector<AggregateDataPtr> _value_containers;
+ AggregateDataPtr _current_agg_data = nullptr;
char* _current_keys = nullptr;
size_t _size_of_key {};
size_t _size_of_aggregate_states {};
diff --git a/be/src/exec/common/arrow_column_to_doris_column.cpp b/be/src/exec/common/arrow_column_to_doris_column.cpp
index 2d44e4c5c46..cd6e9595967 100644
--- a/be/src/exec/common/arrow_column_to_doris_column.cpp
+++ b/be/src/exec/common/arrow_column_to_doris_column.cpp
@@ -71,7 +71,7 @@
M(::arrow::Type::DATE64, TYPE_DATETIME) \
M(::arrow::Type::DECIMAL, TYPE_DECIMALV2)
-namespace doris::vectorized {
+namespace doris {
PrimitiveType arrow_type_to_primitive_type(::arrow::Type::type type) {
switch (type) {
@@ -106,4 +106,4 @@ Status arrow_column_to_doris_column(const arrow::Array* arrow_column, size_t arr
return Status::OK();
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/common/arrow_column_to_doris_column.h b/be/src/exec/common/arrow_column_to_doris_column.h
index d266d883612..d25c1ff0797 100644
--- a/be/src/exec/common/arrow_column_to_doris_column.h
+++ b/be/src/exec/common/arrow_column_to_doris_column.h
@@ -35,7 +35,7 @@ class time_zone;
// This files contains some utilities to convert Doris internal
// data format from Apache Arrow format.
-namespace doris::vectorized {
+namespace doris {
PrimitiveType arrow_type_to_primitive_type(::arrow::Type::type type);
@@ -48,4 +48,4 @@ Status arrow_column_to_doris_column(const arrow::Array* arrow_column, size_t arr
ColumnPtr& doris_column, const DataTypePtr& type,
size_t num_elements, const cctz::time_zone& ctz);
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/common/bit_helpers.h b/be/src/exec/common/bit_helpers.h
index 13db63e4df5..10265b17594 100644
--- a/be/src/exec/common/bit_helpers.h
+++ b/be/src/exec/common/bit_helpers.h
@@ -20,7 +20,7 @@
#pragma once
-namespace doris::vectorized {
+namespace doris {
template <typename T>
inline uint32_t get_leading_zero_bits_unsafe(T x) {
@@ -42,4 +42,4 @@ inline uint32_t bit_scan_reverse(T x) {
get_leading_zero_bits_unsafe(x);
}
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/exec/common/columns_hashing.h b/be/src/exec/common/columns_hashing.h
index c934f6ddcd6..3ed5a8d58b4 100644
--- a/be/src/exec/common/columns_hashing.h
+++ b/be/src/exec/common/columns_hashing.h
@@ -33,7 +33,7 @@
#include "exprs/aggregate/aggregate_function.h"
#include "util/unaligned.h"
-namespace doris::vectorized {
+namespace doris {
using Sizes = std::vector<size_t>;
@@ -164,4 +164,4 @@ struct HashMethodSingleLowNullableColumn : public SingleColumnMethod {
};
} // namespace ColumnsHashing
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/common/columns_hashing_impl.h b/be/src/exec/common/columns_hashing_impl.h
index a9992775f3f..d6758c163c3 100644
--- a/be/src/exec/common/columns_hashing_impl.h
+++ b/be/src/exec/common/columns_hashing_impl.h
@@ -26,7 +26,7 @@
#include "exec/common/hash_table/ph_hash_map.h"
#include "exec/common/hash_table/ph_hash_set.h"
-namespace doris::vectorized {
+namespace doris {
namespace ColumnsHashing {
@@ -153,4 +153,4 @@ protected:
} // namespace ColumnsHashing
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/common/data_gen_functions/vdata_gen_function_inf.h b/be/src/exec/common/data_gen_functions/vdata_gen_function_inf.h
index a7da6cc8bd0..2fc47bb995d 100644
--- a/be/src/exec/common/data_gen_functions/vdata_gen_function_inf.h
+++ b/be/src/exec/common/data_gen_functions/vdata_gen_function_inf.h
@@ -29,8 +29,6 @@ class RuntimeState;
class Status;
class TScanRangeParams;
-namespace pipeline {
-
class VDataGenFunctionInf {
public:
VDataGenFunctionInf(TupleId tuple_id, const TupleDescriptor* tuple_desc)
@@ -40,7 +38,7 @@ public:
// Should set function parameters in this method
virtual Status set_scan_ranges(const std::vector<TScanRangeParams>& scan_ranges) = 0;
- virtual Status get_next(RuntimeState* state, vectorized::Block* block, bool* eos) = 0;
+ virtual Status get_next(RuntimeState* state, Block* block, bool* eos) = 0;
Status close(RuntimeState* state) { return Status::OK(); }
void set_tuple_desc(const TupleDescriptor* tuple_desc) { _tuple_desc = tuple_desc; }
@@ -51,6 +49,4 @@ protected:
const TupleDescriptor* _tuple_desc = nullptr;
};
-} // namespace pipeline
-
} // namespace doris
diff --git a/be/src/exec/common/data_gen_functions/vnumbers_tvf.cpp b/be/src/exec/common/data_gen_functions/vnumbers_tvf.cpp
index efff3531f29..d1d4f91270f 100644
--- a/be/src/exec/common/data_gen_functions/vnumbers_tvf.cpp
+++ b/be/src/exec/common/data_gen_functions/vnumbers_tvf.cpp
@@ -34,17 +34,17 @@
#include "runtime/descriptors.h"
#include "runtime/runtime_state.h"
-namespace doris::pipeline {
+namespace doris {
VNumbersTVF::VNumbersTVF(TupleId tuple_id, const TupleDescriptor* tuple_desc)
: VDataGenFunctionInf(tuple_id, tuple_desc) {}
-Status VNumbersTVF::get_next(RuntimeState* state, vectorized::Block* block, bool* eos) {
+Status VNumbersTVF::get_next(RuntimeState* state, Block* block, bool* eos) {
DCHECK(block->rows() == 0);
RETURN_IF_CANCELLED(state);
bool mem_reuse = block->mem_reuse();
int batch_size = state->batch_size();
- std::vector<vectorized::MutableColumnPtr> columns(_slot_num);
+ std::vector<MutableColumnPtr> columns(_slot_num);
// now only support one column for tvf numbers
for (int i = 0; i < _slot_num; ++i) {
@@ -58,7 +58,7 @@ Status VNumbersTVF::get_next(RuntimeState* state, vectorized::Block* block, bool
*eos = true;
continue;
}
- auto* column_res = assert_cast<vectorized::ColumnInt64*>(columns[i].get()); //BIGINT
+ auto* column_res = assert_cast<ColumnInt64*>(columns[i].get()); //BIGINT
int64_t end_value = std::min((int64_t)(_next_number + batch_size), _total_numbers);
if (_use_const) {
column_res->insert_many_vals(_const_value, end_value - _next_number);
@@ -77,9 +77,9 @@ Status VNumbersTVF::get_next(RuntimeState* state, vectorized::Block* block, bool
} else {
size_t n_columns = 0;
for (const auto* slot_desc : _tuple_desc->slots()) {
- block->insert(vectorized::ColumnWithTypeAndName(std::move(columns[n_columns++]),
- slot_desc->get_data_type_ptr(),
- slot_desc->col_name()));
+ block->insert(ColumnWithTypeAndName(std::move(columns[n_columns++]),
+ slot_desc->get_data_type_ptr(),
+ slot_desc->col_name()));
}
}
return Status::OK();
@@ -96,4 +96,4 @@ Status VNumbersTVF::set_scan_ranges(const std::vector<TScanRangeParams>& scan_ra
return Status::OK();
}
-} // namespace doris::pipeline
+} // namespace doris
diff --git a/be/src/exec/common/data_gen_functions/vnumbers_tvf.h b/be/src/exec/common/data_gen_functions/vnumbers_tvf.h
index f207c1fd88e..70d4b016fb7 100644
--- a/be/src/exec/common/data_gen_functions/vnumbers_tvf.h
+++ b/be/src/exec/common/data_gen_functions/vnumbers_tvf.h
@@ -30,7 +30,6 @@ class RuntimeState;
class Status;
class TScanRangeParams;
-namespace pipeline {
class Block;
class VNumbersTVF : public VDataGenFunctionInf {
@@ -38,7 +37,7 @@ public:
VNumbersTVF(TupleId tuple_id, const TupleDescriptor* tuple_desc);
~VNumbersTVF() override = default;
- Status get_next(RuntimeState* state, vectorized::Block* block, bool* eos) override;
+ Status get_next(RuntimeState* state, Block* block, bool* eos) override;
Status set_scan_ranges(const std::vector<TScanRangeParams>& scan_ranges) override;
@@ -51,6 +50,4 @@ private:
int64_t _next_number = 0;
};
-} // namespace pipeline
-
} // namespace doris
diff --git a/be/src/exec/common/distinct_agg_utils.h b/be/src/exec/common/distinct_agg_utils.h
index 44b65aa5f1c..9fcdcba3a4e 100644
--- a/be/src/exec/common/distinct_agg_utils.h
+++ b/be/src/exec/common/distinct_agg_utils.h
@@ -36,13 +36,13 @@ struct DistinctHashSetType {
};
template <>
-struct DistinctHashSetType<vectorized::UInt8> {
- using HashSet = SmallFixedSizeHashSet<vectorized::UInt8>;
+struct DistinctHashSetType<UInt8> {
+ using HashSet = SmallFixedSizeHashSet<UInt8>;
};
template <>
-struct DistinctHashSetType<vectorized::Int8> {
- using HashSet = SmallFixedSizeHashSet<vectorized::Int8>;
+struct DistinctHashSetType<Int8> {
+ using HashSet = SmallFixedSizeHashSet<Int8>;
};
template <typename T>
@@ -51,13 +51,13 @@ struct DistinctPhase2HashSetType {
};
template <>
-struct DistinctPhase2HashSetType<vectorized::UInt8> {
- using HashSet = SmallFixedSizeHashSet<vectorized::UInt8>;
+struct DistinctPhase2HashSetType<UInt8> {
+ using HashSet = SmallFixedSizeHashSet<UInt8>;
};
template <>
-struct DistinctPhase2HashSetType<vectorized::Int8> {
- using HashSet = SmallFixedSizeHashSet<vectorized::Int8>;
+struct DistinctPhase2HashSetType<Int8> {
+ using HashSet = SmallFixedSizeHashSet<Int8>;
};
template <typename T>
@@ -72,115 +72,101 @@ using DistinctDataWithStringKey = PHHashSet<StringRef>;
using DistinctDataWithShortStringKey = PHHashSet<StringRef>;
using DistinctMethodVariants = std::variant<
- std::monostate, vectorized::MethodSerialized<DistinctDataWithStringKey>,
- vectorized::MethodOneNumber<vectorized::UInt8, DistinctData<vectorized::UInt8>>,
- vectorized::MethodOneNumber<vectorized::UInt16, DistinctData<vectorized::UInt16>>,
- vectorized::MethodOneNumber<vectorized::UInt32, DistinctData<vectorized::UInt32>>,
- vectorized::MethodOneNumber<vectorized::UInt64, DistinctData<vectorized::UInt64>>,
- vectorized::MethodStringNoCache<DistinctDataWithShortStringKey>,
- vectorized::MethodOneNumber<vectorized::UInt128, DistinctData<vectorized::UInt128>>,
- vectorized::MethodOneNumber<vectorized::UInt256, DistinctData<vectorized::UInt256>>,
- vectorized::MethodOneNumber<vectorized::UInt32, DistinctDataPhase2<vectorized::UInt32>>,
- vectorized::MethodOneNumber<vectorized::UInt64, DistinctDataPhase2<vectorized::UInt64>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt8, vectorized::DataWithNullKey<DistinctData<vectorized::UInt8>>>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt16, vectorized::DataWithNullKey<DistinctData<vectorized::UInt16>>>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt32, vectorized::DataWithNullKey<DistinctData<vectorized::UInt32>>>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt64, vectorized::DataWithNullKey<DistinctData<vectorized::UInt64>>>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt32,
- vectorized::DataWithNullKey<DistinctDataPhase2<vectorized::UInt32>>>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt64,
- vectorized::DataWithNullKey<DistinctDataPhase2<vectorized::UInt64>>>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt128,
- vectorized::DataWithNullKey<DistinctData<vectorized::UInt128>>>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodOneNumber<
- vectorized::UInt256,
- vectorized::DataWithNullKey<DistinctData<vectorized::UInt256>>>>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodStringNoCache<
- vectorized::DataWithNullKey<DistinctDataWithShortStringKey>>>,
- vectorized::MethodKeysFixed<DistinctData<vectorized::UInt64>>,
- vectorized::MethodKeysFixed<DistinctData<vectorized::UInt72>>,
- vectorized::MethodKeysFixed<DistinctData<vectorized::UInt96>>,
- vectorized::MethodKeysFixed<DistinctData<vectorized::UInt104>>,
- vectorized::MethodKeysFixed<DistinctData<vectorized::UInt128>>,
- vectorized::MethodKeysFixed<DistinctData<vectorized::UInt136>>,
- vectorized::MethodKeysFixed<DistinctData<vectorized::UInt256>>>;
+ std::monostate, MethodSerialized<DistinctDataWithStringKey>,
+ MethodOneNumber<UInt8, DistinctData<UInt8>>, MethodOneNumber<UInt16, DistinctData<UInt16>>,
+ MethodOneNumber<UInt32, DistinctData<UInt32>>,
+ MethodOneNumber<UInt64, DistinctData<UInt64>>,
+ MethodStringNoCache<DistinctDataWithShortStringKey>,
+ MethodOneNumber<UInt128, DistinctData<UInt128>>,
+ MethodOneNumber<UInt256, DistinctData<UInt256>>,
+ MethodOneNumber<UInt32, DistinctDataPhase2<UInt32>>,
+ MethodOneNumber<UInt64, DistinctDataPhase2<UInt64>>,
+ MethodSingleNullableColumn<MethodOneNumber<UInt8, DataWithNullKey<DistinctData<UInt8>>>>,
+ MethodSingleNullableColumn<MethodOneNumber<UInt16, DataWithNullKey<DistinctData<UInt16>>>>,
+ MethodSingleNullableColumn<MethodOneNumber<UInt32, DataWithNullKey<DistinctData<UInt32>>>>,
+ MethodSingleNullableColumn<MethodOneNumber<UInt64, DataWithNullKey<DistinctData<UInt64>>>>,
+ MethodSingleNullableColumn<
+ MethodOneNumber<UInt32, DataWithNullKey<DistinctDataPhase2<UInt32>>>>,
+ MethodSingleNullableColumn<
+ MethodOneNumber<UInt64, DataWithNullKey<DistinctDataPhase2<UInt64>>>>,
+ MethodSingleNullableColumn<
+ MethodOneNumber<UInt128, DataWithNullKey<DistinctData<UInt128>>>>,
+ MethodSingleNullableColumn<
+ MethodOneNumber<UInt256, DataWithNullKey<DistinctData<UInt256>>>>,
+ MethodSingleNullableColumn<
+ MethodStringNoCache<DataWithNullKey<DistinctDataWithShortStringKey>>>,
+ MethodKeysFixed<DistinctData<UInt64>>, MethodKeysFixed<DistinctData<UInt72>>,
+ MethodKeysFixed<DistinctData<UInt96>>, MethodKeysFixed<DistinctData<UInt104>>,
+ MethodKeysFixed<DistinctData<UInt128>>, MethodKeysFixed<DistinctData<UInt136>>,
+ MethodKeysFixed<DistinctData<UInt256>>>;
struct DistinctDataVariants
- : public DataVariants<DistinctMethodVariants, vectorized::MethodSingleNullableColumn,
- vectorized::MethodOneNumber, vectorized::DataWithNullKey> {
- void init(const std::vector<vectorized::DataTypePtr>& data_types, HashKeyType type) {
+ : public DataVariants<DistinctMethodVariants, MethodSingleNullableColumn, MethodOneNumber,
+ DataWithNullKey> {
+ void init(const std::vector<DataTypePtr>& data_types, HashKeyType type) {
bool nullable = data_types.size() == 1 && data_types[0]->is_nullable();
switch (type) {
case HashKeyType::serialized:
- method_variant.emplace<vectorized::MethodSerialized<DistinctDataWithStringKey>>();
+ method_variant.emplace<MethodSerialized<DistinctDataWithStringKey>>();
break;
case HashKeyType::int8_key:
- emplace_single<vectorized::UInt8, DistinctData<vectorized::UInt8>>(nullable);
+ emplace_single<UInt8, DistinctData<UInt8>>(nullable);
break;
case HashKeyType::int16_key:
- emplace_single<vectorized::UInt16, DistinctData<vectorized::UInt16>>(nullable);
+ emplace_single<UInt16, DistinctData<UInt16>>(nullable);
break;
case HashKeyType::int32_key:
- emplace_single<vectorized::UInt32, DistinctData<vectorized::UInt32>>(nullable);
+ emplace_single<UInt32, DistinctData<UInt32>>(nullable);
break;
case HashKeyType::int32_key_phase2:
- emplace_single<vectorized::UInt32, DistinctDataPhase2<vectorized::UInt32>>(nullable);
+ emplace_single<UInt32, DistinctDataPhase2<UInt32>>(nullable);
break;
case HashKeyType::int64_key:
- emplace_single<vectorized::UInt64, DistinctData<vectorized::UInt64>>(nullable);
+ emplace_single<UInt64, DistinctData<UInt64>>(nullable);
break;
case HashKeyType::int64_key_phase2:
- emplace_single<vectorized::UInt64, DistinctDataPhase2<vectorized::UInt64>>(nullable);
+ emplace_single<UInt64, DistinctDataPhase2<UInt64>>(nullable);
break;
case HashKeyType::int128_key:
- emplace_single<vectorized::UInt128, DistinctData<vectorized::UInt128>>(nullable);
+ emplace_single<UInt128, DistinctData<UInt128>>(nullable);
break;
case HashKeyType::int256_key:
- emplace_single<vectorized::UInt256, DistinctData<vectorized::UInt256>>(nullable);
+ emplace_single<UInt256, DistinctData<UInt256>>(nullable);
break;
case HashKeyType::string_key:
if (nullable) {
- method_variant.emplace<
- vectorized::MethodSingleNullableColumn<vectorized::MethodStringNoCache<
- vectorized::DataWithNullKey<DistinctDataWithShortStringKey>>>>();
+ method_variant.emplace<MethodSingleNullableColumn<
+ MethodStringNoCache<DataWithNullKey<DistinctDataWithShortStringKey>>>>();
} else {
- method_variant
- .emplace<vectorized::MethodStringNoCache<DistinctDataWithShortStringKey>>();
+ method_variant.emplace<MethodStringNoCache<DistinctDataWithShortStringKey>>();
}
break;
case HashKeyType::fixed64:
- method_variant.emplace<vectorized::MethodKeysFixed<DistinctData<vectorized::UInt64>>>(
+ method_variant.emplace<MethodKeysFixed<DistinctData<UInt64>>>(
get_key_sizes(data_types));
break;
case HashKeyType::fixed72:
- method_variant.emplace<vectorized::MethodKeysFixed<DistinctData<vectorized::UInt72>>>(
+ method_variant.emplace<MethodKeysFixed<DistinctData<UInt72>>>(
get_key_sizes(data_types));
break;
case HashKeyType::fixed96:
- method_variant.emplace<vectorized::MethodKeysFixed<DistinctData<vectorized::UInt96>>>(
+ method_variant.emplace<MethodKeysFixed<DistinctData<UInt96>>>(
get_key_sizes(data_types));
break;
case HashKeyType::fixed104:
- method_variant.emplace<vectorized::MethodKeysFixed<DistinctData<vectorized::UInt104>>>(
+ method_variant.emplace<MethodKeysFixed<DistinctData<UInt104>>>(
get_key_sizes(data_types));
break;
case HashKeyType::fixed128:
- method_variant.emplace<vectorized::MethodKeysFixed<DistinctData<vectorized::UInt128>>>(
+ method_variant.emplace<MethodKeysFixed<DistinctData<UInt128>>>(
get_key_sizes(data_types));
break;
case HashKeyType::fixed136:
- method_variant.emplace<vectorized::MethodKeysFixed<DistinctData<vectorized::UInt136>>>(
+ method_variant.emplace<MethodKeysFixed<DistinctData<UInt136>>>(
get_key_sizes(data_types));
break;
case HashKeyType::fixed256:
- method_variant.emplace<vectorized::MethodKeysFixed<DistinctData<vectorized::UInt256>>>(
+ method_variant.emplace<MethodKeysFixed<DistinctData<UInt256>>>(
get_key_sizes(data_types));
break;
default:
diff --git a/be/src/exec/common/field_visitors.h b/be/src/exec/common/field_visitors.h
index 19ec523bc09..8b14b6bbd17 100644
--- a/be/src/exec/common/field_visitors.h
+++ b/be/src/exec/common/field_visitors.h
@@ -27,7 +27,7 @@
#include "core/data_type/primitive_type.h"
#include "core/field.h"
-namespace doris::vectorized {
+namespace doris {
/** StaticVisitor (and its descendants) - class with overloaded operator() for all types of fields.
* You could call visitor for field using function 'apply_visitor'.
@@ -146,4 +146,4 @@ typename std::decay_t<Visitor>::ResultType apply_visitor(Visitor&& visitor, F&&
}
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/common/format_ip.cpp b/be/src/exec/common/format_ip.cpp
index 006aad63f53..30cad6a79db 100644
--- a/be/src/exec/common/format_ip.cpp
+++ b/be/src/exec/common/format_ip.cpp
@@ -23,7 +23,7 @@
#include <algorithm>
#include <array>
-namespace doris::vectorized {
+namespace doris {
/** Further we want to generate constexpr array of strings with sizes from sequence of unsigned ints [0..N)
* in order to use this arrey for fast conversion of unsigned integers to strings
@@ -74,4 +74,4 @@ consteval std::array<std::pair<const char*, size_t>, N> str_make_array() {
extern constexpr std::array<std::pair<const char*, size_t>, 256> one_byte_to_string_lookup_table =
str_make_array<256>();
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/common/format_ip.h b/be/src/exec/common/format_ip.h
index ad997e05e0f..42e6cc918f2 100644
--- a/be/src/exec/common/format_ip.h
+++ b/be/src/exec/common/format_ip.h
@@ -41,7 +41,7 @@ constexpr size_t IPV4_OCTET_BITS = 8;
constexpr size_t DECIMAL_BASE = 10;
constexpr size_t IPV6_BINARY_LENGTH = 16;
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
extern const std::array<std::pair<const char*, size_t>, 256> one_byte_to_string_lookup_table;
@@ -496,4 +496,4 @@ inline bool parse_ipv6_whole(const char* src, unsigned char* dst) {
}
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/common/hash_table/hash.h b/be/src/exec/common/hash_table/hash.h
index 5847c272a4e..e8487bf4c8d 100644
--- a/be/src/exec/common/hash_table/hash.h
+++ b/be/src/exec/common/hash_table/hash.h
@@ -45,7 +45,7 @@ static constexpr size_t HASH_MAP_PREFETCH_DIST = 16;
/** Taken from MurmurHash. This is Murmur finalizer.
* Faster than int_hash32 when inserting into the hash table UInt64 -> UInt64, where the key is the visitor ID.
*/
-inline doris::vectorized::UInt64 int_hash64(doris::vectorized::UInt64 x) {
+inline doris::UInt64 int_hash64(doris::UInt64 x) {
x ^= x >> 33;
x *= 0xff51afd7ed558ccdULL;
x ^= x >> 33;
@@ -63,7 +63,7 @@ inline doris::vectorized::UInt64 int_hash64(doris::vectorized::UInt64 x) {
*/
#include "util/sse_util.hpp"
-inline doris::vectorized::UInt64 int_hash_crc32(doris::vectorized::UInt64 x) {
+inline doris::UInt64 int_hash_crc32(doris::UInt64 x) {
#if defined(__SSE4_2__) || (defined(__aarch64__) && defined(__ARM_FEATURE_CRC32))
return _mm_crc32_u64(-1ULL, x);
#else
@@ -76,7 +76,7 @@ template <typename T>
inline size_t default_hash64(T key) {
union {
T in;
- doris::vectorized::UInt64 out;
+ doris::UInt64 out;
} u;
u.out = 0;
u.in = key;
@@ -131,7 +131,7 @@ template <typename T>
inline size_t hash_crc32(T key) {
union {
T in;
- doris::vectorized::UInt64 out;
+ doris::UInt64 out;
} u;
u.out = 0;
u.in = key;
@@ -139,18 +139,18 @@ inline size_t hash_crc32(T key) {
}
template <>
-inline size_t hash_crc32(doris::vectorized::UInt128 u) {
- return doris::vectorized::UInt128HashCRC32()(u);
+inline size_t hash_crc32(doris::UInt128 u) {
+ return doris::UInt128HashCRC32()(u);
}
template <>
inline size_t hash_crc32(unsigned __int128 u) {
- return doris::vectorized::UInt128HashCRC32()(u);
+ return doris::UInt128HashCRC32()(u);
}
template <>
-inline size_t hash_crc32(doris::vectorized::Int128 u) {
- return doris::vectorized::UInt128HashCRC32()({(u >> 64) & int64_t(-1), u & int64_t(-1)});
+inline size_t hash_crc32(doris::Int128 u) {
+ return doris::UInt128HashCRC32()({(u >> 64) & int64_t(-1), u & int64_t(-1)});
}
template <>
@@ -181,18 +181,18 @@ inline size_t hash_crc32(doris::TimestampTzValue u) {
} \
};
-DEFINE_HASH(doris::vectorized::UInt8)
-DEFINE_HASH(doris::vectorized::UInt16)
-DEFINE_HASH(doris::vectorized::UInt32)
-DEFINE_HASH(doris::vectorized::UInt64)
-DEFINE_HASH(doris::vectorized::UInt128)
-DEFINE_HASH(doris::vectorized::Int8)
-DEFINE_HASH(doris::vectorized::Int16)
-DEFINE_HASH(doris::vectorized::Int32)
-DEFINE_HASH(doris::vectorized::Int64)
-DEFINE_HASH(doris::vectorized::Int128)
-DEFINE_HASH(doris::vectorized::Float32)
-DEFINE_HASH(doris::vectorized::Float64)
+DEFINE_HASH(doris::UInt8)
+DEFINE_HASH(doris::UInt16)
+DEFINE_HASH(doris::UInt32)
+DEFINE_HASH(doris::UInt64)
+DEFINE_HASH(doris::UInt128)
+DEFINE_HASH(doris::Int8)
+DEFINE_HASH(doris::Int16)
+DEFINE_HASH(doris::Int32)
+DEFINE_HASH(doris::Int64)
+DEFINE_HASH(doris::Int128)
+DEFINE_HASH(doris::Float32)
+DEFINE_HASH(doris::Float64)
DEFINE_HASH(doris::VecDateTimeValue)
DEFINE_HASH(doris::DateV2Value<doris::DateTimeV2ValueType>)
DEFINE_HASH(doris::DateV2Value<doris::DateV2ValueType>)
@@ -207,10 +207,10 @@ struct HashMixWrapper {
};
template <>
-struct HashCRC32<doris::vectorized::UInt256> {
- size_t operator()(const doris::vectorized::UInt256& x) const {
+struct HashCRC32<doris::UInt256> {
+ size_t operator()(const doris::UInt256& x) const {
#if defined(__SSE4_2__) || defined(__aarch64__)
- doris::vectorized::UInt64 crc = -1ULL;
+ doris::UInt64 crc = -1ULL;
crc = _mm_crc32_u64(crc, x.items[0]);
crc = _mm_crc32_u64(crc, x.items[1]);
crc = _mm_crc32_u64(crc, x.items[2]);
@@ -226,7 +226,7 @@ template <>
struct HashCRC32<wide::Int256> {
size_t operator()(const wide::Int256& x) const {
#if defined(__SSE4_2__) || defined(__aarch64__)
- doris::vectorized::UInt64 crc = -1ULL;
+ doris::UInt64 crc = -1ULL;
crc = _mm_crc32_u64(crc, x.items[0]);
crc = _mm_crc32_u64(crc, x.items[1]);
crc = _mm_crc32_u64(crc, x.items[2]);
@@ -240,36 +240,36 @@ struct HashCRC32<wide::Int256> {
};
template <>
-struct HashCRC32<doris::vectorized::Decimal256> {
- size_t operator()(const doris::vectorized::Decimal256& value) const {
+struct HashCRC32<doris::Decimal256> {
+ size_t operator()(const doris::Decimal256& value) const {
return HashCRC32<wide::Int256>()(value.value);
}
};
template <>
-struct HashCRC32<doris::vectorized::Decimal32> {
- size_t operator()(const doris::vectorized::Decimal32& value) const {
+struct HashCRC32<doris::Decimal32> {
+ size_t operator()(const doris::Decimal32& value) const {
return HashCRC32<int32_t>()(value.value);
}
};
template <>
-struct HashCRC32<doris::vectorized::Decimal64> {
- size_t operator()(const doris::vectorized::Decimal64& value) const {
+struct HashCRC32<doris::Decimal64> {
+ size_t operator()(const doris::Decimal64& value) const {
return HashCRC32<int64_t>()(value.value);
}
};
template <>
-struct HashCRC32<doris::vectorized::Decimal128V3> {
- size_t operator()(const doris::vectorized::Decimal128V3& value) const {
+struct HashCRC32<doris::Decimal128V3> {
+ size_t operator()(const doris::Decimal128V3& value) const {
return HashCRC32<__int128>()(value.value);
}
};
template <>
-struct HashCRC32<doris::vectorized::Decimal128V2> {
- size_t operator()(const doris::vectorized::Decimal128V2& value) const {
+struct HashCRC32<doris::Decimal128V2> {
+ size_t operator()(const doris::Decimal128V2& value) const {
return HashCRC32<__int128>()(value.value);
}
};
@@ -284,9 +284,9 @@ struct HashCRC32<doris::DecimalV2Value> {
#include "common/compile_check_avoid_begin.h"
template <>
-struct HashCRC32<doris::vectorized::UInt72> {
- size_t operator()(const doris::vectorized::UInt72& x) const {
- doris::vectorized::UInt64 crc = -1ULL;
+struct HashCRC32<doris::UInt72> {
+ size_t operator()(const doris::UInt72& x) const {
+ doris::UInt64 crc = -1ULL;
crc = _mm_crc32_u8(crc, x.a);
crc = _mm_crc32_u64(crc, x.b);
return crc;
@@ -294,9 +294,9 @@ struct HashCRC32<doris::vectorized::UInt72> {
};
template <>
-struct HashCRC32<doris::vectorized::UInt96> {
- size_t operator()(const doris::vectorized::UInt96& x) const {
- doris::vectorized::UInt64 crc = -1ULL;
+struct HashCRC32<doris::UInt96> {
+ size_t operator()(const doris::UInt96& x) const {
+ doris::UInt64 crc = -1ULL;
crc = _mm_crc32_u32(crc, x.a);
crc = _mm_crc32_u64(crc, x.b);
return crc;
@@ -304,9 +304,9 @@ struct HashCRC32<doris::vectorized::UInt96> {
};
template <>
-struct HashCRC32<doris::vectorized::UInt104> {
- size_t operator()(const doris::vectorized::UInt104& x) const {
- doris::vectorized::UInt64 crc = -1ULL;
+struct HashCRC32<doris::UInt104> {
+ size_t operator()(const doris::UInt104& x) const {
+ doris::UInt64 crc = -1ULL;
crc = _mm_crc32_u8(crc, x.a);
crc = _mm_crc32_u32(crc, x.b);
crc = _mm_crc32_u64(crc, x.c);
@@ -315,9 +315,9 @@ struct HashCRC32<doris::vectorized::UInt104> {
};
template <>
-struct HashCRC32<doris::vectorized::UInt136> {
- size_t operator()(const doris::vectorized::UInt136& x) const {
- doris::vectorized::UInt64 crc = -1ULL;
+struct HashCRC32<doris::UInt136> {
+ size_t operator()(const doris::UInt136& x) const {
+ doris::UInt64 crc = -1ULL;
crc = _mm_crc32_u8(crc, x.a);
crc = _mm_crc32_u64(crc, x.b);
crc = _mm_crc32_u64(crc, x.c);
diff --git a/be/src/exec/common/hash_table/hash_key_type.h b/be/src/exec/common/hash_table/hash_key_type.h
index f3a60d155ea..313df63f3d3 100644
--- a/be/src/exec/common/hash_table/hash_key_type.h
+++ b/be/src/exec/common/hash_table/hash_key_type.h
@@ -59,7 +59,6 @@ inline HashKeyType get_hash_key_type_with_phase(HashKeyType t, bool phase2) {
}
inline HashKeyType get_hash_key_type_with_fixed(size_t size) {
- using namespace vectorized;
if (size <= sizeof(UInt64)) {
return HashKeyType::fixed64;
} else if (size <= sizeof(UInt72)) {
@@ -79,8 +78,8 @@ inline HashKeyType get_hash_key_type_with_fixed(size_t size) {
}
}
-inline HashKeyType get_hash_key_type_fixed(const std::vector<vectorized::DataTypePtr>& data_types) {
- if (data_types.size() >= vectorized::BITSIZE) {
+inline HashKeyType get_hash_key_type_fixed(const std::vector<DataTypePtr>& data_types) {
+ if (data_types.size() >= BITSIZE) {
return HashKeyType::serialized;
}
@@ -101,7 +100,7 @@ inline HashKeyType get_hash_key_type_fixed(const std::vector<vectorized::DataTyp
return get_hash_key_type_with_fixed(has_null + key_byte_size);
}
-inline HashKeyType get_hash_key_type(const std::vector<vectorized::DataTypePtr>& data_types) {
+inline HashKeyType get_hash_key_type(const std::vector<DataTypePtr>& data_types) {
if (data_types.size() > 1) {
return get_hash_key_type_fixed(data_types);
}
@@ -123,17 +122,17 @@ inline HashKeyType get_hash_key_type(const std::vector<vectorized::DataTypePtr>&
}
size_t size = t->get_size_of_value_in_memory();
- if (size == sizeof(vectorized::UInt8)) {
+ if (size == sizeof(UInt8)) {
return HashKeyType::int8_key;
- } else if (size == sizeof(vectorized::UInt16)) {
+ } else if (size == sizeof(UInt16)) {
return HashKeyType::int16_key;
- } else if (size == sizeof(vectorized::UInt32)) {
+ } else if (size == sizeof(UInt32)) {
return HashKeyType::int32_key;
- } else if (size == sizeof(vectorized::UInt64)) {
+ } else if (size == sizeof(UInt64)) {
return HashKeyType::int64_key;
- } else if (size == sizeof(vectorized::UInt128)) {
+ } else if (size == sizeof(UInt128)) {
return HashKeyType::int128_key;
- } else if (size == sizeof(vectorized::UInt256)) {
+ } else if (size == sizeof(UInt256)) {
return HashKeyType::int256_key;
} else {
throw Exception(ErrorCode::INTERNAL_ERROR, "meet invalid type size, size={}, type={}", size,
diff --git a/be/src/exec/common/hash_table/hash_map_context.h b/be/src/exec/common/hash_table/hash_map_context.h
index 70499dca582..e44c752ad0b 100644
--- a/be/src/exec/common/hash_table/hash_map_context.h
+++ b/be/src/exec/common/hash_table/hash_map_context.h
@@ -35,7 +35,7 @@
#include "exec/common/template_helpers.hpp"
#include "util/simd/bits.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
constexpr auto BITSIZE = 8;
@@ -880,4 +880,4 @@ struct MethodSingleNullableColumn : public SingleColumnMethod {
}
};
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/exec/common/hash_table/hash_map_util.h b/be/src/exec/common/hash_table/hash_map_util.h
index 1d572c4bf2f..717e9c75429 100644
--- a/be/src/exec/common/hash_table/hash_map_util.h
+++ b/be/src/exec/common/hash_table/hash_map_util.h
@@ -23,9 +23,8 @@
namespace doris {
-inline std::vector<vectorized::DataTypePtr> get_data_types(
- const vectorized::VExprContextSPtrs& expr_contexts) {
- std::vector<vectorized::DataTypePtr> data_types;
+inline std::vector<DataTypePtr> get_data_types(const VExprContextSPtrs& expr_contexts) {
+ std::vector<DataTypePtr> data_types;
for (const auto& ctx : expr_contexts) {
data_types.emplace_back(ctx->root()->data_type());
}
@@ -33,7 +32,7 @@ inline std::vector<vectorized::DataTypePtr> get_data_types(
}
template <typename DataVariants>
-Status init_hash_method(DataVariants* data, const std::vector<vectorized::DataTypePtr>& data_types,
+Status init_hash_method(DataVariants* data, const std::vector<DataTypePtr>& data_types,
bool is_first_phase) {
auto type = HashKeyType::EMPTY;
try {
diff --git a/be/src/exec/common/hash_table/hash_table.h b/be/src/exec/common/hash_table/hash_table.h
index 343c991fddd..44f01a3b70d 100644
--- a/be/src/exec/common/hash_table/hash_table.h
+++ b/be/src/exec/common/hash_table/hash_table.h
@@ -48,10 +48,10 @@
#include "common/compile_check_begin.h"
struct HashTableNoState {
/// Serialization, in binary and text form.
- void write(doris::vectorized::BufferWritable&) const {}
+ void write(doris::BufferWritable&) const {}
// /// Deserialization, in binary and text form.
- void read(doris::vectorized::BufferReadable&) {}
+ void read(doris::BufferReadable&) {}
};
/// These functions can be overloaded for custom types.
@@ -197,10 +197,10 @@ struct HashTableCell {
void set_mapped(const value_type& /*value*/) {}
/// Serialization, in binary and text form.
- void write(doris::vectorized::BufferWritable& wb) const { wb.write_binary(key); }
+ void write(doris::BufferWritable& wb) const { wb.write_binary(key); }
/// Deserialization, in binary and text form.
- void read(doris::vectorized::BufferReadable& rb) { rb.read_binary(key); }
+ void read(doris::BufferReadable& rb) { rb.read_binary(key); }
};
template <typename Key, typename Hash, typename State>
@@ -225,17 +225,17 @@ void insert_set_mapped(MappedType* dest, const ValueType& src) {
*dest = src.second;
}
-static doris::vectorized::Int32 double_resize_threshold = doris::config::double_resize_threshold;
+static doris::Int32 double_resize_threshold = doris::config::double_resize_threshold;
/** Determines the size of the hash table, and when and how much it should be resized.
*/
template <size_t initial_size_degree = 10>
struct HashTableGrower {
/// The state of this structure is enough to get the buffer size of the hash table.
- doris::vectorized::UInt8 size_degree = initial_size_degree;
- doris::vectorized::Int64 double_grow_degree = doris::config::hash_table_double_grow_degree;
+ doris::UInt8 size_degree = initial_size_degree;
+ doris::Int64 double_grow_degree = doris::config::hash_table_double_grow_degree;
- doris::vectorized::Int32 max_fill_rate = doris::config::max_fill_rate;
+ doris::Int32 max_fill_rate = doris::config::max_fill_rate;
/// The size of the hash table in the cells.
size_t buf_size() const { return 1ULL << size_degree; }
@@ -293,15 +293,15 @@ template <size_t initial_size_degree = 8>
class alignas(64) HashTableGrowerWithPrecalculation {
/// The state of this structure is enough to get the buffer size of the hash table.
- doris::vectorized::UInt8 size_degree_ = initial_size_degree;
+ doris::UInt8 size_degree_ = initial_size_degree;
size_t precalculated_mask = (1ULL << initial_size_degree) - 1;
size_t precalculated_max_fill = 1ULL << (initial_size_degree - 1);
- doris::vectorized::Int64 double_grow_degree = doris::config::hash_table_double_grow_degree;
+ doris::Int64 double_grow_degree = doris::config::hash_table_double_grow_degree;
public:
- doris::vectorized::UInt8 size_degree() const { return size_degree_; }
+ doris::UInt8 size_degree() const { return size_degree_; }
- void increase_size_degree(doris::vectorized::UInt8 delta) {
+ void increase_size_degree(doris::UInt8 delta) {
size_degree_ += delta;
DCHECK(size_degree_ <= 64);
precalculated_mask = (1ULL << size_degree_) - 1;
@@ -947,7 +947,7 @@ public:
return !buf[place_value].is_zero(*this);
}
- void write(doris::vectorized::BufferWritable& wb) const {
+ void write(doris::BufferWritable& wb) const {
Cell::State::write(wb);
wb.write_var_uint(m_size);
@@ -957,14 +957,14 @@ public:
if (!ptr->is_zero(*this)) ptr->write(wb);
}
- void read(doris::vectorized::BufferReadable& rb) {
+ void read(doris::BufferReadable& rb) {
Cell::State::read(rb);
destroy_elements();
this->clear_get_has_zero();
m_size = 0;
- doris::vectorized::UInt64 new_size = 0;
+ doris::UInt64 new_size = 0;
rb.read_var_uint(new_size);
free();
diff --git a/be/src/exec/common/hash_table/hash_table_set_build.h b/be/src/exec/common/hash_table/hash_table_set_build.h
index 6449ce6e2c8..7ad20a5942e 100644
--- a/be/src/exec/common/hash_table/hash_table_set_build.h
+++ b/be/src/exec/common/hash_table/hash_table_set_build.h
@@ -19,7 +19,7 @@
#include "exec/operator/set_sink_operator.h"
#include "runtime/runtime_state.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
constexpr size_t CHECK_FRECUENCY = 65536;
template <class HashTableContext, bool is_intersect>
@@ -57,4 +57,4 @@ private:
RuntimeState* _state = nullptr;
};
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/common/hash_table/hash_table_set_probe.h b/be/src/exec/common/hash_table/hash_table_set_probe.h
index f682dd87524..694e3c797a0 100644
--- a/be/src/exec/common/hash_table/hash_table_set_probe.h
+++ b/be/src/exec/common/hash_table/hash_table_set_probe.h
@@ -18,7 +18,7 @@
#include "core/column/column.h"
#include "exec/operator/set_probe_sink_operator.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
template <class HashTableContext, bool is_intersected>
struct HashTableProbe {
@@ -58,4 +58,4 @@ private:
std::vector<StringRef> _probe_keys;
};
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/common/hash_table/join_hash_table.h b/be/src/exec/common/hash_table/join_hash_table.h
index f49627c3a10..b627c3be330 100644
--- a/be/src/exec/common/hash_table/join_hash_table.h
+++ b/be/src/exec/common/hash_table/join_hash_table.h
@@ -184,8 +184,7 @@ public:
}
template <int JoinOpType, bool is_mark_join>
- bool iterate_map(vectorized::ColumnOffset32& build_idxs,
- vectorized::ColumnFilterHelper* mark_column_helper) const {
+ bool iterate_map(ColumnOffset32& build_idxs, ColumnFilterHelper* mark_column_helper) const {
const auto batch_size = max_batch_size;
const auto elem_num = visited.size();
int count = 0;
diff --git a/be/src/exec/common/hash_table/ph_hash_map.h b/be/src/exec/common/hash_table/ph_hash_map.h
index 44fe6574f5a..92a6b5f9557 100644
--- a/be/src/exec/common/hash_table/ph_hash_map.h
+++ b/be/src/exec/common/hash_table/ph_hash_map.h
@@ -36,7 +36,7 @@ public:
using Self = PHHashMap;
using Hash = HashMethod;
using cell_type = std::pair<const Key, Mapped>;
- using HashMapImpl = doris::vectorized::flat_hash_map<Key, Mapped, Hash>;
+ using HashMapImpl = doris::flat_hash_map<Key, Mapped, Hash>;
using key_type = Key;
using mapped_type = Mapped;
diff --git a/be/src/exec/common/hash_table/ph_hash_set.h b/be/src/exec/common/hash_table/ph_hash_set.h
index 481288b904b..a954116edbe 100644
--- a/be/src/exec/common/hash_table/ph_hash_set.h
+++ b/be/src/exec/common/hash_table/ph_hash_set.h
@@ -32,7 +32,7 @@ class PHHashSet : private boost::noncopyable {
public:
using Self = PHHashSet;
using Hash = HashMethod;
- using HashSetImpl = doris::vectorized::flat_hash_set<Key, Hash>;
+ using HashSetImpl = doris::flat_hash_set<Key, Hash>;
using key_type = Key;
using mapped_type = void;
diff --git a/be/src/exec/common/hash_table/phmap_fwd_decl.h b/be/src/exec/common/hash_table/phmap_fwd_decl.h
index a6502a31bc2..5879303ad5e 100644
--- a/be/src/exec/common/hash_table/phmap_fwd_decl.h
+++ b/be/src/exec/common/hash_table/phmap_fwd_decl.h
@@ -23,7 +23,7 @@
#include "core/allocator.h"
#include "core/allocator_fwd.h"
-namespace doris::vectorized {
+namespace doris {
/// `Allocator_` implements several interfaces of `std::allocator`
/// which `phmap::flat_hash_map` will use.
@@ -53,4 +53,4 @@ template <typename K, typename Hash = phmap::Hash<K>, typename Eq = doris::Equal
typename Alloc = Allocator_<K>>
using flat_hash_set = phmap::flat_hash_set<K, Hash, Eq, Alloc>;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/common/hash_table/string_hash_table.h b/be/src/exec/common/hash_table/string_hash_table.h
index 8722ca21d43..166b56bda29 100644
--- a/be/src/exec/common/hash_table/string_hash_table.h
+++ b/be/src/exec/common/hash_table/string_hash_table.h
@@ -27,10 +27,10 @@
#include "exec/common/hash_table/hash.h"
#include "exec/common/hash_table/hash_table.h"
-using StringKey2 = doris::vectorized::UInt16;
-using StringKey4 = doris::vectorized::UInt32;
-using StringKey8 = doris::vectorized::UInt64;
-using StringKey16 = doris::vectorized::UInt128;
+using StringKey2 = doris::UInt16;
+using StringKey4 = doris::UInt32;
+using StringKey8 = doris::UInt64;
+using StringKey16 = doris::UInt128;
struct StringHashMapSubKeys {
using T1 = StringKey2;
diff --git a/be/src/exec/common/hex.cpp b/be/src/exec/common/hex.cpp
index 2749550cb38..601df69de82 100644
--- a/be/src/exec/common/hex.cpp
+++ b/be/src/exec/common/hex.cpp
@@ -20,7 +20,7 @@
#include "exec/common/hex.h"
-namespace doris::vectorized {
+namespace doris {
const char* const hex_digit_to_char_uppercase_table = "0123456789ABCDEF";
const char* const hex_digit_to_char_lowercase_table = "0123456789abcdef";
@@ -112,4 +112,4 @@ const char* const bin_byte_to_char_table =
"1110100011101001111010101110101111101100111011011110111011101111"
"1111000011110001111100101111001111110100111101011111011011110111"
"1111100011111001111110101111101111111100111111011111111011111111";
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/exec/common/hex.h b/be/src/exec/common/hex.h
index d0c19b136c3..846eb48ba22 100644
--- a/be/src/exec/common/hex.h
+++ b/be/src/exec/common/hex.h
@@ -24,7 +24,7 @@
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
/// Maps 0..15 to 0..9A..F or 0..9a..f correspondingly.
@@ -132,4 +132,4 @@ TUInt unhex_uint(const char* data) {
}
return res;
}
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/exec/common/histogram_helpers.hpp b/be/src/exec/common/histogram_helpers.hpp
index 803072b14cc..b94f59827ad 100644
--- a/be/src/exec/common/histogram_helpers.hpp
+++ b/be/src/exec/common/histogram_helpers.hpp
@@ -27,7 +27,7 @@
#include "core/data_type/data_type_decimal.h"
#include "util/io_helper.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
template <typename T>
struct Bucket {
@@ -309,4 +309,4 @@ bool histogram_to_json(rapidjson::StringBuffer& buffer, const std::vector<Bucket
return !buckets.empty() && buffer.GetSize() > 0;
}
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/common/ipv6_to_binary.h b/be/src/exec/common/ipv6_to_binary.h
index a7c5a81e445..6b0033fa412 100644
--- a/be/src/exec/common/ipv6_to_binary.h
+++ b/be/src/exec/common/ipv6_to_binary.h
@@ -22,7 +22,7 @@
#include "exec/common/format_ip.h"
-namespace doris::vectorized {
+namespace doris {
/// Result array could be indexed with all possible uint8 values without extra check.
/// For values greater than 128 we will store same value as for 128 (all bits set).
@@ -67,4 +67,4 @@ inline const std::array<uint8_t, 16>& get_cidr_mask_ipv6(uint8_t prefix_len) {
return IPV6_RAW_MASK_ARRAY[prefix_len];
}
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/common/join_utils.h b/be/src/exec/common/join_utils.h
index 67867aded6a..2b55b6f9469 100644
--- a/be/src/exec/common/join_utils.h
+++ b/be/src/exec/common/join_utils.h
@@ -38,96 +38,80 @@ using JoinOpVariants =
std::integral_constant<TJoinOp::type, TJoinOp::NULL_AWARE_LEFT_SEMI_JOIN>>;
template <class T>
-using PrimaryTypeHashTableContext =
- vectorized::MethodOneNumber<T, JoinHashMap<T, HashCRC32<T>, false>>;
+using PrimaryTypeHashTableContext = MethodOneNumber<T, JoinHashMap<T, HashCRC32<T>, false>>;
template <class T>
using DirectPrimaryTypeHashTableContext =
- vectorized::MethodOneNumberDirect<T, JoinHashMap<T, HashCRC32<T>, true>>;
+ MethodOneNumberDirect<T, JoinHashMap<T, HashCRC32<T>, true>>;
template <class Key>
-using FixedKeyHashTableContext =
- vectorized::MethodKeysFixed<JoinHashMap<Key, HashCRC32<Key>, false>>;
+using FixedKeyHashTableContext = MethodKeysFixed<JoinHashMap<Key, HashCRC32<Key>, false>>;
using SerializedHashTableContext =
- vectorized::MethodSerialized<JoinHashMap<StringRef, DefaultHash<StringRef>, false>>;
-using MethodOneString =
- vectorized::MethodStringNoCache<JoinHashMap<StringRef, DefaultHash<StringRef>, false>>;
+ MethodSerialized<JoinHashMap<StringRef, DefaultHash<StringRef>, false>>;
+using MethodOneString = MethodStringNoCache<JoinHashMap<StringRef, DefaultHash<StringRef>, false>>;
using HashTableVariants = std::variant<
- std::monostate, SerializedHashTableContext, PrimaryTypeHashTableContext<vectorized::UInt8>,
- PrimaryTypeHashTableContext<vectorized::UInt16>,
- PrimaryTypeHashTableContext<vectorized::UInt32>,
- PrimaryTypeHashTableContext<vectorized::UInt64>,
- PrimaryTypeHashTableContext<vectorized::UInt128>,
- PrimaryTypeHashTableContext<vectorized::UInt256>,
- DirectPrimaryTypeHashTableContext<vectorized::UInt8>,
- DirectPrimaryTypeHashTableContext<vectorized::UInt16>,
- DirectPrimaryTypeHashTableContext<vectorized::UInt32>,
- DirectPrimaryTypeHashTableContext<vectorized::UInt64>,
- DirectPrimaryTypeHashTableContext<vectorized::UInt128>,
- FixedKeyHashTableContext<vectorized::UInt64>, FixedKeyHashTableContext<vectorized::UInt72>,
- FixedKeyHashTableContext<vectorized::UInt96>, FixedKeyHashTableContext<vectorized::UInt104>,
- FixedKeyHashTableContext<vectorized::UInt128>,
- FixedKeyHashTableContext<vectorized::UInt136>,
- FixedKeyHashTableContext<vectorized::UInt256>, MethodOneString>;
+ std::monostate, SerializedHashTableContext, PrimaryTypeHashTableContext<UInt8>,
+ PrimaryTypeHashTableContext<UInt16>, PrimaryTypeHashTableContext<UInt32>,
+ PrimaryTypeHashTableContext<UInt64>, PrimaryTypeHashTableContext<UInt128>,
+ PrimaryTypeHashTableContext<UInt256>, DirectPrimaryTypeHashTableContext<UInt8>,
+ DirectPrimaryTypeHashTableContext<UInt16>, DirectPrimaryTypeHashTableContext<UInt32>,
+ DirectPrimaryTypeHashTableContext<UInt64>, DirectPrimaryTypeHashTableContext<UInt128>,
+ FixedKeyHashTableContext<UInt64>, FixedKeyHashTableContext<UInt72>,
+ FixedKeyHashTableContext<UInt96>, FixedKeyHashTableContext<UInt104>,
+ FixedKeyHashTableContext<UInt128>, FixedKeyHashTableContext<UInt136>,
+ FixedKeyHashTableContext<UInt256>, MethodOneString>;
struct JoinDataVariants {
HashTableVariants method_variant;
- void init(const std::vector<vectorized::DataTypePtr>& data_types, HashKeyType type) {
+ void init(const std::vector<DataTypePtr>& data_types, HashKeyType type) {
switch (type) {
case HashKeyType::serialized:
method_variant.emplace<SerializedHashTableContext>();
break;
case HashKeyType::int8_key:
- method_variant.emplace<PrimaryTypeHashTableContext<vectorized::UInt8>>();
+ method_variant.emplace<PrimaryTypeHashTableContext<UInt8>>();
break;
case HashKeyType::int16_key:
- method_variant.emplace<PrimaryTypeHashTableContext<vectorized::UInt16>>();
+ method_variant.emplace<PrimaryTypeHashTableContext<UInt16>>();
break;
case HashKeyType::int32_key:
- method_variant.emplace<PrimaryTypeHashTableContext<vectorized::UInt32>>();
+ method_variant.emplace<PrimaryTypeHashTableContext<UInt32>>();
break;
case HashKeyType::int64_key:
- method_variant.emplace<PrimaryTypeHashTableContext<vectorized::UInt64>>();
+ method_variant.emplace<PrimaryTypeHashTableContext<UInt64>>();
break;
case HashKeyType::int128_key:
- method_variant.emplace<PrimaryTypeHashTableContext<vectorized::UInt128>>();
+ method_variant.emplace<PrimaryTypeHashTableContext<UInt128>>();
break;
case HashKeyType::int256_key:
- method_variant.emplace<PrimaryTypeHashTableContext<vectorized::UInt256>>();
+ method_variant.emplace<PrimaryTypeHashTableContext<UInt256>>();
break;
case HashKeyType::string_key:
method_variant.emplace<MethodOneString>();
break;
case HashKeyType::fixed64:
- method_variant.emplace<FixedKeyHashTableContext<vectorized::UInt64>>(
- get_key_sizes(data_types));
+ method_variant.emplace<FixedKeyHashTableContext<UInt64>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed72:
- method_variant.emplace<FixedKeyHashTableContext<vectorized::UInt72>>(
- get_key_sizes(data_types));
+ method_variant.emplace<FixedKeyHashTableContext<UInt72>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed96:
- method_variant.emplace<FixedKeyHashTableContext<vectorized::UInt96>>(
- get_key_sizes(data_types));
+ method_variant.emplace<FixedKeyHashTableContext<UInt96>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed104:
- method_variant.emplace<FixedKeyHashTableContext<vectorized::UInt104>>(
- get_key_sizes(data_types));
+ method_variant.emplace<FixedKeyHashTableContext<UInt104>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed128:
- method_variant.emplace<FixedKeyHashTableContext<vectorized::UInt128>>(
- get_key_sizes(data_types));
+ method_variant.emplace<FixedKeyHashTableContext<UInt128>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed136:
- method_variant.emplace<FixedKeyHashTableContext<vectorized::UInt136>>(
- get_key_sizes(data_types));
+ method_variant.emplace<FixedKeyHashTableContext<UInt136>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed256:
- method_variant.emplace<FixedKeyHashTableContext<vectorized::UInt256>>(
- get_key_sizes(data_types));
+ method_variant.emplace<FixedKeyHashTableContext<UInt256>>(get_key_sizes(data_types));
break;
default:
throw Exception(ErrorCode::INTERNAL_ERROR,
@@ -137,7 +121,7 @@ struct JoinDataVariants {
};
template <typename Method>
-void primary_to_direct_mapping(Method* context, const vectorized::ColumnRawPtrs& key_columns,
+void primary_to_direct_mapping(Method* context, const ColumnRawPtrs& key_columns,
const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
using FieldType = typename Method::Base::Key;
FieldType max_key = std::numeric_limits<FieldType>::min();
@@ -145,13 +129,12 @@ void primary_to_direct_mapping(Method* context, const vectorized::ColumnRawPtrs&
size_t num_rows = key_columns[0]->size();
if (key_columns[0]->is_nullable()) {
- const FieldType* input_keys =
- (FieldType*)assert_cast<const vectorized::ColumnNullable*>(key_columns[0])
- ->get_nested_column_ptr()
- ->get_raw_data()
- .data;
- const vectorized::NullMap& null_map =
- assert_cast<const vectorized::ColumnNullable*>(key_columns[0])->get_null_map_data();
+ const FieldType* input_keys = (FieldType*)assert_cast<const ColumnNullable*>(key_columns[0])
+ ->get_nested_column_ptr()
+ ->get_raw_data()
+ .data;
+ const NullMap& null_map =
+ assert_cast<const ColumnNullable*>(key_columns[0])->get_null_map_data();
// skip first mocked row
for (size_t i = 1; i < num_rows; i++) {
if (null_map[i]) {
@@ -181,40 +164,35 @@ void primary_to_direct_mapping(Method* context, const vectorized::ColumnRawPtrs&
template <typename Method>
void try_convert_to_direct_mapping(
- Method* method, const vectorized::ColumnRawPtrs& key_columns,
+ Method* method, const ColumnRawPtrs& key_columns,
const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {}
inline void try_convert_to_direct_mapping(
- PrimaryTypeHashTableContext<vectorized::UInt8>* context,
- const vectorized::ColumnRawPtrs& key_columns,
+ PrimaryTypeHashTableContext<UInt8>* context, const ColumnRawPtrs& key_columns,
const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
primary_to_direct_mapping(context, key_columns, variant_ptrs);
}
inline void try_convert_to_direct_mapping(
- PrimaryTypeHashTableContext<vectorized::UInt16>* context,
- const vectorized::ColumnRawPtrs& key_columns,
+ PrimaryTypeHashTableContext<UInt16>* context, const ColumnRawPtrs& key_columns,
const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
primary_to_direct_mapping(context, key_columns, variant_ptrs);
}
inline void try_convert_to_direct_mapping(
- PrimaryTypeHashTableContext<vectorized::UInt32>* context,
- const vectorized::ColumnRawPtrs& key_columns,
+ PrimaryTypeHashTableContext<UInt32>* context, const ColumnRawPtrs& key_columns,
const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
primary_to_direct_mapping(context, key_columns, variant_ptrs);
}
inline void try_convert_to_direct_mapping(
- PrimaryTypeHashTableContext<vectorized::UInt64>* context,
- const vectorized::ColumnRawPtrs& key_columns,
+ PrimaryTypeHashTableContext<UInt64>* context, const ColumnRawPtrs& key_columns,
const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
primary_to_direct_mapping(context, key_columns, variant_ptrs);
}
inline void try_convert_to_direct_mapping(
- PrimaryTypeHashTableContext<vectorized::UInt128>* context,
- const vectorized::ColumnRawPtrs& key_columns,
+ PrimaryTypeHashTableContext<UInt128>* context, const ColumnRawPtrs& key_columns,
const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
primary_to_direct_mapping(context, key_columns, variant_ptrs);
}
diff --git a/be/src/exec/common/partition_sort_utils.cpp b/be/src/exec/common/partition_sort_utils.cpp
index 2254c384bc4..eb8c89903e7 100644
--- a/be/src/exec/common/partition_sort_utils.cpp
+++ b/be/src/exec/common/partition_sort_utils.cpp
@@ -20,15 +20,14 @@
namespace doris {
#include "common/compile_check_begin.h"
-Status PartitionBlocks::append_block_by_selector(const vectorized::Block* input_block, bool eos) {
+Status PartitionBlocks::append_block_by_selector(const Block* input_block, bool eos) {
auto selector_rows = _selector.size();
if (selector_rows) {
if (_blocks.empty() || reach_limit()) {
_init_rows = _partition_sort_info->_runtime_state->batch_size();
- _blocks.push_back(vectorized::Block::create_unique(
- vectorized::VectorizedUtils::create_empty_block(
- _partition_sort_info->_row_desc)));
+ _blocks.push_back(Block::create_unique(
+ VectorizedUtils::create_empty_block(_partition_sort_info->_row_desc)));
}
auto columns = input_block->get_columns();
auto mutable_columns = _blocks.back()->mutate_columns();
@@ -54,8 +53,8 @@ Status PartitionBlocks::append_block_by_selector(const vectorized::Block* input_
void PartitionBlocks::create_or_reset_sorter_state() {
if (_partition_topn_sorter == nullptr) {
- _previous_row = std::make_unique<vectorized::SortCursorCmp>();
- _partition_topn_sorter = vectorized::PartitionSorter::create_unique(
+ _previous_row = std::make_unique<SortCursorCmp>();
+ _partition_topn_sorter = PartitionSorter::create_unique(
*_partition_sort_info->_vsort_exec_exprs, _partition_sort_info->_limit,
_partition_sort_info->_offset, _partition_sort_info->_pool,
_partition_sort_info->_is_asc_order, _partition_sort_info->_nulls_first,
@@ -79,8 +78,8 @@ Status PartitionBlocks::do_partition_topn_sort() {
bool current_eos = false;
while (!current_eos) {
// output_block maybe need better way
- auto output_block = vectorized::Block::create_unique(
- vectorized::VectorizedUtils::create_empty_block(_partition_sort_info->_row_desc));
+ auto output_block = Block::create_unique(
+ VectorizedUtils::create_empty_block(_partition_sort_info->_row_desc));
RETURN_IF_ERROR(_partition_topn_sorter->get_next(_partition_sort_info->_runtime_state,
output_block.get(), ¤t_eos));
auto rows = output_block->rows();
diff --git a/be/src/exec/common/partition_sort_utils.h b/be/src/exec/common/partition_sort_utils.h
index 382c7d91553..f9edbb39e44 100644
--- a/be/src/exec/common/partition_sort_utils.h
+++ b/be/src/exec/common/partition_sort_utils.h
@@ -33,7 +33,7 @@ namespace doris {
struct PartitionSortInfo {
~PartitionSortInfo() = default;
- PartitionSortInfo(vectorized::VSortExecExprs* vsort_exec_exprs, int64_t limit, int64_t offset,
+ PartitionSortInfo(VSortExecExprs* vsort_exec_exprs, int64_t limit, int64_t offset,
ObjectPool* pool, const std::vector<bool>& is_asc_order,
const std::vector<bool>& nulls_first, const RowDescriptor& row_desc,
RuntimeState* runtime_state, RuntimeProfile* runtime_profile,
@@ -54,7 +54,7 @@ struct PartitionSortInfo {
_topn_phase(topn_phase) {}
public:
- vectorized::VSortExecExprs* _vsort_exec_exprs = nullptr;
+ VSortExecExprs* _vsort_exec_exprs = nullptr;
int64_t _limit = -1;
int64_t _offset = 0;
ObjectPool* _pool = nullptr;
@@ -86,15 +86,14 @@ public:
void add_row_idx(size_t row) { _selector.push_back(row); }
- Status append_block_by_selector(const vectorized::Block* input_block, bool eos);
+ Status append_block_by_selector(const Block* input_block, bool eos);
Status do_partition_topn_sort();
void create_or_reset_sorter_state();
- void append_whole_block(vectorized::Block* input_block, const RowDescriptor& row_desc) {
- auto empty_block = vectorized::Block::create_unique(
- vectorized::VectorizedUtils::create_empty_block(row_desc));
+ void append_whole_block(Block* input_block, const RowDescriptor& row_desc) {
+ auto empty_block = Block::create_unique(VectorizedUtils::create_empty_block(row_desc));
empty_block->swap(*input_block);
_blocks.emplace_back(std::move(empty_block));
}
@@ -103,14 +102,14 @@ public:
return _init_rows <= 0 || _blocks.back()->bytes() > INITIAL_BUFFERED_BLOCK_BYTES;
}
- vectorized::IColumn::Selector _selector;
- std::vector<std::unique_ptr<vectorized::Block>> _blocks;
+ IColumn::Selector _selector;
+ std::vector<std::unique_ptr<Block>> _blocks;
size_t _current_input_rows = 0;
int64_t _init_rows = 4096;
bool _is_first_sorter = false;
- std::unique_ptr<vectorized::SortCursorCmp> _previous_row;
- std::unique_ptr<vectorized::PartitionSorter> _partition_topn_sorter = nullptr;
+ std::unique_ptr<SortCursorCmp> _previous_row;
+ std::unique_ptr<PartitionSorter> _partition_topn_sorter = nullptr;
std::shared_ptr<PartitionSortInfo> _partition_sort_info = nullptr;
};
@@ -122,108 +121,99 @@ template <typename T>
using PartitionData = PHHashMap<T, PartitionDataPtr, HashCRC32<T>>;
template <typename T>
-using PartitionDataSingle = vectorized::MethodOneNumber<T, PartitionData<T>>;
+using PartitionDataSingle = MethodOneNumber<T, PartitionData<T>>;
template <typename T>
-using PartitionDataSingleNullable = vectorized::MethodSingleNullableColumn<
- vectorized::MethodOneNumber<T, vectorized::DataWithNullKey<PartitionData<T>>>>;
+using PartitionDataSingleNullable =
+ MethodSingleNullableColumn<MethodOneNumber<T, DataWithNullKey<PartitionData<T>>>>;
using PartitionedMethodVariants = std::variant<
- std::monostate, vectorized::MethodSerialized<PartitionDataWithStringKey>,
- PartitionDataSingle<vectorized::UInt8>, PartitionDataSingle<vectorized::UInt16>,
- PartitionDataSingle<vectorized::UInt32>, PartitionDataSingle<vectorized::UInt64>,
- PartitionDataSingle<vectorized::UInt128>, PartitionDataSingle<vectorized::UInt256>,
- PartitionDataSingleNullable<vectorized::UInt8>,
- PartitionDataSingleNullable<vectorized::UInt16>,
- PartitionDataSingleNullable<vectorized::UInt32>,
- PartitionDataSingleNullable<vectorized::UInt64>,
- PartitionDataSingleNullable<vectorized::UInt128>,
- PartitionDataSingleNullable<vectorized::UInt256>,
- vectorized::MethodKeysFixed<PartitionData<vectorized::UInt64>>,
- vectorized::MethodKeysFixed<PartitionData<vectorized::UInt72>>,
- vectorized::MethodKeysFixed<PartitionData<vectorized::UInt96>>,
- vectorized::MethodKeysFixed<PartitionData<vectorized::UInt104>>,
- vectorized::MethodKeysFixed<PartitionData<vectorized::UInt128>>,
- vectorized::MethodKeysFixed<PartitionData<vectorized::UInt136>>,
- vectorized::MethodKeysFixed<PartitionData<vectorized::UInt256>>,
- vectorized::MethodStringNoCache<PartitionDataWithShortStringKey>,
- vectorized::MethodSingleNullableColumn<vectorized::MethodStringNoCache<
- vectorized::DataWithNullKey<PartitionDataWithShortStringKey>>>>;
+ std::monostate, MethodSerialized<PartitionDataWithStringKey>, PartitionDataSingle<UInt8>,
+ PartitionDataSingle<UInt16>, PartitionDataSingle<UInt32>, PartitionDataSingle<UInt64>,
+ PartitionDataSingle<UInt128>, PartitionDataSingle<UInt256>,
+ PartitionDataSingleNullable<UInt8>, PartitionDataSingleNullable<UInt16>,
+ PartitionDataSingleNullable<UInt32>, PartitionDataSingleNullable<UInt64>,
+ PartitionDataSingleNullable<UInt128>, PartitionDataSingleNullable<UInt256>,
+ MethodKeysFixed<PartitionData<UInt64>>, MethodKeysFixed<PartitionData<UInt72>>,
+ MethodKeysFixed<PartitionData<UInt96>>, MethodKeysFixed<PartitionData<UInt104>>,
+ MethodKeysFixed<PartitionData<UInt128>>, MethodKeysFixed<PartitionData<UInt136>>,
+ MethodKeysFixed<PartitionData<UInt256>>,
+ MethodStringNoCache<PartitionDataWithShortStringKey>,
+ MethodSingleNullableColumn<
+ MethodStringNoCache<DataWithNullKey<PartitionDataWithShortStringKey>>>>;
struct PartitionedHashMapVariants
- : public DataVariants<PartitionedMethodVariants, vectorized::MethodSingleNullableColumn,
- vectorized::MethodOneNumber, vectorized::DataWithNullKey> {
- void init(const std::vector<vectorized::DataTypePtr>& data_types, HashKeyType type) {
+ : public DataVariants<PartitionedMethodVariants, MethodSingleNullableColumn,
+ MethodOneNumber, DataWithNullKey> {
+ void init(const std::vector<DataTypePtr>& data_types, HashKeyType type) {
bool nullable = data_types.size() == 1 && data_types[0]->is_nullable();
switch (type) {
case HashKeyType::without_key: {
break;
}
case HashKeyType::serialized: {
- method_variant.emplace<vectorized::MethodSerialized<PartitionDataWithStringKey>>();
+ method_variant.emplace<MethodSerialized<PartitionDataWithStringKey>>();
break;
}
case HashKeyType::int8_key: {
- emplace_single<vectorized::UInt8, PartitionData<vectorized::UInt8>>(nullable);
+ emplace_single<UInt8, PartitionData<UInt8>>(nullable);
break;
}
case HashKeyType::int16_key: {
- emplace_single<vectorized::UInt16, PartitionData<vectorized::UInt16>>(nullable);
+ emplace_single<UInt16, PartitionData<UInt16>>(nullable);
break;
}
case HashKeyType::int32_key: {
- emplace_single<vectorized::UInt32, PartitionData<vectorized::UInt32>>(nullable);
+ emplace_single<UInt32, PartitionData<UInt32>>(nullable);
break;
}
case HashKeyType::int64_key: {
- emplace_single<vectorized::UInt64, PartitionData<vectorized::UInt64>>(nullable);
+ emplace_single<UInt64, PartitionData<UInt64>>(nullable);
break;
}
case HashKeyType::int128_key: {
- emplace_single<vectorized::UInt128, PartitionData<vectorized::UInt128>>(nullable);
+ emplace_single<UInt128, PartitionData<UInt128>>(nullable);
break;
}
case HashKeyType::int256_key: {
- emplace_single<vectorized::UInt256, PartitionData<vectorized::UInt256>>(nullable);
+ emplace_single<UInt256, PartitionData<UInt256>>(nullable);
break;
}
case HashKeyType::string_key: {
if (nullable) {
- method_variant.emplace<
- vectorized::MethodSingleNullableColumn<vectorized::MethodStringNoCache<
- vectorized::DataWithNullKey<PartitionDataWithShortStringKey>>>>();
+ method_variant.emplace<MethodSingleNullableColumn<
+ MethodStringNoCache<DataWithNullKey<PartitionDataWithShortStringKey>>>>();
} else {
- method_variant.emplace<
- vectorized::MethodStringNoCache<PartitionDataWithShortStringKey>>();
+ method_variant.emplace<MethodStringNoCache<PartitionDataWithShortStringKey>>();
}
break;
}
case HashKeyType::fixed64:
- method_variant.emplace<vectorized::MethodKeysFixed<PartitionData<vectorized::UInt64>>>(
+ method_variant.emplace<MethodKeysFixed<PartitionData<UInt64>>>(
get_key_sizes(data_types));
break;
case HashKeyType::fixed72:
- method_variant.emplace<vectorized::MethodKeysFixed<PartitionData<vectorized::UInt72>>>(
+ method_variant.emplace<MethodKeysFixed<PartitionData<UInt72>>>(
get_key_sizes(data_types));
break;
case HashKeyType::fixed96:
- method_variant.emplace<vectorized::MethodKeysFixed<PartitionData<vectorized::UInt96>>>(
+ method_variant.emplace<MethodKeysFixed<PartitionData<UInt96>>>(
get_key_sizes(data_types));
break;
case HashKeyType::fixed104:
- method_variant.emplace<vectorized::MethodKeysFixed<PartitionData<vectorized::UInt104>>>(
+ method_variant.emplace<MethodKeysFixed<PartitionData<UInt104>>>(
get_key_sizes(data_types));
break;
case HashKeyType::fixed128:
- method_variant.emplace<vectorized::MethodKeysFixed<PartitionData<vectorized::UInt128>>>(
+ method_variant.emplace<MethodKeysFixed<PartitionData<UInt128>>>(
get_key_sizes(data_types));
break;
case HashKeyType::fixed136:
- method_variant.emplace<vectorized::MethodKeysFixed<PartitionData<vectorized::UInt136>>>(
+ method_variant.emplace<MethodKeysFixed<PartitionData<UInt136>>>(
get_key_sizes(data_types));
break;
case HashKeyType::fixed256:
- method_variant.emplace<vectorized::MethodKeysFixed<PartitionData<vectorized::UInt256>>>(
+ method_variant.emplace<MethodKeysFixed<PartitionData<UInt256>>>(
get_key_sizes(data_types));
break;
default:
diff --git a/be/src/exec/common/set_utils.h b/be/src/exec/common/set_utils.h
index 67431e321cc..f7feb05529b 100644
--- a/be/src/exec/common/set_utils.h
+++ b/be/src/exec/common/set_utils.h
@@ -39,71 +39,61 @@ template <typename T>
using SetData = PHHashMap<T, RowRefWithFlag, HashCRC32<T>>;
template <typename T>
-using SetFixedKeyHashTableContext = vectorized::MethodKeysFixed<SetData<T>>;
+using SetFixedKeyHashTableContext = MethodKeysFixed<SetData<T>>;
template <typename T>
-using SetPrimaryTypeHashTableContext = vectorized::MethodOneNumber<T, SetData<T>>;
+using SetPrimaryTypeHashTableContext = MethodOneNumber<T, SetData<T>>;
template <typename T>
-using SetPrimaryTypeHashTableContextNullable = vectorized::MethodSingleNullableColumn<
- vectorized::MethodOneNumber<T, vectorized::DataWithNullKey<SetData<T>>>>;
+using SetPrimaryTypeHashTableContextNullable =
+ MethodSingleNullableColumn<MethodOneNumber<T, DataWithNullKey<SetData<T>>>>;
-using SetSerializedHashTableContext =
- vectorized::MethodSerialized<PHHashMap<StringRef, RowRefWithFlag>>;
-using SetMethodOneString = vectorized::MethodStringNoCache<PHHashMap<StringRef, RowRefWithFlag>>;
-using SetMethodOneStringNullable =
- vectorized::MethodSingleNullableColumn<vectorized::MethodStringNoCache<
- vectorized::DataWithNullKey<PHHashMap<StringRef, RowRefWithFlag>>>>;
+using SetSerializedHashTableContext = MethodSerialized<PHHashMap<StringRef, RowRefWithFlag>>;
+using SetMethodOneString = MethodStringNoCache<PHHashMap<StringRef, RowRefWithFlag>>;
+using SetMethodOneStringNullable = MethodSingleNullableColumn<
+ MethodStringNoCache<DataWithNullKey<PHHashMap<StringRef, RowRefWithFlag>>>>;
using SetHashTableVariants =
std::variant<std::monostate, SetSerializedHashTableContext, SetMethodOneString,
- SetMethodOneStringNullable,
- SetPrimaryTypeHashTableContextNullable<vectorized::UInt8>,
- SetPrimaryTypeHashTableContextNullable<vectorized::UInt16>,
- SetPrimaryTypeHashTableContextNullable<vectorized::UInt32>,
- SetPrimaryTypeHashTableContextNullable<vectorized::UInt64>,
- SetPrimaryTypeHashTableContextNullable<vectorized::UInt128>,
- SetPrimaryTypeHashTableContextNullable<vectorized::UInt256>,
- SetPrimaryTypeHashTableContext<vectorized::UInt8>,
- SetPrimaryTypeHashTableContext<vectorized::UInt16>,
- SetPrimaryTypeHashTableContext<vectorized::UInt32>,
- SetPrimaryTypeHashTableContext<vectorized::UInt64>,
- SetPrimaryTypeHashTableContext<vectorized::UInt128>,
- SetPrimaryTypeHashTableContext<vectorized::UInt256>,
- SetFixedKeyHashTableContext<vectorized::UInt64>,
- SetFixedKeyHashTableContext<vectorized::UInt72>,
- SetFixedKeyHashTableContext<vectorized::UInt96>,
- SetFixedKeyHashTableContext<vectorized::UInt104>,
- SetFixedKeyHashTableContext<vectorized::UInt128>,
- SetFixedKeyHashTableContext<vectorized::UInt256>,
- SetFixedKeyHashTableContext<vectorized::UInt136>>;
+ SetMethodOneStringNullable, SetPrimaryTypeHashTableContextNullable<UInt8>,
+ SetPrimaryTypeHashTableContextNullable<UInt16>,
+ SetPrimaryTypeHashTableContextNullable<UInt32>,
+ SetPrimaryTypeHashTableContextNullable<UInt64>,
+ SetPrimaryTypeHashTableContextNullable<UInt128>,
+ SetPrimaryTypeHashTableContextNullable<UInt256>,
+ SetPrimaryTypeHashTableContext<UInt8>, SetPrimaryTypeHashTableContext<UInt16>,
+ SetPrimaryTypeHashTableContext<UInt32>, SetPrimaryTypeHashTableContext<UInt64>,
+ SetPrimaryTypeHashTableContext<UInt128>,
+ SetPrimaryTypeHashTableContext<UInt256>, SetFixedKeyHashTableContext<UInt64>,
+ SetFixedKeyHashTableContext<UInt72>, SetFixedKeyHashTableContext<UInt96>,
+ SetFixedKeyHashTableContext<UInt104>, SetFixedKeyHashTableContext<UInt128>,
+ SetFixedKeyHashTableContext<UInt256>, SetFixedKeyHashTableContext<UInt136>>;
-struct SetDataVariants
- : public DataVariants<SetHashTableVariants, vectorized::MethodSingleNullableColumn,
- vectorized::MethodOneNumber, vectorized::DataWithNullKey> {
- void init(const std::vector<vectorized::DataTypePtr>& data_types, HashKeyType type) {
+struct SetDataVariants : public DataVariants<SetHashTableVariants, MethodSingleNullableColumn,
+ MethodOneNumber, DataWithNullKey> {
+ void init(const std::vector<DataTypePtr>& data_types, HashKeyType type) {
bool nullable = data_types.size() == 1 && data_types[0]->is_nullable();
switch (type) {
case HashKeyType::serialized:
method_variant.emplace<SetSerializedHashTableContext>();
break;
case HashKeyType::int8_key:
- emplace_single<vectorized::UInt8, SetData<vectorized::UInt8>>(nullable);
+ emplace_single<UInt8, SetData<UInt8>>(nullable);
break;
case HashKeyType::int16_key:
- emplace_single<vectorized::UInt16, SetData<vectorized::UInt16>>(nullable);
+ emplace_single<UInt16, SetData<UInt16>>(nullable);
break;
case HashKeyType::int32_key:
- emplace_single<vectorized::UInt32, SetData<vectorized::UInt32>>(nullable);
+ emplace_single<UInt32, SetData<UInt32>>(nullable);
break;
case HashKeyType::int64_key:
- emplace_single<vectorized::UInt64, SetData<vectorized::UInt64>>(nullable);
+ emplace_single<UInt64, SetData<UInt64>>(nullable);
break;
case HashKeyType::int128_key:
- emplace_single<vectorized::UInt128, SetData<vectorized::UInt128>>(nullable);
+ emplace_single<UInt128, SetData<UInt128>>(nullable);
break;
case HashKeyType::int256_key:
- emplace_single<vectorized::UInt256, SetData<vectorized::UInt256>>(nullable);
+ emplace_single<UInt256, SetData<UInt256>>(nullable);
break;
case HashKeyType::string_key:
if (nullable) {
@@ -113,32 +103,25 @@ struct SetDataVariants
}
break;
case HashKeyType::fixed64:
- method_variant.emplace<SetFixedKeyHashTableContext<vectorized::UInt64>>(
- get_key_sizes(data_types));
+ method_variant.emplace<SetFixedKeyHashTableContext<UInt64>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed72:
- method_variant.emplace<SetFixedKeyHashTableContext<vectorized::UInt72>>(
- get_key_sizes(data_types));
+ method_variant.emplace<SetFixedKeyHashTableContext<UInt72>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed96:
- method_variant.emplace<SetFixedKeyHashTableContext<vectorized::UInt96>>(
- get_key_sizes(data_types));
+ method_variant.emplace<SetFixedKeyHashTableContext<UInt96>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed104:
- method_variant.emplace<SetFixedKeyHashTableContext<vectorized::UInt104>>(
- get_key_sizes(data_types));
+ method_variant.emplace<SetFixedKeyHashTableContext<UInt104>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed128:
- method_variant.emplace<SetFixedKeyHashTableContext<vectorized::UInt128>>(
- get_key_sizes(data_types));
+ method_variant.emplace<SetFixedKeyHashTableContext<UInt128>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed136:
- method_variant.emplace<SetFixedKeyHashTableContext<vectorized::UInt136>>(
- get_key_sizes(data_types));
+ method_variant.emplace<SetFixedKeyHashTableContext<UInt136>>(get_key_sizes(data_types));
break;
case HashKeyType::fixed256:
- method_variant.emplace<SetFixedKeyHashTableContext<vectorized::UInt256>>(
- get_key_sizes(data_types));
+ method_variant.emplace<SetFixedKeyHashTableContext<UInt256>>(get_key_sizes(data_types));
break;
default:
throw Exception(ErrorCode::INTERNAL_ERROR,
diff --git a/be/src/exec/common/sip_hash.h b/be/src/exec/common/sip_hash.h
index d07c20a24d8..865d0687435 100644
--- a/be/src/exec/common/sip_hash.h
+++ b/be/src/exec/common/sip_hash.h
@@ -42,7 +42,7 @@
namespace doris {
#include "common/compile_check_begin.h"
-#define ROTL(x, b) static_cast<vectorized::UInt64>(((x) << (b)) | ((x) >> (64 - (b))))
+#define ROTL(x, b) static_cast<UInt64>(((x) << (b)) | ((x) >> (64 - (b))))
#define SIPROUND \
do { \
@@ -65,18 +65,18 @@ namespace doris {
class SipHash {
private:
/// State.
- vectorized::UInt64 v0;
- vectorized::UInt64 v1;
- vectorized::UInt64 v2;
- vectorized::UInt64 v3;
+ UInt64 v0;
+ UInt64 v1;
+ UInt64 v2;
+ UInt64 v3;
/// How many bytes have been processed.
- vectorized::UInt64 cnt;
+ UInt64 cnt;
/// The current 8 bytes of input data.
union {
- vectorized::UInt64 current_word;
- vectorized::UInt8 current_bytes[8];
+ UInt64 current_word;
+ UInt8 current_bytes[8];
};
ALWAYS_INLINE void finalize() {
@@ -97,7 +97,7 @@ private:
public:
/// Arguments - seed.
- SipHash(vectorized::UInt64 k0 = 0, vectorized::UInt64 k1 = 0) {
+ SipHash(UInt64 k0 = 0, UInt64 k1 = 0) {
/// Initialize the state with some random bytes and seed.
v0 = 0x736f6d6570736575ULL ^ k0;
v1 = 0x646f72616e646f6dULL ^ k1;
@@ -108,7 +108,7 @@ public:
current_word = 0;
}
- void update(const char* data, vectorized::UInt64 size) {
+ void update(const char* data, UInt64 size) {
const char* end = data + size;
/// We'll finish to process the remainder of the previous update, if any.
@@ -131,7 +131,7 @@ public:
cnt += end - data;
while (data + 8 <= end) {
- current_word = unaligned_load<vectorized::UInt64>(data);
+ current_word = unaligned_load<UInt64>(data);
v3 ^= current_word;
SIPROUND;
@@ -182,8 +182,8 @@ public:
void get128(char* out) {
finalize();
- reinterpret_cast<vectorized::UInt64*>(out)[0] = v0 ^ v1;
- reinterpret_cast<vectorized::UInt64*>(out)[1] = v2 ^ v3;
+ reinterpret_cast<UInt64*>(out)[0] = v0 ^ v1;
+ reinterpret_cast<UInt64*>(out)[1] = v2 ^ v3;
}
/// template for avoiding 'unsigned long long' vs 'unsigned long' problem on old poco in macos
@@ -195,7 +195,7 @@ public:
hi = v2 ^ v3;
}
- vectorized::UInt64 get64() {
+ UInt64 get64() {
finalize();
return v0 ^ v1 ^ v2 ^ v3;
}
diff --git a/be/src/exec/common/stringop_substring.h b/be/src/exec/common/stringop_substring.h
index a666beb6781..1c597d4618e 100644
--- a/be/src/exec/common/stringop_substring.h
+++ b/be/src/exec/common/stringop_substring.h
@@ -63,7 +63,7 @@
#include "core/string_ref.h"
#include "util/simd/vstring_function.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
struct StringOP {
static void push_empty_string(size_t index, ColumnString::Chars& chars,
@@ -150,10 +150,8 @@ struct SubstringUtil {
specific_start_column->get_data(), specific_len_column->get_data(),
res->get_chars(), res->get_offsets(), input_rows_count);
},
- vectorized::make_bool_variant(is_ascii),
- vectorized::make_bool_variant(col_const[0]),
- vectorized::make_bool_variant(col_const[1]),
- vectorized::make_bool_variant(col_const[2]));
+ make_bool_variant(is_ascii), make_bool_variant(col_const[0]),
+ make_bool_variant(col_const[1]), make_bool_variant(col_const[2]));
block.get_by_position(result).column = std::move(res);
}
@@ -282,4 +280,4 @@ private:
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/exec/common/template_helpers.hpp b/be/src/exec/common/template_helpers.hpp
index b2b46646621..aa05da10a88 100644
--- a/be/src/exec/common/template_helpers.hpp
+++ b/be/src/exec/common/template_helpers.hpp
@@ -20,7 +20,7 @@
#include <limits>
#include <variant>
-namespace doris::vectorized {
+namespace doris {
template <typename LoopType, LoopType start, LoopType end, template <LoopType> typename Reducer>
struct constexpr_loop_match {
@@ -56,4 +56,4 @@ struct Overload : Callables... {
template <typename... Callables>
Overload(Callables&&... callables) -> Overload<Callables...>;
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/common/util.hpp b/be/src/exec/common/util.hpp
index 7e333c27dee..a729142ce92 100644
--- a/be/src/exec/common/util.hpp
+++ b/be/src/exec/common/util.hpp
@@ -29,7 +29,7 @@
#include "runtime/descriptors.h"
#include "util/simd/bits.h"
-namespace doris::vectorized {
+namespace doris {
class VectorizedUtils {
public:
static Block create_empty_columnswithtypename(const RowDescriptor& row_desc) {
@@ -296,7 +296,7 @@ T read_from_json(std::string& json_str) {
return params;
}
-} // namespace doris::vectorized
+} // namespace doris
namespace apache::thrift {
template <typename ThriftStruct>
diff --git a/be/src/exec/common/varbinaryop_subbinary.h b/be/src/exec/common/varbinaryop_subbinary.h
index 9dcf6e67237..e7b6049b1c0 100644
--- a/be/src/exec/common/varbinaryop_subbinary.h
+++ b/be/src/exec/common/varbinaryop_subbinary.h
@@ -24,7 +24,7 @@
#include "core/data_type/data_type_varbinary.h"
#include "core/types.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
constexpr auto SIZE_OF_UINT = sizeof(uint32_t);
@@ -77,9 +77,8 @@ struct SubBinaryUtil {
specific_binary_column, specific_start_column, specific_len_column,
res.get(), input_rows_count);
},
- vectorized::make_bool_variant(col_const[0]),
- vectorized::make_bool_variant(col_const[1]),
- vectorized::make_bool_variant(col_const[2]));
+ make_bool_variant(col_const[0]), make_bool_variant(col_const[1]),
+ make_bool_variant(col_const[2]));
block.get_by_position(result).column = std::move(res);
}
@@ -116,4 +115,4 @@ private:
};
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/common/variant_util.cpp b/be/src/exec/common/variant_util.cpp
index 45c63e3f424..dd70119d245 100644
--- a/be/src/exec/common/variant_util.cpp
+++ b/be/src/exec/common/variant_util.cpp
@@ -100,7 +100,7 @@
#include "util/json/path_in_data.h"
#include "util/json/simd_json_parser.h"
-namespace doris::vectorized::variant_util {
+namespace doris::variant_util {
#include "common/compile_check_begin.h"
inline void append_escaped_regex_char(std::string* regex_output, char ch) {
@@ -352,8 +352,8 @@ Status cast_column(const ColumnWithTypeAndName& arg, const DataTypePtr& type, Co
return Status::OK();
}
-void get_column_by_type(const vectorized::DataTypePtr& data_type, const std::string& name,
- TabletColumn& column, const ExtraInfo& ext_info) {
+void get_column_by_type(const DataTypePtr& data_type, const std::string& name, TabletColumn& column,
+ const ExtraInfo& ext_info) {
column.set_name(name);
column.set_type(data_type->get_storage_field_type());
if (ext_info.unique_id >= 0) {
@@ -409,7 +409,7 @@ void get_column_by_type(const vectorized::DataTypePtr& data_type, const std::str
data_type->get_name(), name);
}
-TabletColumn get_column_by_type(const vectorized::DataTypePtr& data_type, const std::string& name,
+TabletColumn get_column_by_type(const DataTypePtr& data_type, const std::string& name,
const ExtraInfo& ext_info) {
TabletColumn result;
get_column_by_type(data_type, name, result, ext_info);
@@ -701,10 +701,9 @@ Status get_least_common_schema(const std::vector<TabletSchemaSPtr>& schemas,
}
// sort by paths in lexicographical order
-vectorized::ColumnVariant::Subcolumns get_sorted_subcolumns(
- const vectorized::ColumnVariant::Subcolumns& subcolumns) {
+ColumnVariant::Subcolumns get_sorted_subcolumns(const ColumnVariant::Subcolumns& subcolumns) {
// sort by paths in lexicographical order
- vectorized::ColumnVariant::Subcolumns sorted = subcolumns;
+ ColumnVariant::Subcolumns sorted = subcolumns;
std::sort(sorted.begin(), sorted.end(), [](const auto& lhsItem, const auto& rhsItem) {
return lhsItem->path < rhsItem->path;
});
@@ -1056,8 +1055,7 @@ Status VariantCompactionUtil::get_compaction_typed_columns(
}
Status VariantCompactionUtil::get_compaction_nested_columns(
- const std::unordered_set<vectorized::PathInData, vectorized::PathInData::Hash>&
- nested_paths,
+ const std::unordered_set<PathInData, PathInData::Hash>& nested_paths,
const PathToDataTypes& path_to_data_types, const TabletColumnPtr parent_column,
TabletSchemaSPtr& output_schema, TabletSchema::PathsSetInfo& paths_set_info) {
const auto& parent_indexes = output_schema->inverted_indexs(parent_column->unique_id());
@@ -1070,7 +1068,7 @@ Status VariantCompactionUtil::get_compaction_nested_columns(
get_least_supertype_jsonb(find_data_types->second, &data_type);
const std::string& column_name = parent_column->name_lower_case() + "." + path.get_path();
- vectorized::PathInDataBuilder full_path_builder;
+ PathInDataBuilder full_path_builder;
auto full_path = full_path_builder.append(parent_column->name_lower_case(), false)
.append(path.get_parts(), false)
.build();
@@ -1560,8 +1558,8 @@ TabletSchemaSPtr VariantCompactionUtil::calculate_variant_extended_schema(
}
const std::string& column_name =
column->name_lower_case() + "." + entry->path.get_path();
- const vectorized::DataTypePtr& data_type = entry->data.file_column_type;
- vectorized::PathInDataBuilder full_path_builder;
+ const DataTypePtr& data_type = entry->data.file_column_type;
+ PathInDataBuilder full_path_builder;
auto full_path = full_path_builder.append(column->name_lower_case(), false)
.append(entry->path.get_parts(), false)
.build();
@@ -2177,4 +2175,4 @@ Status parse_and_materialize_variant_columns(Block& block, const TabletSchema& t
}
#include "common/compile_check_end.h"
-} // namespace doris::vectorized::variant_util
+} // namespace doris::variant_util
diff --git a/be/src/exec/common/variant_util.h b/be/src/exec/common/variant_util.h
index 56905324b7b..e2b2d50bd87 100644
--- a/be/src/exec/common/variant_util.h
+++ b/be/src/exec/common/variant_util.h
@@ -46,7 +46,6 @@ enum class FieldType;
namespace segment_v2 {
struct VariantStatisticsPB;
} // namespace segment_v2
-namespace vectorized {
class Block;
class IColumn;
struct ColumnWithTypeAndName;
@@ -58,12 +57,11 @@ template <typename T>
class ColumnStr;
using ColumnString = ColumnStr<UInt32>;
using JsonParser = JSONDataParser<SimdJSONParser>;
-} // namespace vectorized
} // namespace doris
const std::string SPARSE_COLUMN_PATH = "__DORIS_VARIANT_SPARSE__";
const std::string DOC_VALUE_COLUMN_PATH = "__DORIS_VARIANT_DOC_VALUE__";
-namespace doris::vectorized::variant_util {
+namespace doris::variant_util {
// Convert a restricted glob pattern into a regex (for tests/internal use).
Status glob_to_regex(const std::string& glob_pattern, std::string* regex_pattern);
@@ -78,7 +76,7 @@ struct VariantExtendedInfo {
PathToNoneNullValues path_to_none_null_values; // key: path, value: number of none null values
std::unordered_set<std::string> sparse_paths; // sparse paths in this variant column
std::unordered_set<std::string> typed_paths; // typed paths in this variant column
- std::unordered_set<vectorized::PathInData, vectorized::PathInData::Hash>
+ std::unordered_set<PathInData, PathInData::Hash>
nested_paths; // nested paths in this variant column
PathToDataTypes path_to_data_types; // key: path, value: data types
bool has_nested_group = false; // whether this variant column has nested group
@@ -100,10 +98,10 @@ struct ExtraInfo {
// -1 indicates it's not a Frontend generated column
int32_t unique_id = -1;
int32_t parent_unique_id = -1;
- vectorized::PathInData path_info;
+ PathInData path_info;
};
-TabletColumn get_column_by_type(const vectorized::DataTypePtr& data_type, const std::string& name,
+TabletColumn get_column_by_type(const DataTypePtr& data_type, const std::string& name,
const ExtraInfo& ext_info);
// check if the tuple_paths has ambiguous paths
@@ -137,8 +135,7 @@ void inherit_column_attributes(const TabletColumn& source, TabletColumn& target,
bool is_bf_supported_by_fe_for_variant_subcolumn(FieldType type);
// get sorted subcolumns of variant
-vectorized::ColumnVariant::Subcolumns get_sorted_subcolumns(
- const vectorized::ColumnVariant::Subcolumns& subcolumns);
+ColumnVariant::Subcolumns get_sorted_subcolumns(const ColumnVariant::Subcolumns& subcolumns);
bool has_schema_index_diff(const TabletSchema* new_schema, const TabletSchema* old_schema,
int32_t new_col_idx, int32_t old_col_idx);
@@ -228,8 +225,7 @@ public:
TabletSchema::PathsSetInfo& paths_set_info);
static Status get_compaction_nested_columns(
- const std::unordered_set<vectorized::PathInData, vectorized::PathInData::Hash>&
- nested_paths,
+ const std::unordered_set<PathInData, PathInData::Hash>& nested_paths,
const PathToDataTypes& path_to_data_types, const TabletColumnPtr parent_column,
TabletSchemaSPtr& output_schema, TabletSchema::PathsSetInfo& paths_set_info);
};
@@ -259,4 +255,4 @@ Status parse_and_materialize_variant_columns(Block& block, const TabletSchema& t
phmap::flat_hash_map<std::string_view, ColumnVariant::Subcolumn> materialize_docs_to_subcolumns_map(
const ColumnVariant& variant);
-} // namespace doris::vectorized::variant_util
+} // namespace doris::variant_util
diff --git a/be/src/exec/connector/jni_connector.cpp b/be/src/exec/connector/jni_connector.cpp
index e47cea0fc1d..c1d8e275495 100644
--- a/be/src/exec/connector/jni_connector.cpp
+++ b/be/src/exec/connector/jni_connector.cpp
@@ -47,7 +47,7 @@ namespace doris {
class RuntimeProfile;
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
#define FOR_FIXED_LENGTH_TYPES(M) \
M(PrimitiveType::TYPE_TINYINT, ColumnInt8, Int8) \
@@ -303,7 +303,7 @@ Status JniConnector::_fill_column(TableMetaAddress& address, ColumnPtr& doris_co
MutableColumnPtr data_column;
if (doris_column->is_nullable()) {
auto* nullable_column =
- reinterpret_cast<vectorized::ColumnNullable*>(doris_column->assume_mutable().get());
+ reinterpret_cast<ColumnNullable*>(doris_column->assume_mutable().get());
data_column = nullable_column->get_nested_column_ptr();
NullMap& null_map = nullable_column->get_null_map_data();
size_t origin_size = null_map.size();
@@ -678,7 +678,7 @@ Status JniConnector::_fill_column_meta(const ColumnPtr& doris_column, const Data
// insert null map address
const IColumn* data_column = nullptr;
if (column->is_nullable()) {
- const auto& nullable_column = assert_cast<const vectorized::ColumnNullable&>(*column);
+ const auto& nullable_column = assert_cast<const ColumnNullable&>(*column);
data_column = &(nullable_column.get_nested_column());
const auto& null_map = nullable_column.get_null_map_data();
meta_data.emplace_back((long)null_map.data());
@@ -858,4 +858,4 @@ void JniConnector::_collect_profile_before_close() {
}
}
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/connector/jni_connector.h b/be/src/exec/connector/jni_connector.h
index e26434053fe..20f744de038 100644
--- a/be/src/exec/connector/jni_connector.h
+++ b/be/src/exec/connector/jni_connector.h
@@ -44,16 +44,14 @@ namespace doris {
#include "common/compile_check_begin.h"
class RuntimeState;
-namespace vectorized {
class Block;
template <PrimitiveType T>
class ColumnDecimal;
template <PrimitiveType T>
class ColumnVector;
-} // namespace vectorized
} // namespace doris
-namespace doris::vectorized {
+namespace doris {
/**
* Connector to java jni scanner, which should extend org.apache.doris.common.jni.JniScanner
@@ -481,4 +479,4 @@ private:
}
};
#include "common/compile_check_end.h"
-} // namespace doris::vectorized
+} // namespace doris
diff --git a/be/src/exec/connector/skewed_partition_rebalancer.cpp b/be/src/exec/connector/skewed_partition_rebalancer.cpp
index 7006ed33153..12eaf058963 100644
--- a/be/src/exec/connector/skewed_partition_rebalancer.cpp
+++ b/be/src/exec/connector/skewed_partition_rebalancer.cpp
@@ -22,7 +22,7 @@
#include <cmath>
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_avoid_begin.h"
SkewedPartitionRebalancer::SkewedPartitionRebalancer(
@@ -276,4 +276,4 @@ void SkewedPartitionRebalancer::_rebalance_partitions(long data_processed) {
_data_processed_at_last_rebalance = data_processed;
}
#include "common/compile_check_avoid_end.h"
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/exec/connector/skewed_partition_rebalancer.h b/be/src/exec/connector/skewed_partition_rebalancer.h
index 0490b236d38..f8120d2b10f 100644
--- a/be/src/exec/connector/skewed_partition_rebalancer.h
+++ b/be/src/exec/connector/skewed_partition_rebalancer.h
@@ -51,7 +51,7 @@
#include "util/indexed_priority_queue.hpp"
-namespace doris::vectorized {
+namespace doris {
class SkewedPartitionRebalancer {
private:
struct TaskBucket {
@@ -127,4 +127,4 @@ private:
std::vector<std::vector<TaskBucket>> _partition_assignments;
};
-} // namespace doris::vectorized
\ No newline at end of file
+} // namespace doris
\ No newline at end of file
diff --git a/be/src/exec/connector/vjdbc_connector.cpp b/be/src/exec/connector/vjdbc_connector.cpp
index f98b20ec5a4..0d9c95c3d33 100644
--- a/be/src/exec/connector/vjdbc_connector.cpp
+++ b/be/src/exec/connector/vjdbc_connector.cpp
@@ -46,7 +46,7 @@
#include "runtime/user_function_cache.h"
#include "util/jni-util.h"
-namespace doris::vectorized {
+namespace doris {
#include "common/compile_check_begin.h"
const char* JDBC_EXECUTOR_FACTORY_CLASS = "org/apache/doris/jdbc/JdbcExecutorFactory";
const char* JDBC_EXECUTOR_CTOR_SIGNATURE = "([B)V";
@@ -296,8 +296,7 @@ Status JdbcConnector::get_next(bool* eos, Block* block, int batch_size) {
return Status::OK();
}
-Status JdbcConnector::append(vectorized::Block* block,
- const vectorized::VExprContextSPtrs& output_vexpr_ctxs,
+Status JdbcConnector::append(Block* block, const VExprContextSPtrs& output_vexpr_ctxs,
uint32_t start_send_row, uint32_t* num_rows_sent,
TOdbcTableType::type table_type) {
RETURN_IF_ERROR(exec_stmt_write(block, output_vexpr_ctxs, num_rows_sent));
@@ -518,8 +517,8 @@ Status JdbcConnector::_cast_string_to_hll(const SlotDescriptor* slot_desc, Block
if (_target_data_type->is_nullable()) {
block->replace_by_position(column_index, res_col);
} else {
- auto nested_ptr = reinterpret_cast<const vectorized::ColumnNullable*>(res_col.get())
- ->get_nested_column_ptr();
+ auto nested_ptr =
+ reinterpret_cast<const ColumnNullable*>(res_col.get())->get_nested_column_ptr();
block->replace_by_position(column_index, nested_ptr);
}
@@ -563,8 +562,8 @@ Status JdbcConnector::_cast_string_to_bitmap(const SlotDescriptor* slot_desc, Bl
if (_target_data_type->is_nullable()) {
block->replace_by_position(column_index, res_col);
} else {
- auto nested_ptr = reinterpret_cast<const vectorized::ColumnNullable*>(res_col.get())
- ->get_nested_column_ptr();
+ auto nested_ptr =
+ reinterpret_cast<const ColumnNullable*>(res_col.get())->get_nested_column_ptr();
block->replace_by_position(column_index, nested_ptr);
}
... 90351 lines suppressed ...
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org