-- SyntaxCREATE [EXTERNAL] TABLE table_name[(column_definition1[, column_definition2, ...])]ENGINE = HUDI[COMMENT "comment"]PROPERTIES ("hudi.database" = "hudi_db_in_hive_metastore","hudi.table" = "hudi_table_in_hive_metastore","hudi.hive.metastore.uris" = "thrift://127.0.0.1:9083");-- Example: Mount the hudi_table_in_hive_metastore under the hudi_db_in_hive_metastore in HiveMetaStore. The schema is not specified during mounting.CREATE TABLE `t_hudi`ENGINE = HUDIPROPERTIES ("hudi.database" = "hudi_db_in_hive_metastore","hudi.table" = "hudi_table_in_hive_metastore","hudi.hive.metastore.uris" = "thrift://127.0.0.1:9083");-- Example: Specify the schema during mountingCREATE TABLE `t_hudi` (`id` int NOT NULL COMMENT "id number",`name` varchar(10) NOT NULL COMMENT "user name") ENGINE = HUDIPROPERTIES ("hudi.database" = "hudi_db_in_hive_metastore","hudi.table" = "hudi_table_in_hive_metastore","hudi.hive.metastore.uris" = "thrift://127.0.0.1:9083");
hudi.hive.metastore.uris
: The address for the Hive Metastore service.hudi.database
: The name of the corresponding database when Hudi is mounted.hudi.table
: The name of the corresponding table when Hudi is mounted.SHOW CREATE TABLE
peek .Hudi | Doris | Description |
BOOLEAN | BOOLEAN | - |
INTEGER | INT | - |
LONG | BIGINT | - |
FLOAT | FLOAT | - |
DOUBLE | DOUBLE | - |
DATE | DATE | - |
TIMESTAMP | DATETIME | Converting timestamp to datetime may cause loss of precision |
STRING | STRING | - |
UUID | VARCHAR | Use VARCHAR as a substitute |
DECIMAL | DECIMAL | - |
TIME | - | Not supported |
FIXED | - | Not supported |
BINARY | - | Not supported |
STRUCT | - | Not supported |
LIST | - | Not supported |
MAP | - | Not supported |
select * from t_hudi where k1 > 1000 and k3 ='term' or k4 like '%doris';
Was this page helpful?