Skip to content

HIVE-28015: Iceberg: Add identifier-field-ids support in Hive#5047

Merged
zhangbutao merged 2 commits intoapache:masterfrom
zhangbutao:HIVE-28015
Feb 21, 2024
Merged

HIVE-28015: Iceberg: Add identifier-field-ids support in Hive#5047
zhangbutao merged 2 commits intoapache:masterfrom
zhangbutao:HIVE-28015

Conversation

@zhangbutao
Copy link
Contributor

@zhangbutao zhangbutao commented Jan 29, 2024

What changes were proposed in this pull request?

Support create iceberg table with identifier field using hive primary key syntax. Then other engine like Flink can do upsert( writing equality deletes) on the table created by hive.
create table testprikeyice(id int primary key disable novalidate, name string) stored by iceberg;

I will complete alter add/drop primary key in the following task if we think this change is good.

BTW, in current hive code, we can not get primary key through show create table statement, and this will make it inconvenient for users to check primary key in hive jdbc client(beeline). I think we can optimize the show create table in following task.

Why are the changes needed?

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

Added new UTs

@zhangbutao zhangbutao marked this pull request as draft January 29, 2024 16:37
@deniskuzZ
Copy link
Member

@zhangbutao, PR looks good, some minor stuff

@zhangbutao
Copy link
Contributor Author

@zhangbutao, PR looks good, some minor stuff

Thanks for your review! I've been out recently. Will come back asap. 😀

@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Member

@deniskuzZ deniskuzZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@zhangbutao zhangbutao merged commit eb2cac3 into apache:master Feb 21, 2024
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants