This README.md explain the schema and usage of paimon test tables in the folder. the table data in the folder will be directly copied to hdfs and external paimon tables will be created accordingly for these tables.
The table contains all primitive types supported by paimon: schema is: +---------------+---------------+---------+ | name | type | comment | +---------------+---------------+---------+ | bool_value | boolean | | | tiny_value | tinyint | | | small_value | smallint | | | int_value | int | | | big_value | bigint | | | float_value | float | | | double_value | double | | | decimal_value | decimal(10,2) | | | char_value | char(10) | | | varchar_value | varchar(100) | | | binary_value | binary | | | date_value | date | | | ts_ltz_value | timestamp | | | ts_value | timestamp | | +---------------+---------------+---------+
The table is used to support decimal related test,with various precision and scale. the schema is: +------+----------------+---------+ | name | type | comment | +------+----------------+---------+ | d1 | decimal(9,0) | | | d2 | decimal(10,0) | | | d3 | decimal(20,10) | | | d4 | decimal(38,38) | | | d5 | decimal(10,5) | | +------+----------------+---------+
The table is used to support decimal related test,with various precision and scale. the schema is: +------+----------------+---------+ | name | type | comment | +------+----------------+---------+ | d1 | decimal(9,0) | | | d2 | decimal(10,0) | | | d3 | decimal(20,10) | | | d4 | decimal(38,38) | | | d5 | decimal(10,5) | | +------+----------------+---------+
the table is table alltypes with paimon format, it is used to support test test_scanner for paimon format. the schema is: +-----------------+-----------+---------------+ | name | type | comment | +-----------------+-----------+---------------+ | id | int | Add a comment | | bool_col | boolean | | | tinyint_col | tinyint | | | smallint_col | smallint | | | int_col | int | | | bigint_col | bigint | | | float_col | float | | | double_col | double | | | date_string_col | string | | | string_col | string | | | timestamp_col | timestamp | | | year | int | | | month | int | | +-----------------+-----------+---------------+
Most of testing tables should be removed later once paimon write is supported for impala, if these table generation can be easily implemented using DML or CTAS statement.