FILE FORMAT
type: CSV
format_options:
compression: GZIP
record_delimiter: "\n"
field_delimiter: ","
skip_header: 1
trim_space: trueSchema
Usage notes
Links
Last updated
Config path: /<database>/<schema>/file_format/<name>.yaml
Example:
type: CSV
format_options:
compression: GZIP
record_delimiter: "\n"
field_delimiter: ","
skip_header: 1
trim_space: truetype (str) - file format type (CSV, AVRO, PARQUET, etc.)
format_options (dict)
{key} (ident) - format option name
{value} (bool, float, int, list, str) - format option value
comment (str)
Data type of {value} is important! Correct data type for each parameter can be obtained from output of DESC FILE FORMAT once you have at least one file format object. Alternatively, data type is available in CREATE FILE FORMAT documentation.
NULL_IF format options should be passed as list of strings.
Last updated