Ruihang Xia
fb0b4eb826
fix: fix compile error for mean/polyval/pow/interp ops
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-07 15:12:28 +08:00
Yingwen
2ba99259e1
feat: Implements diff accumulator using WrapperType ( #715 )
...
* feat: Remove usage of opaque error from common::recordbatch
* feat: Remove opaque error from common::query
* feat: Fix diff compiler errors
Now common_function just use common_query's Error and Result. Adds
a LargestType associated type to LogicalPrimitiveType to get the largest
type a logical primitive type can cast to.
* feat: Remove LargestType from NativeType trait
* chore: Update comments
* feat: Restrict Scalar::RefType of WrapperType to itself
Add trait bound `for<'a> Scalar<RefType<'a> = Self>` to WrapperType
* chore: Address CR comments
* chore: Format codes
2022-12-07 11:13:24 +08:00
Ruihang Xia
551cde23b1
Merge branch 'dev' into replace-arrow2
2022-12-07 10:50:27 +08:00
Ruihang Xia
90c832b33d
refactor: drop support of physical plan query interface ( #714 )
...
* refactor: drop support of physical plan query interface
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor: collapse server/grpc sub-module
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor: remove unused errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-06 19:23:32 +08:00
LFC
8959dbcef8
feat: Substrait logical plan ( #704 )
...
* feat: use Substrait logical plan to query data from Datanode in Frontend in distributed mode
* fix: resolve PR comments
* fix: resolve PR comments
* fix: resolve PR comments
Co-authored-by: luofucong <luofucong@greptime.com >
2022-12-06 19:21:57 +08:00
Yingwen
653906d4fa
fix: Fix common::query compiler errors ( #713 )
...
* feat: Move conversion to ScalarValue to value.rs
* fix: Fix common::query compiler errors
This commit also make InnerError pub(crate)
2022-12-06 16:45:54 +08:00
Ruihang Xia
829ff491c4
fix: common-query subcrate ( #712 )
...
* fix: record batch adapter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix error enum
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-06 16:32:52 +08:00
Yingwen
b32438e78c
feat: Fix some compiler errors in common::query ( #710 )
...
* feat: Fix some compiler errors in common::query
* feat: test_collect use vectors api
2022-12-06 15:32:12 +08:00
Lei, HUANG
0ccb8b4302
chore: delete datatypes based on arrow2
2022-12-06 15:01:57 +08:00
Lei, HUANG
b48ae21b71
fix: api crate ( #708 )
...
* fix: rename ConcreteDataType::timestamp_millis_type to ConcreteDataType::timestamp_millisecond_type. fix other warnings regarding timestamp
* fix: revert changes in datatypes2
* fix: helper
2022-12-06 14:56:59 +08:00
discord9
2034b40f33
chore: update RustPython dependence(With a tweaked fork) ( #655 )
...
* refactor: update RsPy
* depend: add `rustpython-pylib`
* feat: add_frozen stdlib for every vm init
* feat: limit stdlib to a selected few
* chore: use `rev` instead of branch` im depend
* refactor: rename to allow_list
* feat: use opt level one
* doc: add username for TODO&change optimize to 0
* style: fmt .toml
2022-12-06 14:15:00 +08:00
evenyag
3c0adb00f3
feat: Fix recordbatch test compiling issue
2022-12-06 12:03:06 +08:00
evenyag
8c66b7d000
feat: Fix common::recordbatch compiler errors
2022-12-06 11:55:19 +08:00
evenyag
99371fd31b
chore: sort Cargo.toml
2022-12-06 11:39:15 +08:00
evenyag
fe505fecfd
feat: Make recordbatch compile
2022-12-06 11:38:59 +08:00
SSebo
55e6be7af1
fix: test_server_require_secure_client_secure ( #701 )
2022-12-06 10:38:54 +08:00
discord9
f9bfb121db
feat: add rate() udf ( #508 )
...
* feat: rewrite `rate` UDF
* feat: rename to `prom_rate`
* refactor: solve conflict&add license
* refactor: import arrow
2022-12-06 10:30:13 +08:00
evenyag
cc1ec26416
feat: Switch to datatypes2
2022-12-05 20:30:47 +08:00
Ruihang Xia
504059a699
chore: fix wrong merge commit
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-05 20:11:22 +08:00
Ruihang Xia
7151deb4ed
Merge branch 'dev' into replace-arrow2
2022-12-05 20:10:37 +08:00
Ruihang Xia
6fb413ae50
ci: add toml format linter ( #706 )
...
* chore: run taplo format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* ci: add workflow to check toml
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rerun formatter with ident to 4 spaces
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update check command
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-05 20:03:10 +08:00
Ruihang Xia
beb07fc895
feat: new datatypes subcrate based on the official arrow ( #705 )
...
* feat: Init datatypes2 crate
* chore: Remove some unimplemented types
* feat: Implements PrimitiveType and PrimitiveVector for datatypes2 (#633 )
* feat: Implement primitive types and vectors
* feat: Implement a wrapper type
* feat: Remove VectorType from ScalarRef
* feat: Move some trait bound from NativeType to WrapperType
* feat: pub use primitive vectors and builders
* feat: Returns error in try_from when type mismatch
* feat: Impl PartialEq for some vectors
* test: Pass vector tests
* chore: Add license header
* test: Pass more vector tests
* feat: Implement some methods of vector Helper
* test: Pass more tests
* style: Fix clippy
* chore: Add license header
* feat: Remove IntoValueRef trait
* feat: Add NativeType trait bound to WrapperType::Native
* docs: Explain what is wrapper type
* chore: Fix typos
* refactor: LogicalPrimitiveType::type_name returns str
* feat: Implements DateType and DateVector (#651 )
* feat: Implement DateType and DateVector
* test: Pass more value and data type tests
* chore: Address CR comments
* test: Skip list value test
* feat: datatypes2 datetime (#661 )
* feat: impl DateTime type and vector
* fix: add license header
* fix: CR comments and add more tests
* fix: customized serialization for wrapper type
* feat: Implements NullType and NullVector (#658 )
* feat: Implements NullType and NullVector
* chore: Address CR comment
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* chore: Address CR comment
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* feat: Implements StringType and StringVector (#659 )
* feat: implement string vector
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more test and from
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* cover NUL
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: impl datatypes2/timestamp (#686 )
* feat: add timestamp datatype and vectors
* fix: cr comments and reformat code
* chore: add some tests
* feat: Implements ListType and ListVector (#681 )
* feat: Implement ListType and ListVector
* test: Pass more tests
* style: Fix clippy
* chore: Fix comment
* chore: Address CR comments
* feat: impl constant vector (#680 )
* feat: impl constant vector
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
* rename fn names
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove println
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
* feat: Implements Validity (#684 )
* feat: Implements Validity
* chore: remove pub from sub mod in vectors
* feat: Implements schema for datatypes2 (#695 )
* feat: Add is_timestamp_compatible to DataType
* feat: Implement ColumnSchema and Schema
* feat: Impl RawSchema
* chore: Remove useless codes and run more tests
* chore: Fix clippy
* feat: Impl from_arrow_time_unit and pass schema tests
* chore: add more tests for timestamp (#702 )
* chore: add more tests for timestamp
* chore: add replicate test for timestamps
* feat: Implements helper methods for vectors/values (#703 )
* feat: Implement helper methods for vectors/values
* chore: Address CR comments
* chore: add more test for timestamp
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: evenyag <realevenyag@gmail.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
Co-authored-by: Lei, HUANG <mrsatangel@gmail.com >
2022-12-05 19:59:23 +08:00
Ning Sun
4275e47bdb
refactor: use updated mysql_async client ( #698 )
2022-12-05 11:18:32 +08:00
dennis zhuang
6720bc5f7c
fix: validate create table request in mito engine ( #690 )
...
* fix: validate create table request in mito engine
* fix: comment
* chore: remove TIMESTAMP_INDEX in system.rs
2022-12-05 11:01:43 +08:00
Lei, HUANG
4052563248
fix: pr template task default state ( #687 )
v0.1.0-alpha-20221205-weekly
2022-12-02 20:39:53 +08:00
dennis zhuang
952e1bd626
test: update dummy result ( #693 )
2022-12-02 19:22:37 +08:00
shuiyisong
8232015998
fix: cargo sort in pre-commit ( #689 )
2022-12-02 16:19:31 +08:00
Ruihang Xia
d82a3a7d58
feat: implement most of scalar function and selection conversion in substrait ( #678 )
...
* impl to_df_scalar_function
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* part of scalar functions
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* conjunction over filters
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change the ser/de target to substrait::Plan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* basic test coverage
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typos and license header
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* logs unsupported extension
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/common/substrait/src/df_expr.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* address review comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* replace context with with_context
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2022-12-02 14:46:05 +08:00
Ning Sun
0599465685
feat: inject current database/schema into query context for postgres protocol ( #685 )
...
* feat: inject current database/schema into query context
* test: avoid duplicate server setup
2022-12-02 11:49:39 +08:00
Mofeng
13d51250ba
feat: add http /health api ( #676 )
...
* feat: add http `/health` api
* feat: add `/health` api test suit in http intergration test
2022-12-01 19:11:58 +08:00
LFC
6127706b5b
feat: support "use" stmt part 1 ( #672 )
...
* feat: a bare sketch of session; support "use" in MySQL server; modify insertion and selection related codes in Datanode
2022-12-01 17:05:32 +08:00
dennis zhuang
2e17e9c4b5
feat: supports s3 storage ( #656 )
...
* feat: adds s3 object storage configuration
* feat: adds s3 integration test
* chore: use map
* fix: forgot license header
* fix: checking if bucket is empty in test_on
* chore: address CR issues
* refactor: run s3 test with dotenv
* chore: randomize grpc port for test
* fix: README in tests-integration
* chore: remove redundant comments
2022-12-01 10:59:14 +08:00
xiaomin tang
b0cbfa7ffb
docs: add a roadmap link in README ( #673 )
...
* docs: add roadmap to README
* docs: missing period
2022-11-30 21:25:27 +08:00
Ruihang Xia
20172338e8
ci: Revert "ci: change CI unit test trigger" ( #674 )
...
Revert "ci: change CI unit test trigger (#671 )"
This reverts commit 9c53f9b24c .
2022-11-30 21:23:40 +08:00
Ruihang Xia
9c53f9b24c
ci: change CI unit test trigger ( #671 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2022-11-30 20:19:35 +08:00
Dongxu Wang
6d24f7ebb6
refactor: bump axum 0.6, use recommended way to nest routes ( #668 )
2022-11-30 20:04:33 +08:00
SSebo
68c2de8e45
feat: mysql and pg server support tls ( #641 )
...
* feat: mysql and pg server support tls
* chore: replace opensrv-mysql to original
* chore: TlsOption is required but supply default value
* feat: mysql server support force tls
* chore: move TlsOption to servers
* test: mysql server disable / prefer / required tls mode
* test: pg server disable / prefer / required tls mode
* chore: add doc and remove no used code
* chore: add TODO and restore cargo linker config
2022-11-30 12:46:15 +08:00
Yingwen
a17dcbc511
chore: fix SequenceNotMonotonic error message ( #664 )
...
* chore: fix SequenceNotMonotonic error message
previous sequence should greater than or equal to given sequence
* Apply suggestions from code review
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2022-11-30 11:58:43 +08:00
Ning Sun
53ab19ea5a
ci: remove assignees which is causing error ( #663 )
2022-11-30 11:36:35 +08:00
Ning Sun
84c44cf540
ci: fix doc label task on forked repo ( #654 )
2022-11-30 11:23:15 +08:00
LFC
020b9936cd
fix: correctly detach spawned mysql listener task ( #657 )
...
Co-authored-by: luofucong <luofucong@greptime.com >
2022-11-29 18:39:18 +08:00
Ning Sun
75dcf2467b
refactor: add tests-integration module ( #590 )
...
* refactor: add integration-tests module
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* test: move grpc module to tests-integration
* test: adapt new standalone mode
* test: improve http assertion
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-11-29 16:28:58 +08:00
Ruihang Xia
eea5393f96
feat: UI improvement for integration test runner ( #645 )
...
* improve dir resolving and start up ordering
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix orphan process
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update tests/runner/src/util.rs, fix typo
Co-authored-by: Dongxu Wang <dongxu@apache.org >
* simplify logic via tokio timeout
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Dongxu Wang <dongxu@apache.org >
2022-11-29 15:32:39 +08:00
Ning Sun
3d312d389d
ci: add doc label support for pr too ( #650 )
2022-11-29 15:21:12 +08:00
dennis zhuang
fdc73fb52f
perf: cache python interpreter in TLS ( #649 )
...
* perf: cache python interpreter when executing coprocessors
* test: speedup test_execute_script by reusing interpreter
* fix: remove comment
* chore: use get_or_insert_with instead
2022-11-29 14:41:37 +08:00
Ning Sun
2a36e26d19
ci: add action to create doc issue when change labelled ( #648 )
...
ci: add action to create doc issue when change labeled
2022-11-29 14:25:57 +08:00
Zheming Li
baef640fe3
feat: add --version command line option ( #632 )
...
* add version command line option
* use concat!
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2022-11-28 17:07:17 +08:00
dennis zhuang
5fddb799f7
feat: enable atomic write for file object storage ( #643 )
...
* fix: remove opendal from catalog dependencies
* feat: enable atomic writing for fs service
2022-11-28 16:01:32 +08:00
Dongxu Wang
f372229b18
fix: append table id to table data dir ( #640 )
2022-11-28 10:53:13 +08:00
Xuanwo
4085fc7899
chore: Bump OpenDAL to v0.21.1 ( #639 )
...
* deps: Bump OpenDAL to v0.21.1
Signed-off-by: Xuanwo <github@xuanwo.io >
* Avoid using raw types when not needed
Signed-off-by: Xuanwo <github@xuanwo.io >
Signed-off-by: Xuanwo <github@xuanwo.io >
v0.1.0-alpha-20221128-weekly
2022-11-27 10:18:39 +08:00