evadb.EvaDBQuery.cross_apply#
- EvaDBQuery.cross_apply(expr: str, alias: str) EvaDBQuery [source]#
Execute a expr on all the rows of the relation
- Parameters:
- Returns:
relation
- Return type:
EvaDBQuery
Examples
Runs Yolo on all the frames of the input table
>>> relation = cursor.table("videos") >>> relation.cross_apply("Yolo(data)", "objs(labels, bboxes, scores)")
Runs Yolo on all the frames of the input table and unnest each object as separate row.
>>> relation.cross_apply("unnest(Yolo(data))", "obj(label, bbox, score)")