Noemi Pap-Takacs has uploaded this change for review. ( http://gerrit.cloudera.org:8080/22332
Change subject: IMPALA-13656: MERGE redundantly accumulates memory in HDFS WRITER ...................................................................... IMPALA-13656: MERGE redundantly accumulates memory in HDFS WRITER When IcebergMergeImpl created the table sink it didn't set 'inputIsClustered' to true. Therefore HdfsTableSink expected random input and kept the output writers open for every partition, which resulted in high memory consumption and potentially a Memory Limit Exceeded error when the number of partitions are high. Since we actually sort the rows before the sink we can set 'inputIsClustered' to true, which means HdfsTableSink can write files one by one, because whenever it gets a row that belongs to a new partition it knows that it can close the current output writer, and open a new one. Testing: - e2e regression test Change-Id: I7bad0310e96eb482af9d09ba0d41e44c07bf8e4d --- M fe/src/main/java/org/apache/impala/analysis/IcebergMergeImpl.java M testdata/workloads/functional-query/queries/QueryTest/iceberg-merge-partition.test 2 files changed, 23 insertions(+), 1 deletion(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/32/22332/1 -- To view, visit http://gerrit.cloudera.org:8080/22332 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I7bad0310e96eb482af9d09ba0d41e44c07bf8e4d Gerrit-Change-Number: 22332 Gerrit-PatchSet: 1 Gerrit-Owner: Noemi Pap-Takacs <[email protected]>
