Commit Graph

218 Commits

Author SHA1 Message Date
JeremyHi 519b1d0757 feat: support batch ddl (#135)
* feat: support batch create table

* feat: ddl batch

* feat: batch ddl task

* feat: response table ids
2024-01-22 15:39:21 +09:00
shuiyisong 65b008f018 chore: add Metrics in FlightMetadata (#134)
* chore: add metrics to metadata

* chore: update metrics to message

* chore: change string to bytes for backward compatibility

* chore: rebase main
2024-01-16 12:02:54 +08:00
WU Jingdi 2c1f17dce7 feat: support timezone in gRPC query (#132) 2024-01-09 17:02:44 +08:00
WU Jingdi 2e1bc02286 fix: license header check ci (#133) 2024-01-04 16:25:33 +08:00
JeremyHi a31ea166fc chore: big typos (#129)
* chore: big typos

* feat: 0.4.2
2023-12-15 11:55:39 +08:00
JeremyHi 4306ab645e feat: java proto v0.4.1 (#128) 2023-12-14 16:39:06 +08:00
Zhenchi b1d403088f feat(inverted_index): add row count to metas (#126)
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
2023-12-05 10:42:43 +08:00
Weny Xu 4377b4377c feat: add closeable_region_ids in RegionLease (#125)
* feat: add closeable_region_ids in RegionLease

* fix: use repeated uint64
2023-12-04 18:42:07 +09:00
Junfan Zhang 2aaee38de8 feat: add IF EXISTS for DROP (#123)
* feat: add IF EXISTS for DROP

For https://github.com/GreptimeTeam/greptimedb/issues/2794

* generate code

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
2023-11-24 08:40:12 +00:00
Zhenchi 2b3ae45740 refactor(index): add base offset to InvertedIndexMeta (#124)
* feat: add base offset to `InvertedIndexMeta`

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

* chore: rename fields to reduce confused

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

* fix: make

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

* Update proto/greptime/v1/index/inverted_index.proto

Co-authored-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
2023-11-24 16:26:36 +08:00
Wei a11efce55d feat: add type extension for column (#122)
* feat: decimal128 proto

* chore: make all

* chore: empty line

* refactor: remove precision and scale

* chore: cr comment

Co-authored-by: Yingwen <realevenyag@gmail.com>

---------

Co-authored-by: Yingwen <realevenyag@gmail.com>
2023-11-24 10:40:50 +08:00
Zhenchi 2ffdcae9f9 feat: add InvertedIndexMetas (#121)
* feat: add `InvertedIndexFooter`

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

* feat: map instead of list

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

* fix: add rust mod

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

* chore: rename InvertedIndexFooter to InvertedIndexMetas

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

* chore: add java outer classname option

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>

---------

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
2023-11-23 12:31:40 +08:00
WU Jingdi 25429306d0 feat: pass tracing context in proto (#120)
* feat: pass tracing context in proto

* fix: run make
2023-11-15 19:26:13 +08:00
Weny Xu 7eb2e78be7 feat: use GrantedRegion instead of region_ids (#117) 2023-11-03 22:40:32 +08:00
LFC 9d82dddf75 ci: publish maven artifact (#119) 2023-11-03 22:39:58 +08:00
LFC 5da72f1cae ci: publish maven artifact (#116) 2023-10-31 16:24:20 +08:00
Weny Xu d354d4f0f7 feat: introduce region role (#113) 2023-10-31 15:17:41 +08:00
Weny Xu c27b3844e5 refactor: remove router rpc (#114) 2023-10-31 12:12:55 +08:00
JeremyHi 1d7dc6f18b feat: remove the move_value api (#111) 2023-10-23 10:20:57 +08:00
Ruihang Xia 365922c358 chore(deps): bump tonic, tonic-build and prost (#110)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2023-10-19 21:46:47 +08:00
Yingwen ced45cb787 ci: downgrade container to 20.04 (#108) 2023-10-18 14:23:49 +08:00
shuiyisong 1f1dd532a1 chore: add dbname in region request header for tracking purpose (#107) 2023-10-07 17:16:26 +08:00
Vanish 693128abe9 feat: truncate region (#103) 2023-09-24 15:13:21 +08:00
Yingwen 115c108077 feat: remove create_if_not_exists from region CreateRequest (#106) 2023-09-20 16:11:27 +08:00
Wei 9d3f28d07d feat: add duration column. (#105) 2023-09-18 19:08:44 +08:00
Ruihang Xia 637c54338f feat: add comment field to ColumnDef (#104)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2023-09-17 18:59:41 +08:00
JeremyHi e81a60e817 feat: region storage path (#102) 2023-09-15 16:39:28 +08:00
LFC 81495b166b chore: remove table ident (#99) 2023-09-12 23:20:59 +08:00
Ruihang Xia 33db1a4429 feat: remove region id and add request header (#101)
* remove region from database proto

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* add request header to read

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* generate code

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* forget some ts

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* generate code

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2023-09-06 20:52:41 +08:00
niebayes 620337bd5e add a missing CMakeLists.txt (#98) 2023-09-06 16:33:24 +08:00
LFC 1969b5d610 feat: distributed alter table in region server (#97)
* feat: alter region request
2023-09-04 18:58:35 +08:00
JeremyHi b585955dbb feat: v04 new heartbeat (#96)
* feat: new heartbeat

* feat: single RegionLease to handle all region ids
2023-09-01 11:51:45 +08:00
JeremyHi 6d4131f57e feat: rm unused compact and flush (#95) 2023-08-30 19:03:48 +08:00
Ruihang Xia 117ec6c510 feat: remove storage path in open/create request (#92)
* feat: remove storage path in open/create request

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* generate code

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* sync changes

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2023-08-30 16:15:21 +08:00
shuiyisong f263419222 feat: create schema with options (#93)
* chore: add options to create database expr

* chore: rebase develop
2023-08-30 14:40:08 +08:00
zyy17 e8e228b026 refactor: remove **all** unnecessary 'optional' notation (#91) 2023-08-30 11:08:14 +08:00
Yingwen ec2d346e09 docs: update primary key comment (#89)
Documents that primary_key holds ids of columns.
2023-08-28 17:24:10 +08:00
Ruihang Xia 3b5a687da5 feat: define header for region request (#90)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2023-08-28 17:22:46 +08:00
LFC 73eeb12704 feat: make region request derive strum (#87)
* feat: derive "strum"

* rebase main
2023-08-28 15:41:50 +08:00
Ruihang Xia 39b0ea8d08 fix: minor changes to region server (#88)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2023-08-28 11:00:55 +08:00
LFC 4d9ed36291 fix: typo (#84)
* fix: typo

* rebase main
2023-08-25 17:40:10 +08:00
Ruihang Xia 708866d505 chore: rename RegionServer to Region (#85)
* chore: rename RegionServer to Region

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* add stream api

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2023-08-25 17:01:40 +08:00
JeremyHi 3489b47421 feat: from valuedata for value (#82) 2023-08-21 11:20:56 +08:00
Ruihang Xia c30a2607be chore: pub region mod (#81)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2023-08-16 21:48:09 +08:00
JeremyHi fa79839bbb feat: interal type for row protocol, and multi row deletes (#80) 2023-08-16 15:09:24 +08:00
Ruihang Xia dbb8e524ca feat: define region server related messages (#79)
* feat: define region server related messages

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* finalise

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* generate language code

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* add missing field

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* push region id down

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* remove type alias for region id and column id

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* define query request

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* remove old java file

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* remove go code

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2023-08-15 18:43:23 +08:00
Niwaka f3a7cdff3c feat: handle multiple DeleteRequest (#76) 2023-08-15 15:24:12 +08:00
Lei, HUANG 9b68af55c0 feat: impl serde for semantic type (#77)
* feat: derive Serialize/Deserialize for SemanticType

* feat: derive Serialize/Deserialize for SemanticType
2023-08-14 22:05:55 +08:00
Yingwen a6897eb668 feat: mito wal proto (#75)
* feat: row-based insert

* feat: null value

* roback: null value

* feat: delete by row

* feat: add wal proto

* feat: generate code

* feat: rename mutation type to op type

* feat: Generate code

* feat: An entry per region

* feat: remove region id from WalEntry

* refactor: move mito/wal to wal

* feat: gen

* feat: remove mito

---------

Co-authored-by: jiachun <jiachun_fjc@163.com>
2023-08-14 20:08:34 +08:00
JeremyHi d9167cab47 feat: row-based insert (#72)
* feat: row-based insert

* feat: null value

* roback: null value

* feat: delete by row

* feat: rename Value to Field
2023-08-14 12:15:44 +08:00