@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
| 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:56
Yields one row's LIST column element by element, like ListVector.getRowIterator.
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:19
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>