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
LFC
77182f5024
chore: upgrade Arrow to version 28, and DataFusion to 15 ( #771 )
...
Co-authored-by: luofucong <luofucong@greptime.com >
2022-12-21 17:02:11 +08:00
Ning Sun
539ead5460
feat: check database existence on http api ( #764 )
...
* feat: check database existance on http api
* Update src/servers/src/http/handler.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* feat: use database not found status code
* test: add assertion for status code
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-21 10:28:45 +08:00
Ruihang Xia
bc0e4e2cb0
fix: fill NULL based on row_count ( #765 )
...
* fix: fill NULL based on row_count
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplify code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: replace set_len with resize
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-20 12:12:48 +08:00
Ruihang Xia
7d29670c86
fix: consider null mask in sqlness display util ( #763 )
...
* fix: consider null mask in sqlness display util
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add test case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change placeholder to null
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-19 14:20:28 +08:00
LFC
afd88dd53a
fix: test_dist_table_scan block ( #761 )
...
* fix: `test_dist_table_scan` block
* fix: resolve PR comments
Co-authored-by: luofucong <luofucong@greptime.com >
2022-12-19 11:20:51 +08:00
Ning Sun
efd85df6be
feat: add schema check on postgres startup ( #758 )
...
* feat: add schema check on postgres startup
* chore: update pgwire to 0.6.3
* test: add test for unspecified db
2022-12-19 10:53:44 +08:00
Ning Sun
ea1896493b
feat: allow multiple sql statements in query string ( #699 )
...
* feat: allow multiple sql statement in query string
* test: add a test for multiple statement call
* feat: add temprary workaround for standalone mode
* fix: resolve sql parser issue temporarily
* Update src/datanode/src/instance/sql.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: adopt new sql handler
* refactor: revert changes in query engine
* refactor: assume sql-statement 1-1 on datanode
* test: use frontend for integration test
* refactor: add statement execution api for explicit single statement call
* fix: typo
* refactor: rename query method
* test: add test case for error
* test: data type change adoption
* chore: add todo from review
* chore: remove obsolete comments
* fix: resolve resolve issues
Co-authored-by: Yingwen <realevenyag@gmail.com >
v0.1.0-alpha-20221219-weekly
2022-12-16 19:50:20 +08:00
Jiachun Feng
66bca11401
refactor: remove optional from the protos ( #756 )
2022-12-16 15:47:51 +08:00
Yingwen
7c16a4a17b
refactor(storage): Move write_batch::codec to a separate file ( #757 )
...
* refactor(storage): Move write_batch::codec to a separate file
* chore: move new_test_batch to write_batch mod
2022-12-16 15:32:59 +08:00
dennis zhuang
28bd7404ad
feat: change column's default property to nullable ( #751 )
...
* feat: change column's default property to nullable
* chore: use all instead of any
* fix: compile error
* fix: dependencies order in cargo
2022-12-16 11:17:01 +08:00
Lei, HUANG
0653301754
feat: replace arrow2 with official implementation 🎉 ( #753 )
...
* chore: kick off. change datafusion/arrow/parquet to target version
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: replace one last datafusion dep
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: arrow_array switch to arrow
* chore: update dep of binary vector
* chore: fix wrong merge commit
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: Switch to datatypes2
* feat: Make recordbatch compile
* chore: sort Cargo.toml
* feat: Fix common::recordbatch compiler errors
* feat: Fix recordbatch test compiling issue
* 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
* chore: delete datatypes based on arrow2
* feat: Fix some compiler errors in common::query (#710 )
* feat: Fix some compiler errors in common::query
* feat: test_collect use vectors api
* 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 >
* 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)
* 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
* fix: fix compile error for mean/polyval/pow/interp ops
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Revert "fix: fix compile error for mean/polyval/pow/interp ops"
This reverts commit fb0b4eb826 .
* fix: Fix compiler errors in argmax/rate/median/norm_cdf (#716 )
* fix: Fix compiler errors in argmax/rate/median/norm_cdf
* chore: Address CR comments
* fix: fix compile error for mean/polyval/pow/interp ops (#717 )
* fix: fix compile error for mean/polyval/pow/interp ops
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplify type bounds
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: fix argmin/percentile/clip/interp/scipy_stats_norm_pdf errors (#718 )
fix: fix argmin/percentile/clip/interp/scipy_stats_norm_pdf compiler errors
* fix: fix other compile error in common-function (#719 )
* further fixing
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix all compile errors in common function
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: Fix tests and clippy for common-function subcrate (#726 )
* further fixing
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix all compile errors in common function
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* revert test changes
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: row group pruning (#725 )
* fix: row group pruning
* chore: use macro to simplify stats implemetation
* fxi: CR comments
* fix: row group metadata length mismatch
* fix: simplify code
* fix: Fix common::grpc compiler errors (#722 )
* fix: Fix common::grpc compiler errors
This commit refactors RecordBatch and holds vectors in the RecordBatch
struct, so we don't need to cast the array to vector when doing
serialization or iterating the batch.
Now we use the vector API instead of the arrow API in grpc crate.
* chore: Address CR comments
* fix common record batch
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: Fix compile error in server subcrate (#727 )
* fix: Fix compile error in server subcrate
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unused type alias
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* explicitly panic
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/storage/src/sst/parquet.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: Fix common grpc expr (#730 )
* fix compile errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename fn names
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix styles
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix wranings in common-time
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: pre-cast to avoid tremendous match arms (#734 )
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: upgrade storage crate to arrow and parquet offcial impl (#738 )
* fix: compile erros
* fix: parquet reader and writer
* fix: parquet reader and writer
* fix: WriteBatch IPC encode/decode
* fix: clippy errors in storage subcrate
* chore: remove suspicious unwrap
* fix: some cr comments
* fix: CR comments
* fix: CR comments
* fix: Fix compiler errors in catalog and mito crates (#742 )
* fix: Fix compiler errors in mito
* fix: Fix compiler errors in catalog crate
* style: Fix clippy
* chore: Fix use
* Merge pull request #745
* fix nyc-taxi and util
* Merge branch 'replace-arrow2' into fix-others
* fix substrait
* fix warnings and error in test
* fix: Fix imports in optimizer.rs
* fix: errors in optimzer
* fix: remove unwrap
* fix: Fix compiler errors in query crate (#746 )
* fix: Fix compiler errors in state.rs
* fix: fix compiler errors in state
* feat: upgrade sqlparser to 0.26
* fix: fix datafusion engine compiler errors
* fix: Fix some tests in query crate
* fix: Fix all warnings in tests
* feat: Remove `Type` from timestamp's type name
* fix: fix query tests
Now datafusion already supports median, so this commit also remove the
median function
* style: Fix clippy
* feat: Remove RecordBatch::pretty_print
* chore: Address CR comments
* Update src/query/src/query_engine/state.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* fix: frontend compile errors (#747 )
fix: fix compile errors in frontend
* fix: Fix compiler errors in script crate (#749 )
* fix: Fix compiler errors in state.rs
* fix: fix compiler errors in state
* feat: upgrade sqlparser to 0.26
* fix: fix datafusion engine compiler errors
* fix: Fix some tests in query crate
* fix: Fix all warnings in tests
* feat: Remove `Type` from timestamp's type name
* fix: fix query tests
Now datafusion already supports median, so this commit also remove the
median function
* style: Fix clippy
* feat: Remove RecordBatch::pretty_print
* chore: Address CR comments
* feat: Add column_by_name to RecordBatch
* feat: modify select_from_rb
* feat: Fix some compiler errors in vector.rs
* feat: Fix more compiler errors in vector.rs
* fix: fix table.rs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: Fix compiler errors in coprocessor
* fix: Fix some compiler errors
* fix: Fix compiler errors in script
* chore: Remove unused imports and format code
* test: disable interval tests
* test: Fix test_compile_execute test
* style: Fix clippy
* feat: Support interval
* feat: Add RecordBatch::columns and fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* fix: Fix All The Tests! (#752 )
* fix: Fix several tests compile errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: some compile errors in tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: compile errors in frontend tests
* fix: compile errors in frontend tests
* test: Fix tests in api and common-query
* test: Fix test in sql crate
* fix: resolve substrait error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: add more test
* test: Fix tests in servers
* fix instance_test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* test: Fix tests in tests-integration
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Lei, HUANG <mrsatangel@gmail.com >
Co-authored-by: evenyag <realevenyag@gmail.com >
* fix: clippy errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: evenyag <realevenyag@gmail.com >
2022-12-15 18:49:12 +08:00
LFC
61d8bc2ea1
refactor(frontend): minor changes around FrontendInstance constructor ( #748 )
...
* refactor: minor changes in some testing codes
Co-authored-by: luofucong <luofucong@greptime.com >
2022-12-15 14:34:40 +08:00
Ruihang Xia
e3785fca70
docs: change logo in readme automatically based on github theme ( #743 )
...
* docs: adaptive logo on theme
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* switch logos
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* aligh center
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* adjust stylet
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use new logo image
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2022-12-14 19:32:51 +08:00
shuiyisong
fda9e80cbf
feat: impl static_user_provider ( #739 )
...
* feat: add MemUserProvider and impl auth
* feat: impl user_provider option in fe and standalone mode
* chore: add file impl for mem provider
* chore: remove mem opts
* chore: minor change
* chore: refac pg server to use user_provider as indicator for using pwd auth
* chore: fix test
* chore: extract common code
* chore: add unit test
* chore: rebase develop
* chore: add user provider to http server
* chore: minor rename
* chore: change to ref when convert to anymap
* chore: fix according to clippy
* chore: remove clone on startcommand
* chore: fix cr issue
* chore: update tempdir use
* chore: change TryFrom to normal func while parsing anymap
* chore: minor change
* chore: remove to_lowercase
2022-12-14 16:38:29 +08:00
Lei, HUANG
756c068166
feat: logstore compaction ( #740 )
...
* feat: add benchmark for wal
* add bin
* feat: impl wal compaction
* chore: This reverts commit ef9f2326
* chore: This reverts commit 9142ec0e
* fix: remove empty files
* fix: failing tests
* fix: CR comments
* fix: Mark log as stable after writer applies manifest
* fix: some cr comments and namings
* chore: rename all stable_xxx to obsolete_xxx
* chore: error message
2022-12-14 16:15:29 +08:00
dennis zhuang
6a4e2e5975
feat: promql create and skeleton ( #720 )
...
* feat: adds promql crate
* feat: adds promql-parser dependency and rfc doc
* fix: dependencies order in servers crate
* fix: forgot error.rs
* fix: comment
* fix: license header
* fix: remove docs/rfc/20221207_promql.md
2022-12-13 17:08:22 +08:00
Lei, HUANG
9ad6ddb26e
fix: remove useless metaclient field from datanode Instance ( #744 )
2022-12-13 14:26:26 +08:00
fys
c5661ee362
feat: support http basic authentication ( #733 )
...
* feat: support http auth
* add some unit test and log
* fix
* cr
* remove unused #[derive(Clone)]
2022-12-13 10:44:33 +08:00
zyy17
9b093463cc
feat: add Makefile to aggregate the commands that developers always use ( #736 )
...
* feat: add Makefile to aggregate the commands that developers always use
* refactor: add 'clean' and 'unit-test' target
* refactor: add sqlness-test target and modify some decriptions format
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2022-12-12 13:03:49 +08:00
zyy17
61e0f1a11c
refactor: add tls option in frontend cli options ( #735 )
...
* refactor: add tls option in frontend cli options
* fix: add 'Eq' trait for fixing clippy error
* fix: remove redundant clone
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2022-12-12 10:02:17 +08:00
Ning Sun
249ebc6937
feat: update pgwire and refactor pg auth handler ( #732 )
v0.1.0-alpha-20221212-weekly
2022-12-09 17:01:55 +08:00
elijah
c1b8981f61
refactor(mito): change the table path to schema/table_id ( #728 )
...
refactor: change the table path to `schema/table_id`
2022-12-09 12:59:16 +08:00
Jiachun Feng
949cd3e3af
feat: move_value & delete_route ( #707 )
...
* feat: move_value & delete_route
* chore: minor refactor
* chore: refactor unit test of metaclient
* chore: map to kv
* Update src/meta-srv/src/service/router.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/meta-srv/src/service/router.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: by code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
2022-12-09 11:07:48 +08:00
SSebo
b26982c5d7
feat: support timestamp new syntax ( #697 )
...
* feat: support timestamp new syntax
* fix: not null at end of new time stamp index syntax
* chore: simplify code
2022-12-09 10:52:14 +08:00
fys
4fdf26810c
feat: support auth in frontend ( #688 )
...
* feat: add UserProvider trait
* chore: minor fix
* support pg mysql
* refactor and add some logs
* chore: add license
Co-authored-by: shuiyisong <xixing.sys@gmail.com >
2022-12-08 11:51:52 +08:00
dennis zhuang
7f59758e69
feat: bump opendal version to 0.22 ( #721 )
...
* feat: bump opendal version to 0.22
* fix: LoggingLayer
2022-12-08 11:19:21 +08:00
Zheming Li
a521ab5041
fix: set default value when fail to get git info instead of panic ( #696 )
...
fix: set default value when fail to git info instead of panic
2022-12-07 13:16:27 +08:00
LFC
833216d317
refactor: directly invoke Datanode methods in standalone mode (part 1) ( #694 )
...
* refactor: directly invoke Datanode methods in standalone mode
* test: add more unit tests
* fix: get rid of `println` in testing codes
* fix: resolve PR comments
* fix: resolve PR comments
Co-authored-by: luofucong <luofucong@greptime.com >
2022-12-07 11:37:59 +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
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
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
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