Lei, HUANG
fa54870197
fix: parquet native row group pruning support ( #845 )
...
* fix: parquet native row group pruning support
* fix: use filter_map instead of flat_map
2023-01-09 12:10:14 +08:00
Ning Sun
3988770266
feat: add catalog name resolution for postgres and http interface ( #810 )
...
* feat: add catalog name resolution for postgres and http interface
* test: add tests for catalog resolution on http and postgres
* feat: assign custom catalog for query
* chore: order code for better readability
2023-01-09 11:43:25 +08:00
Xuanwo
777a3182c5
feat: Bump OpenDAL to 0.24 for better seekable support ( #847 )
...
* deps: Bump OpenDAL to 0.24 for better seekable support
Signed-off-by: Xuanwo <github@xuanwo.io >
* fix: test
Signed-off-by: Xuanwo <github@xuanwo.io >
Co-authored-by: Lei, HUANG <mrsatangel@gmail.com >
2023-01-09 11:37:43 +08:00
Ning Sun
5b675f54a8
ci: add lto and strip to weekly build ( #841 )
2023-01-06 16:20:23 +08:00
Lei, HUANG
627d444723
fix: remove start from LogStore; fix error message ( #837 )
2023-01-06 12:21:00 +08:00
LFC
d1730a9577
refactor: simplify how Frontend instance handles other protocols ( #831 )
...
* refactor: make influxdb, opentsdb and prometheus read/write goes through GRPC interface, to unify and simplify the Frontend instance either in standalone or distributed mode
2023-01-06 12:19:38 +08:00
Jiachun Feng
ca7ed67dc5
feat: collect stats from heartbeats ( #833 )
...
* feat: collect stats from heartbeats
* chore: refactor and improve the keep_lease_handler
* Update src/meta-srv/src/handler/collect_stats_handler.rs
Co-authored-by: fys <40801205+Fengys123@users.noreply.github.com >
2023-01-06 11:30:23 +08:00
Yingwen
072e5f78b4
feat: Implement delete for table ( #801 )
...
* feat: Table default implementations for insert/alter return error
* feat: Implement delete for mito table
* docs: Fix comment
2023-01-05 20:03:40 +08:00
Lei, HUANG
8f5ecefc90
feat: use raft-engine crate to reimplement logstore ( #799 )
...
* chore: remove useless method in Entry trait, add proto definition for entry and namespace
* feat: add proto definition for raft-engine based logstore
* feat: introduce RaftEngineLogstore
* feat: impl read for raft engine log store
* feat: impl raft engine logstore
* feat: raft engine logstore start and stop
* feat: add purge bg task
* fix: license header
* fix: clippy
* fix: toml files
* feat: add some test cases
* fix: CR comments
* fix: CR comments
* fix: check namespace validity and state of logstore
* fix: CR comments; add config item to control sync/async flush per write
* fix: remove unused error variants
* fix: unit tests
* fix: use compare and exchange to stop logstore
* fix: CR comments
2023-01-05 17:18:51 +08:00
Ruihang Xia
afd9866709
feat: basic promql planner for single arg function call ( #828 )
...
* wip: draft planner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle function args
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* a simple test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* list all operators that accept 1 instant vector as input
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplify test cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update cargo lock
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* CR suggessions
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* CR suggessions
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change the way to handle metric name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-01-05 16:30:54 +08:00
LFC
89d5306740
feat: Impl Query and DDL functionality of Arrow Flight service for Frontend Instance ( #827 )
...
* feat: Implement Query and DDL functionality of Arrow Flight service for Frontend Instance
2023-01-05 14:17:57 +08:00
LFC
50cc0e9b51
feat: Impl Insert functionality of Arrow Flight service for Frontend Instance ( #821 )
...
* feat: Implement Insert functionality of Arrow Flight service for Frontend Instance
* fix: update license content
* Update src/common/grpc-expr/src/alter.rs
Co-authored-by: fys <40801205+Fengys123@users.noreply.github.com >
* fix: resolve PR comments
* fix: resolve PR comments
Co-authored-by: fys <40801205+Fengys123@users.noreply.github.com >
2023-01-04 17:48:59 +08:00
dennis zhuang
7762873842
feat: endpoint and region config for s3 storage ( #820 )
...
* feat: adds serde default attribute to options
* feat: adds endpoint and region for s3 config
2023-01-04 11:24:24 +08:00
LFC
4aa24f0639
fix: test failure ( #822 )
2023-01-04 10:47:18 +08:00
LFC
f1b95e25a1
fix: remove boilerplate message from GRPC error output ( #813 )
...
* fix: remove boilerplate message from GRPC error output
* fix: rebase develop
2023-01-03 20:49:36 +08:00
Ning Sun
041cd422a1
refactor: do not call use upon mysql connection ( #818 )
2023-01-03 19:15:47 +08:00
Ruihang Xia
f907a93b97
feat: impl RangeArray based on DictionaryArray ( #796 )
...
* feat: impl RangeArray based on DictionaryArray
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippys
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* apply review suggs
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update license header
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* update doc to change i32 to u32
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-01-03 18:04:26 +08:00
elijah
a6eb213adf
feat: implement rename table ( #802 )
...
* feat: support renaming tables in the mito table engine
* chore: add test for table engine
* chore: fix test
2023-01-03 17:37:27 +08:00
Ruihang Xia
5fcad7a175
fix: update license header for instant manipulate ( #817 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-01-03 16:10:21 +08:00
Ruihang Xia
0566f812d3
refactor: remove macro define_opaque_error ( #812 )
...
* refactor: remove macro define_opaque_error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl BoxedError
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove open-region error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-01-03 15:50:27 +08:00
Ruihang Xia
334fd26bc5
feat: impl InstantManipulator for PromQL extension ( #803 )
...
* feat: impl InstantSelector for PromQL extension
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* make clippy happy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* apply review suggs
* rename manipulator to manipulate
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-01-03 15:32:12 +08:00
Lei, HUANG
8ffc078f88
fix: license header ( #815 )
2023-01-03 15:09:49 +08:00
shuiyisong
179ff728df
refactor: merge servers::context into session ( #811 )
...
* refactor: move context to session
* chore: add unit test
* chore: add pg, opentsdb, influxdb and prometheus to channel enum
v0.1.0-alpha-20230102-weekly
2022-12-31 00:00:04 +08:00
Yingwen
4d56d896ca
feat: Implement delete for the storage engine ( #777 )
...
* docs: Fix incorrect comment of Vector::only_null
* feat: Add delete to WriteRequest and WriteBatch
* feat: Filter deleted rows
* fix: Fix panic after reopening engine
This is detected by adding a reopen step to the delete test for region.
* fix: Fix OpType::min_type()
* test: Add delete absent key test
* chore: Address CR comments
2022-12-30 17:12:18 +08:00
discord9
6fe205f3b5
chore: Update RustPython(With GC) ( #809 )
...
* chore: use newest RustPython
* chore: use Garbage collected RustPython Fork
* style: format toml
2022-12-30 16:55:43 +08:00
LFC
d13de0aeba
refactor: remove AdminExpr, make DDL expressions as normal GRPC requests ( #808 )
...
* refactor: remove AdminExpr, make DDL expressions as normal GRPC requests
2022-12-30 16:47:45 +08:00
zyy17
11194f37d4
build: install ca-certificates in docker image building ( #807 )
...
refactor: install ca-certificates in docker image building
Signed-off-by: zyy17 <zyylsxm@gmail.com >
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2022-12-30 14:56:39 +08:00
LFC
de6803d253
feat: handle InsertRequest(formerly InsertExpr) in new Arrow Flight ( #800 )
...
feat: handle InsertRequest(formerly InsertExpr) in new Arrow Flight interface
2022-12-30 10:24:09 +08:00
Ruihang Xia
d0ef3aa9eb
docs: align Jeremy Clarkson to the right side ( #804 )
...
docs: align Jeremy Clarkson to right side
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-29 16:55:38 +08:00
LFC
04df80e640
fix: further ease the restriction of executing SQLs in new GRPC interface ( #797 )
...
* fix: carry not recordbatch result in FlightData, to allow executing SQLs other than selection in new GRPC interface
* Update src/datanode/src/instance/flight/stream.rs
Co-authored-by: Jiachun Feng <jiachun_feng@proton.me >
2022-12-28 16:43:21 +08:00
fys
76236646ef
chore: extract some functions from "bootstrap_meta_srv" function ( #795 )
...
refactor: bootstrap of meta
2022-12-28 14:29:52 +08:00
LFC
26848f9f5c
feat: Replace SelectResult with FlightData ( #776 )
...
* feat: replace SelectResult with FlightData
* Update tests/runner/src/env.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-28 10:22:46 +08:00
Ruihang Xia
90990584b7
feat: Prom SeriesNormalize plan ( #787 )
...
* feat: impl SeriesNormalize plan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* some tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: add metrics
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add license header
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* resolve CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* make time index column a parameter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* precompute time index column index
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sign the TODO
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-27 22:59:53 +08:00
LFC
a14ec94653
fix: ease the restriction of the original "SelectExpr" ( #794 )
...
fix: ease the restriction of the original "SelectExpr" since we used to pass SQLs other than selection in the related GRPC interface
2022-12-27 16:50:12 +08:00
Ruihang Xia
26a3e93ca7
chore: util workspace deps in more places ( #792 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-27 16:26:59 +08:00
elijah
3978931b8e
feat: support parsing the RENAME TABLE statements in the parser ( #780 )
...
* feat: add parsing `alter rename table` syntax to the parser
* chore: fix clippy
* chore: add test for parser
* fix: add test for parsing RENAME keyword
* chore: remove unused code
* fix: parse table name object
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: fmt code
Co-authored-by: Yingwen <realevenyag@gmail.com >
2022-12-27 14:53:40 +08:00
shuiyisong
d589de63ef
feat: pub auth_mysql & add auth boxed err ( #788 )
...
* chore: minor openup
* chore: open up auth_mysql and return ()
* chore: typo change
* chore: change according to ci
* chore: change according to ci
* chore: remove tonic status in auth error
2022-12-27 11:04:05 +08:00
LFC
7829e4a219
feat: Implement Arrow Flight Service (except gRPC server) for selection ( #768 )
...
* feat: Implement Arrow Flight Service (but not the GRPC server) for selection
Co-authored-by: luofucong <luofucong@greptime.com >
2022-12-26 16:41:10 +08:00
Mike Yang
bc9a46dbb7
feat: support varbinary ( #767 )
...
feat: support varbinary for table creation and record insertion
2022-12-26 13:14:12 +08:00
Ruihang Xia
a61e96477b
docs: RFC of promql ( #779 )
...
* docs: RFC of promql
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* docs: change styles, list drawback of misusing arrow
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-26 13:12:24 +08:00
Yingwen
f8500e54c1
refactor: Remove PutOperation and Simplify WriteRequest API ( #775 )
...
* chore: Remove unused MutationExtra
* refactor(storage): Refactor Mutation and Payload
Change Mutation from enum to a struct that holds op type and record
batches so the encoder don't need to convert the mutation into record
batch. Now The Payload is no more an enum, it just holds the data, to
be serialized to the WAL, of the WriteBatch. The encoder and decoder
now deal with the Payload instead of the WriteBatch, so we could hold
more information not necessary to be stored to the WAL in the
WriteBatch.
This commit also merge variants in write_batch::Error to storage::Error
as some variants of them denote the same error.
* test(storage): Pass all tests in storage
* chore: Remove unused codes then format codes
* test(storage): Fix test_put_unknown_column test
* style(storage): Fix clippy
* chore: Remove some unused codes
* chore: Rebase upstream and fix clippy
* chore(storage): Remove unused codes
* chore(storage): Update comments
* feat: Remove PayloadType from wal.proto
* chore: Address CR comments
* chore: Remove unused write_batch.proto
2022-12-26 13:11:24 +08:00
discord9
e85780b5e4
refactor: rename some mod.rs to <MOD_NAME>.rs ( #784 )
...
* refactor: rename `mod.rs` to <MOD_NAME>.rs
* refactor: not rename mod.rs in benches/
2022-12-26 12:48:34 +08:00
Ning Sun
11bdb33d37
feat: sql query interceptor and plugin refactoring ( #773 )
...
* feat: let instance hold plugins
* feat: add sql query interceptor definition
* docs: add comments to key apis
* feat: add implementation for pre-parsing and post-parsing
* feat: add post_execute hook
* test: add tests for interceptor
* chore: add license header
* fix: clippy error
* Update src/cmd/src/frontend.rs
Co-authored-by: LFC <bayinamine@gmail.com >
* refactor: batching post_parsing calls
* refactor: rename AnyMap2 to Plugins
* feat: call pre_execute with logical plan empty at the moment
Co-authored-by: LFC <bayinamine@gmail.com >
v0.1.0-alpha-20221226-weekly
2022-12-23 15:22:12 +08:00
LFC
1daba75e7b
refactor: use "USE" keyword ( #785 )
...
Co-authored-by: luofucong <luofucong@greptime.com >
2022-12-23 14:29:47 +08:00
LFC
dc52a51576
chore: upgrade to Arrow 29.0 and use workspace package and dependencies ( #782 )
...
* chore: upgrade to Arrow 29.0 and use workspace package and dependencies
* fix: resolve PR comments
Co-authored-by: luofucong <luofucong@greptime.com >
2022-12-23 14:28:37 +08:00
Ruihang Xia
26af9e6214
ci: setup secrets for setup-protoc job ( #783 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-23 11:36:39 +08:00
fys
e07791c5e8
chore: make election mod public ( #781 )
2022-12-22 17:32:35 +08:00
Yingwen
b6d29afcd1
ci: Use lld for coverage ( #778 )
...
* ci: Use lld for coverage
* style: Fix clippy
2022-12-22 16:10:37 +08:00
LFC
ea9af42091
chore: upgrade Rust to nightly 2022-12-20 ( #772 )
...
* chore: upgrade Rust to nightly 2022-12-20
* chore: upgrade Rust to nightly 2022-12-20
Co-authored-by: luofucong <luofucong@greptime.com >
2022-12-21 19:32:30 +08:00
shuiyisong
d0ebcc3b5a
chore: open userinfo constructor ( #774 )
2022-12-21 17:58:43 +08:00