discord9
28fd0dc276
feat(flow): render map&related tests ( #3581 )
...
* feat: render map&related tests
* chore: license header
* chore: update Cargo.lock&remove unused
* refactor: rename ComputeState to DataflowState
* chore: use org fork
* chore: fix typos
* chore: per review
* chore: more explain to use `VecDeque` in err collector
* chore: typos
* chore: more comment on `Plan::Let`
* chore: typos
* refactor mfp rendering
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: update `now` in closure
* feat: use insert_local
* chore: remove unused
* chore: per review
* chore: fmt comment
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
2024-04-08 11:36:07 +00:00
Weny Xu
32b9639d7c
feat(procedure): support to rollback ( #3625 )
...
* feat: add rollback method
* refactor: simplify the state control
* feat(procedure): support to rollback
* test: add tests for rollback
* feat: persist rollback procedure state
* feat: rollback procedure after restarting
* feat: add `CommitRollback`, `RollingBack` to ProcedureStateResponse
* chore: apply suggestions from CR
* feat: persist rollback error
* feat: add `is_support_rollback`
* chore: apply suggestions from CR
* chore: update greptime-proto
* chore: rename to `rollback_supported`
* chore: rename to `RollbackProcedureRecovered`
2024-04-08 11:23:23 +00:00
ZonaHe
9038e1b769
feat: update dashboard to v0.4.10 ( #3663 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
v0.7.2
2024-04-08 16:35:41 +08:00
JeremyHi
12286f07ac
feat: cluster information ( #3631 )
...
* chore: keep the same method order in KvBackend
* feat: make meta client can get all node info of cluster
* feat: cluster info data model
* feat: frontend and datanode info
* feat: list node info
* chore: remove the method: is_started
* fix: scan key prefix
* chore: impl From for NodeInfoKey
* chore: doc for trait and struct
* chore: reuse the error
* chore: refactor two collec cluster info handlers
* chore: remove inline
* chore: refactor two collec cluster info handlers
2024-04-08 07:48:36 +00:00
tison
e920f95902
refactor: drop Table trait ( #3654 )
...
* refactor: drop Table trait
Signed-off-by: tison <wander4096@gmail.com >
* finish rename
Signed-off-by: tison <wander4096@gmail.com >
* Apply suggestions from code review
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
* Update time_range_filter_test.rs
* Update src/query/src/tests/time_range_filter_test.rs
* apply comments
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
2024-04-08 07:28:55 +00:00
Yohan Wal
c4798d1913
refactor: move create database to procedure ( #3626 )
...
* refactor: move create database to procedure
* feat: enable database creation of rpc
* chore: update the commit hash of greptime-proto
2024-04-08 07:05:55 +00:00
Ruihang Xia
2ede968c2b
chore: bump version to 0.7.2 ( #3658 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-08 06:33:29 +00:00
Yingwen
89db8c18c8
feat: Add timers to more mito methods ( #3659 )
...
* feat: add timers for more mito methods
* refactor: combine methods to get type name
2024-04-08 05:53:34 +00:00
LFC
aa0af6135d
chore: add manifest related metrics ( #3634 )
...
* chore: add two manifest related metrics
* Update src/mito2/src/manifest/manager.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/mito2/src/metrics.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: resolve PR comments
* update cargo lock
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-04-08 05:53:08 +00:00
dennis zhuang
87e0189e58
fix!: columns table in information_schema misses some columns ( #3639 )
...
* fix: columns table in information_schema misses some columns
* fix: test_information_schema_dot_columns
* fix: fuzz test
* feat: adds srs_id and refactor some columns with constant vector
* fix: test_information_schema_dot_columns
* chore: update comment
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* build(deps): bump h2 from 0.3.24 to 0.3.26 (#3642 )
Bumps [h2](https://github.com/hyperium/h2 ) from 0.3.24 to 0.3.26.
- [Release notes](https://github.com/hyperium/h2/releases )
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.26/CHANGELOG.md )
- [Commits](https://github.com/hyperium/h2/compare/v0.3.24...v0.3.26 )
---
updated-dependencies:
- dependency-name: h2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump whoami from 1.4.1 to 1.5.1 (#3643 )
Bumps [whoami](https://github.com/ardaku/whoami ) from 1.4.1 to 1.5.1.
- [Changelog](https://github.com/ardaku/whoami/blob/v1/CHANGELOG.md )
- [Commits](https://github.com/ardaku/whoami/compare/v1.4.1...v1.5.1 )
---
updated-dependencies:
- dependency-name: whoami
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: adding victoriametrics remote write (#3641 )
* feat: adding victoria metrics remote write
* test: add e2e tests for prom and vm remote writes
* fix: construct correct pk list with pre-existing pk (#3614 )
* fix: construct correct pk list with pre-existing pk
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update UT
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* test(sqlness): release databases after tests (#3648 )
* refactor: rename Greptime_Type to Greptime_type
---------
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ning Sun <sunng@protonmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-04-08 03:20:49 +00:00
tison
7e8e9aba9d
chore: generate release notes with git-cliff ( #3650 )
...
* chore: generate release notes with git-cliff
Signed-off-by: tison <wander4096@gmail.com >
* chore: newlines
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-04-08 03:09:35 +00:00
tison
c93b76ae5f
ci: bump license header checker action version ( #3655 )
2024-04-08 10:38:03 +08:00
Weny Xu
097a0371dc
test(sqlness): release databases after tests ( #3648 )
2024-04-07 09:35:34 +00:00
Ruihang Xia
b9890ab870
fix: construct correct pk list with pre-existing pk ( #3614 )
...
* fix: construct correct pk list with pre-existing pk
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update UT
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-07 08:11:52 +00:00
Ning Sun
b32e0bba9c
feat: adding victoriametrics remote write ( #3641 )
...
* feat: adding victoria metrics remote write
* test: add e2e tests for prom and vm remote writes
2024-04-07 07:09:21 +00:00
dependabot[bot]
fe1a0109d8
build(deps): bump whoami from 1.4.1 to 1.5.1 ( #3643 )
...
Bumps [whoami](https://github.com/ardaku/whoami ) from 1.4.1 to 1.5.1.
- [Changelog](https://github.com/ardaku/whoami/blob/v1/CHANGELOG.md )
- [Commits](https://github.com/ardaku/whoami/compare/v1.4.1...v1.5.1 )
---
updated-dependencies:
- dependency-name: whoami
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-05 19:02:36 -07:00
dependabot[bot]
11995eb52e
build(deps): bump h2 from 0.3.24 to 0.3.26 ( #3642 )
...
Bumps [h2](https://github.com/hyperium/h2 ) from 0.3.24 to 0.3.26.
- [Release notes](https://github.com/hyperium/h2/releases )
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.26/CHANGELOG.md )
- [Commits](https://github.com/hyperium/h2/compare/v0.3.24...v0.3.26 )
---
updated-dependencies:
- dependency-name: h2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-05 19:02:19 -07:00
dimbtp
86d377d028
fix: move object store read/write timer into inner ( #3627 )
...
* fix: move object store read/write timer into inner
* add Drop for PrometheusMetricWrapper
* call await on async read/write
* apply review comments
* git rid of option on timer
2024-04-03 12:24:34 +00:00
Lei, HUANG
ddeb73fbb7
fix: mistakely removes compaction inputs on failure ( #3635 )
...
* fix: mistakely removes compaction inputs on failure
* test: add test for compaction failure
---------
Co-authored-by: evenyag <realevenyag@gmail.com >
2024-04-03 11:54:20 +00:00
niebayes
d33435fa84
feat: introduce wal benchmarker ( #3446 )
...
* feat: introduce wal benchmarker
* chore: add log store metrics
* chore: add some comments to wal benchmarker
* fix: ci
* chore: add more metrics for kafka logstore
* chore: add more timers for kafka logstore
* chore: add more configs
* chore: move humantime to common dependencies
* refactor: refactor wal benchmarker
* fix: apply suggestions from code review
* doc: add a simple README for wal benchmarker
* fix: Cargo.toml
* fix: clippy
* chore: rename wal.rs to wal_bench.rs
* fix: compile
2024-04-03 03:16:05 +00:00
Weny Xu
a0f243c128
feat(procedure): enable auto split large value ( #3628 )
...
* chore: add comments
* chore: remove `pub`
* chore: rename to `merge_multiple_values`
* chore: fix typo
* feat(procedure): enable auto split large value
* chore: apply suggestions from CR
* chore: rename to `max_metadata_value_size`
* chore: remove the NoneAsEmptyString
* chore: set default max_metadata_value_size to 1500KiB
2024-04-02 12:13:59 +00:00
JeremyHi
a61fb98e4a
refactor: alter logical tables ( #3618 )
...
* refactor: on prepare
* refactor: on create regions
* refactor: update metadata
2024-04-02 06:21:34 +00:00
Weny Xu
6c316d268f
feat(procedure): auto split large value to multiple values ( #3605 )
...
* feat: implement MultipleValuesStream
* refactor: move KeySet to common-procedure
* refactor: move MultipleValuesStream to common-procedure
* refactor: refactor String to KeySet
* fix: fix dropping `collecting` unexpectedly
* fix: fix typo
* refactor: add the fast path of put
* refactor: remove `single_value_collector`
* refactor: use `extend` instead of `push`
* test: add more tests for `KvStateStore`
* test(etcd_store): add more tests for `KvStateStore`
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* refactor: refactor with async_stream
* Update src/common/procedure/src/store/util.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-04-01 12:04:29 +00:00
Lei, HUANG
5e24448b96
feat: reject invalid timestamp ranges in copy statement ( #3623 )
...
* chore: reject invalid timestamp ranges in copy statement
* tests: add unit tests
2024-04-01 08:25:31 +00:00
JohnsonLee
d6b2d1dfb8
feat: Support outputting various date styles for postgresql ( #3602 )
...
* test: add integration_test for datetime style
* feat: support various datestyle for postgres
* doc: rewrite the comment about merge_datestyle_value
* test: add more test to illustrate valid datestyle input
2024-04-01 07:31:36 +00:00
Yingwen
bfd32571d9
fix: run purge jobs in another scheduler ( #3621 )
2024-04-01 03:18:14 +00:00
JeremyHi
0eb023bb23
feat: group requests by peer ( #3619 )
2024-04-01 03:10:22 +00:00
dennis zhuang
4a5bb698a9
feat: impl show index and show columns ( #3577 )
...
* feat: impl show index and show columns
* fix: show index from database
* fix: canonicalize table name
* refactor: show parsers
v0.8.0-nightly-20240401
2024-03-29 18:34:52 +00:00
Eugene Tolbakov
18d676802a
feat(function): add timestamp epoch integer support for to_timezone ( #3620 )
...
* feat(function): add timestamp epoch integer support for to_timezone
* chore: fmt
2024-03-29 18:33:24 +00:00
JeremyHi
93da45f678
feat: let alter table procedure can only alter physical table ( #3613 )
...
* feat: let alter table procedure can only alter physicale table
* chore: rm unnecessary todo
2024-03-29 09:50:33 +00:00
Ruihang Xia
7a19f66be0
ci: ignore type in sqlness sql and result files ( #3616 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-29 09:39:37 +00:00
Ning Sun
500f9f10fc
feat: allow cross-schema query in promql ( #3545 )
...
* feat: add __schema__ tag for promql parser
* feat: disable matcher op other than equals
* test: add more test to ensure context getting reset
* test: add integration test
* test: refactor tests
* refactor: remove duplicated test code
* refactor: update according to review comments
* test: add sqlness test for cross schema scenario
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-29 07:41:01 +00:00
JeremyHi
f49cd0ca18
refactor: cache invalidator ( #3611 )
...
* chore: remove some alias
* refactor: cache invalidator
2024-03-29 07:33:51 +00:00
Yingwen
ffbb132f27
feat: Implement an unordered scanner for append mode ( #3598 )
...
* feat: ScanInput
* refactor: seq scan use scan input
* chore: implement unordered scan
* feat: use unordered scan for append table
* fix: unordered scan panic
* docs: update mermaid
* chore: address comment
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2024-03-29 07:25:35 +00:00
Eugene Tolbakov
14267c2aed
feat(tql): add initial support for start,stop,step as sql functions ( #3507 )
...
* feat(tql): add initial support for start,stop,step as sql functions
* fix(tql): remove unwraps, adjust fmt
* fix(tql): address taplo issue
* feat(tql): update parse_tql_query logic
* fix(tql): change query parsing logic to use parser instead of delimiter
* fix(tql): add timestamp function support, add sqlness tests
* fix(tql): add lookback optional param for tql eval
* fix(tql): adjust tests for now() function
* fix(tql): introduce the tqlerror to differentiate failures on parsing, evaluation and simplification stages
* fix(tql): add tests for explain/analyze
* feat(tql): add lookback support for explain/analyze, update tests
* feat(tql): add more sqlness tests
* chore(tql): extract common logic for eval, analyze and explain into a single function
* feat(tql): address CR points
* feat(tql): use snafu for tql errors, add more docs
* feat(tql): address CR points
2024-03-29 06:37:25 +00:00
Ruihang Xia
77cc7216af
feat: support 2+2 and /status/buildinfo ( #3604 )
...
* feat: implement buildinfo endpoint
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor prom result struct
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more integration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* format toml file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/servers/src/http/prometheus_resp.rs
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-29 06:31:39 +00:00
Zhenchi
63681f0e4d
refactor(table): remove unused table requests ( #3603 )
...
* refactor(table): remove unused requests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* update comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: clippy
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: compile
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-03-28 11:31:14 +00:00
Ruihang Xia
06a90527a3
fix: adjust status code to http error code map ( #3601 )
...
* fix: adjust status code to http error code map
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update integration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-28 08:54:51 +00:00
niebayes
d5ba2fcf9d
test: add more integration test for kafka wal ( #3190 )
...
* test: add integration tests for kafka wal
* chore: rebase main
* chore: unify naming convention for wal config
* chore: add register loaders switch
* chore: alter tables by adding a new column
* chore: move rand to dev-dependencies
* chore: update Cargo.lock
2024-03-28 06:55:18 +00:00
dennis zhuang
e3b37ee2c9
fix: canonicalize catalog and schema names ( #3600 )
2024-03-28 06:40:15 +00:00
dennis zhuang
5d7ce08358
feat: adds metric engine to information_schema engines table ( #3599 )
...
* feat: adds metric engine to information_schema engines table
* fix: support value for metric engine
2024-03-28 06:37:34 +00:00
JeremyHi
92a8e863de
chore: do not reply for broadcast msg ( #3595 )
2024-03-27 11:39:23 +00:00
JeremyHi
9428cb8e7c
feat: remove support for logical tables in the create table procedure ( #3592 )
...
* feat: Remove support for logical tables in the create table procedure
* chore: remove the redandent table ids alloc
* chore: minor fix
2024-03-27 10:03:42 +00:00
Weny Xu
5addb7d75a
test: add tests for drop databases ( #3594 )
...
* refactor: minimize visibility of drop database steps
* feat: implement as_any
* refactor: move common functions to test_util
* test: add tests for drop databases
* fix: fix deteling physical table route unexpectedly
2024-03-27 09:18:37 +00:00
Weny Xu
623c930736
refactor: refactor drop table executor ( #3589 )
...
* refactor: refactor drop table executor
* chore: apply suggestions from CR
2024-03-27 06:29:54 +00:00
JeremyHi
5fa01e7a96
feat: create regions persist true ( #3590 )
...
* feat: change open-region-step's status persist as true
* feat: avoid cloning
* fix: fix unit test
2024-03-27 06:26:58 +00:00
Yingwen
922b1a9b66
feat: Implement append mode for a region ( #3558 )
...
* feat: add dedup option to merge reader
* test: test merger
* feat: append mode option
* feat: implement append mode for regions
* feat: only allow put under append mode
* feat: always create builder
* test: test append mode
* style: fix clippy
* test: trigger compaction
* chore: fix compiler errors
2024-03-27 03:21:22 +00:00
shuiyisong
653697f1d5
chore: add back core dependency ( #3588 )
2024-03-26 19:53:22 -07:00
JohnsonLee
83643eb195
feat: Support printing postgresql's bytea data type in its "hex" and "escape" format ( #3567 )
...
* feat: support set variable statement of session
* feat: support printing postgresql's bytea data type in its "hex" and "escape" format in ugly way
* refactor: add 'SessionConfigValue' type and unify the name
* doc: add license header
* refactor: confine coupling with 'sql::ast::Value' in SessionConfigValue
* refactor: move all bytea wrapper into bytea.rs
* fix: remove unused import in context.rs and postgres.rs
* refactor: rename 'set_configuration_parameter' to 'set_session_config'
rename 'set_configuration_parameter' in statement_.rs to 'set_session_config'
* refactor: use mod to organize options via macro
* refactor: re-model the session config value with static type
* test: add integration test
* refactor: move the encode bytea by format type logic into encoder
refactor: use Arc<DashMap> instead of DashMap in QueryContext
refactor: use Arc<DashMap> instead of DashMap in QueryContext
Avoid expensive clone
refactor: use unreachable!() instead of unimplemented!()
refactor: move the encode bytea by format type logic into encoder
test: add binary format integration test case
* test: add ut for byte related type
* doc: remove TODO of bytea_output
* refactor: simplify the implementation with simple struct instead of complex typing
* fix: typo of 'Available'
* fix compile
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-03-27 01:54:41 +00:00
tison
d83279567b
feat(auth): watch file user provider ( #3566 )
...
* feat(auth): watch file user provider
Signed-off-by: tison <wander4096@gmail.com >
* impl
Signed-off-by: tison <wander4096@gmail.com >
* use debouncer
Signed-off-by: tison <wander4096@gmail.com >
* add test
Signed-off-by: tison <wander4096@gmail.com >
* clippy
Signed-off-by: tison <wander4096@gmail.com >
* add path for FileWatch snafu
Signed-off-by: tison <wander4096@gmail.com >
* Apply comments
Signed-off-by: tison <wander4096@gmail.com >
* fix compile
Signed-off-by: tison <wander4096@gmail.com >
* drop notify-debouncer-full dep
Signed-off-by: tison <wander4096@gmail.com >
* empty to allow all
Signed-off-by: tison <wander4096@gmail.com >
* more test and log
Signed-off-by: tison <wander4096@gmail.com >
* relax the wait period
Signed-off-by: tison <wander4096@gmail.com >
* avoid sleep
Signed-off-by: tison <wander4096@gmail.com >
* Revert "avoid sleep"
This reverts commit d7a0be1dea .
* avoid sleep
Signed-off-by: tison <wander4096@gmail.com >
* cargo fmt
Signed-off-by: tison <wander4096@gmail.com >
* tidy dep
Signed-off-by: tison <wander4096@gmail.com >
* adjust
Signed-off-by: tison <wander4096@gmail.com >
* try be stable on CI
Signed-off-by: tison <wander4096@gmail.com >
* deugging
Signed-off-by: tison <wander4096@gmail.com >
* debugging
Signed-off-by: tison <wander4096@gmail.com >
* watch on the dir
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-03-27 01:19:18 +00:00