xiaozhch5 opened a new issue, #6290:
URL: https://github.com/apache/hudi/issues/6290
**Describe the problem you faced**
I use HMS Catalog with flink, create the table with the partition of school.
But when I insert the data, the partition becomes ip.
Create table sql:
```sql
create table student (
id int,
name string,
school string,
nickname string,
age int,
class_num int,
score decimal(4, 2),
phone bigint,
email string,
ip string,
primary key (id) not enforced
) partitioned by (school)
with (
'connector' = 'hudi',
'table.type' = 'MERGE_ON_READ',
'hoodie.datasource.write.hive_style_partitioning' = 'true',
'hoodie.datasource.write.recordkey.field' = 'id'
);
```
**To Reproduce**
Steps to reproduce the behavior:
1. Using hudi hms catalog and create the table
```sql
drop catalog if exists hudi;
create catalog hudi with(
'type' = 'hudi',
'mode' = 'hms',
'hive.conf.dir'='/etc/hive/conf'
);
create database if not exists hudi.studb;
drop table if exists hudi.studb.student;
create table hudi.studb.student (
id int,
name string,
school string,
nickname string,
age int,
class_num int,
score decimal(4, 2),
phone bigint,
email string,
ip string,
primary key (id) not enforced
) partitioned by (school)
with (
'connector' = 'hudi',
'table.type' = 'MERGE_ON_READ',
'hoodie.datasource.write.hive_style_partitioning' = 'true',
'hoodie.datasource.write.recordkey.field' = 'id'
);
```
2. Insert the data
```sql
insert into hudi.studb.student(id, name, school, nickname, age, class_num,
score, phone, email, ip)
values(1,'WLYzvkajXzdZKiotcK','zhongda','mike',82,43,67.36,18288287027,'[email protected]','192.168.186.144');
```
3. See the partition path in hdfs

**Expected behavior**
The partition path should be "school=zhongda".
**Environment Description**
* Flink version: 1.15.1
* Hudi version : 0.12.0-rc1
* Spark version :
* Hive version : 3.1.2
* Hadoop version : 3.2.0
* Storage (HDFS/S3/GCS..) :
* Running on Docker? (yes/no) :
**Additional context**
Add any other context about the problem here.
**Stacktrace**
```Add the stacktrace of the error.```
--
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]