This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
new 733404f227 [fix](branch-1.2) disable some unused BE ut
733404f227 is described below
commit 733404f2270cfd7f5512208e4bd11d8cf42fc41c
Author: morningman <[email protected]>
AuthorDate: Sun Jan 8 23:40:26 2023 +0800
[fix](branch-1.2) disable some unused BE ut
exec/parquet_scanner_test.cpp
exec/orc_scanner_test.cpp
exec/broker_scanner_test.cpp
exec/broker_scan_node_test.cpp
---
be/test/CMakeLists.txt | 8 ++--
be/test/exec/json_scanner_test.cpp | 98 --------------------------------------
2 files changed, 4 insertions(+), 102 deletions(-)
diff --git a/be/test/CMakeLists.txt b/be/test/CMakeLists.txt
index a7a8f8b4e6..0cfc34b61c 100644
--- a/be/test/CMakeLists.txt
+++ b/be/test/CMakeLists.txt
@@ -41,14 +41,14 @@ set(EXEC_TEST_FILES
exec/olap_common_test.cpp
exec/json_scanner_test.cpp
exec/json_scanner_with_jsonpath_test.cpp
- exec/parquet_scanner_test.cpp
- exec/orc_scanner_test.cpp
+ #exec/parquet_scanner_test.cpp
+ #exec/orc_scanner_test.cpp
exec/plain_text_line_reader_uncompressed_test.cpp
exec/plain_text_line_reader_gzip_test.cpp
exec/plain_text_line_reader_bzip_test.cpp
exec/plain_text_line_reader_lz4frame_test.cpp
- exec/broker_scanner_test.cpp
- exec/broker_scan_node_test.cpp
+ #exec/broker_scanner_test.cpp
+ #exec/broker_scan_node_test.cpp
exec/tablet_info_test.cpp
exec/tablet_sink_test.cpp
exec/buffered_reader_test.cpp
diff --git a/be/test/exec/json_scanner_test.cpp
b/be/test/exec/json_scanner_test.cpp
index 5fbc3b3c3d..a6795de677 100644
--- a/be/test/exec/json_scanner_test.cpp
+++ b/be/test/exec/json_scanner_test.cpp
@@ -529,102 +529,4 @@ void JsonScannerTest::init() {
_tnode.__isset.broker_scan_node = true;
}
-TEST_F(JsonScannerTest, normal_simple_arrayjson) {
- BrokerScanNode scan_node(&_obj_pool, _tnode, *_desc_tbl);
- scan_node.init(_tnode);
- auto status = scan_node.prepare(&_runtime_state);
- EXPECT_TRUE(status.ok());
-
- // set scan range
- std::vector<TScanRangeParams> scan_ranges;
- {
- TScanRangeParams scan_range_params;
-
- TBrokerScanRange broker_scan_range;
- broker_scan_range.params = _params;
- TBrokerRangeDesc range;
- range.start_offset = 0;
- range.size = -1;
- range.format_type = TFileFormatType::FORMAT_JSON;
- range.strip_outer_array = true;
- range.__isset.strip_outer_array = true;
- range.splittable = true;
- range.path = "./be/test/exec/test_data/json_scanner/test_simple2.json";
- range.file_type = TFileType::FILE_LOCAL;
- broker_scan_range.ranges.push_back(range);
-
scan_range_params.scan_range.__set_broker_scan_range(broker_scan_range);
- scan_ranges.push_back(scan_range_params);
- }
-
- scan_node.set_scan_ranges(scan_ranges);
- status = scan_node.open(&_runtime_state);
- EXPECT_TRUE(status.ok());
-
- // Get batch
- RowBatch batch(scan_node.row_desc(), _runtime_state.batch_size());
- bool eof = false;
- status = scan_node.get_next(&_runtime_state, &batch, &eof);
- EXPECT_TRUE(status.ok());
- EXPECT_EQ(2, batch.num_rows());
- // Do not use num_as_string, so largeint is too big is null and decimal
value loss precision
- auto tuple_str =
-
batch.get_row(1)->get_tuple(0)->to_string(*scan_node.row_desc().tuple_descriptors()[0]);
- EXPECT_TRUE(tuple_str.find("1180591620717411303424") == tuple_str.npos);
- EXPECT_TRUE(tuple_str.find("9999999999999.999999") == tuple_str.npos);
- EXPECT_FALSE(eof);
- batch.reset();
-
- status = scan_node.get_next(&_runtime_state, &batch, &eof);
- EXPECT_TRUE(status.ok());
- EXPECT_EQ(0, batch.num_rows());
- EXPECT_TRUE(eof);
-
- // Use num_as_string load data again
- BrokerScanNode scan_node2(&_obj_pool, _tnode, *_desc_tbl);
- scan_node2.init(_tnode);
- status = scan_node2.prepare(&_runtime_state);
- EXPECT_TRUE(status.ok());
- scan_ranges.clear();
- {
- TScanRangeParams scan_range_params;
-
- TBrokerScanRange broker_scan_range;
- broker_scan_range.params = _params;
- TBrokerRangeDesc range;
- range.start_offset = 0;
- range.size = -1;
- range.format_type = TFileFormatType::FORMAT_JSON;
- range.strip_outer_array = true;
- range.num_as_string = true;
- range.__isset.strip_outer_array = true;
- range.__isset.num_as_string = true;
- range.splittable = true;
- range.path = "./be/test/exec/test_data/json_scanner/test_simple2.json";
- range.file_type = TFileType::FILE_LOCAL;
- broker_scan_range.ranges.push_back(range);
-
scan_range_params.scan_range.__set_broker_scan_range(broker_scan_range);
- scan_ranges.push_back(scan_range_params);
- }
- scan_node2.set_scan_ranges(scan_ranges);
- status = scan_node2.open(&_runtime_state);
- EXPECT_TRUE(status.ok());
-
- status = scan_node2.get_next(&_runtime_state, &batch, &eof);
- EXPECT_TRUE(status.ok());
- EXPECT_EQ(2, batch.num_rows());
- // Use num as string, load largeint, decimal successfully
- tuple_str = batch.get_row(1)->get_tuple(0)->to_string(
- *scan_node2.row_desc().tuple_descriptors()[0]);
- EXPECT_FALSE(tuple_str.find("1180591620717411303424") == tuple_str.npos);
- EXPECT_FALSE(tuple_str.find("9999999999999.999999") == tuple_str.npos);
-
- scan_node.close(&_runtime_state);
- scan_node2.close(&_runtime_state);
- {
- std::stringstream ss;
- scan_node.runtime_profile()->pretty_print(&ss);
- LOG(INFO) << ss.str();
- }
-}
-
} // namespace doris
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]