rerun_bindings::catalog::dataframe_query

Function extract_contents_expr

Source
fn extract_contents_expr(
    expr: &Bound<'_, PyAny>,
    schema: &Schema,
) -> PyResult<ViewContentsSelector>
Expand description

Convert a ViewContentsLike into a ViewContentsSelector.

ViewContentsLike = Union[str, Dict[str, Union[ComponentLike, Sequence[ComponentLike]]]]

We cant do this with the normal FromPyObject mechanisms because we want access to the QueryEngine to resolve the entity paths.