Yingwen
eb50cee601
feat: Switch to the procedure framework ( #1448 )
...
* feat: Remove create_mock_sql_handler()
create_to_request() and alter_to_request() don't need `&self`, so
we don't need to mock the sql handler to test them
* feat: Enable procedure manager by default
* docs: Update config example
* test: Enable procedure framework in all tests
* refactor(datanode): rename methods using procedure
* test(catalog): Fix temp dir drops before test finishes
* tests: Enable procedure framework in sqlness
* test: Fix sqlness standalone rename test
* fix: Drop procedure allows table not in engine
* test: Change rename table test
* fix: add options to table meta when creating table by procedure
* test: adjust error message in schema test case
* test: Fix test_sql_api error message
2023-04-25 12:04:02 +08:00
Lei, HUANG
92c0808766
fix: frontend opt should respect http addr in config file when no com… ( #1456 )
...
* fix: frontend opt should respect http addr in config file when no command options is given
* refactor: command line options should be Option<bool>
* fix: ci
2023-04-25 03:43:42 +00:00
Ruihang Xia
f9ea6b63bf
feat: impl instant query and add tests ( #1452 )
...
* feat: impl instant query and add tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-25 11:08:14 +08:00
fys
2287db7ff7
fix: execute sql query in another catalog ( #1457 )
2023-04-25 10:30:35 +08:00
shuiyisong
69acf32914
chore: add len() to Bytes and StringBytes ( #1455 )
...
* chore: add `len()` to Bytes and StringBytes
* chore: add `len()` to Bytes and StringBytes
2023-04-25 10:18:41 +08:00
Ruihang Xia
b9db2cfd83
fix: support restart sqlness in distributed mode ( #1443 )
...
* fix: support restart sqlness in distributed mode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move alter_table case to common dir
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* is_standalone flag
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update tests/runner/src/env.rs
Co-authored-by: LFC <bayinamine@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: LFC <bayinamine@gmail.com >
2023-04-24 19:36:12 +08:00
JeremyHi
6d247f73fd
fix: add log on leader stepdown ( #1450 )
2023-04-24 19:16:57 +08:00
Ruihang Xia
2cf828da3c
feat: implement Prometheus-compatible API in gRPC ( #1449 )
...
* update greptime-proto
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove duplicate delete enum
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl handler and service
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-24 18:03:48 +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
LFC
17daf4cdff
feat: support "delete" in distributed mode ( #1441 )
...
* feat: support "delete" in distributed mode
* fix: resolve PR comments
2023-04-24 12:07:50 +08:00
shuiyisong
7c6754d03e
feat: meter write request ( #1447 )
...
* chore: add write meter
* chore: update meter macro
* chore: update meter framework url to https
2023-04-24 11:42:06 +08:00
zyy17
e64fea3a15
ci: upgrade nightly release tag from v0.2.0 to v0.3.0 ( #1446 )
2023-04-24 11:04:39 +08:00
Weny Xu
22b5a94d02
feat: support creating the physical plan for JSON and CSV files ( #1424 )
...
* feat: support creating the physical plan for JSON and CSV files
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* refactor(file-table-engine): use datasource Format instead
2023-04-24 10:17:11 +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
Ning Sun
c5dba29f9e
refactor: remove redundant plugins argument ( #1436 )
2023-04-23 12:39:46 +08:00
Hao
9f442dedf9
chore: fix some typo and add deriv to plan in promql ( #1438 )
2023-04-23 12:21:25 +08: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
Zheming Li
c75845c570
fix: wrong next column in manifest ( #1440 )
...
Signed-off-by: Zheming Li <nkdudu@126.com >
2023-04-23 11:25:38 +08:00
Yingwen
1ee9ad4ca1
feat: manage multiple engine procedure in the engine manager ( #1434 )
...
* feat(table): Add engine procedure to engine manager
* feat(datanode): Get engine procedure from engine manager
* feat(table-procedure): Add source error to SubprocedureFailed
* test: Enable procedure in tests and pass all tests
* style(table-procedure): Fix clippy
2023-04-23 10:04:09 +08:00
Weny Xu
f2cc912c87
feat: implement ParquetFileReaderFactory ( #1423 )
...
* feat: implement ParquetFileReaderFactory
* refactor: use LazyParquetFileReader instead
* chore: apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-04-21 13:40:58 +08: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
Yingwen
9cd2cf630d
feat: procedures for file table engine ( #1417 )
...
* refactor: Add table_ref() to requests as their methods
* feat: Add CreateImmutableFileTable
* feat: Add DropImmutableFileTable
* feat: Implement TableEngineProcedure for ImmutableFileTableEngine
* feat: Add common-procedure-test crate
* refactor: mito engine use common-procedure-test to test procedures
* test: Add test for create and drop table
* chore: Address review comments
2023-04-20 18:52:44 +08:00
Ruihang Xia
7152a1b79e
feat: expose output_ordering on scan plan ( #1425 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-20 17:58:48 +08:00
fys
f2cfd8e608
refactor: default catalog and schema are created at Metasrv ( #1391 )
...
* refactor: default catalog and schema are created at Metasrv
* fix: unit test
* fix: add license
* simplify the meta mock
* cr
2023-04-20 17:58:37 +08:00
ZonaHe
e8cd2f0e48
feat: update dashboard to v0.2.3 ( #1430 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-04-20 17:51:11 +08:00
Yingwen
830367b8f4
feat: Drop table by procedure ( #1401 )
...
* feat: Add drop table procedure
* feat: support dropping table by procedure on datanode
* test: Add test for DropTableProcedure
* test: Test drop table by procedure
* chore: update comments
* fix: Make on_remove_from_catalog idempotent
2023-04-20 15:57:56 +08:00
Ruihang Xia
37678e2e02
ci: enable test on release ( #1428 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-20 12:06:20 +08:00
Ruihang Xia
b6647af2e3
test: add integration case to check dashboard path ( #1422 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-20 11:17:01 +08:00
ZonaHe
d2c90b4c59
feat: update dashboard to v0.2.2 ( #1426 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
v0.2.0-nightly-20230420
2023-04-19 19:09:17 +08:00
Weny Xu
5a05e3107c
feat: implement parsing format from hashmap ( #1420 )
...
* feat: implement parsing format from hashmap
* chore: apply suggestions from CR
2023-04-19 16:29:31 +08:00
Hao
e4cd08c750
feat: add table id and engine to information_schema.TABLES ( #1407 )
...
* feat: add table id and engine to informatin_schema.TABLES
* Update src/catalog/src/information_schema/tables.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: change table_engine to engine
* test: update sqlness for information schema
* test: update information_schema test in frontend::tests::instance_test.rs
* fix: github action sqlness information_schema test fail
* test: ignore table_id in information_schema
* test: support distribute and standalone have different output
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-04-19 10:52:02 +08:00
Ruihang Xia
e8bb00f0be
feat: impl instant query interface ( #1410 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-18 23:25:14 +08:00
LFC
ff2784da0f
test: add SELECT ... LIMIT ... test cases for distributed mode ( #1419 )
2023-04-18 23:05:43 +08:00
liyang
4652b62481
chore: use alicloud imagehub ( #1418 )
...
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-04-18 14:35:14 +00:00
Lei, HUANG
0e4d4f0300
chore: release 0.2.0 ( #1413 )
...
* chore: bump version to v0.2.0
* chore: bump dashboard to v0.2.1
* chore: remove push uhub step
* fix: static assets path prefix
2023-04-18 22:12:13 +08:00
shuiyisong
145f8eb5a7
refactor: parallelize open table ( #1392 )
...
* refactor: change open_table to parallel on datanode startup
* chore: try move out register schema table
* chore: change mito engine to key lock
* chore: minor change
* chore: minor change
* chore: update error definition
* chore: remove rwlock on tables
* chore: try parallel register table on schema provider
* chore: add rt log
* chore: add region open rt log
* chore: add actual open region rt log
* chore: add recover rt log
* chore: divide to three part rt log
* chore: remove debug log
* chore: add replay rt log
* chore: update cargo lock
* chore: remove debug log
* chore: revert unused change
* chore: update err msg
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* chore: fix cr issue
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* chore: fix cr issue
* chore: fix cr issue
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-04-18 21:36:29 +08:00
discord9
de8b889701
chore: update RustPython depend ( #1406 )
...
* chore: update RustPython to newer version
* chore: bump ver
* chore: PR advices
2023-04-18 15:39:57 +08:00
Lei, HUANG
1c65987026
chore: remove Release prefix from release name ( #1409 )
2023-04-18 06:25:08 +00:00
Near
c6f024a171
feat: Add metrics for cache hit/miss for object store cache ( #1405 )
...
* Add the cache hit/miss counter
* Verify the cache metrics are included
* Resolve comments
* Rename the error kind label name to be consistent with other metrics
* Rename the object store metric names
* Avoid using glob imports
* Format the code
* chore: Update src/object-store/src/metrics.rs mod doc
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-04-18 14:08:19 +08:00
localhost
0c88bb09e3
chore: add some metrics for grpc client ( #1398 )
...
* chore: add some metrics for grpc client
* chore: add grpc preix and change metrics-exporter-ptometheus to add global prefix
---------
Co-authored-by: paomian <qtang@greptime.com >
2023-04-18 13:55:01 +08:00
Ruihang Xia
f4190cfca6
fix: table scan without projection ( #1404 )
...
* fix: table scan without projection
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update PR reference
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
v0.2.0-nightly-20230417
2023-04-17 20:10:36 +08:00
zyy17
b933ffddd0
ci: set whether it is the latest release by using 'ncipollo/release-action and update install.sh ( #1400 )
...
* ci: set whether it is the latest release by using 'ncipollo/release-action'
* ci: modify greptimedb install script to use the latest nightly version binary
2023-04-17 18:44:00 +08:00
Lei, HUANG
1214b5b43e
docs: fix timestamp rendering in readme ( #1399 )
...
doc: fix timestamp rendering in readme
2023-04-17 17:07:25 +08:00
Ruihang Xia
a47134a971
chore: don't render reproduce as shell in issue template ( #1397 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-17 16:42:51 +08:00
Ruihang Xia
dc85a4b5bb
feat: migrate substrait to datafusion official implementation ( #1238 )
...
* some test cases will fail
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* revert version changes
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update substrait-proto version
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update df again
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/common/substrait/Cargo.toml
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* revert COPY FROM / COPY TO sqlness to standalone only
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-04-17 15:54:35 +08:00
Yingwen
0937ccdb61
docs: Add docs about schema structs ( #1373 )
...
* docs: Add docs about schema structs
* docs: refine schema struct docs
- Describe SchemaRef and relationship between our schema and arrow's.
- Add more examples
* docs: Add code link to schemas
* docs: Add conversion graph
* docs: Apply suggestions from code review
Co-authored-by: LFC <bayinamine@gmail.com >
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-04-17 12:11:24 +08:00
Weny Xu
408de51be8
feat: implement JsonOpener and CsvOpener ( #1367 )
...
* feat: introduce JsonOpener and CsvOpener
* refactor: refactor Opener
* docs: add doc
2023-04-17 11:42:16 +08:00
LFC
f7b7a9c801
feat: implement COPY for cluster ( #1388 )
2023-04-17 11:04:47 +08:00
Weny Xu
cc7c313937
chore: fix clippy ( #1387 )
2023-04-15 07:00:54 +08:00