Skip to contents

Marks the current point in the pipeline as an optimization barrier. Operations before and after the barrier are optimized separately. Does not execute anything until collect() or compute() is called.

Usage

# S3 method for class 'tbl_gpu'
collapse(x, ...)

Arguments

x

A tbl_gpu object.

...

Additional arguments (unused).

Value

A lazy tbl_gpu with the same columns and nothing run yet. The optimizer does not move or merge the steps added after it with the steps before it. An eager table is returned unchanged.

Details

Use collapse() when you want to prevent certain optimizations from crossing a boundary (e.g., prevent filter pushdown past a certain point).

In eager mode, collapse() is a no-op.