Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.62 KB

supported-data-types-in-carbondata.md

File metadata and controls

52 lines (40 loc) · 1.62 KB

Data Types

CarbonData supports the following data types:

  • Numeric Types

    • SMALLINT
    • INT/INTEGER
    • BIGINT
    • DOUBLE
    • DECIMAL
    • FLOAT
    • BYTE

    NOTE: Float and Bytes are only supported for SDK and FileFormat.

  • Date/Time Types

    • TIMESTAMP
    • DATE
  • String Types

    • STRING

    NOTE: For string longer than 32000 characters, use LONG_STRING_COLUMNS in table property. Please refer to TBLProperties in CreateTable for more information.

  • Complex Types

    • arrays: ARRAY<data_type>
    • structs: STRUCT<col_name : data_type COMMENT col_comment, ...>
    • maps: MAP<primitive_type, data_type>

    NOTE: Only 2 level complex type schema is supported for now.

  • Other Types

    • BOOLEAN
    • BINARY