Skip to content

Commit 48e6fc5

Browse files
xiaoxmengfacebook-github-bot
authored andcommitted
misc: Fix clang-format issues in NimbleEncodingDump and SerializerDumpLibTest
Summary: CONTEXT: D98689846 landed with minor clang-format issues. WHAT: Apply clang-format fixes to NimbleEncodingDump.cpp and SerializerDumpLibTest.cpp. Differential Revision: D98769945
1 parent afe371f commit 48e6fc5

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

dwio/nimble/tools/tests/SerializerDumpLibTest.cpp

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ TEST_F(SerializerDumpLibTest, Reset) {
173173
// serializations. With flat maps in kCompact format, different rows can have
174174
// different keys, producing different numbers of streams per serialization.
175175
TEST_F(SerializerDumpLibTest, varyingStreamCountsWithFlatMap) {
176-
auto type = velox::ROW(
177-
{{"features", velox::MAP(velox::INTEGER(), velox::BIGINT())}});
176+
auto type =
177+
velox::ROW({{"features", velox::MAP(velox::INTEGER(), velox::BIGINT())}});
178178

179179
const SerializerOptions options{
180180
.version = SerializationVersion::kCompact,
@@ -188,14 +188,10 @@ TEST_F(SerializerDumpLibTest, varyingStreamCountsWithFlatMap) {
188188
const auto numRows = static_cast<velox::vector_size_t>(rowKeys.size());
189189
std::vector<int32_t> allKeys;
190190
std::vector<int64_t> allValues;
191-
auto mapOffsets =
192-
velox::allocateOffsets(numRows, leafPool_.get());
193-
auto mapSizes =
194-
velox::allocateSizes(numRows, leafPool_.get());
195-
auto* rawOffsets =
196-
mapOffsets->asMutable<velox::vector_size_t>();
197-
auto* rawSizes =
198-
mapSizes->asMutable<velox::vector_size_t>();
191+
auto mapOffsets = velox::allocateOffsets(numRows, leafPool_.get());
192+
auto mapSizes = velox::allocateSizes(numRows, leafPool_.get());
193+
auto* rawOffsets = mapOffsets->asMutable<velox::vector_size_t>();
194+
auto* rawSizes = mapSizes->asMutable<velox::vector_size_t>();
199195

200196
for (velox::vector_size_t row = 0; row < numRows; ++row) {
201197
rawOffsets[row] = static_cast<velox::vector_size_t>(allKeys.size());

0 commit comments

Comments
 (0)