leaves12138 opened a new pull request, #1624:
URL: https://github.com/apache/incubator-paimon/pull/1624
This class are copied from iceberg:
paimon-core/src/main/java/org/apache/paimon/utils/ByteBuffers.java
paimon-core/src/main/java/org/apache/paimon/utils/ZOrderByteUtils.java
paimon-core/src/test/java/org/apache/paimon/utils/TestZOrderByteUtil.java
This bytes(every column devoted to z-index) is fixed to 8 bytes, so if the
column is short or byte etc, it will fill the upper byte with zero. If the
column is string or something like byte[] more then 8, it will truncate it to 8
byte.
The action will invoke like this:
Table(sql select) ----------------> DataStream[Row] ------------------->
DataStream[Row] -----------------> Table(with z-order) ----------------->
Table(sorted) -----[overwrite target]-----> Table(overwrited)
usage example:
<flink run paimon jar>
zorder-rewrite
--warehouse
/Users/yejunhao/paimontest/GlobalBatchReadWrite
--database
my_db
--table
Orders1
--sql-select
"SELECT * FROM my_db.Orders1 WHERE f0 = 0"
--zorder-by
f0,f1,f2,f3,f4,f7,f8,f9,f10,f11,f12,f13,f14,f15
--
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]