* feat: add new json format
* refactor: rename native format
* chore: store nested data type in json_native_extension
* feat: use json as a concrete type in proto
* Revert "feat: add `BuildIndexRequest` to `RegionRequestHeader` (#276)"
This reverts commit ee46a0eeaa.
* feat: add struct and list data type
* type extensions
* feat: extend column type
* chore: rename fields
* add value enum item
* feat: add value
* refactor: item->items
* feat: use single ListValue/StructValue for Row and Column
* feat: truncate request by time ranges
Signed-off-by: discord9 <discord9@163.com>
* fix: default time unit is millisecond
Signed-off-by: discord9 <discord9@163.com>
* refactor: per review
Signed-off-by: discord9 <discord9@163.com>
* add time ranges to truncate table expr
Signed-off-by: discord9 <discord9@163.com>
* chore: make all
Signed-off-by: discord9 <discord9@163.com>
* chore: fmt
Signed-off-by: discord9 <discord9@163.com>
* chore: make all
Signed-off-by: discord9 <discord9@163.com>
* chore: make all
Signed-off-by: discord9 <discord9@163.com>
---------
Signed-off-by: discord9 <discord9@163.com>
* 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>
* 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>
* 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>
* 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