dongkelun opened a new pull request, #6409:
URL: https://github.com/apache/hudi/pull/6409

   ### Create table 
   ```sql
   use hudi;
   CREATE TABLE  test_hudi_table_mor (
     id int,
     name string,
     price double,
     ts long,
     dt string
   ) using hudi
   options (
     primaryKey = 'id',
     preCombineField = 'ts',
     type = 'mor'
    )
    partitioned by (dt);
   ```
   ### Create _rt table 
   ```sql
   CREATE TABLE test_hudi_table_mor_rt
   using hudi
   OPTIONS (
     'hoodie.query.as.ro.table' = 'false'
   )
   location 
'hdfs://cluster1/warehouse/tablespace/managed/hive/hudi.db/test_hudi_table_mor';
   ``` 
   Failed exception:
   ```java
   WARN CreateHoodieTableCommand: Failed to create catalog table in metastore: 
org.apache.hadoop.hive.ql.metadata.HiveException: at least one column must be 
specified for the table
   ```
   Related pr: [[HUDI-4149] Drop-Table fails when underlying table directory is 
broken](https://github.com/apache/hudi/pull/5672)
   
   ### Change Logs
   
   _Describe context and summary for this change. Highlight if any code was 
copied._
   
   ### Impact
   
   _Describe any public API or user-facing feature change or any performance 
impact._
   
   **Risk level: none | low | medium | high**
   
   _Choose one. If medium or high, explain what verification was done to 
mitigate the risks._
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to