trinodb / trino

Official repository of Trino, the distributed SQL query engine for big data, formerly known as PrestoSQL (https://trino.io)
https://trino.io
Apache License 2.0
10.49k stars 3.02k forks source link

Use renamed column name in $partition table in Iceberg #24069

Open jinyangli34 opened 2 weeks ago

jinyangli34 commented 2 weeks ago

Description

Trino use the field.name() as partition name when building Iceberg $partition table. After a partition column rename, the $partition table returns old partition column name that no longer exists.

Fix the logic to use updated partition column name to keep it consistent with new schema.

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required. ( ) Release notes are required. Please propose a release note for me. ( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)