Lei, Huang
1dd780d857
feat: implement catalog manager ( #129 )
...
Implement catalog manager that provides a vision of all existing tables while instance start. Current implementation is based on local table engine, all catalog info is stored in an system catalog table.
2022-08-11 15:43:59 +08:00
dennis zhuang
df577ad7f8
feat: impl create table sql parser ( #115 )
...
* feat: impl create table sql parser
* feat: checking time index columns size
* refactor: move TS_INDEX to statement
* fix: address CR problems
* refactor: remove parser_error! macro
2022-07-29 11:03:36 +08:00
Lei, Huang
008f62afc1
feat: buffer abstraction ( #51 )
...
* feat: add buffer abstraction and rewrite entry encode/decode process
* add some tests
* remove pad.rst
* fix some comments
* fix comments
* remove mmap mod
* feat: Bytes type implementation switch to bytes::Bytes
* fix: use Bytes::from(String) and Bytes::from(Vec<u8>)
* feat: add new method to Entry trait
2022-07-04 14:08:23 +08:00
dennis zhuang
e78c015fc0
TableEngine and SqlHandler impl ( #45 )
...
* Impl TableEngine, bridge to storage
* Impl sql handler to process insert sql
* fix: minor changes and typo
* test: add datanode test
* test: add table-engine test
* fix: code style
* refactor: split out insert mod from sql and minor changes by CR
* refactor: replace with_context with context
2022-06-17 11:36:49 +08:00
Lei, Huang
841744e4a3
fix: remove direct unwraps ( #23 )
2022-05-09 17:50:49 +08:00
Lei, Huang
5c72c5ae19
tests: add more unit tests for sql mod ( #20 )
...
* test: add more unit tests for sql mod
2022-05-09 15:01:19 +08:00
evenyag
d5de030600
feat: Add as_any() to opaque error
2022-05-09 12:35:55 +08:00
evenyag
5f48b4996b
chore: Address CR comments
2022-05-09 11:52:01 +08:00
evenyag
e0c1bbfd21
refactor: Rename errors::ParserError to error::Error
2022-05-07 16:15:05 +08:00
evenyag
fae876ec63
test: Add more test for parser error
2022-05-07 16:07:41 +08:00
evenyag
83262acc0e
refactor: Add more imports to common_error::prelude
2022-05-07 11:42:33 +08:00
evenyag
7e2e3e3429
feat: Impl ErrorExt for opaque error and ParseError
2022-05-06 20:04:16 +08:00
evenyag
aa1a6b2205
feat: Add common-error crate and implement opaque error type.
2022-05-06 20:04:14 +08:00
dennis zhuang
f0db878bf5
feat: http server and cmd crate etc. ( #15 )
...
* feat: adds cmd crate and http server
* feat: impl sql http handler
* feat: convert all arrow array types
* feat: adds query test
* feat: adds test for datanode
* fix: format
* feat: refactor state.rs
* feat: adds collect test
* fix: by code review
* fix: style
2022-05-06 17:34:29 +08:00
Lei, Huang
f889ed5488
feat: INSERT statement and planner implementation ( #16 )
...
* feat: Add SQL parser definition and SHOW DATABASE implementation
* chores: Eliminate clippy warnings and errors.
* chores: remove Gt prefix in some structs; rename some mod; remove print(s) in unit tests; refactor crate layout;
feat: wrap sqlparser error;
* chores: reorder cargo dependency
* chores: fix code style
* chores: add #[cfg(test)] to unit tests
* style: fix test mod style
* feat: implement select query parser
* chores: remove unused dependency
* feat: implement TryInto<sqlparser::ast::Statement> for Statement
* chore: fix style issues
* refactor: wrap sqlparser Query inside Query statement variant to reduce complexity
* refactor: replace TryInto to TryFrom
* refactor: use [Rust 2018 mod convention](https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html#no-more-modrs )
* refactor: remove unnecessary file prefix in statement mod
* feat: implement INSERT parser (currently without INSERT validation)
* feat: wrap DataFusion planner and add simple query planner implementation
* refactor: move planner mod to query crate
* fix: styles and conventions
2022-05-05 16:28:38 +08:00
Lei, Huang
12eefc3cd0
feat: implement SELECT query parser. ( #12 )
...
* feat: Add SQL parser definition and SHOW DATABASE implementation
* chores: Eliminate clippy warnings and errors.
* chores: remove Gt prefix in some structs; rename some mod; remove print(s) in unit tests; refactor crate layout;
feat: wrap sqlparser error;
* chores: reorder cargo dependency
* chores: fix code style
* chores: add #[cfg(test)] to unit tests
* style: fix test mod style
* feat: implement select query parser
* chores: remove unused dependency
* feat: implement TryInto<sqlparser::ast::Statement> for Statement
* chore: fix style issues
* refactor: wrap sqlparser Query inside Query statement variant to reduce complexity
* refactor: replace TryInto to TryFrom
* refactor: use [Rust 2018 mod convention](https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html#no-more-modrs )
2022-04-27 15:14:33 +08:00
Lei, Huang
cb74f1ac34
feat: Add sql parser definition and trivial SHOW DATABASE implementation ( #8 )
...
* feat: Add SQL parser definition and SHOW DATABASE implementation
* chores: Eliminate clippy warnings and errors.
* chores: remove Gt prefix in some structs; rename some mod; remove print(s) in unit tests; refactor crate layout;
feat: wrap sqlparser error;
* chores: reorder cargo dependency
* chores: fix code style
* chores: add #[cfg(test)] to unit tests
* style: fix test mod style
2022-04-25 17:01:55 +08:00
evenyag
1fa0b4e3f9
chore: Setup code skeleton of datanode
2022-04-21 11:40:46 +08:00