Yingwen
89399131dd
feat: support add if not exists in the gRPC alter kind ( #5273 )
...
* test: test adding existing columns
* chore: add more checks to AlterKind
* chore: update logs
* fix: check and build table info first
* feat: Add add_if_not_exists flag to alter expr
* feat: skip existing columns when building alter kind
* checks in make_region_alter_kind()
* reuse the alter kind
* test: fix tests in common-meta
* chore: fix typos
* chore: update comments
2025-01-03 07:23:17 +00:00
Yohan Wal
1b0b9add90
feat: use connection pool for pg kv backend in preparation for txn ( #5260 )
...
* feat: use connection pool
* chore: follow review comments
* fix: create table before test
2025-01-02 06:33:21 +00:00
Kould
dad8ac6f71
feat(vector): add vector functions vec_sub & vec_sum & vec_elem_sum ( #5230 )
...
* feat(vector): add sub function
* chore: added check for vector length misalignment
* feat(vector): add `vec_sum` & `vec_elem_sum`
* chore: codefmt
* update lock file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-26 15:07:13 +00:00
discord9
abf34b845c
feat(flow): check sink table mismatch on flow creation ( #5112 )
...
* tests: more mismatch errors
* feat: check sink table schema if exists&prompt nice err msg
* chore: rm unused variant
* chore: fmt
* chore: cargo clippy
* feat: check schema on create
* feat: better err msg when mismatch
* tests: fix a schema mismatch
* todo: create sink table
* feat: create sink table
* fix: find time index
* tests: auto created sink table
* fix: remove empty keys
* refactor: per review
* chore: fmt
* test: sqlness
* chore: after rebase
2024-12-25 13:42:37 +00:00
Ruihang Xia
68dd2916fb
feat: logs query endpoint ( #5202 )
...
* define endpoint
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* planner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update lock file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add unit test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix toml format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* revert metric change
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/query/src/log_query/planner.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* fix compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor and tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2024-12-24 06:21:19 +00:00
Ruihang Xia
60f8dbf7f0
feat: implement v1/sql/parse endpoint to parse GreptimeDB's SQL dialect ( #5144 )
...
* derive ser/de
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl method
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deserialize
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-11 13:33:54 +00:00
Yingwen
7c69ca0502
chore: bump main branch version to 0.12 ( #5133 )
...
chore: bump version to v0.12.0
2024-12-10 13:10:37 +00:00
Weny Xu
01a308fe6b
refactor: relocate CLI to a dedicated directory ( #5101 )
...
* refactor: relocate CLI to a dedicated directory
* chore: expose method and const
* refactor: use BoxedError
* chore: expose DatabaseClient
* chore: add clone derive
2024-12-05 12:12:24 +00:00
Ruihang Xia
5092f5f451
feat: define basic structures and implement TimeFilter ( #5086 )
...
* feat: define basic structures and implement TimeFilter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* document column filter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* define context
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change variable name to avoid typo checker
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change error referring style
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refine context definition
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-04 07:39:33 +00:00
Ning Sun
36263830bb
refactor: remove built-in apidocs and schemars ( #5068 )
...
* feat: feature gate apidocs
* refactor: remove built-in apidocs and schemars
* remove redoc html
2024-11-29 03:31:02 +00:00
Zhenchi
91e933517a
chore: bump version of main branch to v0.11.0 ( #5057 )
...
chore: bump nightly version to v0.11
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-27 02:19:24 +00:00
Zhenchi
1cd6abb61f
chore: bump version to v0.10.1 ( #5048 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-25 03:20:54 +00:00
Zhenchi
a6571d3392
chore: bump version to 0.10.0 ( #5040 )
...
* chore: bump version to 0.10.0
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix sqlness version regex
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-22 03:56:25 +00:00
Yohan Wal
5f8d849981
feat: alter database ttl ( #5035 )
...
* feat: alter databaset ttl
* fix: make clippy happy
* feat: add unset database option
* fix: happy ci
* fix: happy clippy
* chore: fmt toml
* fix: fix header
* refactor: introduce `AlterDatabaseKind`
* chore: apply suggestions from CR
* refactor: add unset database option support
* test: add unit tests
* test: add sqlness tests
* feat: invalidate schema name value cache
* Apply suggestions from code review
* chore: fmt
* chore: update error messages
* test: add more test cases
* test: add more test cases
* Apply suggestions from code review
* chore: apply suggestions from CR
---------
Co-authored-by: WenyXu <wenymedia@gmail.com >
2024-11-21 12:41:41 +00:00
Weny Xu
14d997e2d1
feat: add unset table options support ( #5034 )
...
* feat: add unset table options support
* test: add tests
* chore: update greptime-proto
* chore: add comments
2024-11-21 03:52:56 +00:00
Yohan Wal
55ced9aa71
refactor: split up different stmts ( #4997 )
...
* refactor: set and unset
* chore: error message
* fix: reset Cargo.lock
* Apply suggestions from code review
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
* Apply suggestions from code review
Co-authored-by: Weny Xu <wenymedia@gmail.com >
---------
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-11-20 06:02:51 +00:00
Yohan Wal
a2852affeb
chore: rename change to modify ( #5000 )
...
* chore: rename change to modify
* chore: proto rev
2024-11-15 06:58:26 +00:00
discord9
a70b4d7eba
chore: update greptime-proto to e1070a ( #4992 )
...
* chore: update protot to e1070a
* fix: update proto usage
2024-11-14 11:59:00 +00:00
Yohan Wal
f4b9eac465
build(deps): switch to upstream jsonb ( #4986 )
...
chore: jsonb
2024-11-13 11:15:37 +00:00
Lin Yihai
0b6d78a527
refactor: consolidate DatanodeClientOptions ( #4966 )
...
refactor!: consolidate `DatanodeClientOptions`
2024-11-12 09:57:41 +00:00
Zhenchi
d616bd92ef
feat: introduce vector type ( #4964 )
...
* feat: introduce vector type
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: fix prepared stmt
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: add grpc test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: parse vector value
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: column to row
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: sqlness
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: merge issue
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: add check for bytes size
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* Update tests/cases/standalone/common/types/vector/vector.sql
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* chore: update proto
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: simplify cargo
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: address comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-11-12 08:28:44 +00:00
Yohan Wal
84aa5b7b22
feat: alter fulltext options ( #4952 )
...
* feat(WIP): alter fulltext index
Co-Authored-By: irenjj <renj.jiang@gmail.com >
* feat: alter column fulltext option
Co-Authored-By: irenjj <renj.jiang@gmail.com >
* chore: fmt
* test: add unit and integration tests
Co-Authored-By: irenjj <renj.jiang@gmail.com >
* test: update sqlness test
* chore: new line
* chore: lock file update
* chore: apply review comments
* test: update sqlness test
* test: update sqlness test
* fix: convert
* chore: apply review comments
* fix: toml fmt
* fix: tests
* test: add test for mito
* chore: error message
* fix: test
* fix: test
* fix: wrong comment
* chore: change proto rev
* chore: apply review comments
* chore: apply review comments
* chore: fmt
---------
Co-authored-by: irenjj <renj.jiang@gmail.com >
2024-11-12 03:04:04 +00:00
discord9
ac387bd2af
fix: pprof ( #4938 )
2024-11-05 09:22:29 +00:00
Yohan Wal
1676d02149
fix: panic when jsonb corrupted ( #4919 )
...
* refactor: json type update
* test: update test
* fix: convert when needed
* revert: leave sqlness tests unchanged
* fix: fmt
* refactor: just refactor
* Apply suggestions from code review
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* refactor: parse jsonb first
* test: add bad cases
* Update src/datatypes/src/vectors/binary.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* fix: fmt
* fix: fix clippy/check
* fix: corrupted jsonb panic
* chore(deps): change to rev
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-11-04 06:55:14 +00:00
Ning Sun
69420793e2
feat: implement parse_query api ( #4860 )
...
* feat: implement parse_query api
* chore: switch to upstream
* fix: add post method for parse_query
* chore: bump promql-parser
* test: use latest promql ast serialization
2024-10-30 12:16:22 +00:00
LFC
fd8eba36a8
refactor: make use of the "pre_execute" in sql execution interceptor ( #4875 )
...
* feat: dynamic definition of plugin options
* rebase
* revert
* fix ci
2024-10-30 09:16:46 +00:00
Lei, HUANG
d275cdd570
feat: Support altering table TTL ( #4848 )
...
* feat/alter-ttl:
Update greptime-proto source and add ChangeTableOptions handling
- Change greptime-proto source repository and revision in Cargo.lock and Cargo.toml
- Implement handling for ChangeTableOptions in grpc-expr and meta modules
- Add support for parsing and applying region option changes in mito2
- Introduce new error type for invalid change table option requests
- Add humantime dependency to store-api
- Fix SQL syntax in tests for changing column types
* chore: remove write buffer size option handling since we don't support specifying write_buffer_size for single table or region
* persist ttl to manifest
* chore: add sqlness
* fix: sqlness
* fix: typo and toml format
* fix: tests
* update: change alter syntax
* feat/alter-ttl: Add Clone trait to RegionFlushRequest and remove redundant Default derive in region_request.rs.
* feat/alter-ttl: Refactor code to replace 'ChangeTableOption' with 'ChangeRegionOption' and handle TTL as a region option
• Rename ChangeTableOption to ChangeRegionOption across various files.
• Update AlterKind::ChangeTableOptions to AlterKind::ChangeRegionOptions.
• Modify TTL handling to treat '0d' as None for TTL in table options.
• Adjust related function names and comments to reflect the change from table to region options.
• Include test case updates to verify the new TTL handling behavior.
* chore: update format
* refactor: update region options in DatanodeTableValue
* feat/alter-ttl:
Remove TTL handling from RegionManifest and related structures
- Eliminate TTL fields from `RegionManifest`, `RegionChange`, and associated handling logic.
- Update tests and checksums to reflect removal of TTL.
- Refactor `RegionOpener` and `handle_alter` to adjust to TTL removal.
- Simplify `RegionChangeResult` by replacing `change` with `new_meta`.
* chore: fmt
* remove useless delete op
* feat/alter-ttl: Updated Cargo.lock and gRPC expression Cargo.toml to include store-api dependency. Refactored alter.rs to use ChangeOption from store-api instead of ChangeTableOptionRequest.
Adjusted error handling in error.rs to use MetadataError. Modified handle_alter.rs to handle TTL changes with ChangeOption. Simplified region_request.rs by replacing
ChangeRegionOption with ChangeOption and removing redundant code. Removed UnsupportedTableOptionChange error in table/src/error.rs. Updated metadata.rs to use ChangeOption for table
options. Removed ChangeTableOptionRequest enum and related conversion code from requests.rs.
* feat/alter-ttl: Update greptime-proto dependency to revision 53ab9a9553
* chore: format code
* chore: update greptime-proto
2024-10-30 04:39:48 +00:00
Yohan Wal
8ed5bc5305
refactor: json conversion ( #4893 )
...
* refactor: json type update
* test: update test
* fix: convert when needed
* revert: leave sqlness tests unchanged
* fix: fmt
* refactor: just refactor
* Apply suggestions from code review
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* refactor: parse jsonb first
* test: add bad cases
* Update src/datatypes/src/vectors/binary.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* fix: fmt
* fix: fix clippy/check
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-10-29 15:46:24 +00:00
Weny Xu
9ded314905
feat: add json datatype for grpc protocol ( #4897 )
...
* chore: update greptime-proto
* feat: add json datatype for grpc protocol
2024-10-29 12:37:53 +00:00
discord9
702a55a235
chore: update proto depend ( #4899 )
2024-10-29 09:32:28 +00:00
shuiyisong
32a0023010
chore: add schema urls to otlp logs ( #4876 )
...
* chore: add schema urls to otlp logs table
* chore: update meter-macros version to remove anymap warning
* chore: change span id and trace id to field
2024-10-25 03:45:24 +00:00
Lei, HUANG
e328c7067c
chore: udapte Rust toolchain to 2024-10-19 ( #4857 )
...
* update rust toolchain
* change toolchain to 2024-10-17
* fix: clippy
* fix: ut
* bump shadow-rs
* fix: use nightly-2024-10-19
* fix: clippy
* chore/udapte-toolchain-2024-10-17: Update DEV_BUILDER_IMAGE_TAG to 2024-10-19-a5c00e85-20241024184445 in Makefile
2024-10-25 00:23:32 +00:00
pa
9d3ee6384a
feat: Limit CPU in runtime ( #3685 ) ( #4782 )
...
feat: add throttle runtime (#3685 )
2024-10-24 07:30:24 +00:00
Lei, HUANG
a50eea76a6
chore: bump greptime-meter ( #4858 )
...
chore/bump-greptime-meter: Add meter-core package and update meter-core dependency across various packages to
new git revision.
2024-10-21 08:18:30 +00:00
Weny Xu
c02b5dae93
chore: bump version to 0.9.5 ( #4853 )
2024-10-18 08:07:13 +00:00
Weny Xu
2e0e82ddc8
chore: update greptime-proto to b4d3011 ( #4850 )
2024-10-18 04:10:22 +00:00
localhost
4622412dfe
feat: add API to write OpenTelemetry logs to GreptimeDB ( #4755 )
...
* chore: otlp logs api
* feat: add API to write OpenTelemetry logs to GreptimeDB
* chore: fix test data schema error
* chore: modify the underlying data structure of the pipeline value map type from hashmap to btremap to keep key order
* chore: fix by pr comment
* chore: resolve conflicts and add some test
* chore: remove useless error
* chore: change otlp header name
* chore: fmt code
* chore: fix integration test for otlp log write api
* chore: fix by pr comment
* chore: set otlp body with fulltext default
2024-10-16 04:36:08 +00:00
discord9
16b8cdc3d5
chore: bump version v0.9.4 ( #4833 )
2024-10-15 10:48:03 +00:00
zyy17
972c2441af
chore: bump promql-parser to v0.4.1 and use to_string() for EvalStmt ( #4832 )
...
chore: bump promql-parser to v0.4.1 and use to_string() for EvalStmt
2024-10-15 08:50:37 +00:00
Yingwen
3b2ce31a19
feat: enable prof features by default ( #4815 )
...
* feat: enable prof by default
* docs: don't need to build with features
* feat: add common-pprof as optional dep for pprof feature
* build: remove optional
* feat: use dump_text
2024-10-14 03:32:47 +00:00
Weny Xu
6e776d5f98
feat: support to reject write after flushing ( #4759 )
...
* refactor: use `RegionRoleState` instead of `RegionState`
* feat: introducing `RegionLeaderState::Downgrading`
* refactor: introduce `set_region_role_state_gracefully`
* refactor: use `set_region_role` instead of `set_writable`
* feat: support to reject write after flushing
* fix: fix unit tests
* test: add unit test for `should_reject_write`
* chore: add comments
* chore: refine comments
* fix: fix unit test
* test: enable fuzz tests for Local WAL
* chore: add logs
* chore: rename `RegionStatus` to `RegionState`
* feat: introduce `DowngradingLeader`
* chore: rename
* refactor: refactor `set_role_state` tests
* test: ensure downgrading region will reject write
* chore: enhance logs
* chore: refine name
* chore: refine comment
* test: add tests for `set_role_role_state`
* fix: fix unit tests
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-09-30 08:28:51 +00:00
discord9
54f6e13d13
fix: Release CI & make rustls use ring ( #4750 )
...
* feat: new dev-build
* fix: copy
* chore: rm dbg run
* fix: binstall install script
* chore: typos
* fix: update useable image
* fix: properly uninstall gcc-9
* chore: another try
* chore: print current cc version
* chore: another try to release
* fix: use gcc-10 by `update-alternatives`
* chore: update dev-build image
* remove gcc-9 again and install make/cmake
* use new image
* alias gcc-10/g++-10 to every variant
* again.....
* fix....
* again release ....
* chore: remove auto remove
* feat: rustls default to ring
* chore: update Cargo.lock
* chore: update Cargo.lock
* Apply suggestions from code review
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-09-24 03:11:12 +00:00
Weny Xu
163cea81c2
feat: migrate local WAL regions ( #4715 )
...
* feat: allow to flush region before migrating
* fix: fix unit tests
* feat: allow to set `flush_timeout`
* feat: skip to replay memtable
* fix: fix unit tests
* test: add more tests
* refactor: simplify timeout logical
* test: add unit tests
* test: add unit tests
* chore: update comments
* fix: fix unit tests
* fix: fmt and clippy
* feat: change default timeout to 30s
* fix: throw `ExceededDeadline` error
* test: add tests for `downgrade_region_with_retry`
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: update proto to `3633474`
* refactor: refactor `upgrade_region_with_retry`
* chore: apply suggestions from CR
2024-09-20 08:27:20 +00:00
taobo
0c9b8eb0d2
feat: improve observability for procedure ( #4675 )
...
* feat: improve observability for procedure
* fix: test error
* test: add sqlness test for information_schema.procedure_info
* fix: sqlness test error
* fix: cr comment
* chore: update proto version
* fix: apply cr comment
* update version
* fix: cr comment
* optimize procedure type output format
* upgrade dep version
* fix: clippy error
* fix: `procedure` borrowed error
* fix: optimize code
2024-09-20 06:07:53 +00:00
Yohan Wal
95787825f1
build(deps): use original jsonb repo ( #4742 )
2024-09-19 09:44:44 +00:00
Ning Sun
08bd40333c
feat: add an option to turn on compression for arrow output ( #4730 )
...
* feat: add an option to turn on compression for arrow output
* fix: typo
2024-09-19 04:38:41 +00:00
discord9
d1e0602c76
fix: opensrv Use After Free update ( #4732 )
...
* chore: version skew
* fix: even more version skew
* feat: use `ring` instead of `aws-lc` for remove nasm assembler on windows
* feat: use `ring` for pgwire
* feat: change to use `aws-lc-sys` on windows instead
* feat: change back to use `ring`
* chore: provide CryptoProvider
* feat: use upstream repo
* feat: install ring crypto lib in main
* chore: use same fn to install in tests
* feat: make pgwire use `ring`
2024-09-19 04:12:13 +00:00
shuiyisong
50b3bb4c0d
fix: sort cargo toml ( #4735 )
2024-09-18 09:19:05 +00:00
zyy17
0847ff36ce
fix: config test failed and use similar_asserts::assert_eq to replace assert_eq for long string compare ( #4731 )
...
* fix: config test failed and use 'similar_asserts::assert_eq' to replace 'assert_eq' for long string compare
* Update Cargo.toml
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/cmd/tests/load_config_test.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-09-18 07:41:25 +00:00
shuiyisong
c014e875f3
chore: add auto-decompression layer for otlp http request ( #4723 )
...
* chore: add auto-decompression for http request
* test: otlp
2024-09-18 04:32:00 +00:00