Ruihang Xia
c16bae32c4
perf: evolve promql execution engine ( #5691 )
...
* use the same sort option across every prom plan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tweak plans
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* wip
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix merge compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Revert "wip"
This reverts commit db58884236 .
* tweak merge scan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* pass distribution rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* reverse sort order
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refine plans
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* more optimizations for plans
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* check logical table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* wierd tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add test for series_divide
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix scalar calculation
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: workaround join partition
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update proto
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-04-08 08:12:15 +00:00
zyy17
ee4fe9d273
refactor: improve performance for Jaeger APIs ( #5838 )
...
* refactor: improve jaeger '/api/services' performance by adding the trace services table
* chore: refine some logic
* chore: compatible v0
* test: add integration test
* chore: expand default limit from 100 to 2000
* test: fix integration test
* refactor: make trace service table configurable
* refactor: use a timestamp(2100-01-01 00:00:00) as large as possible
* refactor: use '<trace_table>_services' as trace services table name
2025-04-08 02:28:06 +00:00
Yuhan Wang
6e6e335a81
feat(remote-wal): send flush request when pruning remote wal ( #5825 )
...
* feat: update minimum entry id in kvbackend
* fix: persist before delete
* chore: apply comments
* feat: add flush region in wal prune procedure
* fix: cherry-pick error
* chore: fmt
* chore: drop rx to avoid block by response
* chore: update comments
* chore: apply review comments
* test: fix unit test
* feat: add option not to flush region during wal prune
* test: fix unit test
* fix: delete at minimum replay entry id + 1
* fix: cas
* chore: add comments
* chore: apply review comments
* chore: apply review comments
* chore: fix error msg
* chore: apply review comments
* fix: idempotent cas
* refactor: use a one-way sender
* chore: better err msg
* chore: fix unit test
* chore: apply review comments
* chore: apply review comments
* chore: replace send oneway
2025-04-07 14:05:18 +00:00
Weny Xu
981d51785b
fix: throw errors instead of ignoring ( #5792 )
...
* fix: throw errors instead of ignoring
* fix: fix unit tests
* refactor: remove schema version check
* fix: fix clippy
* chore: remove unused error
* refactor: remove schema version check
* feat: handle mutliple results
* feat: introduce consistency guard
* fix: release consistency guard on datanode operation completion
* test: add tests
* chore: remove schema version
* refactor: rename
* test: add more tests
* chore: print all error
* tests: query table after alteration
* log ignored request
* refine fuzz test
* chore: fix clippy and log mailbox message
* chore: close prepared statement after execution
* chore: add comment
* chore: remove log
* chore: rename to `ConsistencyPoison`
* chore: remove unused error
* fix: fix unit tests
* chore: apply suggestions from CR
2025-04-07 13:51:00 +00:00
Weny Xu
cf1eda28aa
feat: add region_id to CountdownTaskHandlerExt ( #5834 )
2025-04-07 09:25:59 +00:00
zyy17
cf1440fc32
refactor: add time range for jager get operations API ( #5791 )
...
* refactor: add default time range for jager get operations API
* refactor: use desc order for timestamp colomn
* chore: modify http header name
2025-04-07 09:07:31 +00:00
Yingwen
21a209f7ba
fix: skip replacing exprs of the DistinctOn node ( #5823 )
...
* fix: handle distinct on specially
* chore: update comment
2025-04-07 08:59:40 +00:00
Weny Xu
917510ffd0
feat: introduce poison mechanism for procedure ( #5822 )
...
* feat: introduce poison for procedure
* tests: add unit tests
* refactor: minor refactor
* fix: unit tests
* chore: fix unit tests
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: update comments
* chore: introduce `ProcedureStatus::Poisoned`
* chore: upgrade greptime-proto to `2be0f`
* chore: apply suggestions from CR
2025-04-07 08:25:13 +00:00
fys
7b48ef1e97
chore: remove patch.crates-io for rustls ( #5832 )
...
* chore: remove patch.crates-io for rustls
* enable default-rustls-ring feature for mysql_sync
* fix: build error
* add comment
* update comment
2025-04-07 07:51:50 +00:00
Weny Xu
ac0f9ab575
refactor: remove backoff config ( #5808 )
...
* refactor: remove backoff config
* chore: update config.md
* fix: correct backoff config
* chore: change deadline to 120s
2025-04-07 07:22:22 +00:00
Ning Sun
f2907bb009
refactor!: make pipeline a required parameter when ingesting trace ( #5828 )
...
* feat: make pipeline a required header for trace
* test: add test case without pipeline
2025-04-07 06:18:17 +00:00
Ryan Despain
1695919ee7
clear message for an awesome achievement ( #5829 )
...
Initially there was what I think was a typo. `s/archive/achieve` but then I thought some clarification might be nice on this great achievement.
2025-04-07 02:37:19 +00:00
Weny Xu
eab702cc02
feat: implement sync_region for metric engine ( #5826 )
...
* feat: implement `sync_region` for metric engine
* chore: apply suggestions from CR
* chore: upgrade proto
v0.14.0-nightly-20250407
2025-04-03 12:46:20 +00:00
Zhenchi
dd63068df6
feat: add matches_term function ( #5817 )
...
* feat: add `matches_term` function
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* merge & fix
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix & skip char after boundary mismatch
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2025-04-03 09:09:41 +00:00
Yuhan Wang
f73b61e767
feat(remote-wal): add remote wal prune procedure ( #5714 )
...
* feat: add remote wal prune procedure
* feat: add retry logic and remove rollback
* chore: simplify the logic
* fix: remove REMOTE_WAL_LOCK
* fix: use in-memory kv
* perf: O(n) judgement
* chore: add single write lock
* test: add unit test
* chore: remove unused function
* chore: update comments
* chore: apply comments
* chore: apply comments
2025-04-03 08:11:51 +00:00
Yingwen
2acecd3620
feat: support REPLACE INTO statement ( #5820 )
...
* feat: support replace into
* feat: support replace into
2025-04-03 03:22:43 +00:00
Zhenchi
f797de3497
feat: add backend field to fulltext options ( #5806 )
...
* feat: add backend field to fulltext options
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* update proto
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix option conv
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix display
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2025-04-02 09:15:54 +00:00
dennis zhuang
d53afa849d
fix: interval cast expression can't work in range query, #5805 ( #5813 )
...
* fix: interval cast expression can't work in range query, #5805
* fix: nested cast
* test: make vector test stable
2025-04-02 08:46:17 +00:00
discord9
3aebfc1716
test: looser condition ( #5816 )
2025-04-02 07:38:05 +00:00
Weny Xu
dbb79c9671
feat: introduce CollectLeaderRegionHandler ( #5811 )
...
* feat: introduce `CollectLeaderRegionHandler`
* feat: add to default handler group
* fix: correct unit test
* chore: rename
2025-04-02 04:47:00 +00:00
shuiyisong
054056fcbb
refactor: remove prom store write dispatch ( #5812 )
...
* refactor: remove prom store remote write dispatch pattern
* chore: ref XIX-22
2025-04-02 04:35:28 +00:00
Zhenchi
aa486db8b7
refactor: allow bloom filter search to apply and conjunction ( #5770 )
...
* refactor: change bloom filter search from any to all match
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* place back in list
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* nit
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2025-04-01 12:50:34 +00:00
Weny Xu
4ef9afd8d8
feat: introduce read preference ( #5783 )
...
* feat: introduce read preference
* feat: introduce `RegionQueryHandlerFactory`
* feat: extract ReadPreference from http header
* test: add more tests
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2025-04-01 09:17:01 +00:00
shuiyisong
f9221e9e66
perf: introduce simd_json for parsing ndjson ( #5794 )
...
* perf: introduce simd_json for parsing ndjson
* fix: some tests
* fix: some tests
* fix: es test case
* chore: use `as_bytes_mut()`
* chore: remove unnecessary `to_string`
* chore: add safety comment
2025-04-01 08:17:26 +00:00
Weny Xu
6c26fe9c80
fix: correct error status code ( #5802 )
2025-04-01 07:34:16 +00:00
fys
33c9fb737c
refactor: remove mode option in configuration files ( #5809 )
...
* refactor: remove mode option in configuration files
* chore: remove mode in configuration file
* remvoe mode field in FlownodeOptions
* add comment for test
* update config.md
* remove mode field in standalone options
* fix: ci
2025-04-01 07:14:10 +00:00
Weny Xu
68ce796771
chore: expose modules ( #5810 )
2025-04-01 05:33:20 +00:00
Weny Xu
d701c18150
feat: introduce CustomizedRegionLeaseRenewer ( #5762 )
...
* feat: add manifest_version to `GrantedRegion`
* chore: upgrade proto
* chore: apply review suggestions
* chore: apply suggestions from CR
* feat: introduce `CustomizedRegionLeaseRenewerRef`
* chore: upgrade to `103948`
2025-03-31 13:25:05 +00:00
Weny Xu
d3a60d8821
feat: add limit for the number of running procedures ( #5793 )
...
* refactor: remove unused `messages`
* feat: introduce running procedure num limit
* feat: update config
* chore: apply suggestions from CR
* feat: impl `status_code` for `log-store` crate
2025-03-31 06:14:21 +00:00
discord9
5d688c6565
feat(flow): time window expr ( #5785 )
...
* feat: time window expr
* chore: comments
* refactor: per review
* chore: partially per review
* chore: per review
* chore: per review use query engine's session
2025-03-31 04:46:37 +00:00
Weny Xu
41aee1f1b7
feat: implement sync_region for mito engine ( #5765 )
...
* chore: upgrade proto to `2d52b`
* feat: add `SyncRegion` to `WorkerRequest`
* feat: impl `sync_region` for `Engine` trait
* test: add tests
* chore: fmt code
* chore: upgrade proto
* chore: unify `RegionLeaderState` and `RegionFollowerState`
* chore: check immutable memtable
* chore: fix clippy
* chore: apply suggestions from CR
2025-03-31 03:53:47 +00:00
yihong
c5b55fd8cf
fix: close issue #3902 since upstream fixed ( #5801 )
...
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
v0.14.0-nightly-20250331
2025-03-30 12:34:52 +00:00
Ruihang Xia
8051dbbc31
fix: typo variadic ( #5800 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-03-29 07:09:36 +00:00
Ruihang Xia
2d3192984d
refactor: remove deprecated find_unique method ( #5790 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-03-28 19:32:11 +00:00
shuiyisong
bef45ed0e8
feat(pipeline): support table name suffix templating in pipeline ( #5775 )
...
* chore: add table name template in pipeline yaml
* chore: implement apply function and add simple test
* chore: add comment and integration test
* chore: minor update
* fix: typos
* chore: change to table suffix
* chore: update comment and test
* chore: change name to table_suffix
2025-03-28 18:12:46 +00:00
LFC
a9e990768d
refactor: skip re-taking arrays in memtable if possible ( #5779 )
...
experiment: skip sorting and re-taking arrays if possible when scanning memtable
2025-03-28 09:58:55 +00:00
Weny Xu
7e1ba49d3d
refactor: remove useless region follower legacy code ( #5795 )
2025-03-28 08:10:30 +00:00
Yingwen
737558ef53
fix: support __name__ matcher in label values ( #5773 )
2025-03-28 02:18:59 +00:00
Yingwen
dbc25dd8da
feat: expose scanner metrics to df execution metrics ( #5699 )
...
* feat: add metrics list to scanner
* chore: add report metrics method
* feat: use df metrics in PartitionMetrics
* feat: pass execution metrics to scan partition
* refactor: remove PartitionMetricsList
* feat: better debug format for ScanMetricsSet
* feat: do not expose all metrics to execution metrics by default
* refactor: use struct destruction
* feat: add metrics list to scanner
* chore: Add custom Debug for ScanMetricsSet and partition metrics display
* test: update sqlness result
2025-03-27 23:40:39 +00:00
Ruihang Xia
76a58a07e1
feat: simple implementation of DictionaryVector ( #5758 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl vector op
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* unit tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unwraps
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: enhance DictionaryVector operations and deprecate find_unique method
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: remove find_unique test
* chore: remove unused import
* fix test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2025-03-27 23:19:10 +00:00
Weny Xu
c2ba7fb16c
refactor: remove useless region follower legacy code ( #5787 )
...
chore: remove region follower procedure
2025-03-27 11:50:29 +00:00
Lei, HUANG
09ef24fd75
refactor: remove useless partition legacy code ( #5786 )
...
* refactor: remove useless partition legacy code
* also remove error variants
* fix imports
2025-03-27 11:08:25 +00:00
Weny Xu
9b7b012620
feat: impl show region ( #5782 )
...
* fix: fix region follower procedure
* feat: add table related info to region peers table and follower regions
* feat: impl show region
* chore: apply suggestions from CR
2025-03-27 10:41:44 +00:00
fys
898e0bd828
chore: expose some methods ( #5784 )
2025-03-27 09:00:51 +00:00
shuiyisong
2b4ed43692
chore: accept table options in auto create table from hints ( #5776 )
...
chore: accept table options in auto create table from hint
2025-03-27 08:17:27 +00:00
Weny Xu
8f2ae4e136
feat: add AddRegionFollower and RemoveRegionFollower admin fn ( #5780 )
2025-03-27 06:30:50 +00:00
Weny Xu
0cd219a5d2
refactor: move list_flow_stats to ClusterInfo trait. ( #5774 )
...
refactor: minor refactor
2025-03-27 04:20:12 +00:00
fys
2b2ea5bf72
chore: upgrade some dependencies ( #5777 )
...
* chore: upgrade some dependencies
* chore: upgrade some dependencies
* fix: cr
* fix: ci
* fix: test
* fix: cargo fmt
2025-03-27 02:48:44 +00:00
discord9
e107bd5529
feat(flow): utils function for recording rule ( #5768 )
...
* chore: utils for rr
* chore: one more test
* chore: more test case
* test: even more tests
* chore: per review
* tests: add more&update testcase
* chore: update comment
2025-03-26 08:55:35 +00:00
Weny Xu
a31f0e255b
feat: introduce RegionFollowerClient trait ( #5771 )
...
* chore: expose AskLeader
* feat: introduce `RegionFollowerClient` trait
* feat: build meta client with region follower client
2025-03-26 08:05:15 +00:00