Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert Hive errors in IcebergParquetFileWriter to Iceberg errors #21932

Closed
wants to merge 1 commit into from

Conversation

takezoe
Copy link
Member

@takezoe takezoe commented May 11, 2024

Description

Currently, IcebergParquetFileWriter throws Hive errors if failed, but it would be better to throw Iceberg errors as other Iceberg file writers.

Additional context and related issues

Release notes

(x) 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`)

@cla-bot cla-bot bot added the cla-signed label May 11, 2024
@github-actions github-actions bot added the iceberg Iceberg connector label May 11, 2024
parquetFileWriter.appendRows(dataPage);
}
catch (TrinoException e) {
if (e.getErrorCode() == HIVE_WRITER_DATA_ERROR.toErrorCode()) {
Copy link
Member

Choose a reason for hiding this comment

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

having Iceberg and Delta connectors remap error codes in a bunch of places, i would rather think we should

  • consider this OK for Iceberg and Delta to reuse hive error codes (no remapping)
  • decouple parquet writer from hive, so that it doesn't use hive error codes (eg if we provide connector specific error codes in the constructor, no need for remapping)

cc @raunaqmorarka @electrum

Copy link
Member Author

Choose a reason for hiding this comment

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

I see. Anyway this fix doesn't seem to make sense.

@takezoe takezoe closed this May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed iceberg Iceberg connector
Development

Successfully merging this pull request may close these issues.

None yet

2 participants