@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
| Parameter | Type |
|---|---|
from | string |
config | FrameConfig |
options | JsonExportOptions |
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
| Parameter | Type |
|---|---|
ctx | DuckContext |
from | string |
config | FrameConfig |
column | string |
options | JsonExportOptions |
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
| Parameter | Type |
|---|---|
ctx | DuckContext |
from | string |
config | FrameConfig |
path | string |
Returns
Promise<void>