icexelloss commented on code in PR #35514:
URL: https://github.com/apache/arrow/pull/35514#discussion_r1195555145
##########
python/pyarrow/tests/test_udf.py:
##########
@@ -228,11 +253,11 @@ def check_scalar_function(func_fixture,
if all_scalar:
batch_length = 1
- expected_output = function(mock_scalar_udf_context(batch_length), *inputs)
func = pc.get_function(name)
assert func.name == name
result = pc.call_function(name, inputs, length=batch_length)
+ expected_output = function(mock_scalar_udf_context(batch_length), *inputs)
Review Comment:
Move this down to compute "result" first then "expected", which is how
normally this is done in test
--
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]