From 0dcf773986f039c2268c011fa699befdd0e11e4d Mon Sep 17 00:00:00 2001 From: Yoav Helfman Date: Wed, 24 Apr 2024 14:09:36 -0700 Subject: [PATCH] Rename a missed enum and a bit more (#30) Summary: Pull Request resolved: https://github.com/facebookexternal/nimble/pull/30 X-link: https://github.com/prestodb/presto/pull/22577 X-link: https://github.com/facebookincubator/velox/pull/9549 Found some enums that were left behind during the rename. Reviewed By: sdruzkin Differential Revision: D56370309 --- dwio/nimble/tools/ParallelReader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dwio/nimble/tools/ParallelReader.cpp b/dwio/nimble/tools/ParallelReader.cpp index 593e7c5..07d70ce 100644 --- a/dwio/nimble/tools/ParallelReader.cpp +++ b/dwio/nimble/tools/ParallelReader.cpp @@ -59,7 +59,7 @@ class ReaderFactory { NIMBLE_ASSERT(readFile_->size() > 2, "Invalid read file size."); uint16_t magicNumber; readFile_->pread(readFile_->size() - 2, 2, &magicNumber); - format_ = (magicNumber == 0xA1FA) ? velox::dwio::common::FileFormat::ALPHA + format_ = (magicNumber == 0xA1FA) ? velox::dwio::common::FileFormat::NIMBLE : velox::dwio::common::FileFormat::DWRF; auto columnFeatures = dwio::utils::feature_flattening::extractFeatureNames(readFile_); @@ -166,7 +166,7 @@ class DwrfReader : public Reader { std::unique_ptr ReaderFactory::create( velox::memory::MemoryPool& memoryPool) { - if (format_ == velox::dwio::common::FileFormat::ALPHA) { + if (format_ == velox::dwio::common::FileFormat::NIMBLE) { return std::make_unique(memoryPool, readFile_, features_); } else { return std::make_unique(memoryPool, readFile_, features_);