/data/out/tables manifests
The optional fields of a /data/out/tables manifest, such as destination and columns, which control how your component's table loads to Storage.
An output table manifest sets options for transferring a table to Storage. The following examples list available
manifest fields; all of them are optional. The destination field overrides the table name generated
from the file name; it can (and commonly is) overridden by the end-user configuration. The columns option defines
the columns of the imported table. If the columns option is provided, then the CSV files are assumed to be headless.
If you the component is producing Sliced tables, then they are always
assumed to be headless and you have to use the columns option.
{ "destination": "out.c-main.Leads", "columns": ["column1", "column2", "column3"], "incremental": true, "primary_key": ["column1", "column2"], "delimiter": "\t", "enclosure": "\"", "metadata": ..., "column_metadata": ...}Additionally, the following options can be specified:
{ ... "delete_where": [ { "where_filters": [ { "column": "column name", "operator": "eq", "values_from_set": ["value1", "value2"] } ] } ]}The options will cause the specified rows to be deleted from the source table before the new table is imported. See an example. Using this option makes sense only with incremental loads.
The metadata and column_metadata fields allow you to set
Metadata for the table and its columns.
The metadata field corresponds to the Table Metadata API call (opens in a new tab).
The column_metadata field corresponds to the Column Metadata API call (opens in a new tab).
In both cases, the key and value are passed directly to the API; the provider value is
filled by the Id of the running component (e.g., keboola.ex-db-snowflake).
{ ..., "metadata": [ { "key": "an.arbitrary.key", "value": "Some value" }, { "key": "another.arbitrary.key", "value": "A different value" } ], "column_metadata": { "column1": [ { "key": "yet.another.key", "value": "Some other value" } ] }}Import method
Section titled “Import method”On the Snowflake backend, the import_method field chooses how Snowflake writes the destination table:
{ ... "import_method": "single_statement"}auto(the same as omitting the field) uses the platform default for the project.single_statementwrites the table with oneMERGE(incremental load) orINSERT OVERWRITE(full load).multi_statementwrites the table with several statements.
An explicit single_statement or multi_statement for a table in a bucket on a backend other than Snowflake makes
the import fail with an error (storage.tables.importMethodNotSupported); auto is safe on every backend.
The value in the manifest is used when the end-user output mapping has no import_method or has auto. A
single_statement or multi_statement in the output mapping takes precedence over the manifest. See
Import method for how the methods differ.
Was this page helpful?
Thank you for helping improve Keboola's documentation!