ZonaHe
c732016fa0
feat: update dashboard to v0.7.0 ( #5100 )
...
Co-authored-by: sunchanglong <sunchanglong@users.noreply.github.com >
2024-12-05 13:42:36 +00:00
Weny Xu
01a308fe6b
refactor: relocate CLI to a dedicated directory ( #5101 )
...
* refactor: relocate CLI to a dedicated directory
* chore: expose method and const
* refactor: use BoxedError
* chore: expose DatabaseClient
* chore: add clone derive
2024-12-05 12:12:24 +00:00
Ruihang Xia
cf0c84bed1
feat!: remove GET method in /debug path ( #5102 )
...
* featremove GET method in \/debug path
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update how-to document as well
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-05 08:21:55 +00:00
Yingwen
66c0445974
perf: take a new batch to reduce last row cache usage ( #5095 )
...
* feat: take and cache last row to save memory
* style: fix clippy
2024-12-05 03:59:28 +00:00
Ruihang Xia
7d8b256942
refactor: replace LogHandler with PipelineHandler ( #5096 )
...
* refactor: replace LogHandler with PipelineHandler
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change method name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename transform to insert
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-04 11:48:55 +00:00
Ruihang Xia
5092f5f451
feat: define basic structures and implement TimeFilter ( #5086 )
...
* feat: define basic structures and implement TimeFilter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* document column filter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* define context
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change variable name to avoid typo checker
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change error referring style
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refine context definition
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-04 07:39:33 +00:00
dennis zhuang
ff4c153d4b
test: adds sqlness test for TTL ( #5063 )
...
* test: adds sqlness test for TTL
* chore: restart cluster
* fix: typo
* test: adds database TTL with metric engine tables
2024-12-03 11:32:40 +00:00
Lei, HUANG
a51853846a
fix: schema cache invalidation ( #5067 )
...
* fix: use SchemaCache to locate database metadata
* main:
Refactor SchemaMetadataManager to use TableInfoCacheRef
- Replace TableInfoManagerRef with TableInfoCacheRef in SchemaMetadataManager
- Update DatanodeBuilder to pass TableInfoCacheRef to SchemaMetadataManager
- Rename error MissingCacheRegistrySnafu to MissingCacheSnafu in datanode module
- Adjust tests to use new mock_schema_metadata_manager with TableInfoCacheRef
* fix/schema-cache-invalidation: Add cache module and integrate cache registry into datanode
• Implement build_datanode_cache_registry function to create cache registry for datanode
• Integrate cache registry into datanode by modifying DatanodeBuilder and HeartbeatTask
• Refactor InvalidateTableCacheHandler to InvalidateCacheHandler and move to common-meta crate
• Update Cargo.toml to include cache as a dev-dependency for datanode
• Adjust related modules (flownode, frontend, tests-integration, standalone) to use new cache handler and registry
• Remove obsolete handler module from frontend crate
* fix: fuzz imports
* chore: add some doc for cahce builder functions
* refactor: change table info cache to table schema cache
* fix: remove unused variants
* fix fuzz
* chore: apply suggestion
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* chore: apply suggestion
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* fix: compile
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-12-03 10:44:29 +00:00
Weny Xu
51c6eafb16
feat: recover file cache index asynchronously ( #5087 )
...
* feat: recover file cache index asynchronously
* chore: apply suggestions from CR
2024-12-03 09:33:52 +00:00
Weny Xu
5bdea1a755
fix: correct is_exceeded_size_limit behavior for in-memory store ( #5082 )
...
* fix: correct `is_exceeded_size_limit` behavior for in-memory store
* chore: rename `MetaClientExceededSizeLimit` to `ResponseExceededSizeLimit`
2024-12-02 12:26:02 +00:00
Ning Sun
bcadce3988
chore: remove openssl deps ( #5079 )
...
* chore: remove openssl deps
* ci: add ci task to check blacklisted dependencies
2024-12-02 07:12:15 +00:00
Weny Xu
0f116c8501
feat: enable compression for metasrv client ( #5078 )
...
* feat: enable compression for metasrv client
* refactor: simplify gRPC service router registration
* chore: fix unit tests
2024-12-02 05:18:25 +00:00
Ruihang Xia
c049ce6ab1
feat: add decolorize processor ( #5065 )
...
* feat: add decolorize processor
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/pipeline/src/etl/processor/cmcd.rs
* add crate level integration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
v0.11.0-nightly-20241202
2024-11-29 11:18:02 +00:00
dennis zhuang
6308e86e21
docs: tweak readme and AUTHOR ( #5069 )
...
* docs: tweak readme
* chore: links
* fix: typo
* fix: link
* docs: update AUTHOR
2024-11-29 04:08:53 +00:00
Ning Sun
36263830bb
refactor: remove built-in apidocs and schemars ( #5068 )
...
* feat: feature gate apidocs
* refactor: remove built-in apidocs and schemars
* remove redoc html
2024-11-29 03:31:02 +00:00
discord9
d931389a4c
fix(flow): minor fix about count(*)&sink keyword ( #5061 )
...
* fix: SiNk
* fix: sink&count(*)
* tests: SiNk
* refactor: per review
2024-11-29 03:06:27 +00:00
Lanqing Yang
8bdef776b3
fix: allow physical region alter region options ( #5046 )
...
allow physical region alter region options
2024-11-27 08:24:34 +00:00
Zhenchi
91e933517a
chore: bump version of main branch to v0.11.0 ( #5057 )
...
chore: bump nightly version to v0.11
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-27 02:19:24 +00:00
Lei, HUANG
a617e0dbef
feat: use cache kv manager for SchemaMetadataManager ( #5053 )
...
* feat: add cache for schema options
* fix/use-cache-kv-manager: Add cache invalidation handling to Datanode's heartbeat task
• Implement InvalidateSchemaCacheHandler in heartbeat.rs to handle cache invalidation instructions.
• Update HeartbeatTask constructor to accept cached_kv_backend and pass it to InvalidateSchemaCacheHandler.
• Modify DatanodeBuilder to clone cached_kv_backend when creating schema_metadata_manager.
• Refactor MetasrvCacheInvalidator in cache_invalidator.rs to reuse MailboxMessage for broadcasting to different channels.
* fix: only remove schema related cache entries
* chore: add more tests
* fix/use-cache-kv-manager: Moved InvalidateSchemaCacheHandler to a separate module
• Extracted InvalidateSchemaCacheHandler and associated tests into a new file cache_invalidator.rs
• Removed async_trait and CacheInvalidator related code from heartbeat.rs
• Added cache_invalidator module declaration in handler.rs
* fix: unit tests
* fix/use-cache-kv-manager:
Standardize TODO comment format in CachedKvBackend txn method
* Update src/datanode/src/heartbeat/handler/cache_invalidator.rs
* Update src/datanode/src/heartbeat/handler/cache_invalidator.rs
* Update src/datanode/src/heartbeat/handler/cache_invalidator.rs
---------
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
2024-11-26 12:24:47 +00:00
Yingwen
6130c70b63
fix: pass series row selector to file range reader ( #5054 )
2024-11-26 11:13:00 +00:00
Lei, HUANG
fae141ad0a
fix(metric-engine): set ttl also on opening metadata regions ( #5051 )
...
* fix/metric-metadata-region-options: Remove APPEND_MODE_KEY and refactor TTL option handling in MetricEngineInner
* fix/metric-metadata-region-options: Refactor metadata region options into a shared function
• Extract metadata region options into region_options_for_metadata_region function
• Replace inline options map with a call to the new shared function in both create.rs and open.rs files
* fix: exclude typos
* fix/metric-metadata-region-options:
Refactor metadata region options to accept original options and remove APPEND_MODE_KEY
2024-11-26 08:14:41 +00:00
LFC
57f31d14c8
refactor: expose configs for http clients used in object store ( #5041 )
2024-11-25 03:49:54 +00:00
Zhenchi
1cd6abb61f
chore: bump version to v0.10.1 ( #5048 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
v0.10.1
2024-11-25 03:20:54 +00:00
Ruihang Xia
e3927ea6f7
fix: prevent metadata region from inheriting database ttl ( #5044 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-11-25 02:13:11 +00:00
Zhenchi
a6571d3392
chore: bump version to 0.10.0 ( #5040 )
...
* chore: bump version to 0.10.0
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix sqlness version regex
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
v0.11.0-nightly-20241125
v0.10.0
2024-11-22 03:56:25 +00:00
Yohan Wal
1255638e84
refactor: unify mysql execute through cli and protocol ( #5038 )
...
refactor: mysql execute
2024-11-22 03:55:09 +00:00
Yohan Wal
1578c004b0
fix: prepare param mismatch ( #5025 )
...
* fix: prepare param mismatch
* test: clear state
* fix: minus 1
2024-11-22 02:31:53 +00:00
Yohan Wal
5f8d849981
feat: alter database ttl ( #5035 )
...
* feat: alter databaset ttl
* fix: make clippy happy
* feat: add unset database option
* fix: happy ci
* fix: happy clippy
* chore: fmt toml
* fix: fix header
* refactor: introduce `AlterDatabaseKind`
* chore: apply suggestions from CR
* refactor: add unset database option support
* test: add unit tests
* test: add sqlness tests
* feat: invalidate schema name value cache
* Apply suggestions from code review
* chore: fmt
* chore: update error messages
* test: add more test cases
* test: add more test cases
* Apply suggestions from code review
* chore: apply suggestions from CR
---------
Co-authored-by: WenyXu <wenymedia@gmail.com >
2024-11-21 12:41:41 +00:00
Lei, HUANG
3029b47a89
fix: find latest window ( #5037 )
...
* fix: find latest window
* more test files
2024-11-21 04:56:03 +00:00
Weny Xu
14d997e2d1
feat: add unset table options support ( #5034 )
...
* feat: add unset table options support
* test: add tests
* chore: update greptime-proto
* chore: add comments
2024-11-21 03:52:56 +00:00
Zhenchi
0aab68c23b
feat(vector): add conversion between vector and string ( #5029 )
...
* feat(vector): add conversion between vector and string
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix sqlness
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-11-20 08:42:00 +00:00
Weny Xu
027284ed1b
chore(cli): set default timeout for cli commands ( #5021 )
...
* chore(cli): set default timeout for cli commands
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: update comments
* fix: treats `None` as `0s` to disable server-side default timeout
* chore: update comments
2024-11-20 07:36:17 +00:00
Ruihang Xia
6a958e2c36
feat: reimplement limit in PartSort to reduce memory footprint ( #5018 )
...
* feat: support windowed sort with where condition
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix split logic
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* modify fuzz test to reflect logic change
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: handle sort that wont preserving partition
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test case and add more cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* install topk
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tests: add test for limit
* add debug assertion
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: discord9 <discord9@163.com >
2024-11-20 07:11:49 +00:00
Zhenchi
db345c92df
feat(vector): remove simsimd and use nalgebra instead ( #5027 )
...
* feat(vector): remove `simsimd` and use `nalgebra` instead
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* keep thing simple
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-20 06:57:10 +00:00
Yohan Wal
55ced9aa71
refactor: split up different stmts ( #4997 )
...
* refactor: set and unset
* chore: error message
* fix: reset Cargo.lock
* Apply suggestions from code review
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
* Apply suggestions from code review
Co-authored-by: Weny Xu <wenymedia@gmail.com >
---------
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-11-20 06:02:51 +00:00
discord9
3633f25d0c
feat: also shutdown gracefully on sigterm on unix ( #5023 )
...
* feat: support SIGTERM on unix
* chore: log
* fix: Result type
2024-11-19 15:20:33 +00:00
Yingwen
63bbfd04c7
fix: prune memtable/files range independently in each partition ( #4998 )
...
* feat: prune in each partition
* chore: change pick log to trace
* chore: add in progress partition scan to metrics
* feat: seqscan support pruning in partition
* chore: remove commented codes
2024-11-19 12:43:30 +00:00
Zhenchi
2f260d8b27
fix: android build failed due to simsimd ( #5019 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-19 11:21:58 +00:00
discord9
4d8fe29ea8
feat: CREATE OR REPLACE FLOW ( #5001 )
...
* feat: Replace flow
* refactor: better show create flow&tests: better check
* tests: sqlness result update
* tests: unit test for update
* refactor: cmp with raw bytes
* refactor: rename
* refactor: per review
2024-11-19 08:44:57 +00:00
Zhenchi
dbb3f2d98d
fix: inverted index constraint to be case-insensitive ( #5020 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-19 08:30:20 +00:00
ZonaHe
9926e3bc78
feat: update dashboard to v0.6.1 ( #5017 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2024-11-19 07:28:10 +00:00
dennis zhuang
0dd02e93cf
feat: make greatest supports timestamp and datetime types ( #5005 )
...
* feat: make greatest supports timestamp and datetime types
* chore: style
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* refactor: greatest with gt_time_types macro
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2024-11-19 07:01:24 +00:00
Zhenchi
73e6bf399d
test: reduce round precision to avoid platform diff ( #5013 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-18 16:37:15 +00:00
discord9
4402f638cd
fix: distinct respect in range ( #5015 )
...
* fix: distinct respect in range
* tests: sqlness
* chore: newline
2024-11-18 12:11:07 +00:00
shuiyisong
c199604ece
feat: Loki remote write ( #4941 )
...
* chore: add debug loki remote write url
* chore: add decode snappy
* chore: format output
* feature: impl loki remote write
* fix: special labels deserialize
* chore: move result to folder
* chore: finish todo in loki write
* test: loki write
* chore: fix cr issue
* chore: fix cr issue
* chore: fix cr issue
* chore: update pre-commit config
* chore: fix cr issue
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-11-18 08:39:17 +00:00
Yohan Wal
2b72e66536
test: subquery test migrated from duckdb ( #4985 )
...
* test: subquery test migrated from duckdb
* test: update test
* test: skip unsupported features and add sources
2024-11-18 08:37:06 +00:00
Weny Xu
7c135c0ef9
feat: introduce DynamicTimeoutLayer ( #5006 )
...
* feat: introduce `DynamicTimeoutLayer`
* test: add unit test
* chore: apply suggestions from CR
* feat: add timeout option for cli
2024-11-18 07:10:40 +00:00
Weny Xu
9289265f54
fix: correct unset_maintenance_mode behavior ( #5009 )
2024-11-18 06:39:13 +00:00
Lanqing Yang
485782af51
fix: ensure Create Or Replace and If Not Exist cannot coexist in create view ( #5003 )
...
ensure Create Or Replace and If Not Exist cannot coexist in create view statement
2024-11-17 07:08:30 +00:00
Weny Xu
4b263ef1cc
fix: obsolete wal entires while opening a migrated region ( #4993 )
...
* fix: delete obsolete wal entrie while opening a migrated region
* chore: add logs
* chore: rust fmt
* fix: fix fuzz test
2024-11-15 10:55:22 +00:00