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:45

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:56

Yields one row's LIST column element by element, like ListVector.getRowIterator.

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:19

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>