Ning Sun
53d006292d
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-02 03:22:54 +00:00
discord9
d18c8b5e16
chore: typo ( #5265 )
...
* fix: a typo
* chore: even more typos
2025-01-02 03:17:53 +00:00
jeremyhi
e0949c4a11
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-02 02:56:33 +00:00
Ruihang Xia
5cf931c417
feat(log-query): implement pagination with limit and offset parameters ( #5241 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-31 06:42:46 +00:00
Ning Sun
cc5b1d42b0
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
2024-12-31 04:53:41 +00:00
Ruihang Xia
55b7656956
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 >
2024-12-31 03:28:02 +00:00
Yingwen
75e4f307c9
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
2024-12-30 13:06:25 +00:00
Yohan Wal
89f2e15ffb
feat: add election logic for PgElection ( #5249 )
...
* 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
* test: add unit test for pg election
* chore: fmt
* chore: typo
* fix: add feature gate
* chore: visibility
* chore: follow review comments
2024-12-30 09:45:04 +00:00
zyy17
13ed10556a
refactor: support to convert time string to timestamp in convert_value() ( #5242 )
...
refactor: support to covert time string to timestamp in convert_value()
2024-12-30 08:36:08 +00:00
Lin Yihai
d1108ab581
feat: add vec_div function ( #5245 )
2024-12-30 07:08:26 +00:00
Ning Sun
1287d4cb9f
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
2024-12-30 07:01:15 +00:00
Zhenchi
109fe04d17
fix(bloom-filter): skip applying for non-indexed columns ( #5246 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-12-30 06:56:58 +00:00
Yingwen
f1eb76f489
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
2024-12-30 06:24:53 +00:00
Ruihang Xia
11bab0c47c
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 >
v0.12.0-nightly-20241230
2024-12-27 06:40:18 +00:00
shuiyisong
588f6755f0
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 >
2024-12-27 04:34:19 +00:00
Kould
dad8ac6f71
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 >
2024-12-26 15:07:13 +00:00
Yohan Wal
ef13c52814
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
2024-12-26 12:39:32 +00:00
Zhenchi
7471f55c2e
feat(mito): add bloom filter read metrics ( #5239 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-12-26 04:44:03 +00:00
Zhenchi
f4b2d393be
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 >
2024-12-26 04:38:45 +00:00
localhost
0cf44e1e47
chore: add more info for pipeline dryrun API ( #5232 )
2024-12-26 03:06:25 +00:00
Ruihang Xia
00ad27dd2e
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 >
2024-12-26 02:51:18 +00:00
discord9
5ba8bd09fb
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
2024-12-25 15:31:27 +00:00
Zhenchi
a9f21915ef
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 >
2024-12-25 14:30:07 +00:00
Lin Yihai
039989f77b
feat: Add vec_mul function. ( #5205 )
2024-12-25 14:17:22 +00:00
discord9
abf34b845c
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
2024-12-25 13:42:37 +00:00
Ruihang Xia
4051be4214
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 >
2024-12-25 10:57:21 +00:00
zyy17
5e88c80394
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
2024-12-25 09:11:30 +00:00
discord9
6a46f391cc
ci: upload .pdb files too for better windows debug ( #5224 )
...
ci: upload .pdb files too
2024-12-25 08:10:57 +00:00
Zhenchi
c96903e60c
feat(bloom-filter): impl batch push to creator ( #5225 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-12-25 07:53:53 +00:00
Ruihang Xia
a23f269bb1
fix: correct write cache's metric labels ( #5227 )
...
* refactor: remove unused field in WriteCache
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor: unify read and write cache path
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update config and fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unnecessary methods and adapt test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change the default path
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove remote-home
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-25 07:26:21 +00:00
Weny Xu
f33b378e45
chore: add log for converting region to follower ( #5222 )
...
* chore: add log for converting region to follower
* chore: apply suggestions from CR
2024-12-25 02:38:47 +00:00
zyy17
267941bbb5
ci: support to pack multiple files in upload-artifacts action ( #5228 )
2024-12-25 02:37:32 +00:00
Lei, HUANG
074846bbc2
feat(mito): parquet memtable reader ( #4967 )
...
* wip: row group reader base
* wip: memtable row group reader
* Refactor MemtableRowGroupReader to streamline data fetching
- Added early return when fetch_ranges is empty to optimize performance.
- Replaced inline chunk data assignment with a call to `assign_dense_chunk` for cleaner code.
* wip: row group reader
* wip: reuse RowGroupReader
* wip: bulk part reader
* Enhance BulkPart Iteration with Filtering
- Introduced `RangeBase` to `BulkIterContext` for improved filter handling.
- Implemented filter application in `BulkPartIter` to prune batches based on predicates.
- Updated `SimpleFilterContext::new_opt` to be public for broader access.
* chore: add prune test
* fix: clippy
* fix: introduce prune reader for memtable and add more prune test
* Enhance BulkPart read method to return Option<BoxedBatchIterator>
- Modified `BulkPart::read` to return `Option<BoxedBatchIterator>` to handle cases where no row groups are selected.
- Added logic to return `None` when all row groups are filtered out.
- Updated tests to handle the new return type and added a test case to verify behavior when no row groups match the pr
* refactor/separate-paraquet-reader: Add helper function to parse parquet metadata and integrate it into BulkPartEncoder
* refactor/separate-paraquet-reader:
Change BulkPartEncoder row_group_size from Option to usize and update tests
* refactor/separate-paraquet-reader: Add context module for bulk memtable iteration and refactor part reading
• Introduce context module to encapsulate context for bulk memtable iteration.
• Refactor BulkPart to use BulkIterContextRef for reading operations.
• Remove redundant code in BulkPart by centralizing context creation and row group pruning logic in the new context module.
• Create new file context.rs with structures and logic for handling iteration context.
• Adjust part_reader.rs and row_group_reader.rs to reference the new BulkIterContextRef.
* refactor/separate-paraquet-reader: Refactor RowGroupReader traits and implementations in memtable and parquet reader modules
• Rename RowGroupReaderVirtual to RowGroupReaderContext for clarity.
• Replace BulkPartVirt with direct usage of BulkIterContextRef in MemtableRowGroupReader.
• Simplify MemtableRowGroupReaderBuilder by directly passing context instead of creating a BulkPartVirt instance.
• Update RowGroupReaderBase to use context field instead of virt, reflecting the trait renaming and usage.
• Modify FileRangeVirt to FileRangeContextRef and adjust implementations accordingly.
* refactor/separate-paraquet-reader: Refactor column page reader creation and remove unused code
• Centralize creation of SerializedPageReader in RowGroupBase::column_reader method.
• Remove unused RowGroupCachedReader and related code from MemtableRowGroupPageFetcher.
• Eliminate redundant error handling for invalid column index in multiple places.
* chore: rebase main and resolve conflicts
* fix: some comments
* chore: resolve conflicts
* chore: resolve conflicts
2024-12-24 09:59:26 +00:00
Ruihang Xia
88d46a38ae
chore: bump opendal to fork version to fix prometheus layer ( #5223 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-24 08:54:59 +00:00
Weny Xu
de0beabf34
refactor: remove unnecessary wrap ( #5221 )
...
* chore: remove unnecessary arc
* chore: remove unnecessary box
2024-12-24 08:43:14 +00:00
Ruihang Xia
68dd2916fb
feat: logs query endpoint ( #5202 )
...
* define endpoint
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* planner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update lock file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add unit test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix toml format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* revert metric change
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/query/src/log_query/planner.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* fix compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor and tests
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 >
2024-12-24 06:21:19 +00:00
Zhenchi
d51b65a8bf
feat(index-cache): abstract IndexCache to be shared by multi types of indexes ( #5219 )
...
* feat(index-cache): abstract `IndexCache` to be shared by multi types of indexes
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix typo
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: remove added label
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: simplify cached reader impl
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* rename func
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-12-24 05:10:30 +00:00
zyy17
2082c4b6e4
docs: add greptimedb-operator project link in 'Tools & Extensions' and other small improvements ( #5216 )
2024-12-24 03:09:41 +00:00
Ning Sun
c623404fff
ci: fix nightly ci task on nix build ( #5198 )
v0.12.0-nightly-20241223
2024-12-21 10:09:32 +00:00
Yingwen
fa3b7ed5ea
build: use 8xlarge as arm default ( #5214 )
2024-12-21 08:39:24 +00:00
Yiran
8ece853076
fix: dead links ( #5212 )
2024-12-20 12:01:57 +00:00
Zhenchi
4245bff8f2
feat(bloom-filter): add bloom filter reader ( #5204 )
...
* feat(bloom-filter): add bloom filter reader
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: remove unused dep
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix conflict
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 >
2024-12-20 08:29:18 +00:00
Zhenchi
3d4121aefb
feat(bloom-filter): add memory control for creator ( #5185 )
...
* feat(bloom-filter): add memory control for creator
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: remove meaningless buf
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: add codec for intermediate
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-12-20 06:59:44 +00:00
Weny Xu
1910d71cb3
chore: adjust fuzz tests cfg ( #5207 )
2024-12-20 06:58:51 +00:00
LFC
a578eea801
ci: install latest protobuf in dev-builder image ( #5196 )
2024-12-20 02:45:53 +00:00
discord9
6bf574f098
fix: auto created table ttl check ( #5203 )
...
* fix: auto created table ttl check
* tests: with hint
2024-12-19 11:23:01 +00:00
discord9
a4d61bcaf1
fix(flow): batch builder with type ( #5195 )
...
* fix: typed builder
* chore: clippy
* chore: rename
* fix: unit tests
* refactor: per review
2024-12-19 09:16:56 +00:00
dennis zhuang
7ea8a44d3a
chore: update PR template ( #5199 )
2024-12-19 08:28:20 +00:00
discord9
2d6f63a504
feat: show flow's mem usage in INFORMATION_SCHEMA.FLOWS ( #4890 )
...
* feat: add flow mem size to sys table
* chore: rm dup def
* chore: remove unused variant
* chore: minor refactor
* refactor: per review
2024-12-19 08:24:04 +00:00
Ruihang Xia
422d18da8b
feat: bump opendal and switch prometheus layer to the upstream impl ( #5179 )
...
* feat: bump opendal and switch prometheus layer to the upstream impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unused files
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unused things
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove root dir on recovering cache
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* filter out non-files entry in test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-19 03:42:05 +00:00