LFC
df751c38b4
feat: a simple REPL for debugging purpose ( #1048 )
...
* feat: a simple REPL for debugging purpose
* fix: rebase develop
2023-02-27 11:00:15 +08:00
Yingwen
f6e871708a
chore: Rename MetaClientOpts to MetaClientOptions ( #1075 )
...
* fix: Serialize FrontendOptions to toml
* fix: Serialize DatanodeOptions to toml
* fix: Serialize StandaloneOptions to toml
See https://users.rust-lang.org/t/why-toml-to-string-get-error-valueaftertable/85903/2
* chore!: Rename MetaClientOpts to MetaClientOptions
BREAKING CHANGE: Change the meta_client_opts in the config file to
meta_client_options
2023-02-24 16:28:38 +08:00
fys
819c990a89
fix: thread that reports the heartbeat panics in unit test ( #1078 )
...
fix: ut panic in heartbeat report thread
2023-02-24 15:36:32 +08:00
Ruihang Xia
a8b4e8d933
ci: simplify codecov commment ( #1073 )
...
chore(ci): simplify codecov commment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-02-24 15:22:57 +08:00
Yingwen
710e2ed133
ci: Use fixed skywalking-eyes revision ( #1076 )
...
The latest PR of skywalking-eyes https://github.com/apache/skywalking-eyes/pull/149
breaks our CI action
2023-02-24 07:05:18 +00:00
Ning Sun
81eab74b90
refactor: remove grpc client constructor with default catalog/schema ( #1060 )
...
* refactor: remove grpc client with default catalog/schema
* refactor: re-export consts in client module
2023-02-24 11:06:14 +08:00
Ning Sun
8f67d8ca93
fix: update mysql server library to fix tls corrupt messsage issue ( #1065 )
2023-02-24 10:20:44 +08:00
Ruihang Xia
4cc3ac37d5
feat: add DictionaryVector DataType ( #1061 )
...
* fix stddev and stdvar. try build range function expr
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: add dictionary data type
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* preserve timestamp column in range manipulator
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* plan range functions
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update test result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update test result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update test result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* resolve CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* resolve CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-02-23 20:31:07 +08:00
Lei, HUANG
b48c851b96
fix: support datetime type parsing ( #1071 )
...
* fix: support datetime type parsing
* fix: unit test
2023-02-23 20:26:47 +08:00
Xuanwo
fdd17c6eeb
refactor: Clean up re-export of opendal services ( #1067 )
...
Signed-off-by: Xuanwo <github@xuanwo.io >
2023-02-23 14:12:34 +08:00
Ruihang Xia
51641db39e
feat: support filter expression in PromQL ( #1066 )
...
feat: support filter expression
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-02-23 11:55:23 +08:00
Xuanwo
98ef74bff4
chore: Bump OpenDAL to v0.27 ( #1057 )
...
* Bump OpenDAL to v0.27
Signed-off-by: Xuanwo <github@xuanwo.io >
* Make cargo check happy
Signed-off-by: Xuanwo <github@xuanwo.io >
* Address comments
Signed-off-by: Xuanwo <github@xuanwo.io >
* Address comments
Signed-off-by: Xuanwo <github@xuanwo.io >
* Format toml
Signed-off-by: Xuanwo <github@xuanwo.io >
* Make taplo happy
Signed-off-by: Xuanwo <github@xuanwo.io >
---------
Signed-off-by: Xuanwo <github@xuanwo.io >
2023-02-23 11:20:45 +08:00
Lei, HUANG
f42acc90c2
fix: allow empty TableOptions ( #1063 )
...
fix: allow default TableOptions to avoid panic when upgrading from older versions
2023-02-22 19:19:13 +08:00
Lei, HUANG
2df8143ad5
feat: support table ttl ( #1052 )
...
* feat: purge expired sst on compaction
* chore: add more log
* fix: clippy
* fix: mark expired ssts as compacting before picking candidates
* fix: some CR comments
* fix: remove useless result
* fix: cr comments
2023-02-22 16:56:20 +08:00
shuiyisong
fb2e0c7cf3
feat: add auth to grpc handler ( #1051 )
...
* chore: get header in grpc & temp save
* chore: change authscheme to include data str
* chore: add auth to grpc flight handler
* chore: add unit test & hold for now since grpc api doesnt accept req input
* chore: minor change
* chore: minor change
* chore: add flight context to database interface
* chore: add test
* chore: update proto version & fix cr issue
* chore: add test
* chore: minor update
2023-02-22 15:20:10 +08:00
Xieqijun
390e9095f6
feat: admin http api ( #1026 )
...
* feat: catalog list
* feat: catalog list
* feat:api
* feat: leader info
* feat: use constant
* fix: ci
* feat: query heartbeat by ip
* ut: add test
* fix: cr
* fix: cr
* fix: cr
2023-02-22 14:18:37 +08:00
dennis zhuang
bcd44b90c1
feat: invoke TQL via SQL interface ( #1047 )
...
* feat: impl TQL parser in sqlparser
* feat: impl invoking TQL via SQL
* chore: remove src/sql/src/tql_parser.rs
* chore: fix typo
* test: add tql test
* chore: carry type
Co-authored-by: LFC <bayinamine@gmail.com >
* chore: cr comments
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-02-22 11:28:09 +08:00
Yingwen
c6f2db8ae0
feat(procedure): Add procedure watcher ( #1043 )
...
* refactor: Use watch channel to store ProcedureState
* feat: Add a watcher to wait for state change
* test: test watcher on procedure failure
* feat: Only clear message cache on success
* feat: submit returns Watcher
2023-02-21 17:19:39 +08:00
Lei, HUANG
e17d5a1c41
feat: support table options ( #1044 )
...
* feat: change table options from string map to a struct, add ttl and write_buffer_size
* fix: also pass table options to table meta
* feat: pass table options when opening/creating regions
* fix: CR comments
2023-02-21 08:10:23 +00:00
Ruihang Xia
23092a5208
feat: Support unary, paren, bool keyword and nonexistent metric/label in PromQL ( #1049 )
...
* feat: don't report metric/label not found as error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: impl unary expr
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: impl paren expr
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: support bool keyword
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add some tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* ignore nonexistence labels during planning
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 >
2023-02-21 15:24:01 +08:00
Yingwen
4bbad6ab1e
ci: allow ci pass when codecov can't upload data ( #1046 )
2023-02-21 14:52:44 +08:00
Zhizhen He
6833b405d9
ci: upgrade spell checker to 1.13.10 ( #1045 )
...
* ci: upgrade spell checker to 1.13.10
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com >
* fix: fix existing typos
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com >
* chore: use taplo to format typos.toml
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com >
* chore: add fmt-toml rule to format TOML files
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com >
---------
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com >
2023-02-21 10:55:27 +08:00
Yingwen
aaaf24143d
feat: Procedure to create a mito engine ( #1035 )
...
* feat: wip
* feat: Implement procedure to create mito table
* feat: Add create_table_procedure to TableEngine
* feat: Impl dump and lock for CreateMitoTable
* feat: Impl CreateMitoTable::execute and register it to manager
* feat(common-procedure): pub local mod
* feat: Add simple test for MitoCreateTable
* style: Fix clippy
* refactor: Move create_table_procedure to a new trait TableEngineProcedure
2023-02-21 09:40:56 +08:00
Jiachun Feng
9161796dfa
feat: export the data from a table to parquet files ( #1000 )
...
* feat: copy table parser
* feat: coopy table
* chore: minor fix
* chore: give stmt a more clearer name
* chore: unified naming
* chore: minor change
* chore: add a todo
* chore: end up with an empty file when occur an empty table
* feat: format with copy table
* feat: with options
* chore: by cr
* chore: default 5M rows per segment
* Update src/datanode/src/sql/copy_table.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* Update src/datanode/src/sql/copy_table.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* Update src/datanode/src/error.rs
Co-authored-by: fys <40801205+Fengys123@users.noreply.github.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
Co-authored-by: fys <40801205+Fengys123@users.noreply.github.com >
2023-02-20 16:43:50 +08:00
Ruihang Xia
68b231987c
feat: improve Prometheus compliance ( #1022 )
...
* initial impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* minor (useless) refactor
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* retrieve metric name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add time index column to group by columns
filter out NaN in normalize
remove NULL in instant manipulator
accept form data as HTTP params
correct API URL
accept second literal as step param
* happy clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update test result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-02-20 07:29:43 +00:00
Yingwen
6e9964ac97
refactor(storage): Simplify debug output of some structs ( #1028 )
...
* refactor: Simplify debug output of RegionImpl
* feat: Simplify memtable debug output
2023-02-20 14:35:30 +08:00
shuiyisong
6afd79cab8
feat: support InfluxDB auth protocol ( #1034 )
...
* chore: add http auth influxdb compat
* chore: add test
* chore: minor change
* chore: fix typo
* chore: fix cr
2023-02-20 03:26:19 +00:00
fys
4e88a01638
feat: support influxdb ping and health endpoint ( #1027 )
...
* feat: support influxdb ping and health endpoint
* add some unit tests
* ping and health api no need auth
* cr
2023-02-20 02:31:51 +00:00
Lei, HUANG
af1f8d6101
feat: file purger ( #1030 )
...
* wip
* wip
* feat: file purger
* chore: add tests
* feat: delete removed file on sst merge
* chore: move MockAccessLayer to test_util
* fix: some cr comments
* feat: add await termination for scheduler
* fix: some cr comments
* chore: rename max_file_in_level0 to max_files_in_level0
v0.1.0-alpha-20230220-weekly
2023-02-19 14:56:41 +08:00
dennis zhuang
a9c8584c98
feat: impl insert data from query ( #1025 )
...
* feat: refactor insertion in datanode
* feat: supports inserting data by select query
* feat: impl cast operation for vector
* feat: streaming insert from select query results
* chore: minor changes
* fix: remove unwrap
* test: insert_to_requsts
* test: test_execute_insert_by_select
* fix: cast operation for vectors
* fix: test
* fix: typo
* chore: by CR comments
* fix: test_statement_to_request
2023-02-17 17:56:12 +08:00
Eugene Tolbakov
7787cfdd42
refactor(datatypes): enhance MutableVector methods ( #987 )
...
* refactor(datatypes): enhance MutableVector methods
* refactor(datatypes): address code review issues
* refactor(datatypes): address more code review issues
* refactor(datatypes): fix merge conflicts
* refactor(datatypes): address code review issues
* refactor(datatypes): address more code review issues
* refactor(datatypes): update sql delete with the newly introduced method
2023-02-17 16:16:23 +08:00
Weny Xu
2f39a77137
feat: add close method for the region trait ( #970 )
...
feat: add close for region trait
2023-02-17 11:32:55 +08:00
Lei, HUANG
16f86a9d77
refactor: separate compaction stuff from task scheduler ( #1021 )
...
* refactor: make schedule request return value generic
* feat: add handler trait
* wip
* feat: use task handler
* fix: unit test
* refactor: separate scheduler mod
* chore: rename
* chore: Request use associate type
* refactor: use associate type
* refactor: use associate type to reduce generic parameters
* chore: further remove generic types
* chore: further remove a generic parameter
2023-02-16 19:30:23 +08:00
dennis zhuang
5ec1a7027b
feat: supports passing user params into coprocessor ( #962 )
...
* feat: make args in coprocessor optional
* feat: supports kwargs for coprocessor as params passed by the users
* feat: supports params for /run-script
* fix: we should rewrite the coprocessor by removing kwargs
* fix: remove println
* fix: compile error after rebasing
* fix: improve http_handler_test
* test: http scripts api with user params
* refactor: tweak all to_owned
2023-02-16 16:11:26 +08:00
Yingwen
ddbc97befb
refactor: changes CreateTableRequest::schema to RawSchema ( #1018 )
...
* refactor: changes CreateTableRequest::schema to RawSchema
* refactor(grpc-expr): create_table_schema returns RawSchema
2023-02-16 16:04:17 +08:00
Ruihang Xia
a8c2b35ec6
chore: bump rust to nightly-2023-02-14 ( #1019 )
...
* chore: bump rust to nightly-2023-02-14
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* bump statrs to 0.16
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-02-16 13:17:57 +08:00
Yingwen
04afee216e
feat(procedure): Support multi-lock keys and querying procedure state from context ( #1006 )
...
* feat: Add ContextProvider to Context
So procedures can query states of other procedures via the
ContextProvider and they don't need to hold a ProcedureManagerRef
* feat: Procedure supports acquring multiple lock keys
* test: Use multi-locks in test
* feat: Add keys_to_lock/unlock
2023-02-15 18:04:19 +08:00
LFC
5533040be7
fix: describe distribute table ( #988 )
...
* fix: describe distribute table
2023-02-15 17:48:43 +08:00
LFC
34fdba77df
feat: create database if not exists ( #1009 )
2023-02-15 17:47:46 +08:00
Ning Sun
cd0d58cb24
fix: correct date/time type format for postgresql ( #1001 )
...
* fix: correct date/time type format for postgresql
* fix: tests for timestamp
* refactor: use Utc datetime for timestamp::to_chrono_datetime
* Update src/servers/Cargo.toml
Co-authored-by: LFC <bayinamine@gmail.com >
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-02-15 09:40:16 +00:00
yuanbohan
8b869642b8
feat: update promql-parser to v0.1.0 ( #994 )
...
feat: update promql-parser version to v0.1.0
2023-02-15 17:23:59 +08:00
Ning Sun
a33d1e9863
ci: add cloud followup label ( #1007 )
...
ci: add cloud followup support
2023-02-15 17:17:32 +08:00
Ruihang Xia
dfe7bfb07f
feat: handle PromQL HTTP API parameters ( #985 )
...
* feat: impl EvalStmt parser
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix compile errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update test result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add integration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* resolve CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl From<PromqlQuery> for PromQuery
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move format into with_context
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update test result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* shorthand compound error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use rfc3339 error to report float parsing error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove CompoundError
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-02-15 17:15:44 +08:00
Ruihang Xia
5d1f231004
fix: update planner state according to output plan ( #1005 )
...
* fix: update context according to planner phase
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* alias out qualifier
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove ignore
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 >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-02-15 16:52:14 +08:00
Ning Sun
40eec85cf7
feat: add catalog name to s3 path ( #1011 )
2023-02-15 08:30:09 +00:00
shuiyisong
e17d564bf0
feat: add client tls option to channel manager config ( #999 )
...
* feat: add client tls to channel manager config
* chore: move test to tests folder
* chore: fix license issue
* chore: fix cr issue
2023-02-15 16:02:27 +08:00
shuiyisong
301656d568
fix: rename schema to db in http param ( #1008 )
...
chore: rename schema to db in http script handler
2023-02-15 15:59:00 +08:00
Zheming Li
a19dee1dc0
feat: duplicate error logs into separate file ( #995 )
...
Signed-off-by: Zheming Li <nkdudu@126.com >
2023-02-15 14:27:32 +08:00
Lei, HUANG
75b8afe043
feat: compaction integration ( #997 )
...
* feat: trigger compaction on flush
* chore: rebase develop
* feat: add config item max_file_in_level0 and remove compaction_after_flush
* fix: cr comments
* chore: add unit test to cover Timestamp::new_inclusive
* fix: workaround to fix future is not Sync
* fix: future is not sync
* fix: some cr comments
2023-02-15 14:14:07 +08:00
fys
e2904b99ac
feat: add retry logic for MetaPeerClient ( #991 )
...
* add retry logic in meta_peer_client
* impl need_retry function
* create meta_peer_client using the builder pattern
* cr
2023-02-15 14:12:53 +08:00