This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-paimon.git
The following commit(s) were added to refs/heads/master by this push:
new 9fb1475da [core] Change default sort engine back to min heap (#1464)
9fb1475da is described below
commit 9fb1475dabe6964b034e5eb6e8332b83d0620e93
Author: tsreaper <[email protected]>
AuthorDate: Fri Jun 30 14:35:06 2023 +0800
[core] Change default sort engine back to min heap (#1464)
---
docs/layouts/shortcodes/generated/core_configuration.html | 2 +-
paimon-core/src/main/java/org/apache/paimon/CoreOptions.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/layouts/shortcodes/generated/core_configuration.html
b/docs/layouts/shortcodes/generated/core_configuration.html
index f64f3d104..ae797dc7d 100644
--- a/docs/layouts/shortcodes/generated/core_configuration.html
+++ b/docs/layouts/shortcodes/generated/core_configuration.html
@@ -406,7 +406,7 @@ under the License.
</tr>
<tr>
<td><h5>sort-engine</h5></td>
- <td style="word-wrap: break-word;">loser-tree</td>
+ <td style="word-wrap: break-word;">min-heap</td>
<td><p>Enum</p></td>
<td>Specify the sort engine for table with primary key.<br /><br
/>Possible values:<ul><li>"min-heap": Use min-heap for multiway
sorting.</li><li>"loser-tree": Use loser-tree for multiway sorting. Compared
with heapsort, loser-tree has fewer comparisons and is more
efficient.</li></ul></td>
</tr>
diff --git a/paimon-core/src/main/java/org/apache/paimon/CoreOptions.java
b/paimon-core/src/main/java/org/apache/paimon/CoreOptions.java
index 3b56c3daf..e6df397b0 100644
--- a/paimon-core/src/main/java/org/apache/paimon/CoreOptions.java
+++ b/paimon-core/src/main/java/org/apache/paimon/CoreOptions.java
@@ -197,7 +197,7 @@ public class CoreOptions implements Serializable {
public static final ConfigOption<SortEngine> SORT_ENGINE =
key("sort-engine")
.enumType(SortEngine.class)
- .defaultValue(SortEngine.LOSER_TREE)
+ .defaultValue(SortEngine.MIN_HEAP)
.withDescription("Specify the sort engine for table with
primary key.");
public static final ConfigOption<Integer> SORT_SPILL_THRESHOLD =