Skip to content

Commit

Permalink
Revert "fix type cmp"
Browse files Browse the repository at this point in the history
This reverts commit 5867b7f.
  • Loading branch information
rui-mo committed May 23, 2023
1 parent 5867b7f commit 4ffe146
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions velox/functions/sparksql/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ class MapFunction : public exec::VectorFunction {
// Check key and value types
for (auto i = 0; i < mapSize; i++) {
VELOX_CHECK_EQ(
args[i * 2]->type()->kind(),
keyType->kind(),
args[i * 2]->type(),
keyType,
"All the key arguments in Map function must be the same!");
VELOX_CHECK_EQ(
args[i * 2 + 1]->type()->kind(),
valueType->kind(),
args[i * 2 + 1]->type(),
valueType,
"All the key arguments in Map function must be the same!");
}

Expand Down

0 comments on commit 4ffe146

Please sign in to comment.