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
Xieqijun
de0b8aa0a0
feat: Support the DELETE SQL statement ( #942 )
...
* [WIP]:delete sql
* [fix]:time parser bug
* [fix]:resolve conflict
* [fmt]:cargo fmt
* [fix]:remove unless log
* [fix]:test
* [feat]:add error parse
* [fix]:resolve conflict
* [fix]:remove unless code
* [fix]:remove unless code
* [test]:add IT
* [fix]:add license
* [fix]:ci
* [fix]:ci
* [fix]:ci
* [fix]:remove
* [fix]:ci
* [feat]:add sql
* [fix]:modify sql
* [feat]:refactor parser_expr
* [feat]:rm backtrace
* [fix]:ci
* [fix]: conversation
* [fix]: conversation
* feat:refactor delete
* feat:refactor delete
* fix:resolve conversation
* fix:ut
* fix:ut
* fix:conversation
* fix:conversation
* fix:conservation
---------
Co-authored-by: xieqijun <qijun@apache.org >
2023-02-15 13:13:17 +08:00
Xieqijun
63e396e9e9
test: add api and doc http test ( #998 )
...
* test:add api and doc test
* fix:conservation
2023-02-15 11:55:13 +08:00
Eugene Tolbakov
4d8276790b
refactor(storage): remove unused FlushIo variant ( #1002 )
...
refactor(storeage): remove unused FlushIo variant
2023-02-15 11:42:05 +08:00
Lei, HUANG
374acc8830
feat: compaction reader and writer ( #972 )
...
* feat: compaction reader and writer
* feat: make ParquetWrite accept both memtable iterator and chunk reader
* feat: adapt ParquetWriter to accomodate ChunkReaderImpl
* chore: rebase develop
* wip: compile
* wip: task logic
* feat: version and manifest update
* fix: remove useless as_inner from Timestamp vectors
* feat: mark file compacting
* fix: unit test
* fix: clippy warnings
* fix: CR comment
* chore: according to cr comments, remove visit_levels from LevelMetas
* fix: some CR comments
* fix: add PlainTimestampRowFilter for correctness
* fix: cr comments
* fix: some typos
2023-02-14 17:32:00 +08:00
shuiyisong
8491f65093
refactor: remove obj_name_to_tab_ref ( #989 )
2023-02-14 16:33:55 +08:00
Weny Xu
5e6f340dd9
refactor: refactor execute_stream to non-async method ( #980 )
2023-02-14 15:41:22 +08:00
Ruihang Xia
7b98718cd9
test: Some PromQL cases about aggregator ( #977 )
...
* port some aggregator tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* find two unsupported cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy warnings
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* resolve CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix fn naming
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-02-14 15:36:00 +08:00
Yingwen
0f7e5a2fb2
feat: Implement LocalManager::recover ( #981 )
...
* feat: Implement LocalManager::recover
* feat: Impl From<ObjectStore> for ProcedureStore
2023-02-14 14:50:43 +08:00
LFC
9ad6c45913
test: Sqlness tests for distribute mode ( #979 )
...
* test: Sqlness tests for distribute mode
* ci
* fix: resolve PR comments
* fix: resolve PR comments
2023-02-14 10:24:09 +08:00
fys
7fe417e740
fix: an error occurred when requesting the http doc api ( #984 )
2023-02-13 11:17:27 +00:00
fys
c1a9f84c7f
feat: meta provides the ability to distribute lock ( #961 )
...
* add DistLock trait and a implement based etcd
wip
impl lock grpc service for meta-srv
reuse the etcd client instead of repeatedly creating etcd client
add some docs and comments
add some comment
meta client support distribute lock
fix: dead lock
self-cr
* cr
* rename "expire" -> "expire_secs"
v0.1.0-alpha-20230213-weekly
2023-02-13 15:58:30 +08:00
Yingwen
be897efd01
feat: Execute procedure in LocalManager ( #953 )
...
* feat: Runner executes procedure
* feat: Add rollback key type to ParsedKey
* feat: Write rollback key when procedure is unable to execute
* feat: Use loaded step to re-submit subprocedure
* feat: Track subprocedures in ProcedureMeta
* feat: Clean message cache after the root procedure is done
* feat: Runner returns execution result
* fix: Fix tests
* test: Test Runner
* test: Test procedures_in_tree
* chore: Refine test and comments
* feat: Remove support of lock inheritance
A deadlock happens if a subprocedure acquires the same lock key as
its parent.
The main concern is if the subprocedure directly inherits its parent's
lock, then how should we behave when multiple subprocedures acquire
this same lock? Each procedure may assume it has unique access to the
same object but it actually shares the resource with others.
Now subprocedures need to use different keys to lock objects, which is
reasonable. For example:
- A parent procedure wants to create a table so it locks the table with
a key like `catalog.schema.table`
- Subprocedures create regions for the table so they lock the regions
with keys `catalog.schema.table.region-0 ~ catalog.schema.table.region-n`
* style: Fix clippy
* feat: insert_procedure returns false on duplicate procedure
Also rename this method to try_insert_procedure
* chore: Address CR comments
2023-02-13 10:38:56 +08:00
Eugene Tolbakov
c06e04afbb
refactor(query): tests from query/tests to query/src ( #973 )
...
* refactor(query): tests from query/tests to query/src
* chore(query): address rust fmt issues
* chore(query): add licence header
2023-02-12 20:55:17 +08:00
Lei, HUANG
e77a7f253c
feat: L0 to L1 compaction strategy ( #964 )
...
* feat: impl simple compaction strategy
* chore: rebase to develop and fix clippy warnings
* chore: simplify time bucket strcut
* chore: some typos
2023-02-11 21:10:24 +08:00
Eugene Tolbakov
7d6f4cd88b
feat: remove backtrace from sql::error::Error ( #966 )
...
* feat: remove backtrace from sql::error::Error
* fix: address formatting issues
---------
Co-authored-by: Evgeny Tolbakov <evgeny.tolbakov@jpmorgan.com >
2023-02-11 14:52:29 +08:00
Ruihang Xia
83ac6598b6
feat: add start, end and step to promql http api ( #969 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-02-10 14:16:16 +08:00
Ruihang Xia
4c925e0079
chore(deps): bump promql-parser ( #968 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-02-10 14:12:55 +08:00
LFC
c6128ec0a4
refactor: use remote proto ( #963 )
...
* refactor: use remote proto (see our new repo "GreptimeTeam/greptime-proto")
* fix: resolve PR comments
2023-02-10 13:35:18 +08:00
discord9
7c34b009ec
feat: bind DataFrame API into python script ( #945 )
...
* chore: remove unused magic fn
* feat: dataframe
* feat: add data_frame crate
* feat: more api binded
* fix: `Comparable` for overload op
* fix: license&more test
* chore: PR advices
* chore: more PR advices
2023-02-10 11:21:57 +08:00
shuiyisong
70edd4d55b
fix: remove incorrect table_idents_to_full_name ( #967 )
2023-02-10 03:15:48 +00:00
Ning Sun
6beea73590
fix: use query_ctx in distributed inserts ( #965 )
2023-02-10 10:09:13 +08:00
Yun Chen
c0d3533d10
fix: Sql Inline Primary Key definition ( #957 )
...
* fix: invalid inline primary key syntax
* fix: format
* fix: clippy fix
* fix: added sqlness tests
* fix: throw exception when multiple inline pk defined
* fix: pr comments
* fix: add ending blank line for create.sql
2023-02-09 18:57:19 +08:00
shuiyisong
9989a8c192
fix: check full table name during logical plan creation ( #948 )
2023-02-09 17:23:28 +08:00
Ruihang Xia
19dd8b1246
feat: SeriesDivide plan for PromQL ( #960 )
...
* implement SeriesDivide plan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* planner part
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy and typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-02-09 11:50:29 +08:00
Lei, HUANG
1e9918ddf9
feat: compaction scheduler and rate limiter ( #947 )
...
* wip: compaction schdduler
* feat: imple simple compaction scheduler
* fix: typo
* feat: add generic parameter to make scheduler friendly to tests
* chore: add more tests
* fix: CR comments
* fix: CR comments
* fix: ensure idempotency for rate limit token
* fix: Cr ct omments
2023-02-09 11:43:20 +08:00
fys
4ce62f850b
chore: add an opaque error type in meta ( #959 )
...
add boxed err in meta
2023-02-08 09:47:33 +00:00
Ning Sun
83d57f9111
fix: setting postgres query context ( #958 )
2023-02-08 16:34:10 +08:00
LFC
803b7f0633
feat: implement "drop table" in distributed mode (both in SQL and gRPC) ( #944 )
...
* feat: implement "drop table" in distributed mode (both in SQL and gRPC)
refactor: create distributed table
some details:
- set table global value in Meta, as well as table routes value. Datanode only set table regional value
- complete instance SQL tests both in standalone and distributed mode
* fix: rebase develop
* fix: resolve PR comments
2023-02-08 07:36:38 +00:00
Ruihang Xia
37ca5ba380
chore: alias sqlness subcommand ( #956 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-02-07 18:53:46 +08:00
Ning Sun
c1d32bdf2b
fix: add form data support for http sql api ( #955 )
...
fix: add form data support for http apis
2023-02-07 10:15:39 +00:00
fys
83509f31f4
feat: datanode stats is stored in the mem_kv of meta leader ( #943 )
...
* store heartbeat data in memory, instead of etcd
* fix: typo
* fix: license header
* cr
2023-02-07 17:09:28 +08:00
elijah
926022e14c
feat: enable caching when using object store ( #928 )
...
* feat: enable caching when using object store
* feat: support file cache for object store
* feat: maintaining the cached files with lru
* fix: improve the code
* empty commit
* improve the code
2023-02-07 15:46:37 +08:00
Ruihang Xia
2f2609d8c6
build(ci): disable release workflow for forked repo ( #954 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-02-07 15:22:32 +08:00
Yingwen
ecadbc1435
feat: Add procedure manager LocalManager ( #946 )
...
* feat: Add ManagerContext and LocalManager
* test: Add register_loader test
* feat: Remove some unused methods
* fix: Fix submit_procedure ensure condition
2023-02-07 11:33:13 +08:00
ShenJunkun
afac885c10
refactor: add schema column to the scripts table ( #868 )
v0.1.0-alpha-20230207-weekly
2023-02-07 11:07:32 +08:00