dujl opened a new issue, #5836:
URL: https://github.com/apache/hudi/issues/5836
Create a non-partition hudi table in Spark,it will store
hoodie.table.partition.fields with an empty value in hiveMetastore.
This is unexpected behavior.
**To Reproduce**
Steps to reproduce the behavior:
1. Create a non-partition hudi table in Spark
```
create table hudi_mor_tbl (
id int,
name string,
price double,
ts bigint
) using hudi
tblproperties (
type = 'mor',
primaryKey = 'id',
preCombineField = 'ts'
)
```
2. insert data one row to it.
```
insert into hudi_mor_tbl select 1, 'a1', 20, 1000;
```
3. cat hoodie.properties in table's base path, it include a none
hoodie.table.partition.fields=
4. and in hive metastore, it will store the key
hoodie.table.partition.fields with an empty value in table TABLE_PARAMS.
**Expected behavior**
this is no hoodie.table.partition.fields in hoodie.properties and in
HiveMetastore
**Environment Description**
* Hudi version : 0.10.0
* Spark version : 3.2.1
* Hive version : 3.1.2
* Hadoop version : 3.3.1
* Storage (HDFS/S3/GCS..) : HDFS
* Running on Docker? (yes/no) : no
--
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]