Skip to content

Commit

Permalink
remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchengchenghh committed Oct 14, 2022
1 parent f3a6dbb commit 5a810ab
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions velox/dwio/parquet/tests/reader/ParquetReaderTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,6 @@ TEST_F(ParquetReaderTest, parseDate) {
EXPECT_EQ(type->childByName("date"), col0);
}

TEST_F(ParquetReaderTest, queryTPCDS) {
// date.parquet holds a single column (date: DATE) and
// 25 rows.
// Data is in plain uncompressed format:
// date: [1969-12-27 .. 1970-01-20]
const std::string sample(getExampleFilePath("date.parquet"));

ReaderOptions readerOptions;
parquet::ParquetReader reader(
std::make_unique<FileInputStream>(sample), readerOptions);

EXPECT_EQ(reader.numberOfRows(), 25ULL);

auto type = reader.typeWithId();
EXPECT_EQ(type->size(), 1ULL);
auto col0 = type->childAt(0);
EXPECT_EQ(col0->type->kind(), TypeKind::DATE);
EXPECT_EQ(type->childByName("date"), col0);
}

TEST_F(ParquetReaderTest, parseRowMapArray) {
// sample.parquet holds one row of type (ROW(BIGINT c0, MAP(VARCHAR,
// ARRAY(INTEGER)) c1) c)
Expand Down

0 comments on commit 5a810ab

Please sign in to comment.