liming30 commented on code in PR #833:
URL: https://github.com/apache/incubator-paimon/pull/833#discussion_r1177453030
##########
paimon-core/src/test/java/org/apache/paimon/mergetree/compact/CombiningRecordReaderTestBase.java:
##########
@@ -75,6 +81,11 @@ protected List<List<ReusingTestData>> generateRandomData() {
}
protected void runTest(List<List<ReusingTestData>> readersData) throws
IOException {
+ runTest(readersData, CoreOptions.SORT_ENGINE.defaultValue());
+ }
Review Comment:
Resolved
##########
paimon-core/src/main/java/org/apache/paimon/mergetree/compact/SortMergeReader.java:
##########
@@ -38,168 +34,28 @@
*
* <p>NOTE: {@link KeyValue}s from the same {@link RecordReader} must not
contain the same key.
*/
-public class SortMergeReader<T> implements RecordReader<T> {
-
- private final List<RecordReader<KeyValue>> nextBatchReaders;
- private final Comparator<InternalRow> userKeyComparator;
- private final MergeFunctionWrapper<T> mergeFunctionWrapper;
+public abstract class SortMergeReader<T> implements RecordReader<T> {
- private final PriorityQueue<Element> minHeap;
- private final List<Element> polled;
+ protected final MergeFunctionWrapper<T> mergeFunctionWrapper;
Review Comment:
resolved
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]