Ruihang Xia
94409967be
Merge branch 'main' into create-view
2024-04-22 21:08:22 +08:00
dependabot[bot]
54432df92f
build(deps): bump rustls from 0.22.3 to 0.22.4 ( #3764 )
...
Bumps [rustls](https://github.com/rustls/rustls ) from 0.22.3 to 0.22.4.
- [Release notes](https://github.com/rustls/rustls/releases )
- [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustls/rustls/compare/v/0.22.3...v/0.22.4 )
---
updated-dependencies:
- dependency-name: rustls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 17:19:08 +08:00
dennis zhuang
8f2ce4abe8
feat: impl show collation and show charset statements ( #3753 )
...
* feat: impl show collation and show charset statements
* docs: add api docs
2024-04-20 06:01:32 +00:00
WU Jingdi
d077892e1c
feat: support PromQL scalar ( #3693 )
2024-04-19 09:56:09 +00:00
LFC
cfed466fcd
chore: update greptime-proto to main ( #3743 )
2024-04-19 06:38:34 +00:00
Ruihang Xia
0c5f4801b7
build: update toolchain to nightly-2024-04-18 ( #3740 )
...
* chore: update toolchain to nightly-2024-04-17
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix ut
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update fuzz test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update to nightly-2024-04-18
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add document
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update CI
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* avoid unnecessary allow clippy attrs
Signed-off-by: tison <wander4096@gmail.com >
* help the compiler find the clone is unnecessary and make clippy happy
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-19 05:42:34 +00:00
Eugene Tolbakov
2114b153e7
refactor: avoid unnecessary alloc by using unwrap_or_else ( #3742 )
...
feat(promql): address post-merge CR
2024-04-19 01:31:25 +00:00
LFC
314f2704d4
build(deps): update datafusion to latest and arrow to 51.0 ( #3661 )
...
* chore: update datafusion
* update sqlness case of time.sql
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: adjust range query partition
* fix: hisogram incorrect result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: ignore filter pushdown temporarily
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: update limit sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: histogram with wrong distribution
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: update negative ordinal sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: bump df to cd7a00b
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* resolve conflicts
* ignore test_range_filter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix promql exec panic
* fix "select count(*)" exec error
* re-enable the "test_range_filter" test since the filter push down seems not necessary to be removed
* fix: range query schema error
* update sqlness results
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* resolve conflicts
* update datafusion, again
* fix pyo3 compile error, and update some sqlness results
* update decimal sqlness cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: promql literal
* fix udaf tests
* fix filter pushdown sqlness tests
* fix?: test_cast
* fix: rspy test fail due to datafusion `sin` signature change
* rebase main to see if there are any failed tests
* debug ci
* debug ci
* debug ci
* enforce input partition
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* debug ci
* fix ci
* fix ci
* debug ci
* debug ci
* debug ci
* fix sqlness
* feat: do not return error while creating a filter
* chore: remove array from error
* chore: replace todo with unimplemented
* Update src/flow/clippy.toml
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: WUJingdi <taylor-lagrange@qq.com >
Co-authored-by: discord9 <discord9@163.com >
Co-authored-by: evenyag <realevenyag@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-18 12:07:18 +00:00
Weny Xu
510782261d
refactor: avoid unnecessary cloning ( #3734 )
...
refactor: using `TxnOpGetResponseSet`
2024-04-18 09:02:28 +00:00
Jeremyhi
20e8c3d864
chore: remove TableIdProvider ( #3733 )
2024-04-18 05:36:37 +00:00
Weny Xu
2a2a44883f
refactor(meta): Ensure all moving values remain unchanged between two transactions ( #3727 )
...
* feat: implement `move_values`
* refactor: using `move_values`
* refactor: refactor executor
* chore: fix clippy
* refactor: remove `CasKeyChanged` error
* refactor: refactor `move_values`
* chore: update comments
* refactor: do not compare `dest_key`
* chore: update comments
* chore: apply suggestions from CR
* chore: remove `#[inline]`
* chore: check length of keys and dest_key
2024-04-18 05:35:54 +00:00
maco
4248dfcf36
feat: support invalidate schema name key cache ( #3725 )
...
* feat: support invalidate schema name key cache
* fix: remove pub for invalidate_schema_cache
* refactor: add DropMetadataBroadcast State Op
* fix: delete files
2024-04-18 04:02:06 +00:00
Yohan Wal
64945533dd
feat: add tinytext, mediumtext and longtext data types ( #3731 )
2024-04-18 03:15:21 +00:00
Yohan Wal
ffc8074556
feat(fuzz): enable create-if-not-exists option ( #3732 )
2024-04-18 02:50:57 +00:00
Ruihang Xia
7e56bf250b
docs: add style guide ( #3730 )
...
* docs: add style guide
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add comments section
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add comment order
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* about error handling
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* about error logging
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-17 11:28:02 +00:00
Ruihang Xia
7503992d61
add statement
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-17 19:13:54 +08:00
tison
50ae4dc174
refactor: merge RegionHandleResult into RegionHandleResponse ( #3721 )
...
* refactor: merge RegionHandleResult into RegionHandleResponse
Signed-off-by: tison <wander4096@gmail.com >
* RegionResponse to api::region
Signed-off-by: tison <wander4096@gmail.com >
* order
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-04-17 10:03:20 +00:00
Ruihang Xia
16aef70089
fix: remove ttl option from metadata region ( #3726 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-17 09:13:53 +00:00
tison
786f43da91
chore: cleanup todos that should be panic ( #3720 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-04-17 05:04:14 +00:00
zyy17
3e9bda3267
ci: use greptimedb-ci-tester account ( #3719 )
2024-04-16 14:43:17 +00:00
Eugene Tolbakov
89d58538c7
chore(mito): set null value data size to i64 ( #3722 )
...
* chore(mito): set null value data size to i64
* chore(mito): move comment to a relevant place
2024-04-16 14:40:16 +00:00
Weny Xu
d12379106e
feat(drop_table): support to rollback table metadata ( #3692 )
...
* feat: support to rollback table metadata
* refactor: store table route value instead of physical table route
* feat(drop_table): support to rollback table metadata
* test: add rollback tests for drop table
* fix: do not set region to readonly
* test: add sqlness tests
* feat: implement TombstoneManager
* test: add tests for TombstoneManager
* refactor: using TombstoneManager
* chore: remove unused code
* fix: fix typo
* refactor: using `on_restore_metadata`
* refactor: add `executor` to `DropTableProcedure`
* refactor: simplify the `TombstoneManager`
* refactor: refactor `Key`
* refactor: carry more info
* feat: add `destroy_table_metadata`
* refactor: remove redundant table_route_value
* feat: ensure the key is empty
* feat: introcude `table_metadata_keys`
* chore: carry more info
* chore: remove clone
* chore: apply suggestions from CR
* feat: delete metadata tombstone
2024-04-16 09:22:41 +00:00
Weny Xu
64941d848e
fix(alter_table): ignore request outdated error ( #3715 )
2024-04-16 08:18:38 +00:00
Ruihang Xia
96a40e0300
feat: check partition rule ( #3711 )
...
* feat: check partition rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy and fmt
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* correct test comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-16 08:13:49 +00:00
Yingwen
d2e081c1f9
docs: update memtable config example ( #3712 )
2024-04-16 07:26:20 +00:00
tison
cdbdb04d93
refactor: remove redundant try_flush invocations ( #3706 )
...
* refactor: remove redundant try_flush invocations
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-04-16 06:35:55 +00:00
Lei, HUANG
5af87baeb0
feat: add filter_deleted option to avoid removing deletion markers ( #3707 )
...
* feat: add `filter_deleted` scan option to avoid removing deletion markers.
* refactor: move sort_batches_and_print to test_util
2024-04-16 06:34:41 +00:00
maco
d5a948a0a6
test: Add tests for KvBackend trait implement ( #3700 )
...
* test: add etcd
* optimize code
* test: add etcd tests
* fix: typos
* fix: taplo error and clippy
* avoid print
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-15 10:51:59 +00:00
Eugene Tolbakov
bbea651d08
feat(promql): parameterize lookback ( #3630 )
...
* feat(promql): parameterize lookback
* chore(promql): address CR, adjusted sqlness
* chore(promql): fmt
* chore(promql): fix accidental removal
* fix(promql): address CR
* fix(promql): address CR
* feat(promql): add initial lookback parameter grpc support
* fix: update greptime-proto revision
* chore: restore accidental removal
2024-04-15 09:11:21 +00:00
zyy17
8060c81e1d
refactor: use toml2docs to generate config docs ( #3704 )
...
* refactor: use toml2docs to generate config docs
* ci: add docs check in 'check-typos-and-docs'
2024-04-15 09:08:32 +00:00
Jeremyhi
e6507aaf34
chore: debt 3696 ( #3705 )
2024-04-15 09:02:19 +00:00
Jeremyhi
87795248dd
feat: get metasrv clusterinfo ( #3696 )
...
* feat: add doc for MetasrvOptions
* feat: register candidate before election
* feat: get all peers metasrv
* chore: simply code
* chore: proto rev
* Update src/common/meta/src/cluster.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* Update src/meta-client/src/client.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* fmt
Signed-off-by: tison <wander4096@gmail.com >
* Apply suggestions from code review
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* impl<T: AsRef<[u8]>> From<T> for LeaderValue
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-15 08:10:48 +00:00
irenjj
7a04bfe50a
feat: add strict mode to validate protocol strings ( #3638 )
...
* feat: add strict mode to validate protocol strings
* hotfix: fix test
* fix: fix return pair and test param
* test: add test for utf-8 validation
* fix: cargo check
* Update src/servers/src/prom_row_builder.rs
Co-authored-by: Eugene Tolbakov <ev.tolbakov@gmail.com >
* fix: fix param of without_strict_mode
* fix: change field name in HttpOptions
* fix: replace if else with match
* fix: replace all strict_mode with is_stirct_mode
* fix: fix test_config_api
* fix: fix bench, add vm handshake, catch error
---------
Co-authored-by: Eugene Tolbakov <ev.tolbakov@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-15 07:53:48 +00:00
Yingwen
2f4726f7b5
refactor: Move manifest manager lock to MitoRegion ( #3689 )
...
* feat: remove manager inner wip
* feat: put manifest lock in region
* feat: don't update manifest if manager is stopped
* chore: address CR comments
2024-04-15 05:48:25 +00:00
dennis zhuang
75d85f9915
feat: impl table_constraints table for information_schema ( #3698 )
...
* feat: impl table_constraints table for information_schema
* test: update information_schema sqlness test
* test: adds table_constraints sqlness test
2024-04-15 03:59:16 +00:00
discord9
db329f6c80
feat(flow): transform substrait SELECT&WHERE&GROUP BY to Flow Plan ( #3690 )
...
* feat: transofrm substrait SELECT&WHERE&GROUP BY to Flow Plan
* chore: reexport from common/substrait
* feat: use datafusion Aggr Func to map to Flow aggr func
* chore: remove unwrap&split literal
* refactor: split transform.rs into smaller files
* feat: apply optimize for variadic fn
* refactor: split unit test
* chore: per review
2024-04-12 07:38:42 +00:00
Ning Sun
544c4a70f8
refactor: check error type before logging ( #3697 )
...
* refactor: check error type before logging
* chore: update log level for broken pipe
* refactor: leave a debugging output for non critial error
2024-04-12 02:18:14 +00:00
dimbtp
02f806fba9
fix: cli export "create table" with quoted names ( #3684 )
...
* fix: cli export `create table` with quoted names
* add test
* apply review comments
* fix to pass check
* remove eprintln for clippy check
* use prebuilt binary to avoid compile
* ci run coverage after build
* drop dirty hack test
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-11 06:56:14 +00:00
tison
9459ace33e
ci: add CODEOWNERS file ( #3691 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-04-10 17:47:54 +00:00
Weny Xu
c1e005b148
refactor: drop table procedure ( #3688 )
...
* refactor: refactor drop table procedure
* refactor: refactor test utils
2024-04-10 12:22:10 +00:00
discord9
c00c1d95ee
chore(flow): more comments&lint ( #3680 )
...
* chore: more comments&lint
* chore: per review
* chore: remove abundant dep
2024-04-10 03:31:22 +00:00
tison
5d739932c0
chore: remove TODO that has been done ( #3683 )
...
This TODO is done by https://github.com/GreptimeTeam/greptimedb/pull/3473 .
2024-04-09 22:55:55 +00:00
Ruihang Xia
aab7367804
feat: try get pk values from cache when applying predicate to parquet ( #3286 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-09 12:53:38 +00:00
Yohan Wal
34f935df66
chore: create database api change in protobuf ( #3682 )
2024-04-09 12:11:38 +00:00
Weny Xu
fda1523ced
refactor: refactor alter table procedure ( #3678 )
...
* refactor: refactor alter table procedure
* chore: apply suggestions from CR
* chore: remove `alter_expr` and `alter_kind`
2024-04-09 10:35:51 +00:00
tison
2c0c7759ee
feat: add checksum for checkpoint data ( #3651 )
...
* feat: add checksum for checkpoint data
Signed-off-by: tison <wander4096@gmail.com >
* add test
Signed-off-by: tison <wander4096@gmail.com >
* clippy
Signed-off-by: tison <wander4096@gmail.com >
* fix: checksum should calculate on uncompressed data
Signed-off-by: tison <wander4096@gmail.com >
* address comments
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-04-09 08:32:24 +00:00
Weny Xu
2398918adf
feat(fuzz): support to create metric table ( #3617 )
...
Co-authored-by: tison <wander4096@gmail.com >
2024-04-09 06:00:04 +00:00
Ruihang Xia
50bea2f107
feat: treat all number types as field candidates ( #3670 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-09 03:28:21 +00:00
JeremyHi
1629435888
chore: unify name metasrv ( #3671 )
...
chore: unify name
2024-04-09 03:03:26 +00:00
tison
b3c94a303b
chore: add a fix-clippy Makefile target ( #3677 )
...
* chore: add a fix-clippy Makefile target
* Update Makefile
2024-04-09 02:59:55 +00:00