Lei, HUANG
8e7ec4626b
refactor: remove useless error ( #1624 )
...
* refactor: remove useless
* fix: remove useless error variant
2023-05-22 22:55:27 +08:00
localhost
3330957896
chore: add fmt for statement query ( #1588 )
...
* chore: add fmt for statement query
* chore: add test for query display
2023-05-16 16:14:11 +08:00
Eugene Tolbakov
122bd5f0ab
feat(tql): add initial implementation for explain & analyze ( #1427 )
...
* feat(tql): resolve conflicts after merge,formatting and clippy issues, add sqlness tests, adjust explain with start, end, step
* feat(tql): adjust sqlness assertions
2023-05-16 07:28:24 +08:00
Weny Xu
fbb7db42aa
chore: unify code styling ( #1523 )
2023-05-10 11:10:39 +08:00
Weny Xu
550c494d25
fix: Copy from must follow the order of table fields issue ( #1521 )
...
* fix: Copy from must follow the order of table fields issue
* chore: apply suggestion from CR
2023-05-09 17:46:16 +08:00
Niwaka
d86b3386dc
fix: incorrect show create table output ( #1514 )
...
* fix: incorrect show create table output
* feat: change CreateTable's Display if table is external
* feat: change CreateTable's Display if table is external
2023-05-05 11:29:09 +08:00
Vanish
12d59e6341
chore: remove redundant code. ( #1502 )
2023-05-04 14:20:26 +08:00
Weny Xu
f2167663b2
feat: support to create external table ( #1372 )
...
* feat: support to create external table
* chore: apply suggestions from CR
* test: add create external table without ts type
* chore: apply suggestions from CR
* fix: fix import typo
* refactor: move consts to table crate
* chore: apply suggestions from CR
* refactor: rename create_table_schema
2023-04-24 14:43:12 +08:00
Weny Xu
d374859e24
refactor: replace Copy Format with datasource Format ( #1435 )
...
* refactor: replace Copy Format with datasource Format
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2023-04-23 08:31:54 +00:00
Ruihang Xia
5d77ed00bb
test: add basic cases for distributed TQL ( #1437 )
...
* test: add basic cases for distributed TQL
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* drop table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-23 03:34:42 +00:00
dennis zhuang
2a9f482bc7
feat: show create table ( #1336 )
...
* temp commit
* feat: impl Display for CreateTable statement
* feat: impl show create table for standalone
* fix: forgot show.rs
* feat: clean code
* fix: typo
* feat: impl show create table for distributed
* test: add show create table sqlness test
* fix: typo
* fix: sqlness tests
* feat: render partition rules for distributed table
* Update src/sql/src/statements.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/sql/src/statements.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/sql/src/statements.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/sql/src/statements/create.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: by CR comments
* fix: compile error
* fix: missing column comments and extra table options
* test: add show create table test
* test: add show create table test
* chore: timestamp precision
* fix: test
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-04-21 11:37:16 +08:00
Weny Xu
d5e4662181
refactor: refactor stmt_options_to_table_options ( #1403 )
...
refactor: move stmt_options_to_table_options to query crate
2023-04-21 11:08:01 +08:00
Ruihang Xia
6b6617f9cb
build: specify clippy denies in cargo config ( #1351 )
...
* build: specify clippy denies in cargo config
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* deny implicit clone
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-11 09:48:52 +00:00
Lei, HUANG
f5cf5685cc
feat!: parsing local timestamp ( #1352 )
...
* fix: parse and display timestamp/datetime in local time zone
* fix display
* fix: unit tests
* change time zone env
* fix: remove useless code
2023-04-11 12:54:15 +08:00
LFC
f8b6a6b219
fix!: not allowed to create column name same with keyword without quoted ( #1333 )
...
* fix: not allowed to create column name same with keyword without quoted
* fix: tests
* Update src/sql/src/parsers/create_parser.rs
Co-authored-by: Ning Sun <classicning@gmail.com >
* fix: tests
---------
Co-authored-by: Ning Sun <classicning@gmail.com >
2023-04-06 15:34:26 +08:00
Ruihang Xia
da66138e80
refactor(error): remove backtrace, and introduce call-site location for debugging ( #1329 )
...
* wip: global replace
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix warnings
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unneeded tests of errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix ErrorExt trait implementator
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix warnings
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix pyo3 tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-06 04:06:00 +00:00
Lei, HUANG
d10de46e03
feat: support timestamp precision on creating table ( #1332 )
...
* feat: support timestamp precision on creating table
* fix sqlness
* fix: substrait representation of different timestamp precision
2023-04-06 11:18:20 +08:00
Weny Xu
30eb676d6a
feat: implement create external table parser ( #1252 )
...
* refactor: move parse_option_string to util
* feat: implement create external table parser
2023-03-30 13:37:53 +08:00
LFC
92963b9614
feat: execute "delete" in query engine (in the form of "LogicalPlan") ( #1222 )
...
fix: execute "delete" in query engine (in the form of "LogicalPlan")
2023-03-24 12:11:58 +08:00
LFC
b77b561bc8
refactor: execute insert with select in query engine ( #1181 )
...
* refactor: execute insert with select in query engine
* fix: resolve PR comments
2023-03-23 10:38:26 +08:00
Weny Xu
e19c8fa2b6
refactor: combine Copy To and Copy From ( #1197 )
...
* refactor: combine Copy To and Copy From
* Apply suggestions from code review
Co-authored-by: LFC <bayinamine@gmail.com >
* Apply suggestions from code review
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Co-authored-by: LFC <bayinamine@gmail.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-03-20 19:23:25 +08:00
Weny Xu
facdda4d9f
feat: implement CONNECTION clause of Copy To ( #1163 )
...
* feat: implement CONNECTION clause of Copy To
* test: add tests for s3 backend
* Apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-03-16 11:36:38 +08:00
Ruihang Xia
b76b27f3bf
refactor: try to remove unnecessary tests in error mod ( #750 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-03-06 12:31:30 +08:00
Weny Xu
e851b6d019
feat: implement Copy From parser ( #1092 )
...
* feat: implement Copy From parser
* Apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-03-02 14:03:13 +08:00
LFC
11d45e2918
refactor: upgrade DataFusion, Arrow and Sqlparser ( #1074 )
...
* refactor: upgrade DataFusion, Arrow and Sqlparser
* fix: resolve PR comments
2023-02-27 22:20:08 +08:00
Lei, HUANG
b48c851b96
fix: support datetime type parsing ( #1071 )
...
* fix: support datetime type parsing
* fix: unit test
2023-02-23 20:26:47 +08:00
dennis zhuang
bcd44b90c1
feat: invoke TQL via SQL interface ( #1047 )
...
* feat: impl TQL parser in sqlparser
* feat: impl invoking TQL via SQL
* chore: remove src/sql/src/tql_parser.rs
* chore: fix typo
* test: add tql test
* chore: carry type
Co-authored-by: LFC <bayinamine@gmail.com >
* chore: cr comments
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-02-22 11:28:09 +08:00
Jiachun Feng
9161796dfa
feat: export the data from a table to parquet files ( #1000 )
...
* feat: copy table parser
* feat: coopy table
* chore: minor fix
* chore: give stmt a more clearer name
* chore: unified naming
* chore: minor change
* chore: add a todo
* chore: end up with an empty file when occur an empty table
* feat: format with copy table
* feat: with options
* chore: by cr
* chore: default 5M rows per segment
* Update src/datanode/src/sql/copy_table.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* Update src/datanode/src/sql/copy_table.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* Update src/datanode/src/error.rs
Co-authored-by: fys <40801205+Fengys123@users.noreply.github.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
Co-authored-by: fys <40801205+Fengys123@users.noreply.github.com >
2023-02-20 16:43:50 +08:00
dennis zhuang
a9c8584c98
feat: impl insert data from query ( #1025 )
...
* feat: refactor insertion in datanode
* feat: supports inserting data by select query
* feat: impl cast operation for vector
* feat: streaming insert from select query results
* chore: minor changes
* fix: remove unwrap
* test: insert_to_requsts
* test: test_execute_insert_by_select
* fix: cast operation for vectors
* fix: test
* fix: typo
* chore: by CR comments
* fix: test_statement_to_request
2023-02-17 17:56:12 +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
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
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
shuiyisong
70edd4d55b
fix: remove incorrect table_idents_to_full_name ( #967 )
2023-02-10 03:15:48 +00:00
Ning Sun
4ae63b7089
feat: Initial prepare statement support for Postgres protocol ( #925 )
...
* feat: add describe statement to query_engine
* feat: add ability to describe statement for sql handler
* refactor: return schema instead of wrapped ref
* test: resolve tests
* feat: add initial support for prepared statements
* feat: add parameter types to query statement
* test: fix parser test
* chore: add todo task
* fix: turn on integer_datetime for binary timestamp
* fix: format string using single quote
* test: add tests for prepared statement
* Apply suggestions from code review
Co-authored-by: LFC <bayinamine@gmail.com >
* refactor: use stream api from recordbatches
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-02-06 22:06:00 +08:00
LFC
af935671b2
feat: support "use" in GRPC requests ( #922 )
...
* feat: support "use catalog and schema"(behave like the "use" in MySQL) in GRPC requests
* fix: rebase develop
2023-02-02 20:02:56 +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
Zheming Li
0959c1d16b
feat: support default value when inserting data ( #854 )
2023-01-13 14:49:05 +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
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
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
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
Lei, HUANG
8ffc078f88
fix: license header ( #815 )
2023-01-03 15:09:49 +08:00
elijah
3978931b8e
feat: support parsing the RENAME TABLE statements in the parser ( #780 )
...
* feat: add parsing `alter rename table` syntax to the parser
* chore: fix clippy
* chore: add test for parser
* fix: add test for parsing RENAME keyword
* chore: remove unused code
* fix: parse table name object
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: fmt code
Co-authored-by: Yingwen <realevenyag@gmail.com >
2022-12-27 14:53:40 +08:00
Mike Yang
bc9a46dbb7
feat: support varbinary ( #767 )
...
feat: support varbinary for table creation and record insertion
2022-12-26 13:14: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
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
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
Jiachun Feng
66bca11401
refactor: remove optional from the protos ( #756 )
2022-12-16 15:47:51 +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