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
2024-09-09 00:47:59 +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 )
2024-09-06 04:13:23 +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
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
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
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
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
Lanqing Yang
9286e963e7
chore: adding heartbeat sent/recv counts in greptimedb nodes ( #4624 )
...
obs: adding heartbeat sent/recv counts in greptimedb nodes
2024-08-30 03:57:16 +00:00
LFC
8ea4f67e4b
refactor: reduce a object store "stat" call ( #4645 )
2024-08-30 03:31:19 +00:00
jeremyhi
5e4bac2633
feat: import cli tool ( #4639 )
...
* feat: import create tables
* feat: import databasse
* fix: export view schema
2024-08-29 09:32:21 +00:00
LFC
d45b04180c
feat: pre-download the ingested sst ( #4636 )
...
* refactor: pre-read the ingested sst file in object store to fill the local cache to accelerate first query
* feat: pre-download the ingested SST from remote to accelerate following reads
* resolve PR comments
* resolve PR comments
2024-08-29 08:36:41 +00:00
discord9
8c8499ce53
perf(flow): Map&Reduce Operator use batch to reduce alloc ( #4567 )
...
* feat: partial impl mfp
* feat: eval batch inner
* chore: fmt
* feat: mfp eval_batch
* WIP
* feat: Collection generic over row&Batch
* feat: render source batch
* chore: chore
* feat: render mfp batch
* feat: render reduce batch(WIP)
* feat(WIP): render reduce
* feat: reduce batch
* feat: render sink batch
* feat: render constant batch
* chore: error handling& mfp batch test
* test: mfp batch
* chore: rm import
* test: render reduce batch
* chore: add TODO
* chore: per bot review
* refactor: per review
* chore: cmt
* chore: rename
* docs: update no panic
2024-08-29 07:28:13 +00:00
Weny Xu
79f40a762b
fix: set selector_result_cache_size in unit test again ( #4641 )
2024-08-29 07:14:40 +00:00
jeremyhi
b062d8515d
feat: copy database ignores view and temporary tables ( #4640 )
...
feat: copy database ingores view and temporary tables
2024-08-29 06:17:51 +00:00
discord9
9f9c1dab60
feat(flow): use DataFusion's optimizer ( #4489 )
...
* feat: use datafusion optimization
refactor: mv `sql_to_flow_plan` elsewhere
feat(WIP): use df optimization
WIP analyzer rule
feat(WIP): avg expander
fix: transform avg expander
fix: avg expand
feat: names from substrait
fix: avg rewrite
test: update `test_avg`&`test_avg_group_by`
test: fix `test_sum`
test: fix some tests
chore: remove unused flow plan transform
feat: tumble expander
test: update tests
* chore: clippy
* fix: tumble lose `group expr`
* test: sqlness test update
* test: rm unused cast
* test: simplify sqlness
* refactor: per review
* chore: after rebase
* fix: remove a outdated test
* test: add comment
* fix: report error when not literal
* chore: update sqlness test after rebase
* refactor: per review
2024-08-29 02:52:00 +00:00
dennis zhuang
841e66c810
fix: config api and export metrics default database ( #4633 )
2024-08-28 14:28:49 +00:00
Weny Xu
47657ebbc8
feat: replay WAL entries respect index ( #4565 )
...
* feat(log_store): use new `Consumer`
* feat: add `from_peer_id`
* feat: read WAL entries respect index
* test: add test for `build_region_wal_index_iterator`
* fix: keep the handle
* fix: incorrect last index
* fix: replay last entry id may be greater than expected
* chore: remove unused code
* chore: apply suggestions from CR
* chore: rename `datanode_id` to `location_id`
* chore: rename `from_peer_id` to `location_id`
* chore: rename `from_peer_id` to `location_id`
* chore: apply suggestions from CR
2024-08-28 11:37:18 +00:00
Ruihang Xia
64ae32def0
feat: remove some redundent clone/conversion on constructing MergeScan stream ( #4632 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-28 08:52:09 +00:00
Weny Xu
744946957e
fix: set selector_result_cache_size in unit test ( #4631 )
2024-08-28 07:24:17 +00:00
Ruihang Xia
d5455db2d5
fix: update properties on updating partitions ( #4627 )
...
* fix: update properties on updating partitions
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add unit test and handle insufficient ranges
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-28 07:06:01 +00:00
Yingwen
28bf549907
fix: fallback to window size in manifest ( #4629 )
2024-08-28 06:43:56 +00:00
zyy17
eacc7bc471
refactor: add app in greptime_app_version metric ( #4626 )
...
refactor: add app in greptime_app_version metric
2024-08-27 11:19:01 +00:00