leaves12138 opened a new pull request, #1846:
URL: https://github.com/apache/incubator-paimon/pull/1846

   This pull request introduce a way to sort append-only table with 
z-order(mainly).
   
   This topo will be like:
   
![image](https://github.com/apache/incubator-paimon/assets/41894543/b56b69b3-e023-4ecd-82bc-e05625424f3e)
   
   * We use rangePartitioner to make global sort by the z-order of the given 
columns. Now assume that all the columns are 
   8 bytes, which mean, if you index a string by z-order, the useful bytes are 
only the front eight.
   
   * We use 512 M for sort memory on heap.
   
   A usage example is :
   <pre>
   flink run ./paimon-flink-action-0.5-SNAPSHOT.jar order-rewrite --warehouse 
/Users/yejunhao/paimontest/GlobalBatchReadWrite --database my_db --table 
Orders1 --select "SELECT * FROM my_db.Orders1 WHERE f0 = 0" --order-by 
"zorder(f1,f2)"
   </pre>
   


-- 
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]

Reply via email to