Skip to content

Allow row column for equality delete #25729

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

weijiii
Copy link
Member

@weijiii weijiii commented May 4, 2025

Description

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

@cla-bot cla-bot bot added the cla-signed label May 4, 2025
@github-actions github-actions bot added the iceberg Iceberg connector label May 4, 2025
@weijiii weijiii marked this pull request as ready for review May 5, 2025 01:11
@weijiii weijiii force-pushed the fix-iceberg-eq-delete-constraint branch from f6058b3 to f515336 Compare May 5, 2025 01:20
@findinpath findinpath requested review from ebyhr and chenjian2664 May 6, 2025 15:29
public void testV2TableWithEqualityDeleteWhenColumnIsRow()
throws Exception
{
String tableName = "test_v2_equality_delete_column_is_row" + randomNameSuffix();
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please add more test cases?

@Override
public <T> void set(int i, T t)
{
throw new UnsupportedOperationException("Testing StructLike does not support setting values.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update the exception message

@@ -59,4 +82,84 @@ public String toString()
{
return "TrinoRow" + Arrays.toString(values);
}

static Object getObjectValue(ConnectorSession session, Block block, int position, Type type)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move this logic to IcebergPageSink, maybe an overload with getIcebergValue, or even maybe we could extract a util

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.

Iceberg equality deletes with struct type columns should be supported
2 participants