elijah
5dfc24e4f6
fix: create table after rename table ( #894 )
...
* fix: create table after rename table
* chore: fix test
2023-01-19 13:13:09 +08:00
Zheming Li
4987136850
refactor: use rust-toolchain.toml to override toolchain ( #882 )
2023-01-19 13:11:36 +08:00
shuiyisong
6960739b3d
feat: add authorize to UserProvider trait ( #879 )
...
* feat: add SchemaValidator
* feat: add schema validator to mysql shim
* chore: pass schema validator to http auth layer
* feat: add schema validator to http
* feat: add schema validator to pg
* feat: add schema validator to pg
* feat: add schema validator test
* chore: remove println in test
* chore: use !matches
* refactor: refac authenticate and authorize in http auth
* refactor: refac authenticate and authorize in http auth
* chore: typo
* chore: minor change
* refactor: merge schema_validator into user_providier
* chore: fix license issue
* refactor: change http query param from database to db
* chore: fix cr issue
2023-01-18 12:42:08 +08:00
fys
49d83abc0c
chore: add an opaque error type in meta ( #890 )
...
add a boxed error type in meta
2023-01-18 11:30:54 +08:00
Ning Sun
ecb71f81be
feat: add --rpc-hostname option to datanode for a persist address to store in meta ( #871 )
...
* feat: add --rpc-hostname option
* fix: config file and hostname parsing
* Apply suggestions from code review
Co-authored-by: fys <40801205+Fengys123@users.noreply.github.com >
Co-authored-by: fys <40801205+Fengys123@users.noreply.github.com >
2023-01-17 10:50:50 +08:00
fys
6f5639fccd
feat: add load_based selector in meta ( #874 )
...
* fix: wrong error info
* add derive hash for StatKey
* add a attrs field in Context
* add load_based selector
* add license
* make Nodestat module public
* add meta startup config item about selector
* cr: remove attrs, add concrete type in context
* cr: change region_number type to Option<u64>
* cr: add comment in example.toml
* cr
2023-01-17 10:25:00 +08:00
Ruihang Xia
1e9d09099e
feat: update promql-parser to commit fec3c8b ( #881 )
...
deps: update promql-parser to commit fec3c8b
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-01-16 17:55:44 +08:00
Lei, HUANG
daad38360f
fix: impl total order for Timestamp ( #878 )
...
* 1. Reimplement Eq for Timestamp
2. Add and/or for GenericRange
* chore: add test for TimestampRange with diff unit
* chore: optimize split implementation
* fix: clippy
* fix: add fast path
* fix: CR comments
2023-01-16 17:37:30 +08:00
Ruihang Xia
bae0243959
test: sqlness test for insert default ( #873 )
...
* test: sqlness test for insert default
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* empty line
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more sqls
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typos
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update test according to typo fix
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
v0.1.0-alpha-20230116-weekly
2023-01-13 20:22:55 +08:00
dennis zhuang
d162fbb598
fix: compile error in test ( #872 )
2023-01-13 15:12:49 +08:00
Zheming Li
0959c1d16b
feat: support default value when inserting data ( #854 )
2023-01-13 14:49:05 +08:00
discord9
e428a84446
feat: use Python Script as UDF in SQL ( #839 )
...
* feat: reg PyScript as UDF
* refactor: use `ConcreteDataType` instead
* fix: accept `str` data type
* fix: allow binary to capture SIGINT
* test: add test for py udf
* Update src/servers/tests/py_script/mod.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* style: clippy problem
* style: add newline
* chore: PR advices
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-13 14:35:03 +08:00
Ruihang Xia
58c37f588d
feat: plan some aggregate expr in PromQL planner ( #870 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-01-13 14:27:31 +08:00
dennis zhuang
d195a22f40
fix: parsing time index column option ( #865 )
...
* fix: parsing time index column option
* test: adds more cases for creating table
* chore: by CR comments
* feat: validate time index constraint in parser
* chore: improve error msg
2023-01-13 13:22:12 +08:00
elijah
6775c5be87
feat: support renaming table in the catalog manger ( #824 )
...
* feat: support renaming table in the catalog manger
* feat: implement rename table for local catalog manager
* chore: fmt code
* fix: update system catalog when renaming table in local catalog manager
* chore: add instance test for rename table
* chore: fix frontend test
* chore: fix comment
* chore: fix rename table test
* fix: renaming a table with an existing name
* fix: improve the system catalog's renaming process
* chore: improve the code
* chore: improve the comment
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: improve the code
* chore: fix tests
* chore: fix instance_test
* chore: improve the code
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-01-12 19:48:18 +08:00
Ruihang Xia
5e89f1ba4e
ci: run tests on weekly release build ( #869 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-01-12 19:10:23 +08:00
LFC
2664436194
feat: handle "USE <catalog>-<schema>" in MySQL ( #857 )
...
* feat: handle "USE <catalog>-<schema>" in MySQL
* fix: resolve PR comments
2023-01-12 11:12:11 +08:00
shuiyisong
b91c77b862
chore: add path check to http auth ( #866 )
...
* chore: add whitelist to http auth
* chore: use const instead of format everytime
2023-01-12 10:20:18 +08:00
Lei, HUANG
4015dd8075
feat: record sst file time range in FileMeta ( #860 )
...
* feat: record sst file time range in FileMeta
* fix: clippy
* chore: add some log and doc
2023-01-11 21:16:07 +08:00
Yingwen
b39dbcbda9
fix: Fix deleting table with non null column ( #849 )
...
If the table has a non-null column, we need to use default value instead
of null to fill the value columns in the record batch for deletion.
Otherwise, we can't create the record batch since the schema check
doesn't allow null in the non-null column.
2023-01-11 20:06:46 +08:00
elijah
0e8411c2ff
chore: add custom log level support for common_telemetry::init_default_ut_logging() ( #864 )
...
chore: improve default ut logging
2023-01-11 16:52:21 +08:00
Ruihang Xia
a9b42b436d
feat: PromQL handler in query engine ( #861 )
...
* example promql test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* make the mock test works
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update planner test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippys
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add license header
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-01-11 11:31:07 +08:00
dennis zhuang
9428e70971
feat: integration test ( #770 )
...
* feat: add insert test cases
* fix: update results after rebase develop
* feat: supports unsigned integer types and big_insert test
* test: add insert_invalid test
* feat: supports time index constraint for bigint type
* chore: time index column at last
* test: adds more order, limit test
* fix: style
* feat: adds numbers table in standable memory catalog mode
* feat: enable fail_fast and test_filter in sqlness
* feat: add more tests
* fix: test_filter
* test: add alter tests
* feat: supports if_not_exists when create database
* test: filter_push_down and catalog test
* fix: compile error
* fix: delete output file
* chore: ignore integration test output in git
* test: update all integration test results
* fix: by code review
* chore: revert .gitignore
* feat: sort the show tables/databases results
* chore: remove issue link
* fix: compile error and code format after rebase
* test: update all integration test results
2023-01-10 18:15:50 +08:00
Ruihang Xia
32d51947a4
refactor: adjust outermost error message ( #859 )
...
* refactor: adjust outermost error message
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* preserve tonic status code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-01-10 17:28:27 +08:00
Ruihang Xia
5fb417ec7c
feat: implement RangeManipulate ( #843 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl constructor
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* test printout
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* truncate tag columns
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* doc this plan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix empty range
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* document behavior
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-01-10 16:27:09 +08:00
Lei, HUANG
90fcaa8487
feat: expose wal config ( #852 )
...
* feat: wal config
* fix: use human-readable string in wal config
* feat: copy ReadableSize and humanize size config items in toml files
* fix: clippy
2023-01-10 16:07:26 +08:00
Jiachun Feng
c609b193a1
feat: in memory storage on meta leader ( #856 )
...
* chore: minor change on election
* chore: refactor some from/into
* feat: add in_memory store for leader node
* refactor: make context mutable
* feat: add ResetableKvStore trait
2023-01-10 15:53:34 +08:00
Ruihang Xia
1305924423
ci: add sqlness job ( #835 )
...
* ci: add sqlness job
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness to official release
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* filter out backtrace
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix error display
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* close once_cell feature gate
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-01-10 15:12:20 +08:00
Ning Sun
ea753b9ac0
ci: fix release task by correcting output dir ( #853 )
2023-01-10 14:37:35 +08:00
LFC
72f05a3137
feat: flight aboard ( #840 )
...
feat: replace old GRPC interface with Arrow Flight
2023-01-09 17:06:24 +08:00
fys
9e58311ecd
feat: datanode support report number of regions to meta ( #838 )
...
* feat: dn support report number of regions to meta
* put the heartbeat batch to store
* cr: change region_number's parameter to &CatalogManagerRef
* cr: when dn failed to get region number, report region_num = -1 to meta
2023-01-09 16:13:53 +08:00
Ruihang Xia
2679faf911
refactor: move parse methods out of QueryEngine trait ( #850 )
...
* refactor: move parse methods out of QueryEngine trait
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix styles
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change style
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add license header
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test literal
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-01-09 15:44:20 +08:00
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