futurewei-cloud / chogori-sql

Horizontally scalable SQL Service built upon Chogori-Platform SKV storage
Other
5 stars 6 forks source link

redefine K2 SQL data types #251

Closed johnfangAFW closed 3 years ago

johnfangAFW commented 3 years ago

This is the first PR to clean up YBC data types in PG gate and PG.

This PR is to redefine an enum of SQL data types that Chogori-SQL supports in data_type.h, and it will be used by both PgGate and PG C code. This PR removed the original duplicate SQL data type definitions in pg_gate_typedefs.h. it also removed unsupported data types such as INET, UUID, and so on, but keep List, Map, and Set for future support.

TPCC benchmark and integration tests both passed.