Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions be/src/exec/operator/result_sink_operator.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ class DorisArrowSchemaConvertor;
class ResultBlockBufferBase;

struct ResultFileOptions {
// [[deprecated]]
bool is_local_file;
std::string file_path;
TFileFormatType::type file_format;
std::string column_separator;
Expand All @@ -39,18 +37,12 @@ struct ResultFileOptions {
std::vector<TNetworkAddress> broker_addresses;
std::map<std::string, std::string> broker_properties;
std::string success_file_name;
std::vector<std::vector<std::string>> schema; //not use in outfile with parquet format
std::map<std::string, std::string> file_properties; //not use in outfile with parquet format

std::vector<TParquetSchema> parquet_schemas;
TParquetCompressionType::type parquet_commpression_type;
TParquetVersion::type parquet_version;
bool parquert_disable_dictionary = false;
bool enable_int96_timestamps = true;
//note: use outfile with parquet format, have deprecated 9:schema and 10:file_properties
//But in order to consider the compatibility when upgrading, so add a bool to check
//Now the code version is 1.1.2, so when the version is after 1.2, could remove this code.
bool is_refactor_before_flag = false;
std::string orc_schema;
TFileCompressType::type orc_compression_type;
// currently only for csv
Expand Down Expand Up @@ -85,26 +77,16 @@ struct ResultFileOptions {
file_name_padding = t_opt.file_name_padding;
}

is_local_file = true;
if (t_opt.__isset.broker_addresses) {
broker_addresses = t_opt.broker_addresses;
is_local_file = false;
}
if (t_opt.__isset.broker_properties) {
broker_properties = t_opt.broker_properties;
}
if (t_opt.__isset.success_file_name) {
success_file_name = t_opt.success_file_name;
}
if (t_opt.__isset.schema) {
schema = t_opt.schema;
is_refactor_before_flag = true;
}
if (t_opt.__isset.file_properties) {
file_properties = t_opt.file_properties;
}
if (t_opt.__isset.parquet_schemas) {
is_refactor_before_flag = false;
parquet_schemas = t_opt.parquet_schemas;
}
if (t_opt.__isset.parquet_compression_type) {
Expand Down
6 changes: 1 addition & 5 deletions be/src/runtime/descriptors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,10 @@ std::string IcebergTableDescriptor::debug_string() const {

MaxComputeTableDescriptor::MaxComputeTableDescriptor(const TTableDescriptor& tdesc)
: TableDescriptor(tdesc),
_region(tdesc.mcTable.region),
_project(tdesc.mcTable.project),
_table(tdesc.mcTable.table),
_odps_url(tdesc.mcTable.odps_url),
_tunnel_url(tdesc.mcTable.tunnel_url),
_access_key(tdesc.mcTable.access_key),
_secret_key(tdesc.mcTable.secret_key),
_public_access(tdesc.mcTable.public_access) {
_secret_key(tdesc.mcTable.secret_key) {
if (tdesc.mcTable.__isset.endpoint) {
_endpoint = tdesc.mcTable.endpoint;
} else {
Expand Down
14 changes: 2 additions & 12 deletions be/src/runtime/descriptors.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,28 +225,18 @@ class MaxComputeTableDescriptor : public TableDescriptor {
MaxComputeTableDescriptor(const TTableDescriptor& tdesc);
~MaxComputeTableDescriptor() override;
std::string debug_string() const override;
std::string region() const { return _region; }
std::string project() const { return _project; }
std::string table() const { return _table; }
std::string odps_url() const { return _odps_url; }
std::string tunnel_url() const { return _tunnel_url; }
std::string access_key() const { return _access_key; }
std::string secret_key() const { return _secret_key; }
std::string public_access() const { return _public_access; }
std::string endpoint() const { return _endpoint; }
std::string quota() const { return _quota; }
Status init_status() const { return _init_status; }
std::map<std::string, std::string> properties() const { return _props; }

private:
std::string _region; //deprecated
std::string _project;
std::string _table;
std::string _odps_url; //deprecated
std::string _tunnel_url; //deprecated
std::string _access_key; //deprecated
std::string _secret_key; //deprecated
std::string _public_access; //deprecated
std::string _access_key; //deprecated
std::string _secret_key; //deprecated
std::string _endpoint;
std::string _quota;
std::map<std::string, std::string> _props;
Expand Down
10 changes: 2 additions & 8 deletions be/src/storage/olap_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,8 @@ enum class FieldAggregationMethod {
};

enum class PushType {
PUSH_NORMAL = 1, // for broker/hadoop load, not used any more
PUSH_FOR_DELETE = 2, // for delete
PUSH_FOR_LOAD_DELETE = 3, // not used any more
PUSH_NORMAL_V2 = 4, // for spark load
PUSH_FOR_DELETE = 2, // for delete
PUSH_NORMAL_V2 = 4, // for spark load
};

// <start_version_id, end_version_id>, such as <100, 110>
Expand Down Expand Up @@ -254,10 +252,6 @@ struct OlapReaderStatistics {
int64_t block_fetch_ns = 0; // time of rowset reader's `next_batch()` call
int64_t block_load_ns = 0;
int64_t blocks_load = 0;
// Not used any more, will be removed after non-vectorized code is removed
int64_t block_seek_num = 0;
// Not used any more, will be removed after non-vectorized code is removed
int64_t block_seek_ns = 0;

// block_load_ns
// block_init_ns
Expand Down
2 changes: 0 additions & 2 deletions cloud/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ set(EXECUTABLE_OUTPUT_PATH "${BUILD_DIR}/test")

set(TEST_LINK_LIBS ResourceManager ${TEST_LINK_LIBS})

#add_executable(sync_point_test sync_point_test.cpp)
add_executable(blob_message_test blob_message_test.cpp)

add_executable(clone_chain_reader_test clone_chain_reader_test.cpp)
Expand Down Expand Up @@ -154,7 +153,6 @@ add_executable(versioned_value_test versioned_value_test.cpp)
add_executable(bvars_test bvars_test.cpp)

message("Meta-service test dependencies: ${TEST_LINK_LIBS}")
#target_link_libraries(sync_point_test ${TEST_LINK_LIBS})

target_link_libraries(blob_message_test ${TEST_LINK_LIBS})

Expand Down
Loading