Ning Sun
fe34ebf770
test: give windows file watcher more time ( #3953 )
...
* test: give windows file watcher more time
* refactor: use constants for timeout
v0.8.0-nightly-20240516
2024-05-16 01:58:45 +00:00
tison
a1c51a5885
chore: catch up label updates ( #3951 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-05-15 16:44:17 +00:00
zyy17
63a8d293a1
refactor: add Configurable trait ( #3917 )
...
* refactor: add Configurable trait
* refactor: add merge_with_cli_options() to simplify load_options()
* docs: add comments
* fix: clippy errors
* fix: toml format
* fix: build error
* fix: clippy errors
* build: downgrade config-rs
* refactor: use '#[snafu(source(from()))'
* refactor: minor modification for load_layered_options() to make it clean
2024-05-15 12:56:40 +00:00
tison
6c621b7fcf
ci: implement docbot in cyborg ( #3937 )
...
* ci: implement docbot in cyborg
Signed-off-by: tison <wander4096@gmail.com >
* allow remove non-existing label
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
* fixup org name
Signed-off-by: tison <wander4096@gmail.com >
* fixup step name
Signed-off-by: tison <wander4096@gmail.com >
* remove unused file
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-05-15 12:55:49 +00:00
Yingwen
529e344450
ci: Use lld linker in windows tests ( #3946 )
...
* ci: disable other test
* ci: timeout 30
* ci: try to use lld
* ci: change linker
* test: wait for file change in test multiple times
* ci: enable other tests
* chore: revert sleep in loop
2024-05-15 12:34:10 +00:00
Zhenchi
2a169f9364
perf(operator): reuse table info from table creation ( #3945 )
...
perf(operator): reuse table info from creating
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-05-15 09:18:17 +00:00
discord9
97eb196699
feat(flow): query table schema&refactor ( #3943 )
...
* feat: get table info
* feat: remove new&unwrap
* chore: per PR advices
* chore: per review
2024-05-15 08:35:12 +00:00
Yohan Wal
cfae276d37
feat(fuzz): add validator for inserted rows ( #3932 )
...
* feat(fuzz): add validator for inserted rows
* fix: compatibility with mysql types
* feat(fuzz): add datetime and date type in mysql for row validator
2024-05-15 07:05:51 +00:00
Weny Xu
09129a911e
chore: update greptime-proto to a11db14 ( #3942 )
2024-05-15 03:38:47 +00:00
discord9
15d7b9755e
feat(flow): flow worker ( #3934 )
...
* feat: flow worker
* chore: fix after cherry pick
* refactor: error handling
* refactor: error handling
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: merge origin/main
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
2024-05-14 16:09:25 +00:00
Jeremyhi
72897a20e3
chore: minor refactor on etcd kvbackend ( #3940 )
...
* chore: minor refactor on etcd kvbackend
* chore: avoid clone
2024-05-14 13:25:22 +00:00
Lei, HUANG
c04d02460f
fix(metric engine): label mismatch in metric engine ( #3927 )
...
* fix: label mismatch
* test: add unit test
* chore: avoid updating full primary keys
* fix: style
* chore: add some doc for PkIndexMap
* chore: update some doc
2024-05-14 12:58:22 +00:00
discord9
4ca7ac7632
feat(flow): add types for every plan enum variant ( #3938 )
...
* feat: Plan with types
* chore: per review advices
2024-05-14 10:51:37 +00:00
Jeremyhi
a260ba3ee7
feat: use txn to impl cas ( #3936 )
...
* feat: usr txn to impl cas
* chore: fix test
2024-05-14 08:21:27 +00:00
dennis zhuang
efd3f04b7c
feat: create view ( #3807 )
...
* add statement
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: rebase with main
* fix: create flow
* feat: adds gRPC stuff
* feat: impl create_view ddl in operator
* feat: impl CreateViewProcedure
* chore: update cargo lock
* fix: format
* chore: compile error after rebasing main
* chore: refactor and test create view parser
* chore: fixed todo list and comments
* fix: compile error after rebeasing
* test: add create view test
* test: test view_info keys
* test: adds test for CreateViewProcedure and clean code
* test: adds more sqlness test for creating views
* chore: update cargo lock
* fix: don't replace normal table in CreateViewProcedure
* chore: apply suggestion
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
* chore: style
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
2024-05-14 08:03:29 +00:00
Weny Xu
f16ce3ca27
feat: support to invalidate flow cache ( #3926 )
...
* feat: add `FlowName` & `FlowId` to `CacheIdent`
* feat: support to invalidate flow cache
* chore: apply suggestions from CR
2024-05-14 06:24:09 +00:00
Yingwen
6214180ecd
build: upgrade rust toolchain to fix ci issues on Windows ( #3898 )
...
* ci: use windows 2019
* test: ignore cleanup result
* chore: revert change
* test: unstable repeated task test
* build: update rust toolchain and windows
* ci: test sqlness
* chore: enable other tests
2024-05-14 06:13:43 +00:00
Weny Xu
00e21e2021
fix: potential deadlock ( #3930 )
...
fix: fix potential deadlock
2024-05-14 03:04:03 +00:00
maco
494ce65729
feat: limiting the size of query results to Dashboard ( #3901 )
...
* feat: limiting the size of query results to Dashboard
* optimize code
* fix by cr
* fix integration tests error
* remove RequestSource::parse
* refactor: sql query params
* fix: unit test
---------
Co-authored-by: tison <wander4096@gmail.com >
2024-05-14 01:57:30 +00:00
Weny Xu
e15294db41
feat: introduce TableRouteCache to PartitionRuleManager ( #3922 )
...
* chore: add `CompositeTableRouteCacheRef` to `PartitionRuleManager`
* chore: update comments
* fix: add metrics for `get`
* chore: apply suggestions from CR
* chore: correct cache name
* feat: implement `LayeredCacheRegistry`
* fix: invalidate logical tables by physical table id
* refactor: replace `CacheRegistry` with `LayeredCacheRegistry`
* chore: update comments
* chore: apply suggestions from CR
* chore: fix fmt
* refactor: use `TableRouteCache` instead
* chore: apply suggestions from CR
* chore: fix clippy
2024-05-13 13:26:43 +00:00
discord9
be1eb4efb7
feat(flow): render source/sink ( #3903 )
...
* feat(flow): render src/sink
* chore: add empty impl
* chore: typos
* refactor: according to review(WIP)
* refactor: reexport df_sbustrait&use to_sub_plan
* fix: add implict location to error enum
* fix: error handling unwrap query_ctx
2024-05-13 11:58:02 +00:00
Jeff Chiang
9d12496aaf
feat: create database with options ( #3751 )
...
* feat: create database with options
* fix: clippy
* fix: clippy
* feat: rebase and add Display test
* feat: sqlness test for creating database with options
* address comments
Signed-off-by: tison <wander4096@gmail.com >
* fixup tests
Signed-off-by: tison <wander4096@gmail.com >
* catch up
Signed-off-by: tison <wander4096@gmail.com >
* DefaultOnNull
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-05-13 09:00:15 +00:00
Jeremyhi
5d8084a32f
chore: store-addr to store-addrs ( #3925 )
2024-05-13 08:30:25 +00:00
zyy17
60eb5de3f1
refactor: add tracing options in xOptions ( #3919 )
...
* refactor: add tracing options in {DatanodeOptions, FrontendOptions, MetasrvOptions, StandaloneOptions}
* ci: fix integration error
* refactor: minor modification for initialization of tracing options
2024-05-13 05:16:50 +00:00
maco
a0be7198f9
feat: migrate orc-rs to datafusion-orc ( #3923 )
2024-05-13 05:15:06 +00:00
Jeremyhi
6ab3aeb142
refactor: rename metasrv_addr to metasrv_addrs ( #3921 )
2024-05-12 03:44:21 +00:00
Ruihang Xia
590aedd466
fix: sort unstable HTTP result in label values query ( #3920 )
...
* fix: sort unstable HTTP result in label values query
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: Update src/servers/src/http/prometheus.rs
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-05-11 11:33:01 +00:00
Weny Xu
27e376e892
feat: implement the CompositeTableRoute ( #3918 )
...
* feat: implement the `CompositeTableRoute`
* chore: update comments
2024-05-11 11:09:00 +00:00
Weny Xu
36c41d129c
feat: support to create & drop flow via grpc ( #3915 )
...
* feat: support to create & drop flow via grpc
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-05-11 11:01:48 +00:00
Weny Xu
89da42dbc1
refactor: refactor frontend cache ( #3912 )
...
* feat: implement the `TableCache`
* refactor: use `TableCache`
* refactor: replace `TableFlowManager` with `TableFlownodeSetCache`
* refactor: introduce cache crate
* chore: add comments
* chore: update comments
* chore: apply suggestions from CR
* chore: rename `cache_invalidator` to `local_cache_invalidator`
* chore(fuzz): set `acquire_timeout` to 30s
2024-05-11 09:58:18 +00:00
Jeremyhi
04852aa27e
chore: keep the same naming style ( #3916 )
2024-05-11 09:39:49 +00:00
Yingwen
d0820bb26d
refactor: Remove PhysicalPlan trait and use ExecutionPlan directly ( #3894 )
...
* refactor: remove PhysicalPlan
* refactor: remove physical_plan mod
* refactor: import
* fix merge error
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-05-11 07:38:03 +00:00
Jeremyhi
fa6c371380
feat: metaclient builder options with role ( #3909 )
...
* feat: metaclient builder options with default role
* chore: remove unnecessary ut
2024-05-11 06:17:14 +00:00
Jeremyhi
9aa2182cb2
refactor: make txn easy to use ( #3905 )
...
refactor: put_if_not_exists and compare_and_put API
2024-05-11 04:45:04 +00:00
Weny Xu
bca2e393bf
refactor: add procedure_loader macro ( #3906 )
2024-05-11 04:41:21 +00:00
zyy17
b1ef327bac
refactor: remove MixOptions and use StandaloneOptions only ( #3893 )
...
* refactor: remove MixOptions and use StandaloneOptions only
* refactor: refactor code by code review comments
1. Use '&self' in frontend_options() and datanode_options();
2. Remove unused 'clone()';
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* ci: fix integration error
---------
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2024-05-10 16:08:34 +00:00
Ruihang Xia
115c74791d
build(deps): bump snafu to 0.8 ( #3911 )
...
* change Cargo.toml
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* global replace
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle alias in script engine
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-10 13:36:25 +00:00
Ruihang Xia
aec5cca2c7
feat: support distributed EXPLAIN ANALYZE ( #3908 )
...
* feat: fetch and pass per-plan metrics
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl DistAnalyzeExec
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness results
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo again
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/query/src/analyze.rs
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
2024-05-10 12:31:29 +00:00
Weny Xu
06e1c43743
feat: support to drop flow ( #3900 )
...
* feat: support to drop flow
* chore: apply suggestions from CR
2024-05-10 12:09:37 +00:00
Weny Xu
9d36c31209
feat: introduce the CacheRegistry ( #3896 )
...
* feat: implement the `CacheRegistry`
* refactor: change `CacheInvalidator` signature
* feat: implement `CacheInvalidator`
* feat: add `get_or_register`
* fix: fmt toml
* feat: implement the `CacheRegistryBuilder`
* chore: apply suggestions from CR
* chore: fmt code
2024-05-10 11:53:42 +00:00
Weny Xu
c91132bd14
feat: introduce TableNameCache & TableInfoCache & TableRouteCache ( #3895 )
...
* feat: implement the `TableNameCache`
* feat: implement the `TableInfoCache`
* feat: implement the `TableRouteCache`
* test: add tests for `TableInfoCache` & `TableRouteCache`
* chore: use `TableId`
2024-05-10 09:50:44 +00:00
Ruihang Xia
25e9076f5b
docs: correct v0.7 benchmark report ( #3907 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-10 09:33:06 +00:00
Ruihang Xia
08945f128b
fix: sort unstable HTTP result on test profile
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-10 17:01:42 +08:00
Yingwen
5a0629eaa0
feat: Parquet reader builder supports building multiple ranges to read ( #3841 )
...
* chore: change `&mut self` to `&self`
* feat: define partition and partition context
* refactor: move precise_filter to PartitionContext
* feat: filter wip
* feat: compute projection and fields in format
* feat: use RowGroupReader to implement ParquetReader
* fix: use expected meta to get column id for filters
* feat: partition returns row group reader
* style: fix clippy
* feat: add build partitions method
* docs: comment
* refactor: rename Partition to FileRange
* chore: address CR comments
* feat: avoid allocating column ids while constructing ReadFormat
2024-05-10 07:39:38 +00:00
Weny Xu
89dbf6ddd2
chore: bump proto to 219b24 ( #3899 )
...
chore: bump to 219b24
2024-05-10 03:55:34 +00:00
Ruihang Xia
66aa08d815
fix: memory leak in unit test of telemetry ( #3897 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-09 14:29:22 +00:00
Weny Xu
b8a325d18c
feat: implement CacheContainer & TableFlownodeSetCache ( #3885 )
...
* feat: implement the `CacheContainer`
* feat: implement the `TableFlownodeSetCache`
* chore: remove unused feature
* chore: remove unused `Arc`
* refactor: refactor origin `get` to `get_by_ref`
* chore: update comments
* refactor: refactor `CacheContainer`
* chore: move `CacheContainer` to container.rs
* feat: add metrics
* chore: update tests
* test: add tests for value not exists
* test: add test for get
* chore: apply suggestions from CR
2024-05-09 09:26:35 +00:00
Ruihang Xia
ed95e99556
chore: deprecate nyc-taxi benchmark ( #3891 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-09 08:59:38 +00:00
Weny Xu
5545a8b023
feat: implement drop flow procedure ( #3877 )
...
* feat: implement `destroy_flow_metadata` method
* chore: bump proto to 65c1364
* feat: implement the drop flow procedure
* feat: add `MockFlownodeManager`
* tests: add tests for create flow & drop flow procedure
* chore: apply suggestions from CR
* chore: use `ClusterId`
2024-05-09 08:23:19 +00:00
Weny Xu
5140d247e3
feat: implement drop flow parser ( #3888 )
...
* feat: implement drop flow parser
* Update src/sql/src/parsers/drop_parser.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* fix: fmt code
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-09 07:14:22 +00:00