Commit Graph

221 Commits

Author SHA1 Message Date
Lin Yihai 3bb33593a7 feat: Support SET DEFAULT syntax (#251)
Signed-off-by: Yihai Lin <yihai-lin@foxmail.com>
2025-07-29 11:19:12 +08:00
Zhenchi 7fcaa3e413 feat: deprecate Region::Partition use partition expr instead (#256)
* feat: deprecate Region::Partition use partition expr instead

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

* merge origin/main

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

* put partition expr into Partition

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

---------

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
2025-07-23 10:30:51 +08:00
Weny Xu 36116a5c24 feat: introduce SetIndexes and UnsetIndexes (#253) 2025-07-22 10:50:09 +08:00
zyy17 5976122c46 refactor: generate all go proto (#257)
Signed-off-by: zyy17 <zyylsxm@gmail.com>
2025-07-21 10:13:20 +08:00
fys dbfd68e984 ci: add proto fmt check (#255) 2025-07-17 12:47:54 +08:00
fys 855dff1b87 chore: format proto file (#254)
* chore: proto file format using buf

* generate go file
2025-07-16 11:25:57 +08:00
Zhenchi ceb1af4fa9 feat: add granularity and false_positive_rate options for indexes (#249)
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
2025-07-02 15:00:28 +08:00
fys 464226cf8a feat: support trigger drop (#248)
* feat: add trigger-drop proto

* remove trigger id of DropTriggerExpr
2025-06-24 11:06:43 -07:00
Yingwen 819a949550 feat: Add ListMetadataRequest (#247)
* feat: add ListMetadataRequest

Signed-off-by: evenyag <realevenyag@gmail.com>

* chore: generate C++ and java codes

Signed-off-by: evenyag <realevenyag@gmail.com>

* chore: document return value

Signed-off-by: evenyag <realevenyag@gmail.com>

---------

Signed-off-by: evenyag <realevenyag@gmail.com>
2025-06-23 14:39:46 +08:00
Lin Yihai 82fe5c6282 feat: add DROP DEFAULT (#246)
Signed-off-by: Yihai Lin <yihai-lin@foxmail.com>
2025-06-17 16:19:39 +08:00
Lei, HUANG fdcbe5f1c7 chore: add connection id to Process (#245)
* add connection id to Process

Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>

* feat/add-connection-id-to-process-info:
 **Update `server.proto` for ProcessInfo Message**

 - Changed the data type of `id` from `uint64` to `uint32` in the `ProcessInfo` message.
 - Removed the `connection_id` field from the `ProcessInfo` message.

 Affected file:
 - `proto/greptime/v1/frontend/server.proto`

Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>

* feat/add-connection-id-to-process-info:
 Update `process_id` type in `server.proto`

 - Changed the data type of `process_id` from `uint64` to `uint32` in `proto/greptime/v1/frontend/server.proto` to align with system requirements.

Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>

---------

Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>
2025-06-16 20:40:59 -07:00
discord9 1797152367 feat(flow): bulk notify (#243)
* feat: mark dirty time window

* fix: time window range

* update DirtyWindowRequest

---------

Co-authored-by: Lei, HUANG <mrsatangel@gmail.com>
2025-06-16 14:16:14 +08:00
Lei, HUANG f0913f179e feat: kill process rpc service (#244)
* feat/kill-process:
 ### Add KillProcess RPC Method

 - **Added `KillProcess` RPC Method**: Introduced a new RPC method `KillProcess` in the `Frontend` service to allow killing a running process on the frontend.
   - Updated files: `server.grpc.pb.cc`, `server.grpc.pb.h`, `server.pb.cc`, `server.pb.h`, `server.proto`
   - Added new request and response messages: `KillProcessRequest` and `KillProcessResponse`.

 - **Java Bindings**: Updated Java bindings to include the new `KillProcess` method.
   - Updated file: `Server.java`

* feat/kill-process:
 **Update `server.proto` for KillProcessRequest and KillProcessResponse**

 - Added `server_addr` field to `KillProcessRequest` for specifying the frontend server address.
 - Changed field numbers for `catalog` and `process_id` in `KillProcessRequest`.
 - Enhanced `KillProcessResponse` to include a `found` boolean indicating if the target process was located.

Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>

* rename found to success

---------

Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>
2025-06-13 20:53:07 +08:00
Lei, HUANG 5f6119ac79 feat: frontend server (#242)
* feat/frontend-server
 ### Add Frontend Service Protocol Buffers
 - Introduced a new Protocol Buffers file `server.proto` in `proto/greptime/v1/frontend/`.
 - Defined the `Frontend` service with an RPC method `ListProcess`.
 - Added message definitions for `ListProcessRequest`, `ListProcessResponse`, and `ProcessInfo`.
 - Included fields for process ID, catalog, schema, query, start timestamp, and client information in `ProcessInfo`.

Signed-off-by: Lei, HUANG <lhuang@greptime.com>

* feat/frontend-server:
 ### Update `server.proto` in `greptime/v1/frontend`

 - Added a newline at the end of the `ProcessInfo` message definition in `server.proto`.

Signed-off-by: Lei, HUANG <lhuang@greptime.com>

* feat/frontend-server:
 Add new proto file to build script

 - Updated `build.rs` to include `proto/greptime/v1/frontend/server.proto` in the build process.

Signed-off-by: Lei, HUANG <lhuang@greptime.com>

* add frontend mod

Signed-off-by: Lei, HUANG <lhuang@greptime.com>

* feat/frontend-server:
 **Add Frontend Info to ProcessInfo**

 - Updated `server.proto` to include a new field `frontend` in the `ProcessInfo` message, providing additional frontend information for processes.

Signed-off-by: Lei, HUANG <lhuang@greptime.com>

* feat/frontend-server:
 Update `server.proto` to modify data types and field names

 - Changed the data type of `id` from `uint64` to `string` in `ProcessInfo`.
 - Renamed field `schema` to `schemas` in `ProcessInfo`.

Signed-off-by: Lei, HUANG <lhuang@greptime.com>

* -

Signed-off-by: Lei, HUANG <lhuang@greptime.com>

* add catalog to ListProcessRequest

---------

Signed-off-by: Lei, HUANG <lhuang@greptime.com>
2025-06-12 10:45:14 +08:00
fys 454c52634c feat: add proto definition about trigger create (#241)
* feat: add trigger create

* chore: unified naming style

* chore: rename some fields

* chore: make all
2025-06-04 11:12:55 +08:00
Lei, HUANG ecaefd1da7 feat: bulk wal entry (#239)
* Add bulk wal entry

* add sequence

* move arrow ipc to common
2025-05-29 17:10:13 +08:00
Lei, HUANG 67ee5f94e5 Add data header to requests (#240) 2025-05-23 14:18:52 +08:00
Ruihang Xia 4d4136692f feat: add time index column to series divide plan (#238)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2025-05-21 19:27:49 -07:00
Weny Xu 7668a882d5 feat: introduce node workloads (#235)
* feat: introduce node workloads

* feat: add feature gate

* chore: apply suggestions from CR
2025-05-09 17:35:49 +08:00
Lei, HUANG 187acde93b feat: remove region selection (#237)
* feat/remove-region-selection:
 ### Refactor `ArrowIpc` and Remove `RegionSelection`

 - **Refactor `ArrowIpc` Structure**:
   - Moved `region_id` to be the first field in `ArrowIpc`.
   - Removed `region_selection` field from `ArrowIpc`.
   - Updated field numbers for `schema` and `payload` in `ArrowIpc`.
   - Affected files: `server.pb.cc`, `server.pb.h`, `Server.java`, `server.proto`.

 - **Remove `RegionSelection` Message**:
   - Deleted the `RegionSelection` message and its related code.
   - Affected files: `server.pb.cc`, `server.pb.h`, `Server.java`, `server.proto`.

 These changes streamline the `ArrowIpc` message structure and remove unused `RegionSelection` components.

* dummy
2025-05-09 12:16:06 +08:00
LFC 159e92d30b feat: sst_min_sequences in QueryContext (#234) 2025-05-07 20:59:51 +08:00
Lei, HUANG bdca8e50e4 fix: restore region selection to avoid breaking main branch (#236) 2025-05-07 11:02:58 +08:00
Lei, HUANG 754d20f5ef refactor: add selection to bulk (#232)
* feat: add selection field to BulkInsertRequest

* add schema section

* change bulk request

* replace vec<u8> with bytes

* wip

* wip

* chore: rebase main

* fix: clippy

* refactor arrow ipc writes
2025-05-06 17:10:53 +08:00
discord9 e82b0158cd feat: add insert into logical plan in request (#231)
* feat: insert into logical plan

* chore: make all

* feat: use TableName instead

* chore: make all

* chore: per review
2025-04-18 20:03:23 +08:00
Weny Xu b6d9cffd43 feat: add SyncRegion (#230)
* feat: add `SyncRegion`

* chore: apply suggestions from CR
2025-04-18 17:15:44 +08:00
Weny Xu 175dec07bd chore: upgrade ci runner image version (#233) 2025-04-18 18:11:07 +09:00
Lei, HUANG 583daa3fbb feat: add bulk insert request type (#228)
* add bulk insert request type

* fix: rename
2025-04-10 20:06:41 +08:00
Ruihang Xia dd4a199698 feat: add tag_columns to series normalize plan (#223)
* feat: add tag_columns to series normalize plan

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

* feat: add `manifest_version` to `GrantedRegion` (#224)

* feat: add backend option to `SetFulltext` (#226)

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

* feat: add `extensions` field to `GrantedRegion` (#227)

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
Co-authored-by: Weny Xu <wenymedia@gmail.com>
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com>
2025-04-08 15:47:19 +08:00
Weny Xu 2be0f36b32 feat: add ProcedureStatus::Poisoned (#229) 2025-04-07 15:53:11 +08:00
Weny Xu fb8e20ce29 feat: add extensions field to GrantedRegion (#227) 2025-04-03 20:28:44 +08:00
Zhenchi 9327e1098c feat: add backend option to SetFulltext (#226)
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
2025-04-02 18:07:15 +08:00
Weny Xu 103948cbce feat: add manifest_version to GrantedRegion (#224) 2025-03-31 14:18:13 +08:00
Yingwen 97e298d119 feat: add explain options to query request (#225)
* feat: add verbose flag

* feat: use options for explain

* chore: generate codes
2025-03-25 10:25:01 +08:00
Wenbin a7274ddce2 add more trait for peer (#222) 2025-03-12 21:53:42 +08:00
AntiTopQuark c5419bbd20 feat: enhancement information_schema.flows (#221)
* feat:enhancement information_schema.flows

* chore: make all

---------

Co-authored-by: discord9 <discord9@163.com>
2025-03-11 21:15:10 +08:00
Lei, HUANG d92c9ac4e9 refactor/remove-cluster-id: (#220)
### Remove `cluster_id` Field from Protocol Buffers

 - **Removed `cluster_id` Field**: The `cluster_id` field has been removed from the `RequestHeader` and `ResponseHeader` messages across multiple langua
 bindings and source files. This includes updates to:
   - C++: `common.pb.cc`, `common.pb.h`
   - Go: `common.pb.go`
   - Java: `Common.java`
   - Proto: `common.proto`
   - Rust: `meta.rs`

 These changes streamline the protocol by eliminating the `cluster_id` field, simplifying the message structures and related logic.
2025-03-04 11:17:59 +08:00
Zhenchi f8bd7fabb9 feat: introduce roaring bitmap to inverted index (#219) 2025-02-27 14:52:10 +08:00
yihong 072ce58050 fix: add fast_drop_path for droprequest (#218)
* fix: add fast_drop_database_path for droprequest

Signed-off-by: yihong0618 <zouzou0208@gmail.com>

* fix: address review

Signed-off-by: yihong0618 <zouzou0208@gmail.com>

* fix: change the name to force_drop_all_logical_tables

Signed-off-by: yihong0618 <zouzou0208@gmail.com>

* fix: change it to better name and add comments

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: WenyXu <wenymedia@gmail.com>

---------

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: WenyXu <wenymedia@gmail.com>
2025-02-25 17:38:22 +09:00
LFC a25adc8a01 feat: add cpu cores count in heartbeat's node info (#217)
* feat: add cpu cores number to `NodeInfo`
2025-02-20 11:28:29 +08:00
Ruihang Xia fc09a56966 feat: support alter skipping index (#215)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2025-02-14 09:41:38 -08:00
discord9 e2fd89fce1 chore: rename SequenceSnapshot (#213)
* chore: per review

* chore: per review
2025-02-06 15:44:18 +08:00
discord9 b5d172fe61 feat: Query ctx snapshots (#212)
* feat: seq_snapshots field for query context

* chore: make

* chore: comment

* refactor: new type

* chore: rename

* chore: not fmt stuff
2025-02-06 15:19:12 +08:00
Yingwen 683e9d10ae chore: upgrade prost (#211)
Co-authored-by: luofucong <luofc@foxmail.com>
Co-authored-by: shuiyisong <113876041+shuiyisong@users.noreply.github.com>
2025-01-22 16:46:05 +08:00
Weny Xu 6cee3db98a feat: add WriteHint and PrimaryKeyEncoding to Mutation (#209)
* feat: add `write_hint` to `Mutation`

* feat: introduce `PrimaryKeyEncoding` and `WriteHint`
2025-01-22 12:00:46 +08:00
Zhenchi ec801a91aa feat: add bloom filter meta (#210)
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
2025-01-16 20:47:12 +08:00
Lanqing Yang 4a173785b3 feat: alter inverted index (#204) 2025-01-16 15:42:12 +08:00
Yingwen 43ddd8dea6 feat: add add_if_not_exists to AddColumn (#207)
* feat: add column if not exists

* chore: generate codes

* feat: add if not exists for each col

* chore: gen codes
2025-01-03 23:00:22 +08:00
LFC 1a580a0854 chore: derive every type with serde (#206) 2024-12-30 16:30:43 +08:00
Weny Xu a875e97644 feat: alter database ttl (#203)
* feat: alter database ttl

* chore: add ddl task

* chore: single task

* chore: remove options

* feat: add unset database options

---------

Co-authored-by: CookiePieWw <profsyb@gmail.com>
2024-11-21 19:08:03 +08:00
Weny Xu 0b90ddc7eb feat: add UnsetTableOptions (#201) 2024-11-20 20:08:41 +08:00