MCPcopy Create free account
hub / github.com/dask/dask / _get_predicate_components

Function _get_predicate_components

dask/dataframe/dask_expr/_expr.py:3960–3972  ·  view source on GitHub ↗
(predicate, components, type_=Or)

Source from the content-addressed store, hash-verified

3958
3959
3960def _get_predicate_components(predicate, components, type_=Or):
3961 if not isinstance(predicate, type_):
3962 components.append(predicate)
3963 return components
3964 if isinstance(predicate.left, type_):
3965 components = _get_predicate_components(predicate.left, components, type_)
3966 else:
3967 components.append(predicate.left)
3968 if isinstance(predicate.right, type_):
3969 components = _get_predicate_components(predicate.right, components, type_)
3970 else:
3971 components.append(predicate.right)
3972 return components
3973
3974
3975def _convert_mapping(components):

Callers 2

rewrite_filtersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected