Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Zhou <[email protected]>
  • Loading branch information
zhouyuan committed Feb 7, 2024
1 parent 70ab153 commit 0531464
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions velox/vector/arrow/tests/ArrowBridgeArrayTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ class ArrowBridgeArrayExportTest : public testing::Test {
<< "mismatch at index " << i;
break;
default:
VELOX_USER_FAIL(fmt::format(
"Timestamp unit not supported: {}.", options_.timestampUnit));
VELOX_USER_FAIL(
"Timestamp unit not supported: {}.",
static_cast<int>(options_.timestampUnit));
}
} else {
EXPECT_EQ(inputData[i], values[i]) << "mismatch at index " << i;
Expand Down Expand Up @@ -1033,8 +1034,9 @@ class ArrowBridgeArrayImportTest : public ArrowBridgeArrayExportTest {
rawValues[i] = inputValues[i]->toNanos();
break;
default:
VELOX_USER_FAIL(fmt::format(
"Timestamp unit not supported: {}.", options_.timestampUnit));
VELOX_USER_FAIL(
"Timestamp unit not supported: {}.",
static_cast<int>(options_.timestampUnit));
}
} else {
rawValues[i] = *inputValues[i];
Expand Down Expand Up @@ -1179,8 +1181,9 @@ class ArrowBridgeArrayImportTest : public ArrowBridgeArrayExportTest {
<< "mismatch at index " << i;
break;
default:
VELOX_USER_FAIL(fmt::format(
"Timestamp unit not supported: {}.", options_.timestampUnit));
VELOX_USER_FAIL(
"Timestamp unit not supported: {}.",
static_cast<int>(options_.timestampUnit));
}
}
} else {
Expand Down

0 comments on commit 0531464

Please sign in to comment.