localhost
36b1bafbf0
fix: pipeline dissert error is returned directly to the user, instead of printing a warn log ( #4709 )
...
* fix: pipeline dissert error is returned directly to the user, instead of printing a warn log
* chore: add more test for pipeline
2024-09-12 18:21:05 +00:00
Yohan Wal
67fb3d003e
feat: add respective get_by_path UDFs for JSON type ( #4720 )
...
* feat: add respectiv get_by_path udf for json type
* Apply review comments
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* fix: fix compile error
* refactor: change name of UDFs, add some tests
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-09-11 08:17:57 +00:00
zyy17
aa03d3b11c
docs: use docs comment prefix and bump toml2docs version ( #4711 )
2024-09-11 07:49:23 +00:00
discord9
a3d567f0c9
perf(flow): use batch mode for flow ( #4599 )
...
* generic bundle trait
* feat: impl get/let
* fix: drop batch
* test: tumble batch
* feat: use batch eval flow
* fix: div use arrow::div not mul
* perf: not append batch
* perf: use bool mask for reduce
* perf: tiny opt
* perf: refactor slow path
* feat: opt if then
* fix: WIP
* perf: if then
* chore: use trace instead
* fix: reduce missing non-first batch
* perf: flow if then using interleave
* docs: add TODO
* perf: remove unnecessary eq
* chore: remove unused import
* fix: run_available no longer loop forever
* feat: blocking on high input buf
* chore: increase threhold
* chore: after rebase
* chore: per review
* chore: per review
* fix: allow empty values in reduce&test
* tests: more flow doc example tests
* chore: per review
* chore: per review
2024-09-11 03:31:52 +00:00
Zhenchi
f252599ac6
feat(index): add RangeReader trait ( #4718 )
...
* feat(index): add `RangeReader` trait`
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: return content_length as read bytes
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: remove buffer & use `BufMut`
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-09-10 15:24:06 +00:00
Ruihang Xia
ff40d512bd
fix: support append-only physical table ( #4716 )
...
* fix: support append-only physical table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/metric-engine/src/engine/create.rs
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
2024-09-10 12:23:23 +00:00
jeremyhi
dcae21208b
chore: refresh route table ( #4673 )
...
* chore: remove error::
* chore: avoid to use get_raw if unnecessary
* chore: clearer method name
* feat: remap node addresses in table route
* chore: add unit test for remap address
* feat: refresh node address mapping via heartbeat
* feat: broadcast table cache invalidate on new epoch
* chore: clarify heartbeat log
* chore: remove InvalidHeartbeatRequest
* chore: add log
* feat: add role into NodeAddressKey
* chore: fix test
* Update src/common/meta/src/key/table_route.rs
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
* chore: simplify code
---------
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
2024-09-10 12:08:59 +00:00
Weny Xu
d0fd79ac7f
chore: remove validate_request_with_table ( #4710 )
...
perf: remove `validate_request_with_table`
2024-09-10 11:56:18 +00:00
Yingwen
3e17c09e45
feat: skip caching uncompressed pages if they are large ( #4705 )
...
* feat: cache each uncompressed page
* chore: remove unused function
* chore: log
* chore: log
* chore: row group pages cache kv
* feat: also support row group level cache
* chore: fix range count
* feat: don't cache compressed page for row group cache
* feat: use function to get part
* chore: log whether scan is from compaction
* chore: avoid get column
* feat: add timer metrics
* chore: Revert "feat: add timer metrics"
This reverts commit 4618f57fa2ba13b1e1a8dec83afd01c00ae4c867.
* feat: don't cache individual uncompressed page
* feat: append in row group level under append mode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: fetch pages cost
* perf: yield
* Update src/mito2/src/sst/parquet/row_group.rs
* refactor: cache key
* feat: print file num and row groups num in explain
* test: update sqlness test
* chore: Update src/mito2/src/sst/parquet/page_reader.rs
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-09-10 11:52:16 +00:00
jeremyhi
04de3ed929
chore: avoid schema check when auto_create_table_hint is disabled ( #4712 )
...
chore: avoid schema check when auto-create-table-hint is disabled
2024-09-10 07:13:28 +00:00
Ruihang Xia
29f215531a
feat: parallel in row group level under append mode ( #4704 )
...
feat: append in row group level under append mode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-09-10 07:12:23 +00:00
jeremyhi
545a80c6e0
chore: remove unused method ( #4703 )
2024-09-09 12:14:17 +00:00
Yohan Wal
04e7dd6fd5
feat: add json data type ( #4619 )
...
* feat: add json type and vector
* fix: allow to create and insert json data
* feat: udf to query json as string
* refactor: remove JsonbValue and JsonVector
* feat: show json value as strings
* chore: make ci happy
* test: adunit test and sqlness test
* refactor: use binary as grpc value of json
* fix: use non-preserve-order jsonb
* test: revert changed test
* refactor: change udf get_by_path to jq
* chore: make ci happy
* fix: distinguish binary and json in proto
* chore: delete udf for future pr
* refactor: remove Value(Json)
* chore: follow review comments
* test: some tests and checks
* test: fix unit tests
* chore: follow review comments
* chore: corresponding changes to proto
* fix: change grpc and pgsql server behavior alongside with sqlness/crud tests
* chore: follow review comments
* feat: udf of conversions between json and strings, used for grpc server
* refactor: rename to_string to json_to_string
* test: add more sqlness test for json
* chore: thanks for review :)
* Apply suggestions from code review
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-09-09 11:41:36 +00:00
jeremyhi
dc89944570
feat: gRPC auto create table hint ( #4700 )
...
* feat: gRPC auto create table hint
* chore: remove the checking of auto_create_table_hint
2024-09-09 09:07:07 +00:00
Weny Xu
8bf549c2fa
chore: print downgraded region last_entry_id ( #4701 )
2024-09-09 08:14:55 +00:00
Lei, HUANG
208afe402b
feat(wal): increase recovery parallelism ( #4689 )
...
* Refactor RaftEngineLogStore to use references for config
- Updated `RaftEngineLogStore::try_new` to accept a reference to `RaftEngineConfig` instead of taking ownership.
- Replaced direct usage of `config` with individual fields (`sync_write`, `sync_period`, `read_batch_size`).
- Adjusted test cases to pass references to `RaftEngineConfig`.
* Add parallelism configuration for WAL recovery
- Introduced `recovery_parallelism` setting in `datanode.example.toml` and `standalone.example.toml` for configuring parallelism during WAL recovery.
- Updated `Cargo.lock` and `Cargo.toml` to include `num_cpus` dependency.
- Modified `RaftEngineConfig` to include `recovery_parallelism` with a default value set to the number of CP
* feat/wal-recovery-parallelism:
Add `wal.recovery_parallelism` configuration option
- Introduced `wal.recovery_parallelism` to config.md for specifying parallelism during WAL recovery.
- Updated `RaftEngineLogStore` to include `recovery_threads` from the new configuration.
* fix: ut
2024-09-09 04:25:24 +00:00
Ning Sun
c22a398f59
fix: return version string based on request protocol ( #4680 )
...
* fix: return version string based on request protocol
* fix: resolve lint issue
2024-09-09 03:36:54 +00:00
JohnsonLee
a8477e4142
fix: table resolving logic related to pg_catalog ( #4580 )
...
* fix: table resolving logic related to pg_catalog
refer to
https://github.com/GreptimeTeam/greptimedb/issues/3560#issuecomment-2287794348
and #4543
* refactor: remove CatalogProtocol type
* fix: sqlness
* fix: forbid create database pg_catalog with mysql client
* refactor: use QueryContext as arguments rather than Channel
* refactor: pass None as default behaviour in information_schema
* test: fix test
v0.10.0-nightly-20240909
2024-09-09 00:47:59 +00:00
Yiran
b950e705f5
chore: update the document link in README.md ( #4690 )
2024-09-07 15:27:32 +00:00
Ruihang Xia
d2d62e0c6f
fix: unconditional statistics ( #4694 )
...
* fix: unconditional statistics
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-09-07 04:28:11 +00:00
localhost
5d9f8a3be7
feat: add test pipeline api ( #4667 )
...
* chore: add test pipeline api
* chore: add test for test pipeline api
* chore: fix taplo check
* chore: change pipeline dryrun api path
* chore: add more info for pipeline dryrun api
2024-09-06 08:36:49 +00:00
jeremyhi
e88465840d
feat: add extension field to HeartbeatRequest ( #4688 )
...
* feat: add extension field to HeartbeatRequest
* chore: extension to extensions
* chore: upgrade proto
2024-09-06 08:29:20 +00:00
localhost
67d95d2088
refactor!: add processor builder and transform buidler ( #4571 )
...
* chore: add processor builder and transform buidler
* chore: in process
* chore: intermediate state from hashmap to vector in pipeline
* chore: remove useless code and rename some struct
* chore: fix typos
* chore: format code
* chore: add error handling and optimize code readability
* chore: fix typos
* chore: remove useless code
* chore: add some doc
* chore: fix by pr commit
* chore: remove useless code and change struct name
* chore: modify the location of the find_key_index function.
2024-09-06 07:51:08 +00:00
Yingwen
506dc20765
fix: last non null iter not init ( #4687 )
v0.9.3
2024-09-06 04:13:23 +00:00
Lei, HUANG
114772ba87
chore: bump version v0.9.3 ( #4684 )
2024-09-06 02:31:41 +00:00
liyang
89a3da8a3a
chore(dockerfile): remove mysql and postgresql clients in greptimedb image ( #4685 )
2024-09-05 16:00:53 +00:00
jeremyhi
8814695b58
feat: invalidate cache via invalidator on region migration ( #4682 )
...
feat: invalidate table via invalidator on region migration
2024-09-05 06:15:38 +00:00
Lanqing Yang
86cef648cd
feat: add more spans to mito engine ( #4643 )
...
feat: add more span on mito engine
2024-09-05 06:13:22 +00:00
Ning Sun
e476e36647
feat: add geohash and h3 as built-in functions ( #4656 )
...
* feat: add built-in functions h3 and geohash
* tests: add sqlness tests for geo functions
* doc: correct h3 comment
* fix: lint error
* fix: toml format
* refactor: address review comments
* test: add more sqlness cases
* Apply suggestions from code review
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-09-05 04:42:29 +00:00
shuiyisong
4781b327f3
fix: ref to auth err ( #4681 )
...
* fix: ref to auth err
* fix: typo
2024-09-05 04:05:39 +00:00
LFC
3e4a69017d
build: add mysql and postgresql clients to greptimedb image ( #4677 )
2024-09-04 11:38:47 +00:00
LFC
d43e31c7ed
feat: schedule compaction when adding sst files by editing region ( #4648 )
...
* feat: schedule compaction when adding sst files by editing region
* add minimum time interval for two successive compactions
* resolve PR comments
2024-09-04 10:10:07 +00:00
discord9
19e2a9d44b
feat: change log level dynamically ( #4653 )
...
* feat: add dyn_log handle
* feat: use reload handle
* chore: per review
2024-09-04 07:54:50 +00:00
zyy17
8453df1392
refactor: make init_global_logging() clean and add log_format ( #4657 )
...
refactor: refine the code logic of init_global_logging and add json output format
2024-09-04 03:04:51 +00:00
Ruihang Xia
8ca35a4a1a
fix: use number of partitions as parallilism in region scanner ( #4669 )
...
* fix: use number of partitions as parallilism in region scanner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Lei HUANG <mrsatangel@gmail.com >
* order by ts
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* debug pring time range
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Lei HUANG <mrsatangel@gmail.com >
2024-09-03 13:42:38 +00:00
Ruihang Xia
93f202694c
refactor: remove unused error variants ( #4666 )
...
* add python script
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unused errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix all negative cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* setup CI
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add license header
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-09-03 13:19:38 +00:00
Weny Xu
b52e3c694a
chore(ci): set etcd resources limits ( #4665 )
2024-09-03 07:25:23 +00:00
dennis zhuang
a612b67470
feat: supports name in object storage config ( #4630 )
...
* feat: supports name in object storage config
* fix: integration test
* fix: integration test
* fix: update sample config
* fix: config api test
2024-09-03 07:02:55 +00:00
jeremyhi
9b03940e03
chore: refactor metadata key value trait ( #4664 )
2024-09-03 07:00:24 +00:00
jeremyhi
8d6cd8ae16
feat: export import database ( #4654 )
...
* feat: export database create sql
* feat: import create database
* Update src/cmd/src/cli/export.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* Update src/cmd/src/cli/import.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* Update src/cmd/src/error.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* chore: make show create fail fast
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-09-03 04:45:25 +00:00
dennis zhuang
8f4ec536de
feat: grpc writing supports TTL hint ( #4651 )
2024-09-03 02:15:01 +00:00
zyy17
f0e2d6e663
fix: use 'target' for 'actions-rust-lang/setup-rust-toolchain' to fix cross build failed ( #4661 )
v0.10.0-nightly-20240902
2024-09-02 06:11:12 +00:00
Weny Xu
306bd25c64
fix: expose missing options for initializing regions ( #4660 )
...
* fix: expose `init_regions_in_background` and `init_regions_parallelism` opts
* fix: ci
2024-09-02 03:11:18 +00:00
zyy17
ddafcc678c
ci: disable macos integration test and some minor refactoring ( #4658 )
2024-09-02 03:06:17 +00:00
Weny Xu
2564b5daee
fix: correct otlp endpoint formatting ( #4646 )
2024-09-02 02:59:50 +00:00
Lei, HUANG
37dcf34bb9
fix(mito): avoid caching empty batches in row group ( #4652 )
...
* fix: avoid caching empty batches in row group
* fix: clippy
* Update tests/cases/standalone/common/select/last_value.sql
* fix: sqlness
2024-09-02 02:43:00 +00:00
Yingwen
8eda36bfe3
feat: remove files from the write cache in purger ( #4655 )
...
* feat: remove files from the write cache in purger
* chore: fix typo
2024-08-31 04:19:52 +00:00
Ruihang Xia
68b59e0e5e
feat: remove the requirement that partition column must be PK ( #4647 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-31 03:16:01 +00:00
Ruihang Xia
a37aeb2814
feat: initialize partition range from ScanInput ( #4635 )
...
* feat: initialize partition range from ScanInput
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use num_rows instead
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add todo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* setup unordered scan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/mito2/src/read/scan_region.rs
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
* leave unordered scan unchanged
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
2024-08-30 07:30:37 +00:00
jeremyhi
f641c562c2
feat: show create database ( #4642 )
...
* feat: show create database
* feat: add sqlness test
* chore: reorder mod and use
* feat: show create schema
* Update src/frontend/src/instance.rs
2024-08-30 03:58:11 +00:00