1fanwang commented on code in PR #51247:
URL: https://github.com/apache/arrow/pull/51247#discussion_r4654769863


##########
python/pyarrow/tests/test_compute.py:
##########
@@ -243,6 +243,31 @@ def test_list_functions():
     assert "add" in pc.list_functions()
 
 
+def test_call_tabular_function_rejects_invalid_registry():
+    with pytest.raises(TypeError,
+                       match="func_registry must be a FunctionRegistry"):
+        pc.call_tabular_function("", None, 1)

Review Comment:
   Fixed in 
https://github.com/apache/arrow/commit/d86783570e60ec277e6e6e57bf0f2875e2743403.
 The registry-type check runs before args is ever touched, so args=None 
happened to work only by that ordering. Switched to an empty list so the test 
still targets registry validation specifically if that ordering changes.



-- 
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]

Reply via email to