Skip to content

Commit

Permalink
Remove the register for map
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Jun 7, 2024
1 parent 37d8ad6 commit c87993f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion velox/functions/sparksql/Size.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ void registerSize(const std::string& prefix) {
registerFunction<Size, int32_t, Map<Any, Any>>({prefix});
// Register with legacySizeOfNull.
registerFunction<Size, int32_t, Array<Any>, bool>({prefix});
registerFunction<Size, int32_t, Map<Any, Any>, bool>({prefix});
}

} // namespace facebook::velox::functions::sparksql
3 changes: 0 additions & 3 deletions velox/functions/sparksql/tests/SizeTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ TEST_F(SizeTest, passedLegacySizeOfNull) {
auto arrayVector =
makeArrayVector<int64_t>(numRows, sizeAt, valueAt, nullEvery(1));
testSizePassedLegacyNull(arrayVector, numRows);
auto mapVector = makeMapVector<int64_t, int64_t>(
numRows, sizeAt, valueAt, valueAt, nullEvery(1));
testSizePassedLegacyNull(mapVector, numRows);
}

} // namespace facebook::velox::functions::sparksql::test

0 comments on commit c87993f

Please sign in to comment.