mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-26 12:44:10 +00:00
* feat(partition): support iceberg_hash in partition rules Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * fix(partition): reject partition column type changes and quote rule identifiers Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * fix(table): keep time index widening for partition columns Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * refactor(partition): replace PartitionFunction with IcebergHash Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * docs(partition): describe iceberg_hash in the function module Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * fix(meta): validate iceberg_hash partition bounds on ALTER and trim comments Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * test: quote partition rule identifiers in SHOW CREATE TABLE expectations Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * test(partition): check hash rules in information_schema and repartition target columns Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * fix(partition): coerce hash partition rules against the evaluation schema Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * fix(partition): keep quotes in partition column names when building filters Signed-off-by: Dennis Zhuang <killme2008@gmail.com> --------- Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
20 lines
530 B
SQL
20 lines
530 B
SQL
SHOW CREATE TABLE iceberg_hash_routes;
|
|
|
|
SELECT * FROM iceberg_hash_routes ORDER BY ts;
|
|
|
|
-- Overwrites must route to the regions holding the flushed rows.
|
|
INSERT INTO iceberg_hash_routes VALUES
|
|
('a', 1, 1, 10),
|
|
('b', 100, 2, 20),
|
|
('server42', 18446744073709551615, 3, 30),
|
|
('中🙂', 0, 4, 40),
|
|
(NULL, 7, 5, 50);
|
|
|
|
SELECT * FROM iceberg_hash_routes ORDER BY ts;
|
|
|
|
SELECT * FROM iceberg_hash_routes WHERE host = 'server42';
|
|
|
|
DELETE FROM iceberg_hash_routes WHERE host = 'b';
|
|
|
|
SELECT * FROM iceberg_hash_routes ORDER BY ts;
|