Skip to content

Commit

Permalink
format changes in TestWriter.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
luffy-zh committed Aug 24, 2024
1 parent 3c29347 commit af0938c
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions c++/test/TestWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,33 +95,33 @@ namespace orc {
for (uint64_t posIndex = 0; posIndex < posVector.size(); ++posIndex) {
// After we call finishStream(), unusedBufferSize is set to 0,
// so only the first position is valid in each recordPosition call.
switch (subType->getKind()) {
case DECIMAL:
case STRING:
case BINARY:
case CHAR:
case VARCHAR: {
if (posIndex != 0 && posIndex != 2) {
EXPECT_EQ(posVector[posIndex], 0);
}
break;
switch (subType->getKind()) {
case DECIMAL:
case STRING:
case BINARY:
case CHAR:
case VARCHAR: {
if (posIndex != 0 && posIndex != 2) {
EXPECT_EQ(posVector[posIndex], 0);
}
case TIMESTAMP_INSTANT:
case TIMESTAMP: {
if (posIndex != 0 && posIndex != 3) {
EXPECT_EQ(posVector[posIndex], 0);
}
break;
break;
}
case TIMESTAMP_INSTANT:
case TIMESTAMP: {
if (posIndex != 0 && posIndex != 3) {
EXPECT_EQ(posVector[posIndex], 0);
}
default: {
if (posIndex != 0) {
EXPECT_EQ(posVector[posIndex], 0);
}
break;
break;
}
default: {
if (posIndex != 0) {
EXPECT_EQ(posVector[posIndex], 0);
}
break;
}
}
}
}
}
}

Expand Down

0 comments on commit af0938c

Please sign in to comment.