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

Function _get_predicate_components

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

Source from the content-addressed store, hash-verified

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

Callers 2

rewrite_filtersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected