CsvColumnDataType

  • The CSV_COLUMN_DATA_TYPE_UNSPECIFIED enum value is the default and has no effect on types, so it should not be used.

  • CSV_COLUMN_DATA_TYPE_STRING should be used when a column needs to be treated as a string, especially if it was auto-detected as numeric.

  • CSV_COLUMN_DATA_TYPE_NUMERIC should be used for columns that need to be treated as numeric, particularly those with no data.

  • CSV_COLUMN_DATA_TYPE_LONG should be used to treat a column as a long.

Use ColumnDataType instead

Enums
CSV_COLUMN_DATA_TYPE_UNSPECIFIED Default enum value, no effect on types. Do not use.
CSV_COLUMN_DATA_TYPE_STRING The associated column should be treated as a string in the same encoding as the CSV file (useful if the column is auto-detected as numeric).
CSV_COLUMN_DATA_TYPE_NUMERIC The associated column should be treated as a numeric (useful for columns with no data, which become strings by default).
CSV_COLUMN_DATA_TYPE_LONG The associated column should be treated as a long.