Updated on 2022-11-18 GMT+08:00

Data Types

Currently, the following data types are supported during table creation: TINYINT, SMALLINT, BIGINT, INT, BOOLEAN, REAL, DECIMAL, DOUBLE, VARCHAR, STRING, BINARY, VARIBINARY, TIMESTAMP, DATE, CHAR, ARRAY, ROW, MAP, and STRUCT. Other types are supported during data query and calculation.

Generally, most non-composite data types can be entered by literals and character strings. In the example, a string in the JSON format is added.

select json '{"name": "zhangsan", "sex": "man"}';
              _col0              
---------------------------------
 {"name":"zhangsan","sex":"man"} 
(1 row)