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
ZonaHe
d2c90b4c59
feat: update dashboard to v0.2.2 ( #1426 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
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
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
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
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
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
Ruihang Xia
a6e41cdd7b
chore: bump arrow, parquet, datafusion and tonic ( #1386 )
...
* bump arrow, parquet, datafusion, tonic and greptime-proto
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add analyzer and fix test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy warnings
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-15 00:03:15 +08:00
Hao
a5771e2ec3
feat: implement predict_linear function in promql ( #1362 )
...
* feat: implement predict_linear function in promql
* feat: initialize predict_linear's planner
* fix(bug): fix a bug in linear regression and add some unit test for linear regression
* chore: format code
* feat: deal with NULL value in linear_regression
* feat: add test for all value is None
2023-04-14 22:26:37 +08:00
Lei, HUANG
68e64a6ce9
feat: add some metrics ( #1384 )
...
* feat: add some metrics
* fix: compile errors
2023-04-14 20:46:45 +08:00
Ning Sun
90cd3bb5c9
chore: switch mysql_async to git dep ( #1383 )
2023-04-14 07:04:34 +00:00
shuiyisong
bea37e30d8
chore: query prom using input query context ( #1381 )
2023-04-14 14:23:36 +08:00
Yingwen
d988b43996
feat: Add drop table procedure to mito ( #1377 )
...
* feat: Add drop table procedure to mito
* feat: remove table from engine and then close it
2023-04-14 13:09:38 +08:00
LFC
0fc816fb0c
test: add "numbers" table in distributed mode ( #1374 )
2023-04-14 11:52:04 +08:00
Ning Sun
43391e0162
chore: update pgwire and rustls libraries ( #1380 )
...
* feat: update pgwire to 0.13 and fix grafana compatibility
* chore: update pgwire and rustls
* chore: remove unsued imports
* style: format toml
2023-04-14 11:06:01 +08:00
Ruihang Xia
3e7f7e3e8d
fix: compile error in develop branch ( #1376 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-13 15:19:00 +08:00
Yingwen
0819582a26
feat: Add alter table procedure ( #1354 )
...
* feat: Implement AlterTableProcedure
* test: Test alter table procedure
* feat: support alter table by procedure in datanode
* chore: update comment
2023-04-13 14:05:53 +08:00
Lei, HUANG
9fa871a3fa
fix: concurrent rename two table to same name may cause override ( #1368 )
...
* fix: concurrent rename two table to same name may cause override
* fix: concurrently update system catalog table
* fix: correctness
2023-04-13 11:53:02 +08:00
discord9
c20dbda598
feat: from/to numpy&collect concat ( #1339 )
...
* feat: from/to numpy&collect concat
* feat: PyRecordBatch
* test: try import first,allow w/out numpy/pyarrow
* fix: cond compile flag
* doc: license
* feat: sql() ret PyRecordBatch&repr
* fix: after merge
* style: fmt
* chore: CR advices
* docs: update
* chore: resolve conflict
2023-04-13 10:46:25 +08:00
LFC
33dbf7264f
refactor: unify the execution of show stmt ( #1340 )
...
* refactor: unify the execution of show stmt
2023-04-12 23:09:07 +08:00
discord9
716bde8f04
feat: benchmark some python script ( #1356 )
...
* test: bench rspy&pyo3
* docs: add TODO
* api heavy
* Update src/script/benches/py_benchmark.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* style: toml fmt
* test: use `rayon` for threadpool
* test: compile first, run later
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-12 18:19:02 +08:00
ZonaHe
9f2825495d
feat: update dashboard to v0.1.0 ( #1370 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-04-12 17:08:10 +08:00
localhost
ae21c1c1e9
chore: set keep lease heartbeat log level to trace ( #1364 )
...
Co-authored-by: paomian <qtang@greptime.com >
2023-04-12 09:38:49 +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
shuiyisong
d5f0ba4ad9
refactor: merge authenticate and authorize api ( #1360 )
...
* chore: add auth api
* chore: update pg using auth api
* chore: update grpc using auth api
* chore: update http using auth api
2023-04-11 17:28:07 +08:00
Eugene Tolbakov
e021da2eee
feat(promql): add holt_winters initial implementation ( #1342 )
...
* feat(promql): add holt_winters initial implementation
* feat(promql): improve docs for holt_winters
* feat(promql): adjust holt_winters implementation according to code review
* feat(promql): add holt_winters test from prometheus promql function test suite
* feat(promql): add holt_winters more tests from prometheus promql function test suite
* feat(promql): fix styling issue
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-11 17:04:35 +08:00
Weny Xu
fac9c17a9b
feat: implement infer schema from single file ( #1348 )
...
* feat: implement infer schema from file
* feat: implement compression type
* refactor: remove unnecessary BufReader
* refactor: remove SyncIoBridge and using tokio_util::io::SyncIoBridge instead
* chore: apply suggestions from CR
2023-04-11 16:59:30 +08:00
Lei, HUANG
3e8ec8b73a
fix: avoid panic when no region found in table ( #1359 )
2023-04-11 16:58:18 +08:00
Weny Xu
a90798a2c1
test: add tests for file table engine ( #1353 )
...
* test: add tests for file table engine
* test: refactor open table test and add close engine test
2023-04-11 06:25:08 +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