Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Jun 17, 2024
1 parent c751fc2 commit 0bb3345
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion velox/docs/functions/spark/array.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Array Functions
SELECT shuffle(array(0, 0, 0), 0); -- [0, 0, 0]
SELECT shuffle(array(1, NULL, 1, NULL, 2), 0); -- [2, 1, NULL, NULL, 1]

.. spark:function:: size(array(E), legacySizeOfNull) -> int
.. spark:function:: size(array(E), legacySizeOfNull) -> integer
Returns the size of the array. Returns null for null input if `legacySizeOfNull`
is set to false. Otherwise, returns -1 for null input.
Expand Down
2 changes: 1 addition & 1 deletion velox/docs/functions/spark/map.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Map Functions
Returns all the values in the map ``x``.

.. spark:function:: size(map(K,V), legacySizeOfNull) -> int
.. spark:function:: size(map(K,V), legacySizeOfNull) -> integer
:noindex:

Returns the size of the input map. Returns null for null input if ``legacySizeOfNull``
Expand Down
3 changes: 1 addition & 2 deletions velox/functions/sparksql/Size.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ struct Size {
if (legacySizeOfNull_) {
out = -1;
return true;
} else {
return false;
}
return false;
}
out = input->size();
return true;
Expand Down

0 comments on commit 0bb3345

Please sign in to comment.