Skip to content

Commit

Permalink
fix: Fix build failure (#11997)
Browse files Browse the repository at this point in the history
Summary:
Although `idx_t (aka uint64_t)` and `size_t` have the same underlying representation, they
are still considered different types in the C++ type system.

Pull Request resolved: #11997

Reviewed By: kevinwilfong

Differential Revision: D67752055

Pulled By: xiaoxmeng

fbshipit-source-id: 6cd56e65b626054af97316767592d347cfe198f0
  • Loading branch information
duanmeng authored and facebook-github-bot committed Jan 2, 2025
1 parent 0605101 commit 98932e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions velox/parse/QueryPlanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,9 @@ PlanNodePtr toVeloxPlan(
}

namespace {
std::vector<size_t> columnIndices(std::vector<idx_t> map, int32_t size) {
std::vector<idx_t> columnIndices(std::vector<idx_t> map, int32_t size) {
if (size > 0 && map.empty()) {
std::vector<size_t> result(size);
std::vector<idx_t> result(size);
std::iota(result.begin(), result.end(), 0);
return result;
}
Expand Down

0 comments on commit 98932e5

Please sign in to comment.