Yiran
07eec083b9
fix: doc issue assignee ( #6406 )
...
Signed-off-by: Yiran <cuiyiran3@gmail.com >
2025-06-26 09:18:47 +00:00
Weny Xu
4737285275
feat: implement pause/resume functionality for procedure manager ( #6393 )
...
* feat: implement pause/resume functionality for procedure manager
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-06-26 01:57:12 +00:00
codephage
55f5e09885
fix: sqlness_test show_processList ( #6401 )
...
fix test sqlness_test show_processList
Signed-off-by: codephage. <381510760@qq.com >
2025-06-26 01:53:55 +00:00
liyang
9ab36e9a6f
test: add a test load configuration example for flownode ( #6397 )
...
* test: add a test load configuration example for flownode
Signed-off-by: liyang <daviderli614@gmail.com >
* format rust
Signed-off-by: liyang <daviderli614@gmail.com >
* fix cargo clippy
Signed-off-by: liyang <daviderli614@gmail.com >
* refine FlownodeOptions visibility
Signed-off-by: liyang <daviderli614@gmail.com >
* format rust
Signed-off-by: liyang <daviderli614@gmail.com >
---------
Signed-off-by: liyang <daviderli614@gmail.com >
2025-06-26 01:48:53 +00:00
Lei, HUANG
4bb5d00a4b
fix(http): apply string validation mode to pipeline processor ( #6378 )
...
* fix/apply-string-validation-to-pipeline:
### Commit Summary
- **Refactor `decode_string` Functionality**:
- Moved `decode_string` logic into `PromValidationMode` as a method `decode_string`.
- Updated all references to use the new method.
- Files affected: `http.rs`, `prom_row_builder.rs`, `proto.rs`.
- **Logging Enhancements**:
- Added `debug` logging for invalid UTF-8 string values.
- File affected: `http.rs`.
- **Test Updates**:
- Modified tests to use the new `decode_string` method in `PromValidationMode`.
- File affected: `proto.rs`.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
* fix clippy
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
---------
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
2025-06-25 18:56:35 +00:00
Lei, HUANG
1d07864b29
refactor(object-store): move backends building functions back to object-store ( #6400 )
...
refactor/building-backend-in-object-store:
### Refactor Object Store Configuration
- **Centralize Object Store Configurations**: Moved object store configurations (`FileConfig`, `S3Config`, `OssConfig`, `AzblobConfig`, `GcsConfig`) to `object-store/src/config.rs`.
- **Error Handling Enhancements**: Introduced `object-store/src/error.rs` for improved error handling related to object store operations.
- **Factory Pattern for Object Store**: Implemented `object-store/src/factory.rs` to create object store instances, consolidating logic from `datanode/src/store.rs`.
- **Remove Redundant Store Implementations**: Deleted individual store files (`azblob.rs`, `fs.rs`, `gcs.rs`, `oss.rs`, `s3.rs`) from `datanode/src/store/`.
- **Update Usage of Object Store Config**: Updated references to `ObjectStoreConfig` in `datanode.rs`, `standalone.rs`, `config.rs`, and `error.rs` to use the new centralized configuration.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
2025-06-25 13:49:55 +00:00
ZonaHe
9be75361a4
feat: update dashboard to v0.10.1 ( #6396 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2025-06-25 12:58:04 +00:00
Ning Sun
9c1df68a5f
feat: introduce /v1/health for healthcheck from external ( #6388 )
...
Signed-off-by: Ning Sun <sunning@greptime.com >
2025-06-25 12:25:36 +00:00
fys
0209461155
chore: add components for standalone instance ( #6383 )
2025-06-25 12:17:34 +00:00
Ruihang Xia
e728cb33fb
feat: implement count_hash aggr function ( #6342 )
...
* feat: implement count_hash aggr function
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change copyright year
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* review changes
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-06-25 12:14:03 +00:00
fys
cde7e11983
refactor: avoid adding feature to parameter ( #6391 )
...
* refactor: avoid adding feature to parameter
* avoid `cfg(not(feature = ...))` block
2025-06-25 10:47:20 +00:00
dennis zhuang
944b4b3e49
feat: supports CsvWithNames and CsvWithNamesAndTypes formats ( #6384 )
...
* feat: supports CsvWithNames and CsvWithNamesAndTypes formats and object/array types
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* test: added and fixed tests
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: fix test
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: remove comments
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* test: add json type csv tests
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: remove comment
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2025-06-25 07:28:11 +00:00
fys
7953b090c0
feat: support syntax parsing of drop trigger ( #6371 )
...
* feat: trigger drop
* Update Cargo.toml
* Update Cargo.lock
---------
Co-authored-by: Ning Sun <classicning@gmail.com >
2025-06-24 18:48:39 +00:00
liyang
7aa9af5ba6
chore: clarify default OTLP endpoint value ( #6381 )
...
Signed-off-by: liyang <daviderli614@gmail.com >
2025-06-24 11:44:45 +00:00
Ruihang Xia
7a9444c85b
refactor: remove staled manifest structures ( #6382 )
...
* refactor: remove staled manifest structures
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/store-api/src/lib.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-06-24 09:23:10 +00:00
LFC
bb12be3310
refactor: scan Batches directly ( #6369 )
...
* refactor: scan `Batch`es directly
Signed-off-by: luofucong <luofc@foxmail.com >
* fix ci
Signed-off-by: luofucong <luofc@foxmail.com >
* resolve PR comments
Signed-off-by: luofucong <luofc@foxmail.com >
* resolve PR comments
Signed-off-by: luofucong <luofc@foxmail.com >
---------
Signed-off-by: luofucong <luofc@foxmail.com >
2025-06-24 07:55:49 +00:00
Weny Xu
24019334ee
feat: implement automatic region failure detector registrations ( #6370 )
...
* feat: implement automatic region failure detector registrations
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: remove unused error
Signed-off-by: WenyXu <wenymedia@gmail.com >
* test: add more tests
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat: add `region_failure_detector_initialization_delay` option
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: update config.md
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: update config.md
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-06-24 06:12:12 +00:00
codephage
116d5cf82b
feat: support mysql flavor show processlist shortcut ( #6328 ) ( #6379 )
...
* feat: support mysql flavor show processlist shortcut (#6328 )
Signed-off-by: codephage. <381510760@qq.com >
* Refactor SHOW PROCESSLIST handling and add tests
Signed-off-by: codephage. <381510760@qq.com >
* add sqlness test
Signed-off-by: codephage. <381510760@qq.com >
* add sqlness test result
Signed-off-by: codephage. <381510760@qq.com >
* fix sqlness test show_processList
Signed-off-by: codephage. <381510760@qq.com >
---------
Signed-off-by: codephage. <381510760@qq.com >
2025-06-24 03:50:16 +00:00
zyy17
90a3894564
refactor: always write parent_span_id for otlp traces ingestion ( #6356 )
...
* refactor: always write `parent_span_id` for otlp traces ingestion
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* refactor: support to write None value in row writer
Signed-off-by: zyy17 <zyylsxm@gmail.com >
---------
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2025-06-23 11:36:57 +00:00
Yingwen
39d3e0651d
feat: Support ListMetadataRequest to retrieve regions' metadata ( #6348 )
...
* feat: support list metadata in region server
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: add test for list region metadata
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: return null if region not exists
Signed-off-by: evenyag <realevenyag@gmail.com >
* chore: update greptime-proto
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: evenyag <realevenyag@gmail.com >
2025-06-23 07:11:20 +00:00
zyy17
a49edc6ca6
refactor: add otlp_export_protocol config to support export trace data through gRPC and HTTP protocol ( #6357 )
...
* refactor: support http traces
* refactor: add `otlp_export_protocol` config to support export trace data through gRPC and HTTP protocol
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* Update src/common/telemetry/src/logging.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Signed-off-by: zyy17 <zyylsxm@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-06-23 02:56:12 +00:00
shuiyisong
7cd6be41ce
feat(pipeline): introduce pipeline doc version 2 for combine-transform ( #6360 )
...
* chore: init commit of pipeline doc version v2
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: remove unused code
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: remove unused code
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: add test
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: add test
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: compatible with v1 to remain field in the map during transform
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* refactor: pipeline.exec_mut
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: typo
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: change from v2 to 2 in version setting
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
---------
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
v0.15.0-nightly-20250623
2025-06-22 00:58:36 +00:00
ZonaHe
15616d0c43
feat: update dashboard to v0.10.0 ( #6368 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2025-06-20 23:48:35 +00:00
dennis zhuang
b43e315c67
fix: test test_tls_file_change_watch ( #6366 )
...
* fix: test test_tls_file_change_watch
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: cert_path
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: test
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: revert times
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: debug
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: times
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: remove assertions
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: use inspect_err
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
---------
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
2025-06-20 16:57:07 +00:00
Yingwen
36ab1ceef7
chore: prints a warning when skip_ssl_validation is true ( #6367 )
...
chore: warn when skip_ssl_validation is true
We already log all configs when a node starts.
Signed-off-by: evenyag <realevenyag@gmail.com >
2025-06-20 13:14:50 +00:00
Weny Xu
3fb1b726c6
refactor(cli): simplify metadata command parameters ( #6364 )
...
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-06-20 09:00:21 +00:00
Olexandr88
c423bb31fe
docs: added YouTube link to documentation ( #6362 )
...
Update README.md
2025-06-20 08:16:54 +00:00
rgidda
e026f766d2
feat(storage): Add skip_ssl_validation option for object storage HTTP client ( #6358 )
...
* feat(storage): Add skip_ssl_validation option for object storage HTTP client
Signed-off-by: rgidda <rgidda@hitachivantara.com >
* fix(test): Broken test case for - Add skip_ssl_validation option for object storage HTTP client
Signed-off-by: rgidda <rgidda@hitachivantara.com >
* fix: test
* fix: test
---------
Signed-off-by: rgidda <rgidda@hitachivantara.com >
Co-authored-by: rgidda <rgidda@hitachivantara.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2025-06-20 08:08:19 +00:00
discord9
9d08f2532a
feat: dist auto step aggr pushdown ( #6268 )
...
* wip: steppable aggr fn
Signed-off-by: discord9 <discord9@163.com >
* poc: step aggr query
Signed-off-by: discord9 <discord9@163.com >
* feat: mvp poc stuff
Signed-off-by: discord9 <discord9@163.com >
* test: sqlness
Signed-off-by: discord9 <discord9@163.com >
* chore: import missing
Signed-off-by: discord9 <discord9@163.com >
* feat: support first/last_value
Signed-off-by: discord9 <discord9@163.com >
* fix: check also include first/last value
Signed-off-by: discord9 <discord9@163.com >
* chore: clean up after rebase
Signed-off-by: discord9 <discord9@163.com >
* feat: optimize yes!
Signed-off-by: discord9 <discord9@163.com >
* fix: alias qualifled
Signed-off-by: discord9 <discord9@163.com >
* test: more testcases
Signed-off-by: discord9 <discord9@163.com >
* chore: qualified column
Signed-off-by: discord9 <discord9@163.com >
* chore: per review
Signed-off-by: discord9 <discord9@163.com >
* fix: case when can push down
Signed-off-by: discord9 <discord9@163.com >
* feat: udd/hll_merge is also the same
Signed-off-by: discord9 <discord9@163.com >
* fix: udd/hll_merge args
Signed-off-by: discord9 <discord9@163.com >
* tests: fix sqlness
Signed-off-by: discord9 <discord9@163.com >
* tests: fix sqlness
Signed-off-by: discord9 <discord9@163.com >
* fix: udd/hll merge steppable
Signed-off-by: discord9 <discord9@163.com >
* chore: per review
Signed-off-by: discord9 <discord9@163.com >
* test: REDACTED
Signed-off-by: discord9 <discord9@163.com >
* refactor: per review
Signed-off-by: discord9 <discord9@163.com >
* refactor: more formal transform action
Signed-off-by: discord9 <discord9@163.com >
* feat: support modify child plan too
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2025-06-20 07:18:55 +00:00
LFC
e072726ea8
refactor: make scanner creation async ( #6349 )
...
* refactor: make scanner creation async
Signed-off-by: luofucong <luofc@foxmail.com >
* resolve PR comments
Signed-off-by: luofucong <luofc@foxmail.com >
---------
Signed-off-by: luofucong <luofc@foxmail.com >
2025-06-20 06:44:49 +00:00
Ning Sun
e78c3e1eaa
refactor: make metadata region option opt-in ( #6350 )
...
* refactor: make metadata region option opt-in
Signed-off-by: Ning Sun <sunning@greptime.com >
* fix: preserve wal_options for metadata region
Signed-off-by: Ning Sun <sunning@greptime.com >
* Update src/metric-engine/src/engine/create.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ning Sun <sunning@greptime.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2025-06-20 03:31:16 +00:00
Weny Xu
89e3c8edab
fix(meta): enhance mysql election client with timeouts and reconnection ( #6341 )
...
* fix(meta): enhance mysql election client with timeouts and reconnection
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat: improve MySQL election client lease management and error handling
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: adjust timeout configurations for election clients
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: remove unused error
Signed-off-by: WenyXu <wenymedia@gmail.com >
* fix: fix unit test
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-06-19 12:44:23 +00:00
fys
d4826b998d
feat: support execute sql in frontend_client ( #6355 )
...
* feat: support execute sql in frontend_client
* chore: remove unnecessary clone
* add components for flownode instance
* add feature gate for component
* fix: enterprise feature
2025-06-19 09:47:16 +00:00
Weny Xu
d9faa5c801
feat(cli): add metadata del commands ( #6339 )
...
* feat: introduce cli for deleting metadata
Signed-off-by: WenyXu <wenymedia@gmail.com >
* refactor(cli): flatten metadata command structure
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: add alias
Signed-off-by: WenyXu <wenymedia@gmail.com >
* refactor(meta): implement logical deletion for CLI tool
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-06-19 06:48:00 +00:00
Ning Sun
12c3a3205b
chore: security updates ( #6351 )
2025-06-19 06:43:43 +00:00
Weny Xu
5231505021
fix(metric-engine): properly propagate errors during batch open operation ( #6325 )
...
* fix(metric-engine): properly propagate errors during batch open operation
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: add comments
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-06-19 06:37:54 +00:00
Lei, HUANG
6ece560f8c
fix: reordered write cause incorrect kv ( #6345 )
...
* fix/reordered-write-cause-incorrect-kv:
- **Enhance Testing in `partition_tree.rs`**: Added comprehensive test functions such as `kv_region_metadata`, `key_values`, and `collect_kvs` to improve the robustness of key-value operations and ensure correct behavior of the `PartitionTreeMemtable`.
- **Improve Key Handling in `dict.rs`**: Modified `KeyDictBuilder` to handle both full and sparse keys, ensuring correct mapping and insertion. Added a new test `test_builder_finish_with_sparse_key` to validate the handling of sparse keys.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
* fix/reordered-write-cause-incorrect-kv:
### Refactor `partition_tree.rs` for Improved Key Handling
- **Refactored Key Handling**: Simplified the `key_values` function to accept an iterator of keys, removing hardcoded key-value pairs. This change enhances flexibility and reduces redundancy in key management.
- **Updated Test Cases**: Modified test cases to use the new `key_values` function signature, ensuring they iterate over keys dynamically rather than relying on predefined lists.
Files affected:
- `src/mito2/src/memtable/partition_tree.rs`
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
* fix/reordered-write-cause-incorrect-kv:
Enhance Testing in `partition_tree.rs`
- Added assertions to verify key-value collection after `memtable` and `forked` operations.
- Refactored key-value writing logic for clarity in `forked` operations.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
---------
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
2025-06-19 06:32:40 +00:00
fys
2ab08a8f93
chore(deps): switch greptime-proto to official repository ( #6347 )
2025-06-18 12:52:46 +00:00
Lei, HUANG
086ae9cdcd
chore: print series count after wal replay ( #6344 )
...
* chore/print-series-count-after-wal-replay:
### Add Series Count Functionality and Logging Enhancements
- **`time_partition.rs`**: Introduced `series_count` method to calculate the total timeseries count across all time partitions.
- **`opener.rs`**: Enhanced logging to include the total timeseries replayed during WAL replay.
- **`version.rs`**: Added `series_count` method to `VersionControlData` for approximating timeseries count in the current version.
- **`handler.rs`**: Added entry and exit logging for the `sql` function to trace execution flow.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
* chore/print-series-count-after-wal-replay:
### Remove Unused Import
- **File Modified**: `src/servers/src/http/handler.rs`
- **Change Summary**: Removed the unused `info` import from `common_telemetry`.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
---------
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
2025-06-18 12:04:39 +00:00
LFC
6da8e00243
refactor: make finding leader in metasrv client dynamic ( #6343 )
...
Signed-off-by: luofucong <luofc@foxmail.com >
2025-06-18 11:29:23 +00:00
Arshdeep
4b04c402b6
fix: add path exist check in copy_table_from ( #6182 ) ( #6300 )
...
Signed-off-by: Arshdeep54 <balarsh535@gmail.com >
2025-06-18 09:50:27 +00:00
Lei, HUANG
a59b6c36d2
chore: add metrics for active series and field builders ( #6332 )
...
* chore/series-metrics:
### Add Metrics for Active Series and Values in Memtable
- **`simple_bulk_memtable.rs`**: Implemented `Drop` trait for `SimpleBulkMemtable` to decrement `MEMTABLE_ACTIVE_SERIES_COUNT` and `MEMTABLE_ACTIVE_VALUES_COUNT` upon dropping.
- **`time_series.rs`**:
- Introduced `SeriesMap` with `Drop` implementation to manage active series and values count.
- Updated `SeriesSet` and `Iter` to use `SeriesMap`.
- Added `num_values` method in `Series` to calculate the number of values.
- **`metrics.rs`**: Added `MEMTABLE_ACTIVE_SERIES_COUNT` and `MEMTABLE_ACTIVE_VALUES_COUNT` metrics to track active series and values in `TimeSeriesMemtable`.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
* chore/series-metrics:
- Add metrics for active series and field builders
- Update dashboard
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
* chore/series-metrics:
**Add Series Count Tracking in Memtables**
- **`flush.rs`**: Updated `RegionFlushTask` to track and log the series count during memtable flush operations.
- **`memtable.rs`**: Introduced `series_count` in `MemtableStats` and added a method to retrieve it.
- **`partition_tree.rs`, `partition.rs`, `tree.rs`**: Implemented series count calculation in `PartitionTreeMemtable` and its components.
- **`simple_bulk_memtable.rs`, `time_series.rs`**: Integrated series count tracking in `SimpleBulkMemtable` and `TimeSeriesMemtable` implementations.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
* Update src/mito2/src/memtable.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2025-06-18 09:16:45 +00:00
zyy17
f6ce6fe385
fix(jaeger-api): incorrect find_traces() logic and multiple api compatible issues ( #6293 )
...
* fix: use `limit` params in jaeger http
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* refactor: only parse `max_duration` and `min_duration` when it's not empty
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* fix: handle the input for empty `limit` string
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* fix: missing the fileter for `service_name`
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* test: fix ci errors
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* fix: incorrect behavior of find_traces
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* fix: the logic of `find_traces()`
The correct logic should be:
1. Get all trace ids that match the filters;
2. Get all traces that match the trace ids from the previous query;
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* fix: integration test errors
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* refactor: add `empty_string_as_none`
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* refactor: refine naming
Signed-off-by: zyy17 <zyylsxm@gmail.com >
---------
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2025-06-18 08:01:36 +00:00
Weny Xu
4d4bfb7d8b
fix(metric): prevent setting memtable type for metadata region ( #6340 )
...
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-06-18 03:49:22 +00:00
Ruihang Xia
6e1e8f19e6
feat: support setting FORMAT in TQL ANALYZE/VERBOSE ( #6327 )
...
* feat: support setting FORMAT in TQL ANALYZE/VERBOSE
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-06-18 03:39:12 +00:00
Weny Xu
49cb4da6d2
feat: introduce CLI tool for repairing logical table metadata ( #6322 )
...
* feat: introduce logical table metadata repair cli tool
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: deps
Signed-off-by: WenyXu <wenymedia@gmail.com >
* refactor: flatten doctor module structure
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2025-06-17 13:53:59 +00:00
Lei, HUANG
0d0236ddab
fix: revert string builder initial capacity in TimeSeriesMemtable ( #6330 )
...
fix/revert-string-builder-initial-capacity:
### Update `time_series.rs` Memory Allocation
- **Reduced StringBuilder Capacity**: Adjusted the initial capacity of `StringBuilder` in `ValueBuilder` from `(256, 4096)` to `(4, 8)` to optimize memory usage in `time_series.rs`.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2025-06-17 13:24:52 +00:00
Lei, HUANG
f8edb53b30
fix: carry process id in query ctx ( #6335 )
...
fix/carry-process-id-in-query-ctx:
### Commit Message
Enhance query context handling in `instance.rs`
- Updated `Instance` implementation to include `process_id` in query context initialization, improving traceability and debugging capabilities.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
2025-06-17 12:04:23 +00:00
Lin Yihai
438791b3e4
feat: Add DROP DEFAULT ( #6290 )
...
* feat: Add `DROP DEFAULT`
Signed-off-by: Yihai Lin <yihai-lin@foxmail.com >
* chore: use `next_token`
Signed-off-by: Yihai Lin <yihai-lin@foxmail.com >
---------
Signed-off-by: Yihai Lin <yihai-lin@foxmail.com >
2025-06-17 09:33:56 +00:00
discord9
50e4c916e7
chore: clean up unused impl &standalone use mark dirty ( #6331 )
...
Signed-off-by: discord9 <discord9@163.com >
2025-06-17 08:18:17 +00:00