docs-v2/content/flux/v0/stdlib/experimental/preview.md

1.8 KiB

title description menu weight flux/v0/tags introduced
experimental.preview() function `experimental.preview()` limits the number of rows and tables in the stream.
flux_v0_ref
name parent identifier
experimental.preview experimental experimental/preview
101
transformations
0.167.0

experimental.preview() limits the number of rows and tables in the stream.

Included group keys are not deterministic and depends on the order that the engine sends them.

Function type signature
(<-tables: stream[A], ?nrows: int, ?ntables: int) => stream[A] where A: Record

{{% caption %}} For more information, see Function type signatures. {{% /caption %}}

Parameters

nrows

Maximum number of rows per table to return. Default is 5.

ntables

Maximum number of tables to return. Default is 5.

tables

Input data. Default is piped-forward data (<-).

Examples

Preview data output

import "experimental"
import "sampledata"

sampledata.int()
    |> experimental.preview()