Skip to main content

@terascope/data-mate / teal-frame/output

teal-frame/output

Functions​

jsonLinesSQL()​

jsonLinesSQL(from, config, options): string

Defined in: data-mate/src/teal-frame/output.ts:48

SQL that renders one JSON line per row, as DataFrame.toJSON does with the same options. Rows that skipEmptyObjects drops are filtered out. See export-json.ts.

Parameters​

ParameterType
fromstring
configFrameConfig
optionsJsonExportOptions

Returns​

string


listValues()​

listValues(ctx, from, config, column, options): AsyncIterableIterator<unknown>

Defined in: data-mate/src/teal-frame/output.ts:63

Yields one row's LIST column element by element, like ListVector.getRowIterator. The list is unnested and each element rendered as it streams, so the rendered list is never held as one value. A nil list yields as one nil element does.

Parameters​

ParameterType
ctxDuckContext
fromstring
configFrameConfig
columnstring
optionsJsonExportOptions

Returns​

AsyncIterableIterator<unknown>


writeParquet()​

writeParquet(ctx, from, config, path): Promise<void>

Defined in: data-mate/src/teal-frame/output.ts:22

Writes the frame to a zstd Parquet file, narrowing 128-bit columns to their declared type.

Parameters​

ParameterType
ctxDuckContext
fromstring
configFrameConfig
pathstring

Returns​

Promise<void>