trino
Allow row column for equality delete
#25729
Open

Allow row column for equality delete #25729

weijiii
weijiii19 days ago

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 added cla-signed
github-actions github-actions added iceberg
weijiii weijiii marked this pull request as ready for review 19 days ago
weijiii Allow row column for equality delete
f5153363
weijiii weijiii force pushed from f6058b33 to f5153363 19 days ago
findinpath findinpath requested a review from ebyhr ebyhr 18 days ago
findinpath findinpath requested a review from chenjian2664 chenjian2664 18 days ago
chenjian2664
chenjian2664 commented on 2025-05-08
plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/TestIcebergV2.java
298 public void testV2TableWithEqualityDeleteWhenColumnIsRow()
299 throws Exception
300 {
301
String tableName = "test_v2_equality_delete_column_is_row" + randomNameSuffix();
chenjian266416 days ago👍 1

Could you please add more test cases?

plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/delete/TrinoRow.java
158 @Override
159 public <T> void set(int i, T t)
160 {
161
throw new UnsupportedOperationException("Testing StructLike does not support setting values.");
chenjian266416 days ago

Please update the exception message

plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/delete/TrinoRow.java
6083 return "TrinoRow" + Arrays.toString(values);
6184 }
85
86
static Object getObjectValue(ConnectorSession session, Block block, int position, Type type)
chenjian266416 days ago

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

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone