Ruihang Xia
db6a63ef6c
chore: bump version to 0.12.1
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-06-21 16:52:28 +08:00
Yingwen
f166b93b02
feat: expose virtual_host_style config for s3 storage ( #5696 )
...
* feat: expose enable_virtual_host_style for s3 storage
* docs: update examples
* test: fix config test
2025-06-21 16:34:15 +08:00
Weny Xu
904d560175
feat(promql-planner): introduce vector matching binary operation ( #5578 )
...
* feat(promql-planner): support vector matching for binary operation
* test: add sqlness tests
v0.12.0
2025-02-27 07:39:19 +00:00
Lei, HUANG
765d1277ee
fix(metasrv): clean expired nodes in memory ( #5592 )
...
* fix/frontend-node-state: Refactor NodeInfoKey and Context Handling in Meta Server
• Removed unused cluster_id from NodeInfoKey struct.
• Updated HeartbeatHandlerGroup to return Context alongside HeartbeatResponse.
• Added current_node_info to Context for tracking node information.
• Implemented on_node_disconnect in Context to handle node disconnection events, specifically for Frontend roles.
• Adjusted register_pusher function to return PusherId directly.
• Updated tests to accommodate changes in Context structure.
* fix/frontend-node-state: Refactor Heartbeat Handler Context Management
Refactored the HeartbeatHandlerGroup::handle method to use a mutable reference for Context instead of passing it by value. This change simplifies the
context management by eliminating the need to return the context with the response. Updated the Metasrv implementation to align with this new context
handling approach, improving code clarity and reducing unnecessary context cloning.
* revert: clean cluster info on disconnect
* fix/frontend-node-state: Add Frontend Expiry Listener and Update NodeInfoKey Conversion
• Introduced FrontendExpiryListener to manage the expiration of frontend nodes, including its integration with leadership change notifications.
• Modified NodeInfoKey conversion to use references, enhancing efficiency and consistency across the codebase.
• Updated collect_cluster_info_handler and metasrv to incorporate the new listener and conversion changes.
• Added frontend_expiry module to the project structure for better organization and maintainability.
* chore: add config for node expiry
* add some doc
* fix: clippy
* fix/frontend-node-state:
### Refactor Node Expiry Handling
- **Configuration Update**: Removed `node_expiry_tick` from `metasrv.example.toml` and `MetasrvOptions` in `metasrv.rs`.
- **Module Renaming**: Renamed `frontend_expiry.rs` to `node_expiry_listener.rs` and updated references in `lib.rs`.
- **Code Refactoring**: Replaced `FrontendExpiryListener` with `NodeExpiryListener` in `node_expiry_listener.rs` and `metasrv.rs`, removing the tick interval and adjusting logic to use a fixed 60-second interval for node expiry checks.
* fix/frontend-node-state:
Improve logging in `node_expiry_listener.rs`
- Enhanced warning message to include peer information when an unrecognized node info key is encountered in `node_expiry_listener.rs`.
* docs: update config docs
* fix/frontend-node-state:
**Refactor Context Handling in Heartbeat Services**
- Updated `HeartbeatHandlerGroup` in `handler.rs` to pass `Context` by value instead of by mutable reference, allowing for more flexible context
management.
- Modified `Metasrv` implementation in `heartbeat.rs` to clone `Context` when passing to `handle` method, ensuring thread safety and consistency in
asynchronous operations.
2025-02-27 06:16:36 +00:00
discord9
ccf42a9d97
fix: flow heartbeat retry ( #5600 )
...
* fix: flow heartbeat retry
* fix?: not sure if fixed
* chore: per review
2025-02-27 03:58:21 +00:00
Weny Xu
71e2fb895f
feat: introduce prom_round fn ( #5604 )
...
* feat: introduce `prom_round` fn
* test: add sqlness tests
2025-02-27 03:30:15 +00:00
Ruihang Xia
c9671fd669
feat(promql): implement subquery ( #5606 )
...
* feat: initial implement for promql subquery
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl and test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-27 03:28:04 +00:00
Ruihang Xia
b5efc75aab
feat(promql): ignore invalid input in histogram plan ( #5607 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-27 03:18:20 +00:00
Weny Xu
c1d18d9980
fix(prom): preserve the order of series in PromQueryResult ( #5601 )
...
fix(prom): keep the order of tags
2025-02-26 13:40:09 +00:00
Lei, HUANG
5d9faaaf39
fix(metasrv): reject ddl when metasrv is follower ( #5599 )
...
* fix/reject-ddl-in-follower-metasrv:
Add leader check and logging for gRPC requests in `procedure.rs`
- Implemented leader verification for `query_procedure_state`, `ddl`, and `procedure_details` gRPC requests in `procedure.rs`.
- Added logging with `warn` for requests reaching a non-leader node.
- Introduced `ResponseHeader` and `Error::is_not_leader()` to handle non-leader responses.
* fix/reject-ddl-in-follower-metasrv:
Improve leader address handling in `heartbeat.rs`
- Refactor leader address retrieval by renaming `leader` to `leader_addr` for clarity.
- Update `make_client` function to use a reference to `leader_addr`.
- Enhance logging to include the leader address in the success message for creating a heartbeat stream.
* fmt
* fix/reject-ddl-in-follower-metasrv:
**Enhance Leader Check in `procedure.rs`**
- Updated the leader verification logic in `procedure.rs` to return a failed `MigrateRegionResponse` when the server is not the leader.
- Added logging to warn when a migrate request is received by a non-leader server.
2025-02-26 08:10:40 +00:00
ZonaHe
538875abee
feat: update dashboard to v0.7.11 ( #5597 )
...
Co-authored-by: sunchanglong <sunchanglong@users.noreply.github.com >
2025-02-26 07:57:59 +00:00
jeremyhi
5ed09c4584
fix: all heartbeat channel need to check leader ( #5593 )
2025-02-25 10:45:30 +00:00
Yingwen
3f6a41eac5
fix: update show create table output for fulltext index ( #5591 )
...
* fix: update full index syntax in show create table
* test: update fulltext sqlness result
2025-02-25 09:36:27 +00:00
yihong
ff0dcf12c5
perf: close issue 4974 by do not delete columns when drop logical region about 100 times faster ( #5561 )
...
* perf: do not delete columns when drop logical region in drop database
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
* fix: make ci happy
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
* fix: address review comments
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
* fix: address some comments
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
* fix: drop stupid comments by copilot
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
* chore: minor refactor
* chore: minor refactor
* chore: update grpetime-proto
---------
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
Co-authored-by: WenyXu <wenymedia@gmail.com >
2025-02-25 09:00:49 +00:00
Yingwen
5b1fca825a
fix: remove cached and uploaded files on failure ( #5590 )
2025-02-25 08:51:37 +00:00
Ruihang Xia
7bd108e2be
feat: impl hll_state, hll_merge and hll_calc for incremental distinct counting ( #5579 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* more tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update with more test and logs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl merge fn
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename function names
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-24 19:07:37 +00:00
Weny Xu
286f225e50
fix: correct inverted_indexed_column_ids behavior ( #5586 )
...
* fix: correct `inverted_indexed_column_ids`
* fix: fix unit tests
v0.12.0-nightly-20250224
2025-02-23 07:17:38 +00:00
Ruihang Xia
4f988b5ba9
feat: remove default inverted index for physical table ( #5583 )
...
* feat: remove default inverted index for physical table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-22 06:48:05 +00:00
Ruihang Xia
500d0852eb
fix: avoid run labeler job concurrently ( #5584 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-22 05:18:26 +00:00
Zhenchi
8d05fb3503
feat: unify puffin name passed to stager ( #5564 )
...
* feat: purge a given puffin file in staging area
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* polish log
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* ttl set to 2d
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: expose staging_ttl to index config
* feat: unify puffin name passed to stager
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fallback to remote index
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: evenyag <realevenyag@gmail.com >
2025-02-21 09:27:03 +00:00
Ruihang Xia
d7b6718be0
feat: run sqlness in parallel ( #5499 )
...
* define server mode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* bump sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* all good
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor: Move config generation logic from Env to ServerMode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* finalize
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change license header
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename variables
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* override parallelism
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename more variables
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-21 07:05:19 +00:00
Ruihang Xia
6f0783e17e
fix: broken link in AUTHOR.md ( #5581 )
2025-02-21 07:01:41 +00:00
Ruihang Xia
d69e93b91a
feat: support to generate json output for explain analyze in http api ( #5567 )
...
* impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* integration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/servers/src/http/hints.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* refactor: with FORMAT option for explain format
* lift some well-known metrics
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Ning Sun <sunning@greptime.com >
2025-02-21 05:13:09 +00:00
Ruihang Xia
76083892cd
feat: support UNNEST ( #5580 )
...
* feat: support UNNEST
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy and sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-21 04:53:56 +00:00
Ruihang Xia
7981c06989
feat: implement uddsketch function to calculate percentile ( #5574 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* more tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update with more test and logs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-20 18:59:20 +00:00
beryl678
97bb1519f8
docs: revise the author list ( #5575 )
2025-02-20 18:04:23 +00:00
Weny Xu
1d8c9c1843
feat: enable gzip for prometheus query handlers and ignore NaN values in prometheus response ( #5576 )
...
* feat: enable gzip for prometheus query handlers and ignore nan values in prometheus response
* Apply suggestions from code review
Co-authored-by: shuiyisong <113876041+shuiyisong@users.noreply.github.com >
---------
Co-authored-by: shuiyisong <113876041+shuiyisong@users.noreply.github.com >
2025-02-20 11:34:32 +00:00
jeremyhi
71007e200c
feat: remap flow route address ( #5565 )
...
* feat: remap fow peers
* refactor: not stream
* feat: remap flownode addr on FlowRoute and TableFlow
* fix: unit test
* Update src/meta-srv/src/handler/remap_flow_peer_handler.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* chore: by comment
* Update src/meta-srv/src/handler/remap_flow_peer_handler.rs
* Update src/common/meta/src/key/flow/table_flow.rs
* Update src/common/meta/src/key/flow/flow_route.rs
* chore: remove duplicate field
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2025-02-20 08:21:32 +00:00
jeremyhi
a0ff9e751e
feat: flow type on creating procedure ( #5572 )
...
feat: flow type on creating
2025-02-20 08:12:02 +00:00
LFC
f6f617d667
feat: submit node's cpu cores number to metasrv in heartbeat ( #5571 )
...
* feat: submit node's cpu cores number to metasrv in heartbeat
* update greptime-proto dep
2025-02-20 03:55:18 +00:00
Ruihang Xia
e8788088a8
feat(log-query): implement the first part of log query expr ( #5548 )
...
* feat(log-query): implement the first part of log query expr
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-19 18:25:41 +00:00
shuiyisong
53b25c04a2
chore: support Loki's structured metadata for ingestion ( #5541 )
...
* chore: support loki's structured metadata
* test: update test
* chore: revert some code change
* chore: address CR comment
2025-02-19 16:44:26 +00:00
dennis zhuang
62a8b8b9dc
feat(promql): supports sort, sort_desc etc. functions ( #5542 )
...
* feat(promql): supports sort, sort_desc etc. functions
* chore: fix toml format and tests
* chore: update deps
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* chore: remove fixme
* fix: cargo lock
* chore: style
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2025-02-19 13:13:49 +00:00
Weny Xu
c8bdeaaa6a
fix(promql-planner): update ctx field columns of OR operator ( #5556 )
...
* fix(promql-planner): update ctx field columns of OR operator
* test: add sqlness test
2025-02-19 11:18:58 +00:00
Ning Sun
81da18e5df
refactor: use global type alias for pipeline input ( #5568 )
...
* refactor: use global type alias for pipeline input
* fmt: reformat
2025-02-19 10:41:33 +00:00
Weny Xu
7c65fddb30
fix(promql-planner): correct AND/UNLESS operator behavior ( #5557 )
...
* fix(promql-planner): keep field column in left input for AND operator
* test: add sqlness test
* fix: fix unless operator
2025-02-19 09:07:39 +00:00
Zhenchi
421e38c481
feat: allow purging a given puffin file in staging area ( #5558 )
...
* feat: purge a given puffin file in staging area
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* polish log
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* ttl set to 2d
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: expose staging_ttl to index config
* fix test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* use `invalidate_entries_if` instead of maintaining map
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* run_pending_tasks after purging
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: evenyag <realevenyag@gmail.com >
2025-02-19 08:58:30 +00:00
Weny Xu
aada5c1706
fix(promql-planner): remove le tag in ctx ( #5560 )
...
* fix(promql-planner): remove le tag in ctx
* test: add sqlness test
* chore: apply suggestions from CR
2025-02-19 03:51:27 +00:00
yihong
aa8f119bbb
chore: format all toml files ( #5529 )
...
fix: format some cargo files
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
2025-02-18 12:09:01 +00:00
ZonaHe
19a6d15849
feat: update dashboard to v0.7.10 ( #5562 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2025-02-18 12:06:22 +00:00
liyang
073aaefe65
chore: improve grafana dashboard ( #5559 )
2025-02-18 11:36:27 +00:00
Yingwen
77223a0f3e
fix: window sort support alias time index ( #5543 )
...
* fix: use alias expr to check commutativity
* chore: debug sort
* feat: consider alias in window sort optimizer
* test: sqlness test
* test: update sqlness result
2025-02-18 10:35:43 +00:00
Ruihang Xia
4ef038d098
fix: correct promql behavior on nonexistent columns ( #5547 )
...
* Revert "fix(promql): ignore filters for non-existent labels (#5519 )"
This reverts commit 33a2485f54 .
* reimplement
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* state safety
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-17 18:43:50 +00:00
jeremyhi
deb9520970
fix: information_schema.cluster_info be covered by the same id ( #5555 )
...
* fix: information_schema.cluster_info be coverd by the same id
* chore: by comment
2025-02-17 11:51:02 +00:00
Yingwen
6bba5e0afa
feat: collect stager metrics ( #5553 )
...
* feat: collect stager metrics
* Apply suggestions from code review
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
* Update src/mito2/src/metrics.rs
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
2025-02-17 07:09:15 +00:00
Ruihang Xia
f359eeb667
feat(log-query): support specifying exclusive/inclusive for between filter ( #5546 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-17 04:40:47 +00:00
liyang
009dbad581
ci: don't push nightly latest image ( #5551 )
...
* ci: don't push nightly latest image
* add push release latest image
2025-02-17 04:34:49 +00:00
liyang
a2047b096c
ci: use s5cmd upload artifacts ( #5550 )
2025-02-17 02:57:13 +00:00
Ruihang Xia
6e8b1ba004
feat: drop noneffective regex filter ( #5544 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
v0.12.0-nightly-20250217
2025-02-15 04:20:26 +00:00
Ruihang Xia
7fc935c61c
feat!: support alter skipping index ( #5538 )
...
* feat: support alter skipping index
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update test results
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* cargo fmt
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* finalize
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-14 18:43:21 +00:00