Skip to content

Commit

Permalink
add vectorized vjson_scanner and apply vexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
hucheng01 committed May 10, 2022
1 parent da00a4a commit c555b7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions be/test/vec/exec/vjson_scanner_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ TEST_F(VJsonScannerTest, simple_array_json) {
status = scan_node.get_next(&_runtime_state, &block, &eof);
ASSERT_EQ(0, block.rows());
ASSERT_TRUE(eof);
scan_node.close(&_runtime_state);
}

TEST_F(VJsonScannerTest, use_jsonpaths_with_file_reader) {
Expand Down Expand Up @@ -647,6 +648,7 @@ TEST_F(VJsonScannerTest, use_jsonpaths_with_file_reader) {
status = scan_node.get_next(&_runtime_state, &block, &eof);
ASSERT_EQ(0, block.rows());
ASSERT_TRUE(eof);
scan_node.close(&_runtime_state);
}

TEST_F(VJsonScannerTest, use_jsonpaths_with_line_reader) {
Expand Down Expand Up @@ -705,6 +707,7 @@ TEST_F(VJsonScannerTest, use_jsonpaths_with_line_reader) {
status = scan_node.get_next(&_runtime_state, &block, &eof);
ASSERT_EQ(0, block.rows());
ASSERT_TRUE(eof);
scan_node.close(&_runtime_state);
}

TEST_F(VJsonScannerTest, use_jsonpaths_mismatch) {
Expand Down Expand Up @@ -756,6 +759,7 @@ TEST_F(VJsonScannerTest, use_jsonpaths_mismatch) {
ASSERT_EQ(columns[2].to_string(0), "\\N");
ASSERT_EQ(columns[2].to_string(1), "\\N");
block.clear();
scan_node.close(&_runtime_state);
}

} // namespace vectorized
Expand Down

0 comments on commit c555b7d

Please sign in to comment.