LFC
0f55afd167
refactor: optimize out partition split insert requests ( #5298 )
...
* test: optimize out partition split insert requests if there is only one region
* Now that the optimization for single region insert has been lifted up, the original "fast path" can be obsoleted.
* resolve PR comments
2025-01-23 19:23:06 +08:00
Yiran
ea02ddcde1
ci: automatically bump doc version when release GreptimeDB ( #5343 )
...
* ci: automatically bump doc version when release GreptimeDB
* add license header
2025-01-23 15:15:52 +08:00
evenyag
0404e2a132
ci: disable pg kvbackend sqlness test
2025-01-23 15:15:52 +08:00
Ning Sun
7deb559a81
ci: revert coverage runner ( #5403 )
2025-01-23 15:15:52 +08:00
Ning Sun
c470c6a172
ci: use arm builders for tests ( #5395 )
2025-01-23 15:15:52 +08:00
Ning Sun
efee2480d2
ci: do not collect coverage from pull request any more ( #5364 )
...
* ci: do not collect coverage from pull request any more
* fix: disable toolchain cache
ci: update develop ci
update ci to the version in 121ec7936f on
main branch
2025-01-23 15:15:52 +08:00
Ning Sun
42aaf86c26
ci: disable cache for some tasks, create cache in nightly build ( #5324 )
...
* ci: disable cache for some tasks
* ci: add a nightly test to create rust cache on main
2025-01-23 15:15:52 +08:00
Ning Sun
a952ebb2ff
ci: use mold for tests ( #5319 )
...
* ci: use mold for tests
* ci: enable rust cache saving for merge group
2025-01-23 15:15:52 +08:00
Ning Sun
9a5b904db3
ci: do not trigger tests when there is a merge conflict ( #5318 )
...
* ci: do not trigger tests when there is a merge conflict
* Update .github/workflows/develop.yml
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* ci: disable cache from rust toolchain action
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2025-01-23 15:15:52 +08:00
Ning Sun
2e1a5d811a
ci: disable docker/rust cache temporarily and merge docker compose files ( #5293 )
...
* ci: disable docker cache temporarily and merge docker compose files
* ci: fix compose file name and options
* ci: try to disable rust cache
2025-01-23 15:15:52 +08:00
evenyag
2d5824b3a5
chore: bump version to v0.11.3
2025-01-23 15:15:52 +08:00
Zhenchi
5f67f2b58e
fix: matches incorrectly uses byte len as char len ( #5411 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2025-01-23 15:15:52 +08:00
Ruihang Xia
c12fbcda9f
fix: panic when received invalid query string ( #5366 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-01-23 15:15:52 +08:00
evenyag
7fe735009c
chore: bump version to 0.11.2
v0.11.2
2025-01-04 02:12:27 +08:00
chenmortal
f0298afaf0
fix: import tokio-metrics and tokio-metrics-collector ( #5264 )
2025-01-04 02:12:27 +08:00
Yingwen
5175dea6b3
chore: update greptime-proto to include add_if_not_exists ( #5289 )
2025-01-04 02:12:27 +08:00
discord9
7caa88abc7
refactor: flow replace check&better error msg ( #5277 )
...
* chore: better error msg
* chore eof newline
* refactor: move replace check to flow worker
* chore: add ctx to insert flow failure
* chore: Update src/flow/src/adapter/flownode_impl.rs
* test: add order by for deterministic
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2025-01-04 02:12:27 +08:00
Lei, HUANG
eafb01dfff
chore: suppress list warning ( #5280 )
...
chore/suppress-list-warning:
### Update logging level in `intermediate.rs`
- Changed logging level from `warn` to `debug` for unexpected directory entries in index creation.
- Added `debug` to the `common_telemetry` import to support the logging level change.
2025-01-04 02:12:27 +08:00
yihong
b0de816d3d
fix: better fmt check from 40s to 4s ( #5279 )
...
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
2025-01-04 02:12:27 +08:00
Yingwen
5c6161a95e
feat: support add if not exists in the gRPC alter kind ( #5273 )
...
* test: test adding existing columns
* chore: add more checks to AlterKind
* chore: update logs
* fix: check and build table info first
* feat: Add add_if_not_exists flag to alter expr
* feat: skip existing columns when building alter kind
* checks in make_region_alter_kind()
* reuse the alter kind
* test: fix tests in common-meta
* chore: fix typos
* chore: update comments
2025-01-04 02:12:27 +08:00
discord9
5e3c5945c4
fix: flow handle reordered inserts ( #5275 )
...
* fix: reorder correct schema
* tests: reorder insert handled correctly
* chore: rm unused
* refactor: per review
* chore: more comment
* chore: per review
2025-01-04 02:12:27 +08:00
Yohan Wal
f6feac26f5
refactor: adjust index cache page size ( #5267 )
...
* refactor: adjust index cache page size
* fix: wrong docs
* Update config/datanode.example.toml
* Update config/config.md
* Update config/config.md
* chore: adjust to 64KiB
* Apply suggestions from code review
2025-01-04 02:12:27 +08:00
Ning Sun
4b2c59e626
ci: update nix setup ( #5272 )
2025-01-04 02:12:27 +08:00
discord9
cf605ecccc
fix(flow): flow's table schema cache ( #5251 )
...
* fix: flow schema cache
* refactor: location for `to_meta_err`
* chore: endfile emptyline
* chore: review(partially)
* chore: per review
* refactor: per review
* refactor: per review
2025-01-04 02:12:27 +08:00
Ning Sun
ab3f9c42f1
fix: correct invalid testing feature gate usage ( #5258 )
...
* fix: correct invalid testing feature gate usage
* test: refactor tests to avoid test code leak
* fix: sync main
2025-01-04 02:12:27 +08:00
discord9
258fc6f31b
chore: typo ( #5265 )
...
* fix: a typo
* chore: even more typos
2025-01-04 02:12:27 +08:00
jeremyhi
e2dccc1d1a
feat: hints all in one ( #5194 )
...
* feat: hints all in one
* chore: If hints are provided in the x-greptime-hints header, ignore the rest of the headers
2025-01-04 02:12:27 +08:00
Ruihang Xia
78c5707642
feat(log-query): implement pagination with limit and offset parameters ( #5241 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-01-04 02:12:27 +08:00
Ning Sun
204b5e474f
ci: disable pyo3 build tasks ( #5256 )
...
* ci: disable pyo3 build tasks
* ci: skip installing python for windows
* ci: also removed python dependencies from docker base image
2025-01-04 02:12:27 +08:00
Ruihang Xia
e9f1fa0b7d
feat: override __sequence on creating SST to save space and CPU ( #5252 )
...
* override memtable sequence
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* override sst sequence
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore changes per to CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use correct sequence number
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* wrap a method to get max sequence
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-01-04 02:12:27 +08:00
Yingwen
a988ff5acf
feat: update partition duration of memtable using compaction window ( #5197 )
...
* feat: update partition duration of memtable using compaction window
* chore: only use provided duration if it is not None
* test: more tests
* test: test compaction apply window
* style: fix clippy
2025-01-04 02:12:27 +08:00
zyy17
ef0fca9388
refactor: support to convert time string to timestamp in convert_value() ( #5242 )
...
refactor: support to covert time string to timestamp in convert_value()
2025-01-04 02:12:27 +08:00
Lin Yihai
b704e7f703
feat: add vec_div function ( #5245 )
2025-01-04 02:12:27 +08:00
Ning Sun
3a4c636e29
ci: make sure clippy passes before running tests ( #5253 )
...
* ci: make sure clippy passes before running tests
* ci: do not run ci on main branch
2025-01-04 02:12:27 +08:00
Zhenchi
a22e8b421c
fix(bloom-filter): skip applying for non-indexed columns ( #5246 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2025-01-04 02:12:27 +08:00
Yingwen
5b42546204
fix: implement a CacheStrategy to ensure compaction use cache correctly ( #5254 )
...
* feat: impl CacheStrategy
* refactor: replace Option<CacheManagerRef> with CacheStrategy
* feat: add disabled strategy
* ci: force update taplo
* refactor: rename CacheStrategy::Normal to CacheStrategy::EnableAll
* ci: force install cargo-gc-bin
* ci: force install
* chore: use CacheStrategy::Disabled as ScanInput default
* chore: fix compiler errors
2025-01-04 02:12:27 +08:00
Ruihang Xia
0678a31ab1
feat: add sqlness test for bloom filter index ( #5240 )
...
* feat: add sqlness test for bloom filter index
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* drop table after finished
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* redact more variables
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-01-04 02:12:27 +08:00
shuiyisong
589cc84048
fix: disable path label in opendal for now ( #5247 )
...
* fix: remove path label in opendal for now
* fix: typo
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2025-01-04 02:12:27 +08:00
Kould
ed8c072a5e
feat(vector): add vector functions vec_sub & vec_sum & vec_elem_sum ( #5230 )
...
* feat(vector): add sub function
* chore: added check for vector length misalignment
* feat(vector): add `vec_sum` & `vec_elem_sum`
* chore: codefmt
* update lock file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2025-01-04 02:12:27 +08:00
Yohan Wal
9d172f1cae
feat: init PgElection with candidate registration ( #5209 )
...
* feat: init PgElection
fix: release advisory lock
fix: handle duplicate keys
chore: update comments
fix: unlock if acquired the lock
chore: add TODO and avoid unwrap
refactor: check both lock and expire time, add more comments
chore: fmt
fix: deal with multiple edge cases
feat: init PgElection with candidate registration
chore: fmt
chore: remove
* test: add unit test for pg candidate registration
* test: add unit test for pg candidate registration
* chore: update pg env
* chore: make ci happy
* fix: spawn a background connection thread
* chore: typo
* fix: shadow the election client for now
* fix: fix ci
* chore: readability
* chore: follow review comments
* refactor: use kvbackend for pg election
* chore: rename
* chore: make clippy happy
* refactor: use pg server time instead of local ones
* chore: typo
* chore: rename infancy to leader_infancy for clarification
* chore: clean up
* chore: follow review comments
* chore: follow review comments
* ci: unit test should test all features
* ci: fix
* ci: just test pg
2025-01-04 02:12:27 +08:00
Zhenchi
236888313d
feat(mito): add bloom filter read metrics ( #5239 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2025-01-04 02:12:27 +08:00
Zhenchi
0b97ef0e4f
feat(config): add bloom filter config ( #5237 )
...
* feat(bloom-filter): integrate indexer with mito2
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(config) add bloom filter config
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix docs
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix docs
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* merge
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* remove cache config
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2025-01-04 02:12:27 +08:00
localhost
316e6a83eb
chore: add more info for pipeline dryrun API ( #5232 )
2025-01-04 02:12:27 +08:00
Ruihang Xia
6dc57b7a6c
feat(bloom-filter): bloom filter applier ( #5220 )
...
* wip
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* draft search logic
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use defined BloomFilterReader
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* round the range end
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* finish index applier
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* integrate applier into mito2 with cache layer
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix cache key and add unit test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* provide bloom filter index size hint
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* revert BloomFilterReaderImpl::read_vec
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove dead code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* ignore null on eq
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more tests and fix bloom filter logic
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-01-04 02:12:27 +08:00
discord9
1f5c2b32e5
fix: flow compare null values ( #5234 )
...
* fix: flow compare null values
* fix: fix again ck ty before cmp
* chore: rm comment
* fix: handle null
* chore: typo
* docs: update comment
* refactor: per review
* tests: more sqlness
* tests: sqlness not show create table
2025-01-04 02:12:27 +08:00
Zhenchi
01e907be40
feat(bloom-filter): integrate indexer with mito2 ( #5236 )
...
* feat(bloom-filter): integrate indexer with mito2
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* rename skippingindextype
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2025-01-04 02:12:27 +08:00
Lin Yihai
e4dc5ea243
feat: Add vec_mul function. ( #5205 )
2025-01-04 02:12:27 +08:00
discord9
3ff5754b5a
feat(flow): check sink table mismatch on flow creation ( #5112 )
...
* tests: more mismatch errors
* feat: check sink table schema if exists&prompt nice err msg
* chore: rm unused variant
* chore: fmt
* chore: cargo clippy
* feat: check schema on create
* feat: better err msg when mismatch
* tests: fix a schema mismatch
* todo: create sink table
* feat: create sink table
* fix: find time index
* tests: auto created sink table
* fix: remove empty keys
* refactor: per review
* chore: fmt
* test: sqlness
* chore: after rebase
2025-01-04 02:12:27 +08:00
Ruihang Xia
c22ca3ebd5
feat: add some critical metrics to flownode ( #5235 )
...
* feat: add some critical metrics to flownode
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-01-04 02:12:27 +08:00
zyy17
327d165ad9
feat: introduce the Limiter in frontend to limit the requests by in-flight write bytes size. ( #5231 )
...
feat: introduct Limiter to limit in-flight write bytes size in frontend
2025-01-04 02:12:27 +08:00