#28515·presto

UPDATE statement with semi-join fails when PARTITIONED join distribution type is specified

Author: hantangwangdCreated Sep 18, 2026Updated Sep 18, 2026
Labelsbug

When the default distributed type is set to PARTITIONED (either via join-distribution-type=PARTITIONED in the config file or via set session join_distribution_type = 'PARTITIONED'), executing the follwing statement:

UPDATE test_table SET a = a + 100 WHERE b
    IN (SELECT col FROM (VALUES('first'), ('third'), ('fourth')) AS t(col));

would fail with the following error message:

java.lang.UnsupportedOperationException: updateRows called on EmptySplitPageSource
	at com.facebook.presto.split.EmptySplitPageSource.updateRows(EmptySplitPageSource.java:40)
	at com.facebook.presto.operator.UpdateOperator.addInput(UpdateOperator.java:83)
	at com.facebook.presto.operator.Driver.processInternal(Driver.java:458)

Steps to Reproduce

Execute the following statements in CLI console:

USE iceberg.default;

CREATE TABLE test_table(a int, b varchar);

INSERT INTO test_table VALUES (1, 'first'), (2, 'second'), (3, 'third');

UPDATE test_table SET a = a + 100 WHERE b
    IN (SELECT col FROM (VALUES('first'), ('third'), ('fourth')) AS t(col));

Possible Solution

Ensure that the UPDATE statements with semi-join explicitly use REPLICATED semi-join, following the same processing logic as the DELETE statements.