Ruihang Xia
8bea853954
refactor(mito2): implement RegionManifestManager ( #1984 )
...
* finilise manager and related API
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl manifest initialize and update
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* more test and utils
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* resolve CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-18 14:03:35 +00:00
Weny Xu
37dad206f4
fix: fix wait procedure watcher bug ( #1987 )
2023-07-18 09:07:31 +00:00
Weny Xu
1783e4c5cb
refactor: move DatanodeAlterTable after InvalidateTableCache ( #1978 )
...
* refactor: move AlterDatanode after InvalidateTableCache
* fix: acquire table key in region failover procedure
2023-07-18 07:03:20 +00:00
dennis zhuang
b81570b99a
feat: impl time type ( #1961 )
...
* chore: remove useless Option type in plugins (#1544 )
Co-authored-by: paomian <qtang@greptime.com >
* chore: remove useless Option type in plugins (#1544 )
Co-authored-by: paomian <qtang@greptime.com >
* chore: remove useless Option type in plugins (#1544 )
Co-authored-by: paomian <qtang@greptime.com >
* chore: remove useless Option type in plugins (#1544 )
Co-authored-by: paomian <qtang@greptime.com >
* feat: first commit for time type
* feat: impl time type
* fix: arrow vectors type conversion
* test: add time test
* test: adds more tests for time type
* chore: style
* fix: sqlness result
* Update src/common/time/src/time.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* chore: CR comments
---------
Co-authored-by: localhost <xpaomian@gmail.com >
Co-authored-by: paomian <qtang@greptime.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-07-18 02:55:28 +00:00
Eugene Tolbakov
6811acb314
fix(status_endpoint): add default value for hostname ( #1972 )
...
* fix(status_endpoint): add default value for hostname
* fix: adjust according to clippy suggestions
* fix: adjust according to CR suggestions
2023-07-17 11:55:11 +00:00
LFC
3e846e27f8
fix: compile error after #1971 is merged ( #1979 )
2023-07-17 10:01:47 +00:00
Ruihang Xia
f152568701
fix(ci): add merge queue trigger ( #1980 )
...
* fix(ci): add merge queue trigger
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update docs.yml also
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-17 18:01:05 +08:00
LFC
dd62f4c407
feat: tool to migrate table metadata values ( #1971 )
...
feat: tool to migrate table metadata values when upgrading to version 0.4
2023-07-17 15:06:32 +08:00
Weny Xu
4fd37d9d4e
test: add ddl idempotent tests of datanode ( #1966 )
2023-07-17 11:58:06 +08:00
LFC
7cf6c2bd5c
refactor: trying to replace TableGlobalValue, part 1 ( #1956 )
...
* refactor: trying to replace TableGlobalValue, part 1
* fix: resolve PR comments
2023-07-17 11:32:46 +08:00
Kree0
8f71ac2172
refactor: move heartbeat configuration into an independent section ( #1976 )
...
refactor: move heartbeat configuration into an independent section in config file
* refactor: move heartbeat configuration into an independent section in config file
* feat: add HeartbeatOptions struct
* test: modify corresponding test case
* chore: modify corresponding example file
2023-07-17 11:29:02 +08:00
Ning Sun
076d44055f
docs: fix playground section ( #1973 )
...
The image link keeps changing after website build, here we remove the broken image and use link temporarily
2023-07-17 10:48:06 +08:00
Weny Xu
d9751268aa
feat: expose metasrv datanode_client_options ( #1965 )
...
* feat: expose meta datanode_client_options
* chore: apply suggestions from CR
v0.4.0-nightly-20230717
2023-07-15 14:26:24 +08:00
ZonaHe
8f1241912c
feat: update dashboard to v0.3.0 ( #1968 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-07-15 14:16:41 +08:00
Lei, HUANG
97cfa3d6c9
feat: support append entries from multiple regions at a time ( #1959 )
...
* feat: support append entries from multiple regions at a time
* chore: add some tests
* fix: false postive mutable_key warning
* fix: append_batch api
* fix: remove unused clippy allows
2023-07-14 09:57:17 +00:00
Yingwen
ef7c5dd311
feat(mito): Implement WorkerGroup to handle requests ( #1950 )
...
* feat: engine worker framework
* feat: worder comments
* feat: divide worker requests by type
* feat: handlers for worker thread
* refactor: rename requests to ddl and dml requests
* feat: methods to stop and submit requests
* refactor: rename request queue to request buffer
* refactor: remove ddl and dml request
* feat: send request to worker
* test: test stop
* docs(mito): worker group docs
* style: fix clippy
* docs: update WorkerGroup comment
* chore: address CR comments
* chore: fix comment issues
* feat: use mpsc::channel
* feat: check is_running flag
* chore: Add stop request to notify a worker
* refactor: add join_dir to join paths
* feat: redefine region requests
* docs: more comments
* refactor: rename worker thread to worker loop
* chore: address CR comments
2023-07-14 08:06:44 +00:00
Ruihang Xia
ce43896a0b
refactor(mito2): implement serialize/deserialize for RegionMetadata ( #1964 )
...
* feat: implement serialize/deserialize for RegionMetadata
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove Raw*
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* render mermaid
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* derive Serialize
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename symbols
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 >
2023-07-14 14:44:12 +08:00
JeremyHi
c9cce0225d
feat: ask leader ( #1957 )
...
* feat: ask leader
* fix: license header
* chore: by comment
2023-07-14 11:32:47 +08:00
Ruihang Xia
5bfd0d9857
refactor(mito): define region metadata ( #1960 )
...
* refactor(mito): define region metadata
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unneeded message
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/mito2/src/metadata.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* add primary keys vector
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update mermaid
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-07-13 13:40:41 +00:00
JeremyHi
e4fd5d0fd3
refactor: let metasrv returns ref always ( #1954 )
2023-07-13 17:06:51 +08:00
Weny Xu
132668bcd1
feat: invalidate table cache after altering ( #1951 )
2023-07-13 14:19:26 +08:00
JeremyHi
8b4145b634
feat: simplify the usage of channel_manage ( #1949 )
...
* feat: simplify the usage of channelJ_manager by avoiding the external call of start_channel_recycle
* chore: fix unit test
* Update src/common/grpc/Cargo.toml
Co-authored-by: fys <40801205+Fengys123@users.noreply.github.com >
---------
Co-authored-by: fys <40801205+Fengys123@users.noreply.github.com >
2023-07-13 06:11:11 +00:00
Weny Xu
735c6390ca
feat: implement alter table procedure ( #1878 )
...
* feat: implement alter table procedure
* fix: fix uncaught error
* refactor: move fetch_table/s to table_routes.rs
* refactor: refactor error handling
* chore: apply suggestions from CR
* feat: switch to using alter table procedure
* feat: add table_version
* chore: apply suggestions from CR
* feat: introduce ddl_channel_manager
* chore: update greptime-proto
2023-07-13 10:41:46 +08:00
Ben Baoyi
9ff7670adf
refactor:remove common_error::prelude ( #1946 )
...
* feat:Remove common_error::prelude
* fix merge error
* cr comment
* fix error
2023-07-13 10:36:36 +08:00
Ruihang Xia
16be56a743
refactor(mito): port manifest storage to mito2 ( #1948 )
...
* refactor(mito): port manifest storage to mito2
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deadcode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-12 11:21:11 +00:00
Ben Baoyi
2bfe25157f
feat:add check port before start sqlness test ( #1895 )
...
* feat:add check port before start sqlness test
* cr comment
* feat:remove redundant check_port
* cr comment
* cr comment
* cr comment
2023-07-12 17:44:50 +08:00
LFC
4fdb6d2f21
refactor: remote catalog uses memory ( #1926 )
...
* refactor: remote catalog uses memory
* rebase develop
* fix: resolve PR comments
2023-07-12 09:33:33 +00:00
Vanish
39091421a4
feat: implement truncate table parser ( #1932 )
...
* feat: truncate parser
* chore: keyword TABLE as optional
2023-07-12 14:59:24 +08:00
Eugene Tolbakov
674bfd85c7
chore(prom)!: rename prometheus(remote storage) to prom-store and promql(HTTP server) to prometheus ( #1931 )
...
* chore(prom): rename prometheus(remote storage) to prom-store and promql(HTTP server) to prometheus
* chore: apply clippy suggestions
* chore: adjust format according to rustfmt
2023-07-12 14:47:09 +08:00
Ruihang Xia
4fa8340572
feat: support desc [table] <table_name> ( #1944 )
...
* feat: support desc [table]
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refine style
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-12 06:41:31 +00:00
shuiyisong
5422224530
chore: upgrade toml version ( #1945 )
2023-07-12 14:22:02 +08:00
Ruihang Xia
077785cf1e
refactor(mito): define manifest related API ( #1942 )
...
* refactor: port some manifest struct to mito2
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy and nextest
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* revert lock file and resolve clippy warnings
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-12 03:42:55 +00:00
Weny Xu
a751aa5ba0
feat: switch to using drop table procedure ( #1901 )
...
* feat: switch to using drop table procedure
* chore: remove unused attributes
* feat: register the drop table procedure loader
* fix: fix typo
2023-07-12 10:35:23 +08:00
Weny Xu
264c5ea720
feat: meta procedure options ( #1937 )
...
* feat: meta procedure options
* chore: tune meta procedure options in tests
* Update src/common/procedure/Cargo.toml
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-07-12 02:22:08 +00:00
Weny Xu
fa12392d2c
fix: fix frontend meta client option issue ( #1939 )
2023-07-12 10:13:07 +08:00
Ruihang Xia
421103c336
refactor: remove misdirectional alias "Request as GreptimeRequest" ( #1940 )
...
remove Request as GreptimeRequest
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-12 10:06:05 +08:00
Ning Sun
41e856eb9e
refactor: change logging level for mysql error log ( #1938 )
...
* refactor: change logging level for mysql error log
* Update src/common/telemetry/Cargo.toml
Co-authored-by: LFC <bayinamine@gmail.com >
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-07-11 20:49:05 +08:00
JeremyHi
e1ca454992
chore: grpc-timeput = 10s ( #1934 )
...
* chore: grpc-timeput = 10s
* chore: fix ut
2023-07-11 15:07:18 +08:00
Weny Xu
2d30f4c373
fix: fix broken CI ( #1933 )
2023-07-11 14:48:41 +08:00
Lei, HUANG
a7ea3bbc16
feat: manual compact api ( #1912 )
...
* merge develop
* chore: merge develop
* fix: some cr commentx
* fix: cr comments
2023-07-11 04:00:39 +00:00
Eugene Tolbakov
fc850c9988
feat(config-endpoint): add initial implementation ( #1896 )
...
* feat(config-endpoint): add initial implementation
* feat: add initial handler implementation
* fix: apply clippy suggestions, use axum response instead of string
* feat: address CR suggestions
* fix: minor adjustments in formatting
* fix: add a test
* feat: add to_toml_string method to options
* fix: adjust the assertion for the integration test
* fix: adjust expected indents
* fix: adjust assertion for the integration test
* fix: improve according to clippy
2023-07-11 11:08:32 +08:00
Ning Sun
f293126315
feat: add logical plan based prepare statement for postgresql ( #1813 )
...
* feat: add logical plan based prepare statement for postgresql
* refactor: correct more types
* Update src/servers/src/postgres/types.rs
Co-authored-by: LFC <bayinamine@gmail.com >
* fix: address review issues
* test: add datetime in integration tests
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-07-11 11:07:18 +08:00
Weny Xu
c615fb2a93
fix: fix uncaught error 🥲 ( #1929 )
...
fix: fix uncaught error
2023-07-10 23:41:20 +08:00
Yingwen
65f5349767
feat(mito2): Define basic structs for MitoEngine ( #1928 )
...
* chore: metadata wip
* docs(mito2): Add struct relationships
* feat(mito2): define basic structs
* feat: add version and refactor other metadata
* docs: remove generics param from MitoEngine
* chore: Update src/mito2/Cargo.toml
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* chore: Apply suggestions from code review
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-10 12:25:33 +00:00
Weny Xu
ed756288b3
fix: fix uncaught error ( #1924 )
2023-07-10 17:46:11 +08:00
shuiyisong
04ddeffd2a
chore: add rate limit status code ( #1923 )
2023-07-10 17:41:59 +08:00
Weny Xu
c8ed1bbfae
fix: cast orc data against output schema ( #1922 )
...
fix: cast data against output schema
2023-07-10 08:53:38 +00:00
Lei, HUANG
207d3d23a1
chore: bump latest greptime-proto version ( #1920 )
2023-07-10 16:28:22 +08:00
shuiyisong
63173f63a1
chore: add interceptor for prometheus query ( #1919 )
...
* chore: add prom query interceptor
* chore: add test
* chore: add test
* chore: fix cr issue
2023-07-10 16:28:07 +08:00
Yingwen
4ea8a78817
feat: dedup rows while flushing memtables ( #1916 )
...
* test: enlarge meta client timeout
* feat: dedup on flush
* test: enlarge datanode clients timeout
* chore: fix typo
2023-07-10 15:07:10 +08:00