Copilot commented on code in PR #51247:
URL: https://github.com/apache/arrow/pull/51247#discussion_r4528739544
##########
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:
This test currently exercises the invalid-registry path indirectly by
passing `args=None`. That means it may fail earlier (or for a different reason)
if `call_tabular_function` changes its `args` handling. To make the test more
robust and focused on registry validation, pass a minimal valid `args` value
(e.g., an empty list/tuple) so the failure is attributable to `func_registry`
type checking.
--
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]