leaves12138 commented on code in PR #1846:
URL: https://github.com/apache/incubator-paimon/pull/1846#discussion_r1302809538
##########
docs/content/concepts/append-only-table.md:
##########
@@ -227,6 +227,26 @@ behavior is exactly the same as [Append For Qeueue]({{<
ref "#compaction" >}}).
The auto compaction is only supported in Flink engine streaming mode. You can
also start a compaction job in flink by flink action in paimon
and disable all the other compaction by set `write-only`.
+### Order Rewrite
+
+The data in a per-partition out of order will lead a slow select, compaction
may slow down the inserting. It is a good choice for you to set
+write-only for inserting job, and after per-partition data done, trigger a
partition `Order Rewrite` action. `Order Rewrite` action self could do two
things:
+* Order all the data specified by select clause.
+* Rewrite the ordered data in a compaction way.
+
+You can trigger action by shell script:
+```shell
+<FLINK_HOME>/bin/flink run \
+ /path/to/paimon-flink-action-0.5-SNAPSHOT.jar \
+ order-rewrite \
Review Comment:
done
##########
docs/layouts/shortcodes/generated/order-rewrite.html:
##########
@@ -0,0 +1,67 @@
+{{/*
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+*/}}
+{{ $ref := ref . "maintenance/configurations.md" }}
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<table class="configuration table table-bordered">
+ <thead>
+ <tr>
+ <th class="text-left" style="width: 15%">Configuration</th>
+ <th class="text-left" style="width: 85%">Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><h5>--warehouse</h5></td>
+ <td>The path to Paimon warehouse.</td>
+ </tr>
+ <tr>
+ <td><h5>--database</h5></td>
+ <td>The database name in Paimon catalog.</td>
+ </tr>
+ <tr>
+ <td><h5>--table</h5></td>
+ <td>The Paimon table name.</td>
+ </tr>
+ <tr>
+ <td><h5>--select</h5></td>
+ <td>The select sql that can be compiled by flink. We order all the
data found by the select-clause. For example: --select "select * from source
where id > 10"</td>
+ </tr>
+ <tr>
+ <td><h5>--order-by</h5></td>
+ <td>Specify the order. Now we have zorder and order. "zorder" will
sort the data by z-order. For example: --order-by zorder(col0, col1)
--order-by order(a,b,c)</td>
Review Comment:
done
--
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]