Enums | |
---|---|
COLUMN_DATA_TYPE_UNSPECIFIED |
Default enum value, no effect on types. Do not use. |
COLUMN_DATA_TYPE_STRING |
The associated column should be treated as a string (in the same encoding as the input file, if the file is CSV). Useful if the column is auto-detected as numeric. |
COLUMN_DATA_TYPE_NUMERIC |
The associated column should be treated as a numeric (useful for columns with no data, which become strings by default). |
COLUMN_DATA_TYPE_LONG |
The associated column should be treated as a long. |
ColumnDataType
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-05 UTC.
[null,null,["Last updated 2024-06-05 UTC."],[[["\u003cp\u003eEnums specify the data type of a column in a dataset.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCOLUMN_DATA_TYPE_STRING\u003c/code\u003e, \u003ccode\u003eCOLUMN_DATA_TYPE_NUMERIC\u003c/code\u003e, and \u003ccode\u003eCOLUMN_DATA_TYPE_LONG\u003c/code\u003e enums enforce specific data type interpretations for columns.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCOLUMN_DATA_TYPE_UNSPECIFIED\u003c/code\u003e is a default value and should not be used.\u003c/p\u003e\n"],["\u003cp\u003eThese enums are particularly helpful when a column's data type is auto-detected incorrectly or when dealing with empty columns.\u003c/p\u003e\n"]]],[],null,["# ColumnDataType\n\n| Enums ||\n|--------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `COLUMN_DATA_TYPE_UNSPECIFIED` | Default enum value, no effect on types. Do not use. |\n| `COLUMN_DATA_TYPE_STRING` | The associated column should be treated as a string (in the same encoding as the input file, if the file is CSV). Useful if the column is auto-detected as numeric. |\n| `COLUMN_DATA_TYPE_NUMERIC` | The associated column should be treated as a numeric (useful for columns with no data, which become strings by default). |\n| `COLUMN_DATA_TYPE_LONG` | The associated column should be treated as a long. |"]]