FILE FORMAT
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: trueSchema
type (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)
Usage notes
Data type of {value} is important! Correct data type for each parameter can be obtained from output of
DESC FILE FORMATonce you have at least one file format object. Alternatively, data type is available inCREATE FILE FORMATdocumentation.NULL_IFformat options should be passed as list of strings.
Links
Last updated