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
Lei, HUANG
76640402ba
fix: update cargo lock ( #1375 )
2023-04-13 11:08:35 +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
Weny Xu
dfc2a45de1
docs: treat slack as the first-class citizen ( #1361 )
2023-04-11 16:59:17 +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
localhost
1a21a6ea41
chore: set metasrv and datanode heartbeat log level to trace ( #1357 )
2023-04-11 11:21:29 +08:00
Ruihang Xia
09f003d01d
fix: lots of corner cases in PromQL ( #1345 )
...
* adjust plan ordering
fix offset logic
ignore empty range vector
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: different NaN logic between instant and range selector
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: enlarge selector time window
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* revert change about stale NaN
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename variables
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* one more rename
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-10 09:05:24 +00:00
Weny Xu
29c6155ae3
feat: introduce file table engine ( #1323 )
...
* feat: introduce file table engine
* chore: apply cr suggestions
* refactor: refactor immutable manifest
* chore: apply cr suggestions
* refactor: refactor immutable manifest
* chore: apply suggestions from code review
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* chore: apply suggestions from CR
* chore: apply suggestions from code review
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-04-10 12:03:36 +08:00
Weny Xu
804348966d
chore: amend fmt-toml ( #1347 )
2023-04-10 11:42:36 +08:00
Lei, HUANG
b7bdee6de9
feat: ignoring time zone info when import from external files ( #1341 )
...
* feat: ignore timezone info when copy from external files
* chore: rebase onto develop
2023-04-10 11:41:34 +08:00
Lei, HUANG
c850e9695a
fix: stream inserts when copying from external file ( #1338 )
...
* fix: stream inserts when copying from external file
* fix: reset pending bytes once insertion succeeds
* Update src/datanode/src/sql/copy_table_from.rs
Co-authored-by: LFC <bayinamine@gmail.com >
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-04-10 10:44:12 +08:00
LFC
a3e47955b8
feat: information schema ( #1327 )
...
* feat: basic information schema
* show information schema only for current catalog
* fix: fragile tests
v0.2.0-nightly-20230410
2023-04-07 16:50:14 +08:00
zyy17
554a69ea54
refactor: add disable_dashboard option and disable dashboard in metasrv and datanode ( #1343 )
...
* refactor: add disable_dashboard option and disable dashboard in metasrv and datanode
* refactor: skip disable_dashboard filed in toml file
* refactor: simplify the http initialization
2023-04-07 16:45:25 +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
dennis zhuang
dce0adfc7e
chore: readme ( #1318 )
2023-04-06 13:20:08 +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
Eugene Tolbakov
59f7630000
feat: initial changes for compaction_time_window field support ( #1083 )
...
* feat(compaction_time_window): initial changes for compaction_time_window field support
* feat(compaction_time_window): move PickerContext creation
* feat(compaction_time_window): update region descriptor, fix formatting
* feat(compaction_time_window): add minor enhancements
* feat(compaction_time_window): fix failing test
* feat(compaction_time_window): return an error instead silently skip for the user provided compaction_time_window
* feat(compaction_time_window): add TODO reminder
2023-04-06 10:32:41 +08:00
Hao
a6932c6a08
feat: implement deriv function ( #1324 )
...
* feat: implement deriv function
* docs: add docs for linear regression
* test: add test for deriv
2023-04-05 13:42:07 +08:00
Ruihang Xia
10593a5adb
fix: update sqlness result ( #1328 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-04 22:47:55 +08:00
dennis zhuang
bf8c717022
feat: try to do manifest checkpoint on opening region ( #1321 )
2023-04-04 21:36:54 +08:00
localhost
aa9f6c344c
chore: minor fix about metrics component ( #1322 )
...
* typo: fix StartMetricsExport error message error
* bug: add metrics http handler for frontend node
2023-04-04 19:31:06 +08:00
Ruihang Xia
99353c6ce7
refactor: rename "value" semantic type to "field" ( #1326 )
...
* global replace
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change desc table
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-04 11:14:28 +00:00
Ruihang Xia
a2d8804129
feat: impl __field__ special matcher to project value columns ( #1320 )
...
* plan new come functions
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement __value__ matcher
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change __value__ to __field__
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add bad-case tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename variables
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-04-04 09:08:50 +00:00
Weny Xu
637a4a2a58
docs: file external table RFC ( #1274 )
2023-04-04 10:41:17 +08:00
Weny Xu
ef134479ef
feat: support multi table engines in distributed mode ( #1316 )
...
* chore: bump greptime-proto to 59afacd
* feat: support multi table engines in distributed mode
2023-04-04 10:27:08 +08:00
Weny Xu
451f9d2d4e
feat: support multi table engines ( #1277 )
...
* feat: support multi table engines
* refactor: adapt SqlHandler to support multiple table engines
* refactor: refactor TableEngineManager
* chore: apply review suggestions
* chore: apply review suggestions
* chore: apply review suggestions
* chore: snafu context styling
2023-04-03 14:49:12 +00:00