Weny Xu
89dbf6ddd2
chore: bump proto to 219b24 ( #3899 )
...
chore: bump to 219b24
2024-05-10 03:55:34 +00:00
Ruihang Xia
66aa08d815
fix: memory leak in unit test of telemetry ( #3897 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-09 14:29:22 +00:00
Weny Xu
b8a325d18c
feat: implement CacheContainer & TableFlownodeSetCache ( #3885 )
...
* feat: implement the `CacheContainer`
* feat: implement the `TableFlownodeSetCache`
* chore: remove unused feature
* chore: remove unused `Arc`
* refactor: refactor origin `get` to `get_by_ref`
* chore: update comments
* refactor: refactor `CacheContainer`
* chore: move `CacheContainer` to container.rs
* feat: add metrics
* chore: update tests
* test: add tests for value not exists
* test: add test for get
* chore: apply suggestions from CR
2024-05-09 09:26:35 +00:00
Ruihang Xia
ed95e99556
chore: deprecate nyc-taxi benchmark ( #3891 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-09 08:59:38 +00:00
Weny Xu
5545a8b023
feat: implement drop flow procedure ( #3877 )
...
* feat: implement `destroy_flow_metadata` method
* chore: bump proto to 65c1364
* feat: implement the drop flow procedure
* feat: add `MockFlownodeManager`
* tests: add tests for create flow & drop flow procedure
* chore: apply suggestions from CR
* chore: use `ClusterId`
2024-05-09 08:23:19 +00:00
Weny Xu
5140d247e3
feat: implement drop flow parser ( #3888 )
...
* feat: implement drop flow parser
* Update src/sql/src/parsers/drop_parser.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* fix: fmt code
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-09 07:14:22 +00:00
Jeremyhi
f995f6099f
chore: avoid double future ( #3890 )
2024-05-09 07:11:22 +00:00
Jeremyhi
7de62ef5d0
feat: add metasrv start time to node info ( #3883 )
2024-05-09 06:53:55 +00:00
Weny Xu
0e05f85a9d
feat: pass QueryContext to FlowRequestHeader ( #3878 )
...
* feat: pass `QueryContext` to `DdlTaskRequest`
* feat: pass `QueryContext` to `FlowRequestHeader`
* chore: fmt toml
2024-05-09 04:57:33 +00:00
Ruihang Xia
a6a702de4e
feat: support querying field column names in Prometheus HTTP API ( #3880 )
...
* feat: support querying field column names in Prometheus HTTP API
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use tables stream API
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-08 12:18:20 +00:00
Weny Xu
d99746385b
refactor: move mirror insertion tasks to the background runtime ( #3879 )
2024-05-08 07:41:06 +00:00
Yingwen
9d8f72d611
fix: add data type to vector cache key ( #3876 )
...
* test: test for null tag
* test: sqlness test
* fix: add type to vector cache key
* test: update sqlness test
2024-05-08 06:30:28 +00:00
Lei, HUANG
c07a1babd5
refactor(logstore): remove Entry::namemspace ( #3875 )
...
refactor(logstore): remove LogStore::namemspace and related associate types on Entry.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
2024-05-08 06:13:33 +00:00
zyy17
cc8d6b1200
refactor: move Plugins to plugins.rs and use rwlock ( #3862 )
...
* refactor: move `Plugins` to `plugins.rs` and add unit tests
* refactor: use rwlock instead of mutex to improve performance
2024-05-07 23:32:22 +00:00
irenjj
5274806108
feat: limit total rows copied in COPY TABLE FROM stmt ( #3819 )
...
* feat: limit total rows copied in `COPY TABLE FROM` stmt
* fix: break outer loop
* fmt
* fixup
* test: add limit rows test
* fix test
* fix test: add drop
* fix test
* fix test
* fix test
* fix: change to const
2024-05-07 15:44:02 +00:00
Jeremyhi
6e1cc1df55
feat: metasrvs nodeinfo ( #3873 )
...
* feat: get metasrv nodeinfo
* fix: sqlness test
* chore: by comment
* feat: proto version
2024-05-07 11:20:57 +00:00
Ruihang Xia
65f80af9a9
build: run cargo gc to build binaries ( #3874 )
...
* build: run cargo gc to build binaries
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-07 11:16:47 +00:00
zyy17
a68072cb21
refactor: add the main cli entry point struct Command{} and simplify main() ( #3850 )
...
refactor: add the main cli entrypoint struct `Command{}` to simplify `main()`
2024-05-07 09:08:35 +00:00
Ruihang Xia
71c1c7ca24
fix: return metric name instead of query in Prometheus /series API ( #3864 )
...
* fix: return metric name instead of query in Prometheus /series API
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* omit non-tag columns from result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-07 09:07:16 +00:00
Weny Xu
1b5862223c
fix: register regions during procedure recovery ( #3859 )
...
* fix: register regions during procedure recovery
* feat: add `recover` to `Procedure` trait
* refactor: move recovery to `recover` method
2024-05-07 08:30:41 +00:00
Ruihang Xia
c0be0c30de
build: strip sqlness binary ( #3872 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-07 07:53:48 +00:00
Kelvin Wu
154f561da1
refactor: passing QueryContext to RegionServer ( #3829 )
...
* refactor: passing QueryContext to RegionServer
* refactor: change the return type of build() in QueryContextBuilder
* fix: update greptime-proto reference
* chore: apply suggestion
* chore: revert the last commit
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-05-07 15:10:59 +08:00
Weny Xu
aa2934b422
docs: run fuzz tests in dev mode & disable sanitizer ( #3871 )
...
doc: run fuzz tests in dev mode & disable sanitizer
2024-05-07 14:15:07 +08:00
shuiyisong
1b93a026c2
ci: align clippy checks and fixup ( #3868 )
...
* fix: make clippy
* fix: use make in CI
2024-05-07 03:00:38 +00:00
Ruihang Xia
530353785c
refactor: remove re-export from logging ( #3865 )
...
* refactor: remove re-export from logging
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix merge problem
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* run formatter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-06 13:26:01 +00:00
discord9
573c19be32
feat(flow): mirror insert req to flow node ( #3858 )
...
* feat: mirror insert req to flow node
* refactor: group_requests_by_peer
* chore: rename `nodes` to `flows` to be more apt
* docs: add TODO
* refactor: split flow&data node grouping to two func
* refactor: mirror_flow_node_request
* chore: add some TODOs
* refactor: use Option in value
* feat: skip non-src table quickly
* docs: add TODO for `Peer.address`
* fix: dedup
2024-05-06 11:33:14 +00:00
Lei, HUANG
f3b68253c2
chore: remove one slice copy in wal encoding ( #3861 )
...
* chore: remove one slice copy in wal encoding
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
* fix: cr comments
---------
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
2024-05-06 10:26:40 +00:00
shuiyisong
6e9e8fad26
refactor!: remove opentsdb tcp server ( #3828 )
...
* refactor: remove opentsdb tcp server
* refactor: remove config and add test
* refactor: update docs and remove unused code
2024-05-06 06:42:05 +00:00
Weny Xu
6e12e1b84b
fix: retrieve all info instead of checking on demand ( #3846 )
...
* fix: renew region lease bug
* refactor: only register regions once
* chore: apply suggestions from CR
2024-05-06 04:44:47 +00:00
tison
7d447c20c5
chore: try avoid one slice ( #3856 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-05-06 03:44:12 +00:00
tison
9c3b9600ca
ci: avoid trying to send slack notification in forks ( #3857 )
2024-05-06 03:18:21 +00:00
tison
73fe075049
ci: replace pull-request actions with cyborg ( #3854 )
...
* ci: replace pull-request actions with cyborg
Signed-off-by: tison <wander4096@gmail.com >
* skip cron maintenance in forks
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-05-04 03:12:26 +00:00
tison
2748cec7e2
ci: create cyborg for all heavy GitHub integrated actions ( #3852 )
...
* ci: create cyborg for all heavy GitHub integrated actions
Signed-off-by: tison <wander4096@gmail.com >
* hack trigger for testing
Signed-off-by: tison <wander4096@gmail.com >
* fixup token population
Signed-off-by: tison <wander4096@gmail.com >
* tidy up
Signed-off-by: tison <wander4096@gmail.com >
* use tsx
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-05-02 12:31:18 +00:00
dennis zhuang
65d47bab56
feat: adds information_schema cluster_info table ( #3832 )
...
* feat: adds server running mode to KvBackendCatalogManager
* feat: adds MetaClient to KvBackendCatalogManager
* feat: impl information_schema.cluster_info table
* fix: forgot files
* test: update information_schema result
* feat: adds start_time and uptime to cluster_info
* chore: tweak cargo and comment
* feat: rename greptime_region_peers to region_peers
* fix: cluster_info result
* chore: simplify sqlness commands
* chore: set peer_id to -1 for frontends
* fix: move cluster_info to greptime catalog
* chore: use official proto
* feat: adds active_time
* chore: apply suggestion
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
* chore: STANDALONE for runtime_metrics
---------
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
Co-authored-by: tison <wander4096@gmail.com >
2024-05-02 02:49:46 +00:00
Weny Xu
f6e2039eb8
test: introduce unstable fuzz create table test ( #3788 )
...
* feat: implement unstable_fuzz_create_table_standalone
* chore: use drop database
* docs: update docs
* chore: add ci config
* chore: add feature gate
* fix: fix clippy
* chore: update ci
* Apply suggestions from code review
* feat: reduce num
* Apply suggestions from code review
* chore: apply suggestions from CR
* Apply suggestions from code review
* chore: reduce `wait_timeout` in health check
* Update .env.example
* refactor: use `init_greptime_connections_via_env`
* refactor: use `init_greptime_connections_via_env`
---------
Co-authored-by: tison <wander4096@gmail.com >
2024-05-01 06:08:49 +00:00
dimbtp
3b89b9ddd8
refactor: move database client to test ( #3820 )
...
* remove `Database` in `cli export`
* move `Database` to tests-integration
* fix clippy
* move `DatabaseClient` along with `Database`
* `cli export` now use http api
* add TODO for `tests-integration` dependencies
* cleanup code
* 'cli export' test use http api
* remove unsed dependencies in cmd crate
* apply review comments and clean code
* remove unused methods
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-05-01 05:55:13 +00:00
tison
695746193b
ci: reduce workflow files by merging actions ( #3848 )
...
* ci: merge license header checker into dev ci
Signed-off-by: tison <wander4096@gmail.com >
* ci: merge nightly-funtional-tests.yml into nightly-ci.yml
Signed-off-by: tison <wander4096@gmail.com >
* fix typos
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-05-01 04:44:00 +00:00
Yohan Wal
573d369f77
feat(fuzz): add insert logical table target ( #3842 )
...
* refactor: let upper caller control whether to omit column list
* feat(fuzz): add insert logical table target
* ci: add fuzz_insert_logical_table ci cfg
2024-05-01 03:48:51 +00:00
Ruihang Xia
e6eca8ca0c
fix: count_wildcard_to_time_index_rule doesn't handle table reference properly ( #3847 )
...
* validate time index col
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use TableReference instead
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-30 15:59:56 +00:00
Ruihang Xia
e84b1eefdf
perf: optimize count(*) ( #3845 )
...
* perf: optimize count(*)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fallback to count(1) for temporary table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle alias expr in range plan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle subquery alias
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-30 10:10:11 +00:00
Yingwen
777bc3b89d
fix: compiler warnings on Windows ( #3844 )
...
* chore: fix windows warnings
* test: try fix create_metadata_region on windows
* style: fix clippy
* style: fix clippy
2024-04-30 09:40:11 +00:00
Weny Xu
81f3007f6f
refactor: remove TableMetaKey trait ( #3837 )
...
* refactor: use MetaKey trait instead of TableMetaKey
* test: add tests
* test: add more tests
* refactor: use `&str` instead of `String`
2024-04-30 06:31:45 +00:00
shuiyisong
863ee608ca
chore: adding Grafana config for cluster monitor ( #3781 )
...
* chore: add greptimedb-cluster.json
* chore: update readme in grafana
* chore: update readme
2024-04-30 06:20:23 +00:00
Weny Xu
20cbc039e6
refactor: remove catalog prefix ( #3835 )
...
* refactor: remove catalog prefix
* refactor: remove scope.rs
* fix: fix tests
* chore: update comments
* chore: apply suggestions from CR
2024-04-30 03:27:33 +00:00
tison
d11b1fa389
chore: correct RepeatedField origin ( #3838 )
...
* chore: correct RepeatedField origin
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-04-30 03:13:54 +00:00
Ruihang Xia
a0f4881c6e
feat: physical optimizer RemoveDuplicate to remove duplicate exec plans ( #3839 )
...
* feat: physical optimizer RemoveDuplicate to remove duplicate exec plans
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update document
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness results
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-30 03:13:39 +00:00
Kould
aba5e41799
feat: support ALTER TABLE ... MODIFY COLUMN ... ... ( #3796 )
...
* feat: support `ALTER COLUMN xxx TYPE xxx`
* fix: test `test_parse_alter_change_column_type`
* style: code fmt
* style: move to new test: `test_make_alter_column_type_region_request`
* style: simplify the code
* style: remove `v1::region::ChangeColumnType`
* resolve conflicts
* fix: test `test_make_alter_column_type_region_request`
* style: simplify the code
* rebase
* rebase
* rebase
* fix: `ALTER COLUMN ... TYPE` -> `MODIFY COLUMN`
* fix: `parser` -> `self.parser`
* Apply suggestions from code review
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: WenyXu <wenymedia@gmail.com >
2024-04-30 03:13:33 +00:00
Ruihang Xia
371d4cf9f5
fix: broken link in contributing guide ( #3831 )
...
* docs: revise style guide about test mod
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use relative path instead
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-30 03:06:47 +00:00
Yohan Wal
8e3515d396
ci: add fuzz_insert ci cfg ( #3840 )
...
chore(ci): add fuzz_insert ci cfg
2024-04-30 02:44:36 +00:00
Weny Xu
701aba9cdb
refactor: rename flow task to flow ( #3833 )
...
* refactor: rename to `MIN_USER_FLOW_ID`
* refactor: rename to `FLOW_ID_SEQ`
* refactor: rename to `flow_id_sequence`
* refactor: rename to `FlowMetadataManager`
* refactor: rename flow_task.rs to flow.rs
* refactor: rename to FlowInfoManager
* refactor: rename to FlowName
* refactor: rename to FlownodeFlow
* refactor: rename to TableFlow
* refactor: remove TASK
* refactor: rename to __flow
* refactor: rename to flow_id
* refactor: rename to flow_name
* refactor: update comments
* refactor: rename to flow_metadata_manager
* refactor: rename to flow_metadata_allocator
* refactor: rename to FlowMetadataAllocator
* refactor: rename task suffix
* refactor: rename FlowTask to FlowInfo
* refactor: rename FlowTaskScoped to FlowScoped
* refactor: rename FlowTaskId to FlowId
* chore: bump proto to b5412f7
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-04-29 14:02:52 +00:00