Weny Xu
a8cbec824c
refactor: refactor TableRouteManager ( #3392 )
...
* feat: introduce TableRouteStorage
* refactor: remove get & batch_get in TableRouteManager
* refactor: move txn related fn to TableRouteStorage
* chore: apply suggestions from CR
* chore(codecov): ingore tests-integration dir
2024-02-28 06:18:09 +00:00
Ruihang Xia
3544c9334c
feat!: new partition grammar - parser part ( #3347 )
...
* parser part
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test in sql
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* comment out and ignore some logic
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update region migration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* temporary disable region migration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* allow dead code
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-02-27 07:20:16 +00:00
shuiyisong
bf5e1905cd
refactor: bring metrics to http output ( #3247 )
...
* refactor: bring metrics to http output
* chore: remove unwrap
* chore: make walk plan accumulate
* chore: change field name and comment
* chore: add metrics to http resp header
* chore: move PrometheusJsonResponse to a separate file and impl IntoResponse
* chore: put metrics in prometheus resp header too
2024-02-20 03:25:18 +00:00
dennis zhuang
5e89472b2e
feat: adds parse options for SQL parser ( #3193 )
...
* feat: adds parse options for parser and timezone to scan request
* chore: remove timezone in ScanRequest
* feat: remove timezone in parse options and adds type checking to parititon columns
* fix: comment
* chore: apply suggestions
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: format
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-01-19 09:16:36 +00:00
ClSlaid
5c66ce6e88
chore: remove unnecessary result wrappings ( #3084 )
...
patch: remove unnecessary result wrappings
Signed-off-by: 蔡略 <cailue@bupt.edu.cn >
2024-01-03 10:20:33 +00:00
AntiTopQuark
4460af800f
feat(TableRouteValue): add panic notes and type checks ( #3031 )
...
* refactor(TableRouteValue): add panic notes and type checks
* chore: add deprecate develop branch warning
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add error defines and checks
* Update README.md
* update code format and fix tests
* update name of error
* delete unused note
* fix unsafe .expect() for region_route()
* update error name
* update unwrap
* update code format
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-30 13:02:26 +00:00
LFC
eadde72973
chore: "fix: revert unfinished route table change" ( #3009 )
...
Revert "fix: revert unfinished route table change (#3008 )"
This reverts commit 8ce8a8f3c7 .
2023-12-27 02:40:59 +00:00
Ruihang Xia
8ce8a8f3c7
fix: revert unfinished route table change ( #3008 )
...
* Revert "refactor: hide `RegionRoute` behind `TableRouteValue` (#2989 )"
This reverts commit 1641fd572a .
* Revert "feat: MetricsEngine table route (part 1) (#2952 )"
This reverts commit 6ac47e939c .
2023-12-26 09:56:49 +00:00
LFC
6ac47e939c
feat: MetricsEngine table route (part 1) ( #2952 )
...
* refactor: make `TableRouteValue` an enum to add the variant of MetricsEngine table route
* fix: resolve PR comments
* Update src/common/meta/src/key/table_route.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2023-12-20 07:31:59 +00:00
Weny Xu
cf6bba09fd
refactor: use downgrading the region instead of closing region ( #2863 )
...
* refactor: use downgrading the region instead of closing region
* feat: enhance the tests for alive keeper
* feat: add a metric to track region lease expired
* chore: apply suggestions from CR
* chore: enable logging for test_distributed_handle_ddl_request
* refactor: simplify lease keeper
* feat: add metrics for lease keeper
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* refactor: move OpeningRegionKeeper to common_meta
* feat: register operating regions to MemoryRegionKeeper
2023-12-12 09:24:17 +00:00
Wei
3a4c9f2b45
feat: supports decimal type in RPC ( #2788 )
...
* refactor: ColumnDataTypeWrapper
* feat: decimal128 grpc
* feat: add test case
* chore: add TODO
* chore: empty line
* chore: remove precision and scale
* refactor: remove precision and scale
* chore: remove sqlness test
* chore: rename
* chore: proto version
* chore: cr comment.
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/mito2/src/memtable/time_series.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-11-24 09:19:33 +00:00
fys
da68d8ce4b
feat: add random weighted choose in load_based selector ( #2234 )
...
* feat: add random weigted choose in load_based selector
* fix: meta cannot save heartbeats when cluster have no region
* chore: print some log
* chore: remove unused code
* cr
* add some logs when filter result is empty
2023-11-20 06:47:42 +00:00
Weny Xu
81ccb58fb4
refactor!: compare with origin bytes during the transactions ( #2538 )
...
* refactor: compare with origin bytes during the transaction
* refactor: use serialize_str instead
* Update src/common/meta/src/key.rs
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* chore: apply suggestions from CR
---------
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-10-09 08:17:19 +00:00
JeremyHi
52ac093110
fix: drop table 0 rows affected ( #2515 )
2023-09-28 06:21:18 +00:00
dennis zhuang
342cc0a4c4
fix: compile error after updating protos ( #2435 )
2023-09-18 12:12:39 +00:00
Zhenchi
d6d46378a1
test: fix some integration tests ( #2432 )
...
* test: fix some integration tests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: add timezone setting
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-09-18 10:52:14 +00:00
LFC
a688760563
fix: validate partition columns ( #2393 )
...
fix: partition column must belong to primary keys or equals to time index
2023-09-15 10:07:32 +00:00
LFC
4b13c88752
fix: resolve more integration tests ( #2406 )
...
* fix: resolve more integration tests
* Update tests-integration/tests/http.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2023-09-15 09:43:16 +00:00
Yingwen
a84a8ad04f
fix: alter table procedure panics while renaming table ( #2397 )
...
* fix: procedure panic on renaming table
* test: fix test_insert_and_select invalid arguments
* test: fix test_standalone_insert_and_query using wrong semantic type
* test: fix test_distributed_insert_delete_and_query semantic type
2023-09-14 11:50:00 +00:00
LFC
d08b05c963
fix: make test-integration able to compile ( #2384 )
...
* fix: make test-integration able to compile
* chore: fmt toml
---------
Co-authored-by: WenyXu <wenymedia@gmail.com >
2023-09-13 12:42:46 +00:00
JeremyHi
58d07e0e62
feat: v04 rm unused exprs ( #2285 )
...
* feat: rm compact and flush exprs
* refactor: continue to rm compact and flush
2023-09-12 07:57:15 -05:00
shuiyisong
5df4d44761
feat: schema level opts ( #2283 )
...
* chore: update proto
* chore: add try from for schema name value
* chore: merge schema opts to table opts while creating table
* chore: use table ttl opts first
* chore: add unit test
* chore: update proto version
2023-08-30 08:11:08 +00:00
Zhenchi
9d87c8b6de
refactor(table): cleanup dist table ( #2255 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-08-25 06:37:39 +00:00
Weny Xu
6e6ff5a606
refactor: update table metadata in single txn ( #2172 )
...
* refactor: table-metadata-manager
* feat: remove comparing when deleting metadata
* fix: fix comment typos
* chore: apply suggestions from CR
* test: add tests for updating DatanodeTable
* fix: fix clippy
* chore: apply suggestions from CR
* refactor: improve update table route tests
* refactor: return Txn instead of TxnRequest
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* refactor: update table metadata in single txn
* feat: check table exists before drop table executing
* test: add tests for table metadata manager
* refactor: remove table region manager
* chore: apply suggestions from CR
* feat: add bench program
* chore: apply suggestions from CR
2023-08-17 06:29:19 +00:00
Niwaka
a8f2e4468d
feat: handle multiple grpc deletes ( #2150 )
...
* feat: handle multiple grpc deletes
* fix: make DistDeleter::grpc_delete return usize
* fix: remove backtrace from MissingTimeIndexColumn
* fix: avoid using unwrap in PartitionRuleManager::split_delete_request
* fix: simplify MissingTimeIndexColumn
2023-08-15 08:22:46 +00:00
LFC
46fa3eb629
chore: upgrade rust toolchain to latest nightly ( #2049 )
...
* chore: upgrade rust toolchain to latest nightly
* rebase develop
* update rust toolchain in ci
2023-08-08 07:17:51 +00:00
JeremyHi
fd7eb87a52
refactor: common semantic-type ( #2057 )
2023-08-01 11:18:05 +00:00
LFC
172febb1af
refactor!: trying to replace TableGlobalValue, part 2 ( #1985 )
...
* refactor!: using the new table metadata values
* fix: resolve PR comments
* fix: resolve PR comments
* fix: resolve PR comments
2023-07-19 12:01:43 +00: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
Weny Xu
28748edb0d
chore: bump proto to 917ead6 ( #1892 )
...
* feat: add table_id for ddl exprs
* chore: bump proto to 917ead6
2023-07-06 13:29:36 +08:00
LFC
fcff66e039
chore: deny unused results ( #1825 )
...
* chore: deny unused results
* rebase
2023-06-27 15:33:53 +08:00
LFC
5004cf6d9a
feat: make grpc insert requests in a batch ( #1687 )
...
* feat: make Prometheus remote write in a batch
* rebase
* fix: resolve PR comments
* fix: resolve PR comments
* fix: resolve PR comments
2023-06-02 09:06:48 +00:00
Yingwen
c5f6d7c99a
refactor: update proto and rename incorrect region_id fields ( #1670 )
2023-05-30 15:19:04 +09:00
LFC
f64527da22
feat: region failover procedure ( #1558 )
...
* feat: region failover procedure
2023-05-22 19:54:52 +08:00
LFC
4ae0b5e185
test: move instances tests to "tests-integration" ( #1573 )
...
* test: move standalone and distributed instances tests from "frontend" crate to "tests-integration"
* fix: resolve PR comments
2023-05-15 12:00:43 +08:00