jeremyhi
c7273efb36
fix: global limit for distributed inspect streams
...
Signed-off-by: jeremyhi <fengjiachun@gmail.com >
2026-07-03 19:50:42 +08:00
discord9
d3cc1b1888
feat(flow): stabilize eval interval scheduling ( #8360 )
...
* feat(flow): stabilize eval interval scheduling
Signed-off-by: discord9 <discord9@163.com >
* fix(flow): satisfy eval schedule clippy
Signed-off-by: discord9 <discord9@163.com >
* test(flow): trim eval schedule coverage
Signed-off-by: discord9 <discord9@163.com >
* test(flow): cover stable eval scheduling
Signed-off-by: discord9 <discord9@163.com >
* fix(flow): reserve scheduled runtime hint
Signed-off-by: discord9 <discord9@163.com >
* test(flow): trim sqlness result eof
Signed-off-by: discord9 <discord9@163.com >
* fix(flow): harden eval schedule edges
Signed-off-by: discord9 <discord9@163.com >
* fix(flow): address scheduled flow review
Signed-off-by: discord9 <discord9@163.com >
* fix(flow): clean scheduled config handling
Signed-off-by: discord9 <discord9@163.com >
* test(flow): add eval interval compat case
Signed-off-by: discord9 <discord9@163.com >
* test(flow): cover show create flow in compat
Signed-off-by: discord9 <discord9@163.com >
* fix(flow): drop scheduled time from flow context
Signed-off-by: discord9 <discord9@163.com >
* test(flow): assert scheduled now binding
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-06-29 09:55:27 +00:00
discord9
9cf071808a
fix(query): run optimizer rules before MergeScan ( #8339 )
...
* fix(query): push down join filters before MergeScan
Signed-off-by: discord9 <discord9@163.com >
* fix(query): run optimizer before MergeScan pushdown
Signed-off-by: discord9 <discord9@163.com >
* fix(query): narrow pre-MergeScan filter pushdown
Signed-off-by: discord9 <discord9@163.com >
* fix(query): refine pre-MergeScan optimizer prepass
Signed-off-by: discord9 <discord9@163.com >
* fix(query): satisfy predicate extractor clippy
Signed-off-by: discord9 <discord9@163.com >
* test(query): cover pre-MergeScan optimizer edges
Signed-off-by: discord9 <discord9@163.com >
* test(query): cover set comparison prepass
Signed-off-by: discord9 <discord9@163.com >
* fix(query): guard remote scan filter pushdown
Signed-off-by: discord9 <discord9@163.com >
* fix(query): preserve subquery planning errors
Signed-off-by: discord9 <discord9@163.com >
* fix(query): preserve usable scan predicates
Signed-off-by: discord9 <discord9@163.com >
* fix(query): simplify scan predicate extraction
Signed-off-by: discord9 <discord9@163.com >
* fix(query): keep scan filter extraction scoped
Signed-off-by: discord9 <discord9@163.com >
* docs(query): explain pre-MergeScan optimizer
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-06-23 12:15:40 +00:00
Ruihang Xia
428cd8137d
feat: identify noneffective binary modifiers ( #8230 )
...
* perf(promql): use tsid for full-label modifier joins
* fix(promql): collect narrow range joins by tsid
* verify on for both sides
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* check if tsid exists
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* correct behavior
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-06-05 08:44:50 +00:00
discord9
9fafd879ed
fix: window sort off by one precision TimeRange&better alias track ( #8019 )
...
* fix: window sort track alias&off by one precision TimeRange
Signed-off-by: discord9 <discord9@163.com >
* chore: more test
Signed-off-by: discord9 <discord9@163.com >
* refactor: clear helper
Signed-off-by: discord9 <discord9@163.com >
* dedup a bit
Signed-off-by: discord9 <discord9@163.com >
* feat: even more guard
Signed-off-by: discord9 <discord9@163.com >
* fix: case insensitive
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-04-24 13:56:51 +00:00
QuakeWang
e8a86a4273
feat: expose flownode addrs in information_schema flows ( #7992 )
...
* feat: expose flownode addrs in information_schema flows
Signed-off-by: QuakeWang <1677980708@qq.com >
* fix: always include flownode addrs
Signed-off-by: QuakeWang <1677980708@qq.com >
* test: split flownode_addrs sqlness cases by mode
Signed-off-by: QuakeWang <1677980708@qq.com >
* test: fix flow_tql sqlness snapshots
Signed-off-by: QuakeWang <1677980708@qq.com >
* test: fix sqlness information_schema snapshot
Signed-off-by: QuakeWang <1677980708@qq.com >
---------
Signed-off-by: QuakeWang <1677980708@qq.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2026-04-22 07:06:44 +00:00
Yingwen
f3dbf34c74
chore: bump version to 1.0.0 ( #7935 )
...
* chore: bump version to 1.0.0
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: fix sqlness test
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: fix cluster info sqlness
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: reorder regex in cluster_info
Signed-off-by: evenyag <realevenyag@gmail.com >
* chore: fix pg catalog
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: evenyag <realevenyag@gmail.com >
2026-04-08 15:15:27 +00:00
discord9
b623cb1aa2
perf: no longer window sort when limit ( #7912 )
...
* perf: no longer window sort when limit
Signed-off-by: discord9 <discord9@163.com >
* test: confusing vector sqlness
Signed-off-by: discord9 <discord9@163.com >
* chore: redact sqlness
Signed-off-by: discord9 <discord9@163.com >
* chore: redact every thing
Signed-off-by: discord9 <discord9@163.com >
* REDACTED
Signed-off-by: discord9 <discord9@163.com >
* what
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-04-08 02:54:22 +00:00
discord9
30e895abbe
fix: prom cast to f64 ( #7840 )
...
* fix: cast to f64
Signed-off-by: discord9 <discord9@163.com >
* test: div case
Signed-off-by: discord9 <discord9@163.com >
* test: int test
Signed-off-by: discord9 <discord9@163.com >
* chore: sqlness update
Signed-off-by: discord9 <discord9@163.com >
* chore: test
Signed-off-by: discord9 <discord9@163.com >
* chore: update test
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-03-24 06:24:52 +00:00
discord9
d1151b665b
feat: flow tql cte ( #7702 )
...
* feat: flow tql cte
Signed-off-by: discord9 <discord9@163.com >
* fix: creating flow TQL CTE source tables lose cte part in query
Signed-off-by: discord9 <discord9@163.com >
* test: update sqlness result
Signed-off-by: discord9 <discord9@163.com >
* chore
Signed-off-by: discord9 <discord9@163.com >
* fix: properly canonicalize ident
Signed-off-by: discord9 <discord9@163.com >
* feat: even stricter check
Signed-off-by: discord9 <discord9@163.com >
* chore: sqlness update
Signed-off-by: discord9 <discord9@163.com >
* chore: after rebase fix
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-03-06 03:36:42 +00:00
LFC
b2074e3863
chore: upgrade DataFusion family, again ( #7578 )
...
* chore: upgrade DataFusion family
Signed-off-by: luofucong <luofc@foxmail.com >
* chore: switch to released version of datafusion-pg-catalog
---------
Signed-off-by: luofucong <luofc@foxmail.com >
Co-authored-by: Ning Sun <sunning@greptime.com >
Co-authored-by: Ning Sun <sunng@protonmail.com >
2026-03-03 07:36:39 +00:00
Ruihang Xia
db46849f40
feat: track flow source tables for TQL and info schema ( #7697 )
...
* feat: track flow source tables for TQL and info schema
* handle schema matcher
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sqlness tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* cover __name__ case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-02-11 03:19:09 +00:00
fys
1aa80d9363
fix: incorrect-tql-explain result ( #7675 )
2026-02-11 02:30:15 +00:00
Ruihang Xia
4ac73a7e9e
feat: adapt prometheus 3.x selector and lookback behavior ( #7688 )
...
* feat: adapt prometheus 3.x selector and lookback behavior
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove commit hash from comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-02-10 04:00:45 +00:00
Ruihang Xia
c83868c4eb
feat: partition rule simplifier ( #7622 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* reuse collider
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplify range helpers
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* notes
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update unit test resule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-01-27 14:31:20 +00:00
discord9
085e9dfc7b
fix: use phy table when need fitler by tsid/table id ( #7609 )
...
* fix: use phy table when need fitler by tsid/table id
Signed-off-by: discord9 <discord9@163.com >
* feat: add subquery alias
Signed-off-by: discord9 <discord9@163.com >
* test: update after alias
Signed-off-by: discord9 <discord9@163.com >
* test: sort&redact
Signed-off-by: discord9 <discord9@163.com >
* test: per review
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2026-01-26 06:11:16 +00:00
Weny Xu
25687bb282
feat: add ddl timeout/wait options, repartition WITH parsing, meta-client startup refactor ( #7589 )
...
* feat: add ddl request timeouts and unify meta client startup
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat: omplement ALTER TABLE repartition DDL options parsing
Signed-off-by: WenyXu <wenymedia@gmail.com >
* test: add sqlness tests
Signed-off-by: WenyXu <wenymedia@gmail.com >
* test: add unit tests
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat: pass timeout argument to procedure
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: refine comments
Signed-off-by: WenyXu <wenymedia@gmail.com >
* test: assert timeout
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: update proto
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2026-01-20 09:26:53 +00:00
Weny Xu
2ae20daa62
feat: add sync region instruction for repartition procedure ( #7562 )
...
* feat: add sync region instruction for repartition procedure
This commit introduces a new sync region instruction and integrates it
into the repartition procedure flow, specifically for metric engine tables.
Changes:
- Add SyncRegion instruction type and SyncRegionsReply in instruction.rs
- Implement SyncRegionHandler in datanode to handle sync region requests
- Add SyncRegion state in repartition procedure to sync newly allocated regions
- Integrate sync region step after enter_staging_region for metric engine tables
- Add sync_region flag and allocated_region_ids to PersistentContext
- Make SyncRegionFromRequest serializable for instruction transmission
- Add test utilities and mock support for sync region operations
The sync region step is conditionally executed based on the table engine type,
ensuring that newly allocated regions in metric engine tables are properly
synced from their source regions before proceeding with manifest remapping.
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: add logs
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat(repartition): improve staging region handling and support metric engine repartition
- Reorder sync region flow: move SyncRegion from EnterStagingRegion to RepartitionStart to sync before applying staging
- Add ExitStaging metadata update state to properly clear staging leader info after repartition completes
- Update build_template_from_raw_table_info to optionally skip metric engine internal columns when creating region requests
- Fix region state transition: set_dropping now expects specific state (Staging or Writable) for proper validation
- Adjust region drop and copy handlers to handle staging regions correctly
- Add comprehensive test cases for metric engine SPLIT/MERGE partition operations on physical tables with logical tables
- Improve logging for table route updates, region drops, and repartition operations
Signed-off-by: WenyXu <wenymedia@gmail.com >
* refactor: removes code duplication
Signed-off-by: WenyXu <wenymedia@gmail.com >
* fix: update result
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: refine comments
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat: add error strategy support for flush region and flush pending deallocate regions
- **Add `ErrorStrategy` enum** in `procedure/utils.rs`:
- Supports `Ignore` and `Retry` strategies for error handling
- Refactor `flush_region` to accept `error_strategy` parameter
- Extract `handle_flush_region_reply` helper function for better code organization
- **Add pending deallocate region support**:
- Add `pending_deallocate_region_ids` field to `PersistentContext`
- Implement `flush_pending_deallocate_regions` in `EnterStagingRegion` state
- Flush pending deallocate regions before entering staging regions to ensure data consistency
- **Update error handling**:
- `flush_leader_region`: Use `ErrorStrategy::Ignore` to skip unreachable datanodes
- `sync_region`: Use `ErrorStrategy::Retry` for critical operations
- `enter_staging_region`: Use `ErrorStrategy::Retry` when flushing pending deallocate regions
This change improves the robustness of the repartition procedure by:
1. Providing flexible error handling strategies for flush operations
2. Ensuring pending deallocate regions are properly flushed before repartitioning
3. Preventing data inconsistency during region migration
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* fix: compile
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2026-01-15 04:52:57 +00:00
LFC
e64c31e59a
chore: upgrade DataFusion family ( #7558 )
...
* chore: upgrade DataFusion family
Signed-off-by: luofucong <luofc@foxmail.com >
* use main proto
Signed-off-by: luofucong <luofc@foxmail.com >
* fix ci
Signed-off-by: luofucong <luofc@foxmail.com >
---------
Signed-off-by: luofucong <luofc@foxmail.com >
2026-01-14 14:02:31 +00:00
Ruihang Xia
170f94fc08
feat: enable pruning for manipulate plans ( #7565 )
...
* feat: enable pruning for manipulate plans
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* apply to other plans and add sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix scalar manipulate and histogram fold for missing some columns
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* don't drop every columns
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unrelated part
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-01-14 08:32:51 +00:00
Yingwen
4b3bd7317b
feat: add per-partition convert, result cache metrics ( #7539 )
...
* fix: show convert cost in explain analyze verbose
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix: increase puffin metadata cache metric
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: add result cache hit/miss to filter metrics
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: print flat format in debug
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: update sqlness test
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: make scan cost contains part/reader build cost
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: collect divider cost
Signed-off-by: evenyag <realevenyag@gmail.com >
* refactor: remove unused field in ScannerMetrics
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: collect metadata read bytes
Signed-off-by: evenyag <realevenyag@gmail.com >
* chore: collect read metrics in get_parquet_meta_data
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: evenyag <realevenyag@gmail.com >
2026-01-13 09:17:09 +00:00
Weny Xu
567d3e66e9
feat: integrate repartition procedure into DdlManager ( #7548 )
...
* feat: add repartition procedure factory support to DdlManager
- Introduce RepartitionProcedureFactory trait for creating and registering
repartition procedures
- Implement DefaultRepartitionProcedureFactory for metasrv with full support
- Implement StandaloneRepartitionProcedureFactory for standalone (unsupported)
- Add procedure loader registration for RepartitionProcedure and
RepartitionGroupProcedure
- Add helper methods to TableMetadataAllocator for allocator access
- Add error types for repartition procedure operations
- Update DdlManager to accept and use RepartitionProcedureFactoryRef
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat: integrate repartition procedure into DdlManager
- Add submit_repartition_task() to handle repartition from alter table
- Route Repartition operations in submit_alter_table_task() to repartition factory
- Refactor: rename submit_procedure() to execute_procedure_and_wait()
- Make all DDL operations wait for completion by default
- Add submit_procedure() for fire-and-forget submissions
- Add CreateRepartitionProcedure error type
- Add placeholder Repartition handling in grpc-expr (unsupported)
- Update greptime-proto dependency
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat: implement ALTER TABLE REPARTITION procedure submission
Signed-off-by: WenyXu <wenymedia@gmail.com >
* refactor(repartition): handle central region in apply staging manifest
- Introduce ApplyStagingManifestInstructions struct to organize instructions
- Add special handling for central region when applying staging manifests
- Transition state from UpdateMetadata to RepartitionEnd after applying staging manifests
- Remove next_state() method in RepartitionStart and inline state transitions
- Improve logging and expression serialization in DDL statement executor
- Move repartition tests from standalone to distributed test suite
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: update proto
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2026-01-09 08:37:21 +00:00
Ruihang Xia
fce1687fa7
fix: incorrect timestamp index inference ( #7530 )
...
* add sqlness case, but can't reproduce
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* reproduction
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix wildcard rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sort result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-01-07 11:18:25 +00:00
discord9
ac6d68aa2d
fix: simp expr recursively ( #7523 )
...
* fix: simp expr recursively
Signed-off-by: discord9 <discord9@163.com >
* test: some simple constant folding case
Signed-off-by: discord9 <discord9@163.com >
* fix: literal ts cast to UTC
Signed-off-by: discord9 <discord9@163.com >
* fix: patch merge scan batch col tz instead
Signed-off-by: discord9 <discord9@163.com >
* test: fix
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-01-07 09:22:26 +00:00
Ruihang Xia
564cc0c750
feat: table/column/flow COMMENT ( #7060 )
...
* initial impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplify impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* avoid unimplemented panic
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* validate flow
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix table column comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* table level comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplify table info serde
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* don't txn
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove empty trait
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* wip: procedure
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update proto
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* grpc support
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* try from pb struct
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* doc comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* check unchanged fast case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tune errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix merge error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use try_as_raw_value
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
2025-12-10 15:08:47 +00:00
Ruihang Xia
f2288a86b0
perf: treat DISTINCT as comm/part-comm ( #7348 )
...
* perf: treat DISTINCT as comm/part-comm
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sqlness tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-12-04 11:14:00 +00:00
dennis zhuang
1f91422bae
feat!: improve mysql/pg compatibility ( #7315 )
...
* feat(mysql): add SHOW WARNINGS support and return warnings for unsupported SET variables
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* feat(function): add MySQL IF() function and PostgreSQL description functions for connector compatibility
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: show tables for mysql
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: partitions table in information_schema and add starrocks external catalog compatibility
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* refactor: async udf
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: set warnings
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* feat: impl pg_my_temp_schema and make description functions simple
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* test: add test for issue 7313
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* feat: apply suggestions
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: partition_expression and partition_description
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: test
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: unit tests
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: saerch_path only works for pg
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* feat: improve warnings processing
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: warnings while writing affected rows and refactor
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: improve ShobjDescriptionFunction signature
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* refactor: array_to_boolean
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
---------
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-01 20:41:14 +00:00
Ruihang Xia
c054c13e48
perf: avoid unnecessary merge sort ( #7274 )
...
* perf: avoid unnecessary merge sort
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fantastic if chain
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* more comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-11-21 09:02:25 +00:00
discord9
8153068b89
chore: bump main branch version to 1.0.0-beta.1 ( #7191 )
...
* chore: bump main branch version to 1.0.0-beta.1
Signed-off-by: discord9 <discord9@163.com >
* rename beta.1 to beta1
Signed-off-by: discord9 <discord9@163.com >
* again
Signed-off-by: discord9 <discord9@163.com >
* test: correct redact version
Signed-off-by: discord9 <discord9@163.com >
* chore
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2025-11-11 14:52:03 +00:00
discord9
68247fc9b1
fix: count_state use stat to eval&predicate w/out region ( #7116 )
...
* fix: count_state use stat to eval
Signed-off-by: discord9 <discord9@163.com >
* cleanup
Signed-off-by: discord9 <discord9@163.com >
* fix: use predicate without region
Signed-off-by: discord9 <discord9@163.com >
* test: diverge standalone/dist impl
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2025-10-27 02:14:45 +00:00
zyy17
a0e6bcbeb3
feat: add cpu_usage_millicores and memory_usage_bytes in information_schema.cluster_info table. ( #7051 )
...
* refactor: add `hostname` in cluster_info table
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* chore: update information schema result
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* feat: enable zstd for bulk memtable encoded parts (#7045 )
feat: enable zstd in bulk memtable
Signed-off-by: evenyag <realevenyag@gmail.com >
* refactor: add `get_total_cpu_millicores()` / `get_total_cpu_cores()` / `get_total_memory_bytes()` / `get_total_memory_readable()` in common-stat
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* feat: add `cpu_usage_millicores` and `memory_usage_bytes` in `information_schema.cluster_info` table
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* fix: compile warning and integration test failed
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* fix: integration test failed
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* refactor: add `ResourceStat`
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* refactor: apply code review comments
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* chore: update greptime-proto
Signed-off-by: zyy17 <zyylsxm@gmail.com >
---------
Signed-off-by: zyy17 <zyylsxm@gmail.com >
Signed-off-by: evenyag <realevenyag@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2025-10-24 03:12:45 +00:00
LFC
2f637a262e
chore: update datafusion to 50 ( #7076 )
...
* chore: update datafusion to 50
Signed-off-by: luofucong <luofc@foxmail.com >
* fix ci
Signed-off-by: luofucong <luofc@foxmail.com >
* fix: update datafusion_pg_catalog import
* chore: fix toml format
* chore: fix toml format again
* fix nextest
Signed-off-by: luofucong <luofc@foxmail.com >
* fix sqlness
Signed-off-by: luofucong <luofc@foxmail.com >
* chore: switch datafusion-orc to upstream tag
* fix sqlness
Signed-off-by: luofucong <luofc@foxmail.com >
* resolve PR comments
Signed-off-by: luofucong <luofc@foxmail.com >
---------
Signed-off-by: luofucong <luofc@foxmail.com >
Co-authored-by: Ning Sun <sunning@greptime.com >
2025-10-23 07:18:36 +00:00
zyy17
cf1b8392af
refactor!: unify the API of getting total cpu and memory ( #7049 )
...
* refactor: add `get_total_cpu_millicores()` / `get_total_cpu_cores()` / `get_total_memory_bytes()` / `get_total_memory_readable()` in common-stat
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* tests: update sqlness test cases
Signed-off-by: zyy17 <zyylsxm@gmail.com >
---------
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2025-10-16 12:41:34 +00:00
zyy17
6ab4672866
refactor: add peer_hostname field in information_schema.cluster_info table ( #7050 )
...
* refactor: add `hostname` in cluster_info table
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* chore: update information schema result
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* chore: apply code review comments
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* chore: update greptime-proto
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* chore: add the compatibility for old proto
Signed-off-by: zyy17 <zyylsxm@gmail.com >
---------
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2025-10-16 06:02:47 +00:00
discord9
aca8b690d1
fix: step aggr merge phase not order nor filter ( #6998 )
...
* fix: not order
Signed-off-by: discord9 <discord9@163.com >
* test: redacted
Signed-off-by: discord9 <discord9@163.com >
* feat: fix up state wrapper
Signed-off-by: discord9 <discord9@163.com >
* df last_value state not as promised!
Signed-off-by: discord9 <discord9@163.com >
* fix?: could fix better
Signed-off-by: discord9 <discord9@163.com >
* test: unstable result
Signed-off-by: discord9 <discord9@163.com >
* fix: work around by fixing state
Signed-off-by: discord9 <discord9@163.com >
* chore: after rebase fix
Signed-off-by: discord9 <discord9@163.com >
* chore: finish some todo
Signed-off-by: discord9 <discord9@163.com >
* chore: per copilot
Signed-off-by: discord9 <discord9@163.com >
* refactor: not fix but just notify mismatch
Signed-off-by: discord9 <discord9@163.com >
* chore: warn -> debug state mismatch
Signed-off-by: discord9 <discord9@163.com >
* chore: refine error msg
Signed-off-by: discord9 <discord9@163.com >
* test: sqlness add last_value date_bin test
Signed-off-by: discord9 <discord9@163.com >
* ?: substrait order by decode failure
Signed-off-by: discord9 <discord9@163.com >
* unit test reproduce that
Signed-off-by: discord9 <discord9@163.com >
* feat: support state wrapper's order serde in substrait
Signed-off-by: discord9 <discord9@163.com >
* refactor: stuff
Signed-off-by: discord9 <discord9@163.com >
* test: standalone/distributed different exec
Signed-off-by: discord9 <discord9@163.com >
* fmt
Signed-off-by: discord9 <discord9@163.com >
* chore: per review
Signed-off-by: discord9 <discord9@163.com >
* refactor: closure
Signed-off-by: discord9 <discord9@163.com >
* test: first value order by
Signed-off-by: discord9 <discord9@163.com >
* refactor: per cr
Signed-off-by: discord9 <discord9@163.com >
* feat: ScanHint last_value last row selector
Signed-off-by: discord9 <discord9@163.com >
* docs: per cr
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2025-09-26 09:12:45 +00:00
discord9
238ed003df
fix: group by expr not as column in step aggr ( #7008 )
...
* fix: group by expr not as column
Signed-off-by: discord9 <discord9@163.com >
* test: dist analyzer date_bin
Signed-off-by: discord9 <discord9@163.com >
* ???fix wip
Signed-off-by: discord9 <discord9@163.com >
* fix: deduce using correct input fields
Signed-off-by: discord9 <discord9@163.com >
* refactor: clearer wrapper
Signed-off-by: discord9 <discord9@163.com >
* chore: update sqlness
Signed-off-by: discord9 <discord9@163.com >
* chore: per review
Signed-off-by: discord9 <discord9@163.com >
* chore: per review
Signed-off-by: discord9 <discord9@163.com >
* chore: rm todo
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2025-09-24 06:57:01 +00:00
discord9
85c1a91bae
feat: support SubqueryAlias pushdown ( #6963 )
...
* wip enforce dist requirement rewriter
Signed-off-by: discord9 <discord9@163.com >
* feat: enforce dist req
Signed-off-by: discord9 <discord9@163.com >
* test: sqlness result
Signed-off-by: discord9 <discord9@163.com >
* fix: double projection
Signed-off-by: discord9 <discord9@163.com >
* test: fix sqlness
Signed-off-by: discord9 <discord9@163.com >
* refactor: per review
Signed-off-by: discord9 <discord9@163.com >
* docs: use btree map
Signed-off-by: discord9 <discord9@163.com >
* test: sqlness explain&comment
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2025-09-16 13:27:35 +00:00
Weny Xu
16febbd4c2
feat: add CPU, memory and node status info to cluster_info ( #6897 )
...
* feat: add CPU and memory info to `cluster_info`
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat: add `node_status` to `cluster_info` table
Signed-off-by: WenyXu <wenymedia@gmail.com >
* test: update sqlness
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: update proto
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-09-08 08:59:34 +00:00
discord9
6a3791ab31
fix(flow): promql auto create table ( #6867 )
...
* fix: non aggr prom ql auto create table
Signed-off-by: discord9 <discord9@163.com >
* feat: val column use any name
Signed-off-by: discord9 <discord9@163.com >
* feat: check if it's tql src table
Signed-off-by: discord9 <discord9@163.com >
* test: check sink table is tql-able
Signed-off-by: discord9 <discord9@163.com >
* test: sqlness redacted
Signed-off-by: discord9 <discord9@163.com >
* fix: sql also handle no aggr case
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2025-09-02 08:54:16 +00:00
discord9
367a25af06
feat: flow prom ql auto sink table is also promql-able ( #6852 )
...
* feat: flow prom ql auto sink table is also promql-able
Signed-off-by: discord9 <discord9@163.com >
* fix: gen create table expr without aggr/projection outermost
Signed-off-by: discord9 <discord9@163.com >
* test: update non-aggr testcase
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2025-08-29 12:16:03 +00:00
discord9
8452a9d579
feat(flow): add eval interval option ( #6623 )
...
* feat: add flow eval interval
Signed-off-by: discord9 <discord9@163.com >
* feat: tql flow must have eval interval
Signed-off-by: discord9 <discord9@163.com >
* chore: clippy
Signed-off-by: discord9 <discord9@163.com >
* test: update sqlness
Signed-off-by: discord9 <discord9@163.com >
* wip
Signed-off-by: discord9 <discord9@163.com >
* wip
Signed-off-by: discord9 <discord9@163.com >
* feat: check for now func
Signed-off-by: discord9 <discord9@163.com >
* refactor: use ms instead
Signed-off-by: discord9 <discord9@163.com >
* fix: not panic&proper simplifier
Signed-off-by: discord9 <discord9@163.com >
* test: update to fix
Signed-off-by: discord9 <discord9@163.com >
* feat: not allow month in interval
Signed-off-by: discord9 <discord9@163.com >
* test: update remov months
Signed-off-by: discord9 <discord9@163.com >
* refactor: per review
Signed-off-by: discord9 <discord9@163.com >
* chore: after rebase fix
Signed-off-by: discord9 <discord9@163.com >
* feat: use seconds and add to field instead
Signed-off-by: discord9 <discord9@163.com >
* chore: aft rebase fix
Signed-off-by: discord9 <discord9@163.com >
* fix: add check for month
Signed-off-by: discord9 <discord9@163.com >
* chore: fmt
Signed-off-by: discord9 <discord9@163.com >
* refactor: per review
Signed-off-by: discord9 <discord9@163.com >
* refactor: rm clone per review
Signed-off-by: discord9 <discord9@163.com >
* chore: update proto
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2025-08-27 09:44:32 +00:00
Ruihang Xia
288f69a30f
fix: plan disorder from upgrading datafusion ( #6787 )
...
* fix: plan disorder from upgrading datafusion
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness again
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-08-23 12:29:47 +00:00
dennis zhuang
d6bc117408
refactor: refactor admin functions with async udf ( #6770 )
...
* refactor: use async udf for admin functions
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: sqlness test
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: code style
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: clippy
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: remove unused error
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: style
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: style
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: code style
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: apply suggestions
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: logical_metric_table test
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
---------
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
2025-08-20 03:35:38 +00:00
Ning Sun
bf191c5763
test: fix sqlness hash character count ( #6758 )
2025-08-18 11:06:05 +00:00
LFC
f9d2a89a0c
chore: update datafusion family ( #6675 )
...
* chore: update datafusion family
Signed-off-by: luofucong <luofc@foxmail.com >
* fix ci
Signed-off-by: luofucong <luofc@foxmail.com >
* use official otel-arrow-rust
Signed-off-by: luofucong <luofc@foxmail.com >
* rebase
Signed-off-by: luofucong <luofc@foxmail.com >
* use the official orc-rust
Signed-off-by: luofucong <luofc@foxmail.com >
* resolve PR comments
Signed-off-by: luofucong <luofc@foxmail.com >
* remove the empty lines
Signed-off-by: luofucong <luofc@foxmail.com >
* try following PR comments
Signed-off-by: luofucong <luofc@foxmail.com >
---------
Signed-off-by: luofucong <luofc@foxmail.com >
2025-08-15 12:41:49 +00:00
discord9
875207d26c
feat: register all aggregate function to auto step aggr fn ( #6596 )
...
* feat: support generic aggr push down
Signed-off-by: discord9 <discord9@163.com >
* typo
Signed-off-by: discord9 <discord9@163.com >
* fix: type ck in merge wrapper
Signed-off-by: discord9 <discord9@163.com >
* test: update sqlness
Signed-off-by: discord9 <discord9@163.com >
* feat: support all registried aggr func
Signed-off-by: discord9 <discord9@163.com >
* chore: per review
Signed-off-by: discord9 <discord9@163.com >
* chore: per review
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2025-08-05 11:37:45 +00:00
discord9
8d71213ea6
fix: aggr group by all partition cols use partial commutative ( #6534 )
...
* fix: aggr group by all partition cols use partial commutative
Signed-off-by: discord9 <discord9@163.com >
* test: bugged case
Signed-off-by: discord9 <discord9@163.com >
* test: sqlness fix
Signed-off-by: discord9 <discord9@163.com >
* test: more redacted
Signed-off-by: discord9 <discord9@163.com >
* more cases
Signed-off-by: discord9 <discord9@163.com >
* even more test cases
Signed-off-by: discord9 <discord9@163.com >
* join testcase
Signed-off-by: discord9 <discord9@163.com >
* fix: column requirement added in correct location
Signed-off-by: discord9 <discord9@163.com >
* fix test
Signed-off-by: discord9 <discord9@163.com >
* chore: clippy
Signed-off-by: discord9 <discord9@163.com >
* track col reqs per stack
Signed-off-by: discord9 <discord9@163.com >
* fix: continue
Signed-off-by: discord9 <discord9@163.com >
* chore: clippy
Signed-off-by: discord9 <discord9@163.com >
* refactor: test mod
Signed-off-by: discord9 <discord9@163.com >
* test utils
Signed-off-by: discord9 <discord9@163.com >
* test: better test
Signed-off-by: discord9 <discord9@163.com >
* more testcases
Signed-off-by: discord9 <discord9@163.com >
* test limit push down
Signed-off-by: discord9 <discord9@163.com >
* more testcases
Signed-off-by: discord9 <discord9@163.com >
* more testcase
Signed-off-by: discord9 <discord9@163.com >
* more test
Signed-off-by: discord9 <discord9@163.com >
* chore: update sqlness
Signed-off-by: discord9 <discord9@163.com >
* chore: update commnets
Signed-off-by: discord9 <discord9@163.com >
* fix: check col reqs from bottom to upper
Signed-off-by: discord9 <discord9@163.com >
* chore: more comment
Signed-off-by: discord9 <discord9@163.com >
* docs: more todo
Signed-off-by: discord9 <discord9@163.com >
* chore: comments
Signed-off-by: discord9 <discord9@163.com >
* test: a new failing test that should be fixed
Signed-off-by: discord9 <discord9@163.com >
* fix: part col alias tracking
Signed-off-by: discord9 <discord9@163.com >
* chore: unused
Signed-off-by: discord9 <discord9@163.com >
* chore: clippy
Signed-off-by: discord9 <discord9@163.com >
* docs: comment
Signed-off-by: discord9 <discord9@163.com >
* mroe testcase
Signed-off-by: discord9 <discord9@163.com >
* more testcase for step/part aggr combine
Signed-off-by: discord9 <discord9@163.com >
* FIXME: a new bug
Signed-off-by: discord9 <discord9@163.com >
* literally unfixable
Signed-off-by: discord9 <discord9@163.com >
* chore: remove some debug print
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2025-07-23 09:05:34 +00:00
discord9
6501b0b13c
feat: MergeScan print input ( #6563 )
...
* feat: MergeScan print input
Signed-off-by: discord9 <discord9@163.com >
* test: fix ut
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2025-07-21 06:40:15 +00:00
LFC
370d27587a
refactor: make greptimedb's tests ran as a submodule ( #6544 )
...
fix: failed to run a test when as a submodule
Signed-off-by: luofucong <luofc@foxmail.com >
2025-07-18 08:01:30 +00:00
discord9
9d08f2532a
feat: dist auto step aggr pushdown ( #6268 )
...
* wip: steppable aggr fn
Signed-off-by: discord9 <discord9@163.com >
* poc: step aggr query
Signed-off-by: discord9 <discord9@163.com >
* feat: mvp poc stuff
Signed-off-by: discord9 <discord9@163.com >
* test: sqlness
Signed-off-by: discord9 <discord9@163.com >
* chore: import missing
Signed-off-by: discord9 <discord9@163.com >
* feat: support first/last_value
Signed-off-by: discord9 <discord9@163.com >
* fix: check also include first/last value
Signed-off-by: discord9 <discord9@163.com >
* chore: clean up after rebase
Signed-off-by: discord9 <discord9@163.com >
* feat: optimize yes!
Signed-off-by: discord9 <discord9@163.com >
* fix: alias qualifled
Signed-off-by: discord9 <discord9@163.com >
* test: more testcases
Signed-off-by: discord9 <discord9@163.com >
* chore: qualified column
Signed-off-by: discord9 <discord9@163.com >
* chore: per review
Signed-off-by: discord9 <discord9@163.com >
* fix: case when can push down
Signed-off-by: discord9 <discord9@163.com >
* feat: udd/hll_merge is also the same
Signed-off-by: discord9 <discord9@163.com >
* fix: udd/hll_merge args
Signed-off-by: discord9 <discord9@163.com >
* tests: fix sqlness
Signed-off-by: discord9 <discord9@163.com >
* tests: fix sqlness
Signed-off-by: discord9 <discord9@163.com >
* fix: udd/hll merge steppable
Signed-off-by: discord9 <discord9@163.com >
* chore: per review
Signed-off-by: discord9 <discord9@163.com >
* test: REDACTED
Signed-off-by: discord9 <discord9@163.com >
* refactor: per review
Signed-off-by: discord9 <discord9@163.com >
* refactor: more formal transform action
Signed-off-by: discord9 <discord9@163.com >
* feat: support modify child plan too
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2025-06-20 07:18:55 +00:00