lidavidm commented on code in PR #12590:
URL: https://github.com/apache/arrow/pull/12590#discussion_r861037389
##########
python/pyarrow/tests/test_udf.py:
##########
@@ -237,20 +235,25 @@ def raise_func(ctx):
def check_scalar_function(func_fixture,
- input,
+ inputs,
run_in_dataset=True,
- batch_length=global_batch_length):
+ batch_length=None):
function, name = func_fixture
- expected_output = function(mock_udf_context(batch_length), *input)
+ if batch_length is None:
+ try:
+ for input in inputs:
+ batch_length = len(inputs)
+ except TypeError:
+ pass
Review Comment:
The try-except should be inside the loop
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]