Skip to content

Commit 272f56f

Browse files
committed
fix test
Signed-off-by: Yuan Zhou <[email protected]>
1 parent 20ffe58 commit 272f56f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

velox/vector/arrow/tests/ArrowBridgeArrayTest.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ class ArrowBridgeArrayExportTest : public testing::Test {
185185
<< "mismatch at index " << i;
186186
break;
187187
default:
188-
VELOX_USER_FAIL(fmt::format(
189-
"Timestamp unit not supported: {}.", options_.timestampUnit));
188+
VELOX_USER_FAIL(
189+
"Timestamp unit not supported: {}.",
190+
static_cast<int>(options_.timestampUnit));
190191
}
191192
} else {
192193
EXPECT_EQ(inputData[i], values[i]) << "mismatch at index " << i;
@@ -1033,8 +1034,9 @@ class ArrowBridgeArrayImportTest : public ArrowBridgeArrayExportTest {
10331034
rawValues[i] = inputValues[i]->toNanos();
10341035
break;
10351036
default:
1036-
VELOX_USER_FAIL(fmt::format(
1037-
"Timestamp unit not supported: {}.", options_.timestampUnit));
1037+
VELOX_USER_FAIL(
1038+
"Timestamp unit not supported: {}.",
1039+
static_cast<int>(options_.timestampUnit));
10381040
}
10391041
} else {
10401042
rawValues[i] = *inputValues[i];
@@ -1179,8 +1181,9 @@ class ArrowBridgeArrayImportTest : public ArrowBridgeArrayExportTest {
11791181
<< "mismatch at index " << i;
11801182
break;
11811183
default:
1182-
VELOX_USER_FAIL(fmt::format(
1183-
"Timestamp unit not supported: {}.", options_.timestampUnit));
1184+
VELOX_USER_FAIL(
1185+
"Timestamp unit not supported: {}.",
1186+
static_cast<int>(options_.timestampUnit));
11841187
}
11851188
}
11861189
} else {

0 commit comments

Comments
 (0)