Weny Xu
1a9314a581
feat: enhanced the retry logic by adding a random noise ( #4320 )
...
feat: enhanced the retry logic by adding a random noise to the retry delay to avoid retry storms
2024-07-09 04:30:10 +00:00
Ruihang Xia
23bb9d92cb
feat: handle parentheses with unary ops ( #4290 )
...
* feat: handle parentheses with unary ops
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* check tokens before convert to RPN
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add test cases to sqlness
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 >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-07-09 04:08:36 +00:00
dennis zhuang
f1d17a8ba5
fix: panic while reading information_schema. KEY_COLUMN_USAGE ( #4318 )
...
* fix: table might be dropped during iteration
* fix: panic while reading information_schema.key_column_usage
* fix: key_column_usage wrong results
2024-07-09 03:30:14 +00:00
tison
d1f1fad440
build(deps): switch to upstream ( #4319 )
...
* build(deps): switch to upstream
* lock
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-07-09 01:56:19 +00:00
Zhenchi
00308218b3
feat(fulltext_index): allow enable full-text index in SQL and gRPC way ( #4310 )
...
* feat(fulltext_index): allow enable full-text index in SQL and gRPC way
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: typo
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: test_fulltext_intm_path
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: explicitly build column options
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: fix error msg
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-08 20:18:48 +00:00
Ning Sun
81308b9063
fix: error on show databases in non-default catalog ( #4316 )
2024-07-08 16:28:00 +00:00
Lei, HUANG
aa4d10eef7
feat(inverted_index): inverted index cache ( #4309 )
...
* feat/inverted-index-cache:
Update dependencies and add caching for inverted index reader
- Updated `atomic` to 0.6.0 and `uuid` to 1.9.1 in `Cargo.lock`.
- Added `moka` and `uuid` dependencies in `Cargo.toml`.
- Introduced `seek_read` method in `InvertedIndexBlobReader` for common seek and read operations.
- Added `cache.rs` module to implement caching for inverted index reader using `moka`.
- Updated `async-compression` to 0.4.11 in `puffin/Cargo.toml`.
* feat/inverted-index-cache:
Refactor InvertedIndexReader and Add Index Cache Support
- Refactored `InvertedIndexReader` to include `seek_read` method and default implementations for `fst` and `bitmap`.
- Implemented `seek_read` in `InvertedIndexBlobReader` and `CachedInvertedIndexBlobReader`.
- Introduced `InvertedIndexCache` in `CacheManager` and `SstIndexApplier`.
- Updated `SstIndexApplierBuilder` to accept and utilize `InvertedIndexCache`.
- Added `From<FileId> for Uuid` implementation.
* feat/inverted-index-cache:
Update Cargo.toml and refactor SstIndexApplier
- Moved `uuid.workspace` entry in Cargo.toml for better organization.
* feat/inverted-index-cache:
Refactor InvertedIndexCache to use type alias for Arc
- Replaced `Arc<InvertedIndexCache>` with `InvertedIndexCacheRef` type alias.
* feat/inverted-index-cache:
Add Prometheus metrics and caching improvements for inverted index
- Introduced `prometheus` and `puffin` dependencies for metrics.
* feat/inverted-index-cache:
Refactor InvertedIndexReader and Cache handling
- Simplified `InvertedIndexReader` trait by removing seek-related comments.
* feat/inverted-index-cache:
Add configurable cache sizes for inverted index metadata and content
- Introduced `index_metadata_size` and `index_content_size` in `CacheManagerBuilder`.
* feat/inverted-index-cache:
Refactor and optimize inverted index caching
- Removed `metrics.rs` and integrated cache metrics into `index.rs`.
* feat/inverted-index-cache:
Remove unused dependencies from Cargo.lock and Cargo.toml
- Removed `moka`, `prometheus`, and `puffin` dependencies from both Cargo.lock and Cargo.toml.
* feat/inverted-index-cache:
Replace Uuid with FileId in CachedInvertedIndexBlobReader
- Updated `file_id` type from `Uuid` to `FileId` in `CachedInvertedIndexBlobReader` and related methods.
* feat/inverted-index-cache:
Refactor cache configuration for inverted index
- Moved `inverted_index_metadata_cache_size` and `inverted_index_cache_size` from `MitoConfig` to `InvertedIndexConfig`.
* feat/inverted-index-cache:
Remove unnecessary conversion of `file_id` in `SstIndexApplier`
- Simplified the initialization of `CachedInvertedIndexBlobReader` by removing the redundant `into()` conversion for `file_id`.
2024-07-08 12:36:59 +00:00
Zhenchi
4811fe83f5
fix: test_fulltext_intm_path ( #4314 )
...
* fix: test_fulltext_intm_path
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-07-08 12:34:35 +00:00
Ruihang Xia
96861137b2
fix(ci): remove sqlness state in success ( #4313 )
...
* fix(ci): remove sqlness state in success
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix regex
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-07-08 12:32:36 +00:00
Yohan Wal
8e69543704
feat: support inserting into binary value through string ( #4197 )
...
feat: support inserting binary by string
2024-07-08 12:09:30 +00:00
Ruihang Xia
e5730a3745
refactor: split match arms in prom_expr_to_plan into smaller methods ( #4317 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-07-08 11:59:59 +00:00
localhost
c0e9b3dbe2
chore: disable TraceLayer on_failure log ( #4315 )
2024-07-08 10:53:35 +00:00
Yingwen
59afa70311
feat!: Set merge mode while creating table in influx handler ( #4299 )
...
* feat: influxdb write auto set merge mode
* chore: update logs
* chore: address PR comments
2024-07-08 04:55:36 +00:00
dennis zhuang
bb32230f00
feat: impl show table status ( #4303 )
...
* feat: impl show table status
* chore: style and comment
* test: revert lz4 compression
2024-07-08 03:58:29 +00:00
tison
fe0be1583a
build(deps): upgrade opendal to 0.47.3 ( #4307 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-07-08 03:33:38 +00:00
Weny Xu
08c415c729
ci: retry on error or timeout during installing operator ( #4308 )
...
chore(ci): retry on error or timeout during installing operator
2024-07-08 03:31:13 +00:00
Weny Xu
58f991b864
fix: deregister failure detector in region migration ( #4293 )
...
* fix: deregister failure detector in region migration
* chore: apply suggestions from CR
2024-07-07 06:58:12 +00:00
Zhenchi
a710676d06
feat(fulltext_index): integrate full-text indexer with sst writer ( #4302 )
...
* feat(fulltext_index): integrate full-text indexer with sst writer
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: delay building puffin writer
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: indexer test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: add abort on empty indexer
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* config: indicates default mode
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* config: introduce "auto" and "unlimited" as mem threshold
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* doc: comment about push empty string
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-07 04:10:19 +00:00
Eugene Tolbakov
3f4928effc
feat(sql): add iso-8601 format support for intervals ( #4291 )
...
* feat(sql): add iso-8601 format support for intervals
* fix(sql): address CR feedback
* chore(sql): use regex to check the start of iso 8601
2024-07-05 22:19:05 +00:00
Weny Xu
bc398cf197
feat(remote wal): set default compresion to LZ4 ( #4294 )
...
* feat(remote wal): set default compresion to LZ4
* fix: fix test
2024-07-05 20:40:18 +00:00
discord9
09fff24ac4
feat: make flow distributed work&tests ( #4256 )
...
feat: flownode frontend client&test
feat: Frontend Client
feat: set frontend invoker for flownode
feat: set frontend invoker for flownode
chore: test script
WIP: test flow distributed
feat: hard coded demo
docs: flownode example toml
feat: add flownode support in runner
docs: comments for node
chore: after rebase
docs: add a todo
tests: move flow tests to common
fix: flownode sqlness dist test
chore: per review
docs: make
fix: make doc
2024-07-05 14:46:44 +00:00
Weny Xu
30b65ca99e
chore: bump OpenDAL to 0.47.2 ( #4297 )
...
chore: bump opendal to 0.47.2
2024-07-05 13:54:32 +00:00
Yingwen
b1219fa456
feat: refine scan metrics logging ( #4296 )
...
* fix: collect scan cost in row group reader
* feat: remove log after scan
* feat: collect prepare scan cost before fetching readers
* print first poll elapsed
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: print more first poll
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-07-05 08:39:35 +00:00
Weny Xu
4f0984c1d7
chore: remove original region failover implementation ( #4237 )
...
chore: remove original region failure implementation
2024-07-05 08:03:46 +00:00
Weny Xu
0b624dc337
ci: retry on error during installing operator ( #4295 )
...
chore(ci): retry on error during installing operator
2024-07-05 07:54:31 +00:00
Yingwen
60f599c3ef
feat: expose merge_mode option ( #4289 )
...
feat: expose merge mode options
2024-07-05 07:40:01 +00:00
Zhenchi
f71b7b997d
refactor(inverted_index): integrate puffin manager with sst indexer ( #4285 )
...
* refactor(puffin): adjust generic parameters
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor(inverted_index): integrate puffin manager for build
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* Revert "refactor(puffin): adjust generic parameters"
This reverts commit 81ea1b6ee4 .
* fix: column_ids remove ignore columns
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: remove with_ignore_column_ids
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* docs: add comments for IndexOutput
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* tiny fix
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* config: hide compress
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: index_size > 0 indicates index available
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* perf: reduce to_string`
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: clippy
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: address comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: address comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-05 07:12:50 +00:00
Weny Xu
8a119aa0b2
feat: add naive region failover test for metric table ( #4269 )
...
* feat: add failover test for metric table
* chore: introduce help marco
* chore: remove incorrect check
2024-07-05 06:54:23 +00:00
dennis zhuang
d2f6daf7b7
fix: prepare inserting with column defaults not work, #4244 ( #4272 )
...
* fix: prepare inserting with column defaults not work, #4244
* fix: build column_defaults every time when creating adapters
* feat: cache the column_defaults in table
* test: assert ts column
* fix: unit
* chore: style
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: typo
* chore: style
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-07-05 06:50:12 +00:00
Ning Sun
d9efa564ee
feat: add path prefix label to obejct storage metrics ( #4277 )
...
* feat: add path prefix label to storage metrics
* refactor: return full path when the levels are less than 3
* refactor: align path label name with upstream
* refactor: better implementation of sub path
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-07-05 06:45:47 +00:00
shuiyisong
849e0b9249
feat: delete pipeline ( #4156 )
...
* feat: add delete for pipeline
* chore: remove unused code
* refactor: delete pipeline
* chore: add pipeline management api metrics
* chore: minor cr issues
* chore: add unit test
* chore: fix cr issue
* fix: test
* chore: add `GreptimedbManageResponse`
* fix: typo
* fix: typo
2024-07-05 06:23:49 +00:00
discord9
c21e969329
fix: call df_func with literal ( #4265 )
...
* fix: call df_func with literal
* chore: rm dbg log forget to remove
2024-07-05 06:21:22 +00:00
shuiyisong
9393a1c51e
fix: align pre-commit config with make file ( #4292 )
2024-07-05 04:19:57 +00:00
shuiyisong
69bb7ded6a
fix: enable space string in yaml value ( #4286 )
...
* fix: enable space string in yaml value
* fix: typo
2024-07-05 03:39:26 +00:00
Weny Xu
b5c6c72b02
fix: enhance ColumnOption::DefaultValue formatting for string values ( #4287 )
2024-07-04 13:16:51 +00:00
Ning Sun
8399dcada3
refactor: use rwlock for modifiable session data ( #4232 )
...
* chore: update sqlness results
* refactor: use rwlock for modifiable data in session and querycontext
* chore: format toml
* refactor: use mutable_inner structure for mutable fields
* refactor: remove arc wrapper
2024-07-04 12:53:25 +00:00
Zhenchi
6e2c21dd3f
refactor(puffin): adjust generic parameters ( #4279 )
...
* refactor(puffin): adjust generic parameters
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: remove Box impl
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-04 12:22:04 +00:00
Weny Xu
70f7baffda
feat(fuzz): enhance condition check of region migration finish ( #4283 )
2024-07-04 12:14:52 +00:00
Weny Xu
4ec247f34d
feat: store peer info in TableFlowValue ( #4280 )
...
* feat: store peer info in `TableFlowValue`
* chore: apply suggestions from CR
2024-07-04 09:37:23 +00:00
Weny Xu
22f4d43b10
fix(fuzz): generate valid string ( #4281 )
...
* fix: generate valid string
* refactor(fuzz): wait for procedure finish at first
2024-07-04 08:22:39 +00:00
discord9
d9175213fd
chore: add missing s for --metasrv-addr ( #4278 )
2024-07-04 07:38:00 +00:00
Ruihang Xia
03c933c006
feat: handle AND/OR and priority in matches fn ( #4270 )
...
* feat: handle AND/OR and priority in matches fn
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* transform AST
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle non-big-write AND & OR
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-07-04 06:19:03 +00:00
Zhenchi
65c9fbbd2f
feat(fulltext_index): integrate puffin manager with inverted index applier ( #4266 )
...
* feat(fulltext_index): integrate puffin manager with inverted index applier
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: get rid of unexpected not found from write cache
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: move create_dir_all to BoundedStager::new
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: update config.md
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* config: unify directories
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: silent remove
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: config docs
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: auxiliary -> aux
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-04 06:18:58 +00:00
Weny Xu
ee9a5d7611
feat: introduce FlowRouteValue ( #4263 )
...
* feat: introduce `FlowRouteKey` and `FlowRouteValue`
* feat: put `FlowRouteValue` values in flow creation
* feat: use `FlowRouteValue`
* refactor: remove `PeerLookupServiceRef` in `DdlContext`
* chore: remove unused code
* Update src/common/meta/src/key.rs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* chore: apply suggestions from CR
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-07-03 19:46:16 +00:00
ZonaHe
8e306f3f51
feat: update dashboard to v0.5.3 ( #4262 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2024-07-03 14:45:55 +00:00
Weny Xu
76fac359cd
feat: implement naive fuzz test for region migration ( #4252 )
...
* fix(fuzz): adapt for new partition rules
* feat: implement naive fuzz test for region migration
* chore(ci): add ci cfg
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-07-03 13:30:41 +00:00
Lei, HUANG
705b22411b
fix(puffin): fix dependency ( #4267 )
...
fix/puffin-dependency: Update async-compression to 0.4 with features and add features to moka in Cargo.toml
2024-07-03 12:13:26 +00:00
zyy17
c9177cceeb
ci: push latest greptimedb nigthly build image ( #4260 )
2024-07-03 11:14:06 +00:00
Jeremyhi
ddf2e6a3c0
feat: provide a simple way to create metaclient ( #4257 )
...
* feat: provide a simple way to create metaclient
* chore: minor refactor using metaclient
* chore: minor refactor using metaclient
2024-07-03 08:11:55 +00:00
discord9
967b2cada6
feat!: remove alias metasrv-addr ( #4239 )
2024-07-03 06:53:43 +00:00