Struct google_bigquery2::api::CsvOptions
source · pub struct CsvOptions {
pub allow_jagged_rows: Option<bool>,
pub allow_quoted_newlines: Option<bool>,
pub encoding: Option<String>,
pub field_delimiter: Option<String>,
pub null_marker: Option<String>,
pub preserve_ascii_control_characters: Option<bool>,
pub quote: Option<String>,
pub skip_leading_rows: Option<i64>,
}
Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§allow_jagged_rows: Option<bool>
[Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false.
allow_quoted_newlines: Option<bool>
[Optional] Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.
encoding: Option<String>
[Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.
field_delimiter: Option<String>
[Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence “\t” to specify a tab separator. The default value is a comma (‘,’).
null_marker: Option<String>
[Optional] An custom string that will represent a NULL value in CSV import data.
preserve_ascii_control_characters: Option<bool>
[Optional] Preserves the embedded ASCII control characters (the first 32 characters in the ASCII-table, from ‘\x00’ to ‘\x1F’) when loading from CSV. Only applicable to CSV, ignored for other formats.
quote: Option<String>
[Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote (‘“’). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true.
skip_leading_rows: Option<i64>
[Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
Trait Implementations§
source§impl Clone for CsvOptions
impl Clone for CsvOptions
source§fn clone(&self) -> CsvOptions
fn clone(&self) -> CsvOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more