mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-20 15:00:40 +00:00
* generate exec plan Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * move DatanodeClients to client crate Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * wip MergeScanExec::to_stream Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix compile errors Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix default catalog Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix expand order of new stage Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * move sqlness cases contains plan out of common dir Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * refactor information schema to allow duplicated scan call Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix: ignore two cases due to substrait Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * reorganise sqlness common cases Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix typos Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * redact round robin partition number Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * Apply suggestions from code review Co-authored-by: Yingwen <realevenyag@gmail.com> * skip tranforming projection Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * update sqlness result Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * revert common/order Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix clippy Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * Update src/query/src/dist_plan/merge_scan.rs Co-authored-by: JeremyHi <jiachun_feng@proton.me> * update sqlness result Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * update sqlness result again Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * resolve CR comments Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * ignore region failover IT Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * update sqlness result again and again Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * unignore some tests about projection Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * enable failover tests Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com> Co-authored-by: Yingwen <realevenyag@gmail.com> Co-authored-by: JeremyHi <jiachun_feng@proton.me>
34 lines
2.7 KiB
Plaintext
34 lines
2.7 KiB
Plaintext
CREATE TABLE test(i DOUBLE, j TIMESTAMP TIME INDEX, k STRING PRIMARY KEY);
|
|
|
|
Affected Rows: 0
|
|
|
|
INSERT INTO test VALUES (1, 1, "a"), (1, 1, "b"), (2, 2, "a");
|
|
|
|
Affected Rows: 3
|
|
|
|
-- SQLNESS REPLACE (RoundRobinBatch.*) REDACTED
|
|
-- SQLNESS REPLACE (peer-.*) REDACTED
|
|
TQL EXPLAIN (0, 10, '5s') test;
|
|
|
|
+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| plan_type | plan |
|
|
+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| logical_plan | PromInstantManipulate: range=[0..0], lookback=[300000], interval=[300000], time index=[j] |
|
|
| | PromSeriesNormalize: offset=[0], time index=[j], filter NaN: [false] |
|
|
| | PromSeriesDivide: tags=["k"] |
|
|
| | Sort: test.k DESC NULLS LAST, test.j DESC NULLS LAST |
|
|
| | MergeScan [is_placeholder=false] |
|
|
| | TableScan: test projection=[i, j, k], partial_filters=[j >= TimestampMillisecond(-300000, None), j <= TimestampMillisecond(300000, None)] |
|
|
| physical_plan | PromInstantManipulateExec: range=[0..0], lookback=[300000], interval=[300000], time index=[j] |
|
|
| | PromSeriesNormalizeExec: offset=[0], time index=[j], filter NaN: [false] |
|
|
| | PromSeriesDivideExec: tags=["k"] |
|
|
| | RepartitionExec: partitioning=REDACTED
|
|
| | MergeScanExec: peers=[REDACTED
|
|
| | |
|
|
+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
DROP TABLE test;
|
|
|
|
Affected Rows: 1
|
|
|