MCPcopy Create free account
hub / github.com/apache/arrow / has_function

Function has_function

python/pyarrow/tests/test_substrait.py:175–180  ·  view source on GitHub ↗
(fns, ext_file, fn_name)

Source from the content-addressed store, hash-verified

173# Substrait has not finalized what the URI should be for standard functions
174# In the meantime, lets just check the suffix
175def has_function(fns, ext_file, fn_name):
176 suffix = f'{ext_file}#{fn_name}'
177 for fn in fns:
178 if fn.endswith(suffix):
179 return True
180 return False
181
182
183def test_get_supported_functions():

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected