liyang
b4b105ad35
test
2024-08-27 10:11:32 +08:00
liyang
e1d0bb3749
test
2024-08-27 02:07:07 +08:00
liyang
867d6ab600
test: skopeo authentication
2024-08-27 01:19:54 +08:00
liyang
63a442632e
fix: failed to get version ( #4622 )
2024-08-26 15:33:30 +00:00
liyang
d39bafcfbd
fix: change toolchain file name ( #4621 )
2024-08-26 13:04:06 +00:00
liyang
1717445ebe
fix: failed to get github sha ( #4620 )
2024-08-26 11:42:07 +00:00
liyang
55d65da24d
ci: add push dev-build images to aws ecr ( #4618 )
...
* ci: add push dev-build images to aws ecr
* chore: use toolchain file generation dev-build image tag
* chore: change dev-build version
* Update .github/workflows/release-dev-builder-images.yaml
Co-authored-by: zyy17 <zyylsxm@gmail.com >
---------
Co-authored-by: zyy17 <zyylsxm@gmail.com >
2024-08-26 09:36:55 +00:00
Weny Xu
3297d5f657
feat: allow skipping topic creation ( #4616 )
...
* feat: introduce `create_topics` opt
* feat: allow skipping topic creation
* chore: refine docs
* chore: apply suggestions from CR
2024-08-26 08:34:27 +00:00
Ning Sun
d6865911ee
feat: add postgres response for trasaction related statements ( #4562 )
...
* feat: add postgres fixtures WIP
* feat: implement more postgres fixtures
* feat: add compatibility for transaction/set transaction/show transaction
* fix: improve regex for set transaction
2024-08-26 08:09:21 +00:00
dennis zhuang
63f2463273
feat!: impl admin command ( #4600 )
...
* feat: impl admin statement parser
* feat: introduce AsyncFunction and implements it for admin functions
* feat: execute admin functions
* fix: license header
* fix: panic in test
* chore: fixed by code review
2024-08-26 07:53:40 +00:00
Ruihang Xia
da337a9635
perf: acclerate scatter query ( #4607 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-26 03:03:30 +00:00
fys
3973d6b01f
chore: optimize common_version build ( #4611 )
2024-08-23 12:36:28 +00:00
discord9
2c731c76ad
chore: add stats feature for jemalloc-ctl ( #4610 )
2024-08-23 11:18:30 +00:00
ozewr
40e7b58c80
feat: refactoring LruCacheLayer with list_with_metakey and concurrent_stat_in_list ( #4596 )
...
* use list_with_metakey and concurrent_stat_in_list
* change concurrent in recover_cache like before
* remove stat funcation
* use 8 concurrent
* use const value
* fmt code
* Apply suggestions from code review
---------
Co-authored-by: ozewr <l19ht@google.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-08-23 03:22:00 +00:00
zyy17
5177717f71
refactor: add fallback_to_local region option ( #4578 )
...
* refactor: add 'fallback_to_local_compaction' region option
* refactor: use 'fallback_to_local'
2024-08-23 03:09:43 +00:00
Weny Xu
8d61e6fe49
chore: bump rskafka to 75535b ( #4608 )
2024-08-23 03:05:52 +00:00
Ruihang Xia
a3b8d2fe8f
chore: bump rust toolchain to 2024-08-21 ( #4606 )
...
* chore: bump rust toolchain to 2024-08-22
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update workflow
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* try 20240606
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-22 15:38:10 +00:00
Ning Sun
863ee073a9
chore: add commerial support section ( #4601 )
...
doc: add commerial support section
2024-08-22 12:03:20 +00:00
Weny Xu
25cd61b310
chore: upgrade toolchain to nightly-2024-08-07 ( #4549 )
...
* chore: upgrade toolchain to `nightly-2024-08-07`
* chore(ci): upgrade toolchain
* fix: fix unit test
2024-08-22 11:02:18 +00:00
fys
3517c13192
fix: incremental compilation always compile the common-version crate ( #4605 )
...
fix: wrong cargo:rerun
2024-08-22 11:00:33 +00:00
Ruihang Xia
b9cedf2c1a
perf: optimize series divide algo ( #4603 )
...
* perf: optimize series divide algo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove dead code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-22 09:16:36 +00:00
LFC
883c5bc5b0
refactor: skip checking the existence of the SST files ( #4602 )
...
refactor: skip checking the existence of the SST files when region is directly edited
2024-08-22 08:32:27 +00:00
Yingwen
d628079f4c
feat: collect filters metrics for scanners ( #4591 )
...
* feat: collect filter metrics
* refactor: reuse ReaderFilterMetrics
* feat: record read rows from parquet by type
* feat: unordered scan observe rows
also fix read type
* chore: rename label
2024-08-22 03:22:05 +00:00
Weny Xu
0025fa6ec7
chore: bump opendal version to 0.49 ( #4587 )
...
* chore: bump opendal version to 0.49
* chore: apply suggestions from CR
* Update src/object-store/src/util.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-08-22 03:05:36 +00:00
Lanqing Yang
ff04109ee6
docs: add example configs introduced by pg_kvbackend ( #4573 )
...
chore: add example configs that introduced after pg_kvbackend
2024-08-22 01:52:02 +00:00
Yingwen
9c1704d4cb
docs: move v0.9.1 benchmark report to tsbs dir ( #4598 )
...
* docs: move v0.9.1 benchmark report to tsbs dir
* docs: add newlines
2024-08-21 09:31:05 +00:00
Yingwen
a12a905578
chore: disable ttl for write cache by default ( #4595 )
...
* chore: remove default write cache ttl
* docs: update example config
* chore: fix ci
2024-08-21 08:38:38 +00:00
shuiyisong
449236360d
docs: log benchmark ( #4597 )
...
* chore: add log benchmark stuff
* chore: minor update
2024-08-21 07:12:32 +00:00
localhost
bf16422cee
fix: pipeline prepare loop break detects a conditional error ( #4593 )
2024-08-21 06:20:09 +00:00
Ran Joe
9db08dbbe0
refactor(mito2): reduce duplicate IndexOutput struct ( #4592 )
...
* refactor(mito2): reduce duplicate IndexOutput struct
* docs(mito2): add index output note
2024-08-20 12:30:17 +00:00
fys
9d885fa0c2
chore: bump tikv-jemalloc* to "0.6" ( #4590 )
...
chore: bump tikv-jemalloc* ti "0.6"
2024-08-20 09:08:21 +00:00
Ruihang Xia
b25a2b117e
feat: remove sql in error desc ( #4589 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-20 06:37:30 +00:00
fys
6fccff4810
chore: keep symbol table in nightly profile ( #4588 )
...
chore: keep symbol table in nighly profile
2024-08-20 02:27:31 +00:00
ozewr
30af78700f
feat: Implement the Buf to avoid extra memory allocation ( #4585 )
...
* feat: Implement the Buf to avoid extra memory allocation
* fmt toml
* fmt code
* mv entry.into_buffer to raw_entry_buffer
* less reuse opendal
* remove todo #4065
* Update src/mito2/src/wal/entry_reader.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* fmt code
---------
Co-authored-by: ozewr <l19ht@google.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-08-19 12:11:08 +00:00
Ruihang Xia
8de11a0e34
perf: set simple filter on primary key columns to exact filter ( #4564 )
...
* perf: set simple filter on primary key columns to exact filter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-19 09:07:35 +00:00
Lei, HUANG
975b8c69e5
fix(sqlness): redact all volatile text ( #4583 )
...
Commit Message:
Add SQLNESS replacements for RoundRobinBatch and region patterns
2024-08-19 08:04:54 +00:00
Weny Xu
8036b44347
chore: setup kafka before downloading binary step ( #4582 )
2024-08-19 06:44:33 +00:00
Zhenchi
4c72b3f3fe
chore: bump version to v0.9.2 ( #4581 )
...
chore: bump version to 0.9.2
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-08-19 06:11:36 +00:00
Weny Xu
76dc906574
feat(log_store): introduce the CollectionTask ( #4530 )
...
* feat: introduce the `CollectionTask`
* feat: add config of index collector
* chore: remove unused code
* feat: truncate indexes
* chore: apply suggestions from CR
* chore: update config examples
* refactor: retrieve latest offset while dumping indexes
* chore: print warn
2024-08-19 03:48:35 +00:00
Ran Joe
2a73e0937f
fix(common_version): short_version with empty branch ( #4572 )
2024-08-19 03:14:49 +00:00
Zhenchi
c8de8b80f4
fix(fulltext-index): single segment is not sufficient for >50M rows SST ( #4552 )
...
* fix(fulltext-index): single segment is not sufficient for a >50M rows SST
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: update doc comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-08-16 09:14:33 +00:00
LFC
ec59ce5c9a
feat: able to handle concurrent region edit requests ( #4569 )
...
* feat: able to handle concurrent region edit requests
* resolve PR comments
2024-08-16 03:29:03 +00:00
liyang
f578155602
feat: add GcsConfig credential field ( #4568 )
2024-08-16 03:11:20 +00:00
Weny Xu
d1472782d0
chore(log_store): remove redundant metrics ( #4570 )
...
chore(log_store): remove unused metrics
2024-08-16 02:23:21 +00:00
Lanqing Yang
93be81c041
feat: implement postgres kvbackend ( #4421 )
2024-08-14 22:49:32 +00:00
discord9
2c3fccb516
feat(flow): add eval_batch for ScalarExpr ( #4551 )
...
* refactor: better perf flow
* feat(WIP): batching proc
* feat: UnaryFunc::eval_batch untested
* feat: BinaryFunc::eval_batch untested
* feat: VariadicFunc::eval_batch un tested
* feat: literal eval_batch
* refactor: move DfScalarFunc to separate file
* chore: remove unused imports
* feat: eval_batch df func&ifthen
* chore: remove unused file
* refactor: use Batch type
* chore: remove unused
* chore: remove a done TODO
* refactor: per review
* chore: import
* refactor: eval_batch if then
* chore: typo
2024-08-14 11:29:30 +00:00
Lei, HUANG
c1b1be47ba
fix: append table stats ( #4561 )
...
* fix: append table stats
* fix: clippy
2024-08-14 09:01:42 +00:00
Weny Xu
0f85037024
chore: remove unused code ( #4559 )
2024-08-14 06:55:54 +00:00
discord9
f88705080b
chore: set topic to 3 for sqlness test ( #4560 )
2024-08-14 06:32:26 +00:00
discord9
cbb06cd0c6
feat(flow): add some metrics ( #4539 )
...
* feat: add some metrics
* fix: tmp rate limiter
* feat: add task count metrics
* refactor: use bounded channel anyway
* refactor: better metrics
2024-08-14 03:23:49 +00:00
discord9
b59a93dfbc
chore: Helper function to convert Vec<Value> to VectorRef ( #4546 )
...
* chore: `try_from_row_into_vector` helper
* test: try_from_row
* refactor: simplify with builder
* fix: deicmal set prec&scale
* refactor: more simplify
* refactor: use ref
2024-08-14 03:11:44 +00:00
localhost
202c730363
perf: Optimizing pipeline performance ( #4390 )
...
* chore: improve pipeline performance
* chore: use arc to improve time type
* chore: improve pipeline coerce
* chore: add vec refactor
* chore: add vec pp
* chore: improve pipeline
* inprocess
* chore: set log ingester use new pipeline
* chore: fix some error by pr comment
* chore: fix typo
* chore: use enum_dispatch to simplify code
* chore: some minor fix
* chore: format code
* chore: update by pr comment
* chore: fix typo
* chore: make clippy happy
* chore: fix by pr comment
* chore: remove epoch and date process add new timestamp process
* chore: add more test for pipeline
* chore: restore epoch and date processor
* chore: compatibility issue
* chore: fix by pr comment
* chore: move the evaluation out of the loop
* chore: fix by pr comment
* chore: fix dissect output key filter
* chore: fix transform output greptime value has order error
* chore: keep pipeline transform output order
* chore: revert tests
* chore: simplify pipeline prepare implementation
* chore: add test for timestamp pipelin processor
* chore: make clippy happy
* chore: replace is_some check to match
---------
Co-authored-by: shuiyisong <xixing.sys@gmail.com >
2024-08-13 11:32:04 +00:00
zyy17
63e1892dc1
refactor(plugin): add SetupPlugin and StartPlugin error ( #4554 )
2024-08-13 11:22:48 +00:00
Lei, HUANG
216bce6973
perf: count(*) for append-only tables ( #4545 )
...
* feat: support fast count(*) for append-only tables
* fix: total_rows stats in time series memtable
* fix: sqlness result changes for SinglePartitionScanner -> StreamScanAdapter
* fix: some cr comments
2024-08-13 09:27:50 +00:00
Yingwen
4466fee580
docs: update grafana readme ( #4550 )
...
* docs: update grafana readme
* docs: simplify example
2024-08-13 08:45:06 +00:00
shuiyisong
5aa4c70057
chore: update validator signature ( #4548 )
2024-08-13 08:06:12 +00:00
Yingwen
72a1732fb4
docs: Adds more panels to grafana dashboards ( #4540 )
...
* docs: update standalone grafana
* docs: add more panels to grafana dashboards
* docs: replace source name
* docs: bump dashboard version
* docs: update hit rate expr
* docs: greptime_pod to instance, add panels for cache
2024-08-13 06:29:28 +00:00
Weny Xu
c821d21111
feat(log_store): introduce the IndexCollector ( #4461 )
...
* feat: introduce the IndexCollector
* refactor: separate BackgroundProducerWorker code into files
* feat: introduce index related operations
* feat: introduce the `GlobalIndexCollector`
* refactor: move collector to index mod
* refactor: refactor `GlobalIndexCollector`
* chore: remove unused collector.rs
* chore: add comments
* chore: add comments
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-08-13 06:15:24 +00:00
Weny Xu
2e2eacf3b2
feat: add SASL and TLS config for Kafka client ( #4536 )
...
* feat: add SASL and TLS config
* feat: add SASL/PLAIN and TLS config for Kafka client
* chore: use `ring`
* feat: support SASL SCRAM-SHA-256 and SCRAM-SHA-512
* fix: correct unit test
* test: add integration test
* chore: apply suggestions from CR
* refactor: introduce `KafkaConnectionConfig`
* chore: refine toml examples
* docs: add missing fields
* chore: refine examples
* feat: allow no server ca cert
* chore: refine examples
* chore: fix clippy
* feat: load system ca certs
* chore: fmt toml
* chore: unpin version
* Update src/common/wal/src/error.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2024-08-12 12:27:11 +00:00
Ruihang Xia
9bcaeaaa0e
refactor: reuse aligned ts array in range manipulate exec ( #4535 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-12 06:26:11 +00:00
Weny Xu
90cfe276b4
chore: upload kind logs ( #4544 )
2024-08-12 05:01:13 +00:00
JohnsonLee
6694d2a930
fix: change the type of oid in pg_namespace to u32 ( #4541 )
...
* fix: change the type of oid in pg_namespace to u32
* fix: header and correct logic of update oid
2024-08-10 15:06:14 +00:00
Ning Sun
9532ffb954
fix: configuration example for selector ( #4532 )
...
* fix: configuration example for selector
* docs: update config docs
* test: update unit tests for configuration in meta
2024-08-09 09:51:05 +00:00
Weny Xu
665b7e5c6e
perf: merge small byte ranges for optimized fetching ( #4520 )
2024-08-09 08:17:54 +00:00
Weny Xu
27d9aa0f3b
fix: rollback only if dropping the metric physical table fails ( #4525 )
...
* fix: rollback only if dropping the metric physical table fails
* chore: apply suggestions from CR
2024-08-09 08:01:11 +00:00
discord9
8f3293d4fb
fix: larger stack size in debug mode ( #4521 )
...
* fix: larger stack size in debug mode
* chore: typo
* chore: clippy
* chore: per review
* chore: rename thread
* chore: per review
* refactor: better looking cfg
* chore: async main entry
2024-08-09 07:01:20 +00:00
LFC
7dd20b0348
chore: make mysql server version changable ( #4531 )
2024-08-09 03:43:43 +00:00
zyy17
4c1a3f29c0
ci: download the latest stable released version by default and do some small refactoring ( #4529 )
...
refactor: download the latest stable released version by default and do some small refactoring
2024-08-08 07:46:09 +00:00
Jeremyhi
0d70961448
feat: change the default selector to RoundRobin ( #4528 )
...
* feat: change the default selector to rr
* Update src/meta-srv/src/selector.rs
* fix: unit test
2024-08-08 04:58:20 +00:00
LFC
a75cfaa516
chore: update snafu to make clippy happy ( #4507 )
...
* chore: update snafu to make clippy happy
* fix ci
2024-08-07 16:12:00 +00:00
Lei, HUANG
aa3f53f08a
fix: install script ( #4527 )
...
fix: install script always install v0.9.0-nightly-20240709 instead of latest nightly
2024-08-07 14:07:32 +00:00
Ruihang Xia
8f0959fa9f
fix: fix incorrect result of topk with cte ( #4523 )
...
* fix: fix incorrect result of topk with cte
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up cargo toml
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-07 09:13:38 +00:00
Weny Xu
4a3982ca60
chore: use configData ( #4522 )
...
* chore: use `configData`
* chore: add an empty line
2024-08-07 07:43:04 +00:00
Yingwen
559219496d
ci: fix windows temp path ( #4518 )
2024-08-06 13:53:12 +00:00
LFC
685aa7dd8f
ci: squeeze some disk space for complex fuzz tests ( #4519 )
...
* ci: squeeze some disk space for complex fuzz tests
* Update .github/workflows/develop.yml
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2024-08-06 11:52:34 +00:00
Lei, HUANG
be5364a056
chore: support swcs as the short name for strict window compaction ( #4517 )
2024-08-06 07:38:07 +00:00
Weny Xu
a25d9f736f
chore: set default otlp_endpoint ( #4508 )
...
* chore: set default `otlp_endpoint`
* fix: fix ci
2024-08-06 06:48:14 +00:00
dependabot[bot]
2cd4a78f17
build(deps): bump zerovec from 0.10.2 to 0.10.4 ( #4335 )
...
Bumps [zerovec](https://github.com/unicode-org/icu4x ) from 0.10.2 to 0.10.4.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/commits/ind/zerovec@0.10.4 )
---
updated-dependencies:
- dependency-name: zerovec
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-08-06 00:40:03 +00:00
dependabot[bot]
188e182d75
build(deps): bump zerovec-derive from 0.10.2 to 0.10.3 ( #4346 )
...
Bumps [zerovec-derive](https://github.com/unicode-org/icu4x ) from 0.10.2 to 0.10.3.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/commits/ind/zerovec-derive@0.10.3 )
---
updated-dependencies:
- dependency-name: zerovec-derive
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-08-05 23:58:30 +00:00
Yingwen
d64cc79ab4
docs: add v0.9.1 bench result ( #4511 )
2024-08-05 16:53:32 +00:00
discord9
e6cc4df8c8
feat: flow recreate on reboot ( #4509 )
...
* feat: flow reboot clean
* refactor: per review
* refactor: per review
* test: sqlness flow reboot
2024-08-05 13:57:48 +00:00
LFC
803780030d
fix: too large shadow-rs consts ( #4506 )
2024-08-05 07:05:14 +00:00
Weny Xu
79f10d0415
chore: reduce fuzz tests in CI ( #4505 )
2024-08-05 06:56:41 +00:00
Weny Xu
3937e67694
feat: introduce new kafka topic consumer respecting WAL index ( #4424 )
...
* feat: introduce new kafka topic consumer respecting WAL index
* chore: fmt
* chore: fmt toml
* chore: add comments
* feat: merge close ranges
* fix: fix unit tests
* chore: fix typos
* chore: use loop
* chore: use unstable sort
* chore: use gt instead of gte
* chore: add comments
* chore: rename to `current_entry_id`
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* refactor: minor refactor
* chore: apply suggestions from CR
2024-08-05 06:56:25 +00:00
Weny Xu
4c93fe6c2d
chore: bump rust-postgres to 0.7.11 ( #4504 )
2024-08-05 04:26:46 +00:00
LFC
c4717abb68
chore: bump shadow-rs version to set the path to find the correct git repo ( #4494 )
2024-08-05 02:24:12 +00:00
shuiyisong
3b701d8f5e
test: more on processors ( #4493 )
...
* test: add date test
* test: add epoch test
* test: add letter test and complete some others
* test: add urlencoding test
* chore: typo
2024-08-04 08:29:31 +00:00
Weny Xu
cb4cffe636
chore: bump opendal version to 0.48 ( #4499 )
2024-08-04 00:46:04 +00:00
Ruihang Xia
cc7f33c90c
fix(tql): avoid unwrap on parsing tql query ( #4502 )
...
* fix(tql): avoid unwrap on parsing tql query
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add unit test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-03 20:58:53 +00:00
Ruihang Xia
fe1cfbf2b3
fix: partition column with mixed quoted and unquoted idents ( #4491 )
...
* fix: partition column with mixed quoted and unquoted idents
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update error message
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-02 09:06:31 +00:00
Yingwen
ded874da04
feat: enlarge default page cache size ( #4490 )
2024-08-02 07:24:20 +00:00
Lei, HUANG
fe2d29a2a0
chore: bump version v0.9.1 ( #4486 )
...
Update package versions to 0.9.1
- Bump version for multiple packages from 0.9.0 to 0.9.1 in Cargo.lock
2024-08-02 07:10:05 +00:00
Yingwen
b388829a96
fix: avoid total size overflow ( #4487 )
...
feat: avoid total size overflow
2024-08-02 06:16:37 +00:00
zyy17
8e7c027bf5
ci: make docker image args configurable from env vars ( #4484 )
...
refactor: make docker image args configurable from env vars
2024-08-02 03:17:09 +00:00
Lei, HUANG
9d5d7c1f9a
feat(compaction): add file number limits to TWCS compaction ( #4481 )
...
* Add file number limits to TWCS compaction
- Introduce `max_active_window_files` and `max_inactive_window_files` to `TwcsOptions`.
* feat/limit-files-in-windows: Add max active/inactive window files options to mito engine config
* feat/limit-files-in-windows: Add Debug derive to TwcsPicker and implement max file enforcement logging in TWCS compaction
* fix: clippy
2024-08-01 12:42:09 +00:00
ZonaHe
efe5eeef14
feat: update dashboard to v0.5.4 ( #4483 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2024-08-01 12:19:38 +00:00
Ruihang Xia
ca54b05be3
feat: time poll elapsed for RegionScan plan ( #4482 )
...
* feat: time poll elapsed for RegionScan plan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* also record await time
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-01 12:19:15 +00:00
Jeremyhi
d67314789c
feat: export all schemas and data at once in export tool ( #4478 )
...
* feat: export all schemas and data at onece
* feat: introduce export all to export schemas and data at once
* feat: default value for target
* feat: refactor export target
* chore: fix unit test
2024-08-01 09:14:44 +00:00
Yingwen
6c4b8b63a5
fix: notify flush receiver after write buffer is released ( #4476 )
...
* fix: notify the worker after write buffer is released
* feat: worker level region count
2024-08-01 07:15:36 +00:00
Jeremyhi
62a0defd63
feat: improve extract hints ( #4479 )
2024-08-01 07:06:13 +00:00
Jeremyhi
291d9d55a4
feat: hint options for gRPC insert ( #4454 )
...
* feat: hint options for gRPC isnert
* chore: unit test for extract_hints
* feat: add integration test for grpc hint
* test: add integration test for hints
2024-08-01 02:59:38 +00:00
Weny Xu
90301a6250
fix: generate unique timestamp for inserting tests ( #4472 )
2024-07-31 12:19:43 +00:00
shuiyisong
c66d3090b6
fix: prometheus api only returns 200 ( #4471 )
...
fix: prometheus api returns http status other than 200
2024-07-31 07:42:50 +00:00
dennis zhuang
656050722c
fix: overflow when parsing default value with negative numbers ( #4459 )
...
* fix: overflow when parsing default value with negative numbers
* test: adds sqlness test
2024-07-31 07:41:49 +00:00
Ning Sun
b741a7181b
feat: track channels with query context and w/rcu ( #4448 )
...
* feat: add source channel to meter recorders
* feat: provide channel for query context
* fix: testing and extension get for query context
* chore: revert cargo toml structure changes
* fix: querycontext modification for prometheus and pipeline
* chore: switch git dependency to main branches
* chore: remove TODO
* refactor: rename other to unknown
---------
Co-authored-by: shuiyisong <113876041+shuiyisong@users.noreply.github.com >
2024-07-31 07:30:50 +00:00
Weny Xu
dd23d47743
chore(ci): bring back chaos tests ( #4456 )
...
* Revert "chore: temporarily disable fuzz chaos tests (#4457 )"
This reverts commit f0c953f84a .
* chore: update config
* Update .github/actions/setup-greptimedb-cluster/with-remote-wal.yaml
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-07-31 07:29:31 +00:00
Ran Miller
80aaa7725e
docs(contributing): replace expired links ( #4468 )
2024-07-31 06:11:30 +00:00
Ran Miller
c24de8b908
refactor(servers): improve postgres error message ( #4463 )
...
* refactor(servers): improve postgres error message
* refactor(servers): remove numerical representation of ErrorSeverity
2024-07-31 06:06:15 +00:00
Yingwen
f382a7695f
perf: reduce lock scope and improve log ( #4453 )
...
* feat: refine logs for scan
* feat: improve build parts and unordered scan metrics
* feat: change to debug log
* fix: release lock before reading part
* test: replace region id
* test: fix sqlness
* chore: add todo
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-07-31 04:07:34 +00:00
Jeremyhi
1ea43da9ea
feat: default export catalog name ( #4464 )
...
* feat: default export catalog name
* chore: default catalog name
2024-07-31 03:39:39 +00:00
dennis zhuang
6113f46284
docs: tweak readme ( #4465 )
2024-07-31 02:35:29 +00:00
LFC
6d8a502430
chore: add more metrics about parquet and cache ( #4410 )
...
* chore: add more metrics about parquet and cache
* resolve PR comments
* resolve PR comments
* resolve PR comments
* resolve PR comments
2024-07-30 12:01:49 +00:00
Ruihang Xia
2d992f4f12
fix: check_partition uses unqualified name ( #4452 )
...
* fix: check_partition uses unqualified name
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 >
2024-07-30 11:28:28 +00:00
Ruihang Xia
7daf24c47f
feat: remove dedicated runtime for grpc, mysql and pg protocols ( #4436 )
...
* feat: remove dedicated runtime for grpc, mysql and pg protocols
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove other runtimes
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* spawn compact task into compact_runtime
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refine naming
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/servers/tests/mysql/mysql_server_test.rs
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* turnoff fuzz test matrix fail fast option
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: update rt config for ci tests
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-07-30 06:17:58 +00:00
shuiyisong
567f5105bf
fix: missing pre_write check on prometheus remote write ( #4460 )
...
fix: missing pre_write check on prometheus remote write
2024-07-30 04:55:19 +00:00
Yingwen
78962015dd
ci: keep sqlness log by default ( #4449 )
...
* ci: keep sqlness log by default
* chore: not preserve state in makefile by default
* ci: use make
2024-07-29 17:11:24 +00:00
taobo
1138f32af9
feat: support setting time range in Copy From statement ( #4405 )
...
* feat: support setting time range in Copy From statement
* test: add batch_filter_test
* fix: ts data type inconsistent error
* test: add sqlness test for copy from with statement
* fix: sqlness result error
* fix: cr comments
2024-07-29 16:55:19 +00:00
shuiyisong
53fc14a50b
fix: use status code to http status mapping in error IntoResponse ( #4455 )
2024-07-29 16:37:04 +00:00
Ruihang Xia
1895a5478b
feat: track prometheus HTTP API's query latency ( #4458 )
...
* feat: track prometheus HTTP API's query latency
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update grafana config
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: Update src/servers/src/metrics.rs
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-07-29 15:00:09 +00:00
Weny Xu
f0c953f84a
chore: temporarily disable fuzz chaos tests ( #4457 )
2024-07-29 13:23:40 +00:00
zyy17
1a38f36d2d
refactor!: Remove Mode from FrontendOptions ( #4401 )
...
refactor: remove `Mode` from `FrontendOptions`
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2024-07-29 06:57:01 +00:00
Zhenchi
cb94bd45d3
fix(fulltext-search): prune rows in row group forget to take remainder ( #4447 )
...
* fix(fulltext-search): prune rows in row group forget to take remainder
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: add unit test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-29 06:20:07 +00:00
Ning Sun
b298b35b3b
feat: show root cause and db name on the error line ( #4442 )
...
* feat: show root cause on the error line
* feat: show root error for grpc
* feat: add error information for http error
* feat: add db information on error mysql/postgres logs
2024-07-29 03:59:42 +00:00
Weny Xu
164232e073
fix: use heartbeat runtime instead of background runtime ( #4445 )
2024-07-29 03:29:30 +00:00
JohnsonLee
9a5fa49955
feat: support pg_namespace, pg_class and related psql command ( #4428 )
...
* feat: add function 'pg_catalog.pg_table_is_visible'q
* feat: add 'pg_class' and 'pg_namespace', now we can run '\d' and '\dt'!
* refactor: move memory_table::tables to utils::tables
* refactor: move out predicate to system_schema to reuse it
* feat: predicates pushdown
* test: add pg_namespace, pg_class related sqlness test
* fix: typos and license header
* fix: sqlness test
* refactor: use `expect` instead of `unwrap` here
* refactor: remove the `information_schema::utils` mod
* doc: make the comment in pg_get_userbyid more precise
* doc: add TODO and comment in pg_catalog
* fix: typo
* fix: sqlness
* doc: change to comment on PGClassBuilder to TODO
2024-07-28 12:04:54 +00:00
dennis zhuang
92d6d4e64a
docs: update project status ( #4440 )
...
* docs: update project status
* docs: update project status
2024-07-27 05:24:09 +00:00
discord9
021ec7b6ac
feat(flow): flush_flow function ( #4416 )
...
* refactor: df err variant
* WIP
* chore: update proto version
* chore: revert mistaken rust-toolchain
* feat(WIP): added FlowService to QueryEngine
* refactor: move flow service to operator
* refactor: flush use flow name not id
* refactor: use full path in macro
* feat: flush flow
* feat: impl flush flow
* chore: remove unused
* chore: meaninful response
* chore: remove unused
* chore: clippy
* fix: flush_flow with proper blocking
* test: sqlness tests added back for flow
* test: better predicate for flush_flow
* refactor: rwlock
* fix: flush lock
* fix: flush lock write then drop
* test: add a new flow sqlness test
* fix: sqlness testcase
* chore: style
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-07-26 23:04:13 +00:00
dennis zhuang
0710e6ff36
fix: remove to_timezone function ( #4439 )
...
fix: remove to_timezone, it doesn't make sense
2024-07-26 07:40:07 +00:00
dennis zhuang
db3a07804e
fix: information_schema tables and views column value ( #4438 )
2024-07-26 07:39:58 +00:00
Lei, HUANG
bdd3d2d9ce
chore: add dynamic cache size adjustment for InvertedIndexConfig ( #4433 )
...
* Add dynamic cache size adjustment for InvertedIndexConfig
* Increase cache sizes in integration tests for HTTP
- Updated `metadata_cache_size` from 32MiB to 64MiB
* Remove cache size settings from config and update drop_lines_with_inconsistent_results function to handle them
* Add cache size configurations for inverted index metadata and content
- Introduced `metadata_cache_size` with a default of 64MiB.
- Introduced `content_cache_size` with a default of 128MiB.
* chore/index-content-cache-default-size: Add cache size configuration options for Mito engine's inverted index
2024-07-26 03:36:20 +00:00
zyy17
b81d3a28e6
refactor: add RetryInterceptor to print detailed error ( #4434 )
2024-07-25 11:52:28 +00:00
Weny Xu
89b86c87a2
chore: add docs for config file ( #4432 )
2024-07-25 08:11:10 +00:00
Lei, HUANG
0b0ed03ee6
fix(metrics): RowGroupLastRowCachedReader metrics ( #4418 )
...
fix/reader-metrics:
Refactor cache hit/miss logic and update metrics in mito2
- Simplify cache retrieval logic in CacheManager by removing inline update_hit_miss function call.
- Add separate functions for incrementing cache hit and miss metrics.
- Update RowGroupLastRowCachedReader to use new cache hit/miss functions and refactor to new helper methods for creating Hit and Miss variants.
2024-07-25 06:45:43 +00:00
dennis zhuang
ea4a71b387
docs: update readme ( #4431 )
2024-07-25 06:17:45 +00:00
dennis zhuang
4cd5ec7769
docs: update readme ( #4430 )
2024-07-25 02:42:18 +00:00
Ruihang Xia
c8f4a85720
chore: update grafana dashboard to reflect recent metric changes ( #4417 )
...
* chore: update grafana dashboard to reflect recent metric changes
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: add a blank line at the end
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-07-24 20:05:44 +00:00
discord9
024dac8171
chore: add a compile cfg for python in cmd package ( #4406 )
...
* chore: add a compile cfg for python
* fix: feature gate additive turn off default features in workspace&add cfg in place
* chore: remove unused in different cfg
2024-07-24 20:03:53 +00:00
Ran Miller
918be099cd
docs(common_error): format enum StatusCode docs ( #4427 )
...
* fix: format comments end with . symbol
* docs: add commnet for RegionReadonly
* fix: comment error for DatabaseAlreadyExists
2024-07-24 15:54:35 +00:00
Zhenchi
91dbac4141
fix(fulltext-index): clean up 0-value timer ( #4423 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-24 15:03:36 +00:00
Ran Miller
e935bf7574
refactor: Remove PhysicalOptimizer and LogicalOptimizer trait ( #4426 )
...
* refactor(query): Remove LogicalOptimizer trait
* refactor(query): Remove PhysicalOptimizer trait
2024-07-24 13:01:44 +00:00
Ran Miller
f7872654cc
refactor(query): Remove PhysicalPlanner trait ( #4412 )
2024-07-24 03:06:46 +00:00
shuiyisong
547730a467
chore: add metrics for log ingestion ( #4411 )
...
* chore: add metrics for log ingestion
* chore: record result as well
2024-07-23 08:05:11 +00:00
Ning Sun
49f22f0fc5
fix: add back AuthBackend which is required by custom auth backend ( #4409 )
2024-07-23 05:35:29 +00:00
zyy17
2ae2a6674e
refactor: add get_storage_path() and get_catalog_and_schema() ( #4397 )
...
refactor: add get_storage_path() and get_catalog_and_schema()
2024-07-20 01:55:48 +00:00
Lei, HUANG
c8cf3b1677
fix(wal): handle WAL deletion on region drop ( #4400 )
...
Add LogStore trait bound to RegionWorkerLoop and handle WAL deletion on region drop.
2024-07-19 13:24:10 +00:00
Yingwen
7aae19aa8b
fix: dictionary key type use u32 ( #4396 )
...
* fix: dictionary key type use u32
* fix: fix error whle reading content
* fix: bulk memtable dictionary type
2024-07-19 09:51:29 +00:00
Jeremyhi
b90267dd80
feat: export database data ( #4382 )
...
* feat: export database data
* feat: export data with time range
* feat: refactor the data dir
* feat: by comment
2024-07-19 09:29:45 +00:00
discord9
9fa9156bde
feat: FLOWS table in information_schema&SHOW FLOWS ( #4386 )
...
* feat(WIP): flow info table
refactor: better err handling&log
feat: add flow metadata to info schema provider
feat(WIP): info_schema.flows
feat: info_schema.flows table
* fix: err after rebase
* fix: wrong comparsion op
* feat: SHOW FLOWS&tests
* refactor: per review
* chore: unused
* refactor: json error
* chore: per review
* test: sqlness
* chore: rm inline error
* refactor: per review
2024-07-19 09:29:36 +00:00
zyy17
ce900e850a
fix: user provider can't be configured by config file or environment variables ( #4398 )
2024-07-19 08:41:29 +00:00
zyy17
5274c5a407
refactor: add &mut Plugins argument in plugins setup api and remove unnecessary mut ( #4389 )
...
refactor: add '&mut Plugins' argument in plugins setup api and remove unnecessary mut
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2024-07-19 08:12:06 +00:00
Yingwen
0b13ac6e16
ci: disable auto review ( #4387 )
2024-07-18 08:03:37 +00:00
shuiyisong
8ab6136d1c
chore: support pattern as pipeline key name ( #4368 )
...
* chore: add pattern to processor key name
* fix: typo
* refactor: test
2024-07-18 03:32:26 +00:00
Weny Xu
e39f49fe56
fix: ensure keep alive is completed in time ( #4349 )
...
* fix: ensure keep alive is completed in time
* chore: apply suggestions from CR
* chore: use write runtime
* refactor: set META_LEASE_SECS to 5
* chore: set etcd replicas to 1
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* fix: set `MissedTickBehavior::Delay`
* chore: apply suggestions from CR
2024-07-17 06:14:45 +00:00
discord9
c595a56ac8
test(flow): ignore flow tests for now ( #4377 )
...
* tests: ignore flow tests for now
* chore: typo
* test: remove file altogether
* fix: last_value sqlness test regex
* fix: last_value part REDACTED
2024-07-16 10:07:21 +00:00
Yingwen
d6c7b848da
chore: bump version to v0.9.0 ( #4376 )
...
* chore: bump version to v0.9.0
* chore: format
2024-07-16 07:50:45 +00:00
Lei, HUANG
2010a2a33d
feat: Add caching for last row reader and expose cache manager ( #4375 )
...
* Add caching for last row reader and expose cache manager
- Implement `RowGroupLastRowCachedReader` to handle cache hits and misses for last row reads.
* Add projection field to SelectorResultValue and refactor RowGroupLastRowReader
- Introduced `projection` field in `SelectorResultValue` to store projection indices.
2024-07-16 07:13:39 +00:00
dennis zhuang
be3ea0fae7
feat: improve datafusion external error and mysql error ( #4362 )
...
* feat: improve datafusion external error and mysql error
* chore: address CR comments and fix tests
---------
Co-authored-by: evenyag <realevenyag@gmail.com >
2024-07-16 07:01:09 +00:00
Lei, HUANG
7b28da277d
refactor: LastRowReader to use LastRowSelector ( #4374 )
...
Refactor LastRowReader to use LastRowSelector
- Replaced `last_batch` in `LastRowReader` with `LastRowSelector`.
2024-07-16 03:47:41 +00:00
discord9
b2c5f8eefa
test: more sleep when flow insert makes it serial ( #4373 )
...
* tests: more sleep
* fix: wait more time
* fix: update result file
2024-07-16 03:36:31 +00:00
JohnsonLee
072d7c2022
feat: introduce 'pg_catalog.pg_type' ( #4332 )
...
* WIP: pg_catalog
* refactor: move memory_table to crate public level to reuse it in pgcatalog
* refactor: new system_schema mod to manage implementation of information_schema and pg_catalog
* feat: pg_catalog.pg_type
* fix: remove unused code to avoid warning
* test: add pg_catalog sqlness test
* feat: pg_catalog_cache in system_catalog
* fix: integration test
* test: rollback unit test
* refactor: mix pg_catalog table_id with old ones
* fix: add todo information
* tests: rerun sqlness
---------
Co-authored-by: johnsonlee <johnsonlee@localhost.localdomain >
2024-07-15 17:41:08 +00:00
Yingwen
7900367433
test: replace unstable output of last value test ( #4371 )
...
test: replace unstable output
2024-07-15 16:51:16 +00:00
Lei, HUANG
9fbc4ba649
feat: add PruneReader for optimized row filtering ( #4370 )
...
* Add PruneReader for optimized row filtering and error handling
- Introduced `PruneReader` to replace `RowGroupReader` for optimized row filtering.
* Commit Message:
Make ReaderMetrics fields public for external access
* Add row selection support to SeqScan and FileRange readers
- Updated `SeqScan::build_part_sources` to accept an optional `TimeSeriesRowSelector`.
* Refactor `scan_region.rs` to remove unnecessary cloning of `series_row_selector`. Enhance `file_range.rs` by adding `select_all` method to check if all rows in a row group are selected, and update the logic in `reader` method to use `LastRowReader` only when all rows are
selected and no DELETE operations are present.
* Commit Message:
Enhance PruneReader and ParquetReader with reset functionality and metrics handling
Summary:
• Made Source enum public in prune.rs.
* chore: Update src/mito2/src/sst/parquet/reader.rs
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-07-15 14:23:34 +00:00
Yingwen
2e7b12c344
feat: add a cache for last value result in row group ( #4369 )
...
* feat: add selector result cache to cache manager
* feat: expose config
2024-07-15 12:33:36 +00:00
discord9
2b912d93fb
feat: flow perf&fix df func call ( #4347 )
...
* feat: flow perf&fix df func call
feat: make source sender `send` non-blocking
feat: better control of flow worker freq
feat: support transform interval
fix: const folding df func args&tests
tests: update cast const fold
chore: adjust flow work's freq
refactor: batch split
feat: adaptive run freq flow worker&check for errors
chore: better debug log
* refactor: per review
* chore: per zc's review
* chore: per bot review
* chore: remove some `TODO` completed
* docs: add comments for a test
2024-07-15 09:20:04 +00:00
Zhenchi
04ac0c8da0
feat(fulltext_index): integrate full-text indexer with parquet reader ( #4348 )
...
* feat(fulltext_index): integrate full-text indexer with parquet reader
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* disable reload
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: range allow exceeding total row
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: unit tests in index
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: prune row groups
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: rename creator
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: sst fulltext index
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: address comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-15 08:14:44 +00:00
dennis zhuang
64cad4e891
feat: tweak error and status codes ( #4359 )
...
* feat: tweak status codes
* fix: typo
* fix: by cr comments
2024-07-15 07:50:16 +00:00
Yingwen
20d9c0a345
fix: scan hint checks order asc ( #4365 )
...
* fix: order by asc check
* feat: print selector in explain
* test: move last_value opt test to standalone
* test: sqlness remove space
* test: update regex for datetime
* test: fix partitioning
* chore: update comment
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-07-15 07:49:14 +00:00
Lanqing Yang
9501318ce5
feat: support show views statement ( #4360 )
...
This commit enables show view statement which will display a list of views
names.
2024-07-15 07:24:27 +00:00
Ning Sun
b8bd8456f0
fix: remove path label for cache store ( #4336 )
...
* fix: remove path label for cache store
* fix: ignore path label for intermediatemanager
* refactor: remove unused object store
2024-07-15 03:34:19 +00:00
tison
4b8b04ffa2
chore: update project slogan ( #4361 )
...
* chore: update project slogan
Signed-off-by: tison <wander4096@gmail.com >
* keep in oneline
Signed-off-by: tison <wander4096@gmail.com >
* Apply suggestions from code review
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* Update README.md
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-07-15 03:02:44 +00:00
Lanqing Yang
15ac8116ea
feat: adding information_schema.views table ( #4342 )
...
This commit introduces information_schema.views table. The VIEWS table provides
information about views in databases.
2024-07-14 09:50:19 +00:00
Zhenchi
377a513690
feat(index): distinguish different types of index metrics ( #4337 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-14 08:03:09 +00:00
Yingwen
5a1732279b
feat: Implement reader that returns the last row of each series ( #4354 )
...
* feat: last row reader
* feat: scan use last row reader
* test: test last row selector
* chore: update comment
2024-07-12 14:40:06 +00:00
Ruihang Xia
16075ada67
feat: impl optimizer rule to handle last_value case ( #4357 )
...
* feat: impl optimizer rule to handle last_value case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/query/src/optimizer/scan_hint.rs
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
* split methods
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
2024-07-12 14:36:23 +00:00
shuiyisong
67dfdd6c61
feat: support text/plain format for log ingestion ( #4300 )
...
* feat: support text/plain format of log input
* refactor: pipeline query and delete using dataframe api
* chore: minor refactor
* refactor: skip jsonify when processing plan/text
* refactor: support array(string) as pipeline engine input
2024-07-12 09:17:15 +00:00
irenjj
9f2d53c3df
refactor: Remove the StandaloneKafkaConfig struct ( #4253 )
...
* refactor: Remove the StandaloneKafkaConfig struct
* remove the redundant assignment
* remove rudundant struct
* simplify replication_factor
* add KafkaTopicConfig
* fix check
* fix check
* fix check
* add flatten with
* revert config.md
* fix test params
* fix test param
* fix missing params when provider is kafka
* remove unsed files
* remove with prefix
* fix doc
* fix test
* fix clippy
2024-07-12 08:17:18 +00:00
Weny Xu
05c7d3eb42
docs(config): add enable_region_failover option to configuration ( #4355 )
...
docs(config): Add enable_region_failover option to configuration
2024-07-12 08:09:25 +00:00
Ruihang Xia
63acc30ce7
perf: fine–tuned plan steps ( #4258 )
...
* perf: fine–tuned plan steps
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle explain plan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle explain plan again
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-07-12 06:56:13 +00:00
tison
285ffc5850
fix: build info should use build time env var ( #4343 )
...
* fix: build info should use build time env var
Signed-off-by: tison <wander4096@gmail.com >
* catch up
Signed-off-by: tison <wander4096@gmail.com >
* fixup lifetime
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
* fix more
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-07-12 03:08:30 +00:00
dennis zhuang
ab22bbac84
feat: impl drop view ( #4231 )
...
* feat: impl drop view
* fix: metric name
* fix: comments
* test: add DropViewProcedure test
* test: drop view meets a table
* test: update sqlness tests by drop view
* feat: apply suggestion from AI
* chore: apply suggestion
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
* chore: apply suggestion
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
* chore: apply suggestion
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
* fix: TYPE_NAME for DropFlowProcedure
---------
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
2024-07-11 19:53:54 +00:00
Weny Xu
7ad248d6f6
fix(config): enable file engine by default ( #4345 )
...
* fix: enable file engine by default
* fix: fix tests
2024-07-11 17:35:18 +00:00
Ning Sun
50e4539667
fix: permission denied is 403 ( #4350 )
2024-07-11 17:16:17 +00:00
Zhenchi
da1ea253ba
perf(puffin): not to stage uncompressed blob ( #4333 )
...
* feat(puffin): not to stage blob
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: back with compressed blob
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-11 12:32:07 +00:00
Lei, HUANG
da0c840261
feat: customize copy to parquet parameter ( #4328 )
...
* feat/copy-to-parquet-parameter: Commit Message:
Enhance Parquet Writer with Column-wise Configuration
Summary:
• Introduced column_wise_config function to customize per-column properties in Parquet writer.
* feat/copy-to-parquet-parameter: Commit Message:
Enhance Parquet File Format Handling for Specific Data Types
Summary:
• Added ConcreteDataType import to support specific data type handling.
* feat/copy-to-parquet-parameter: Commit Message:
Refactor Parquet file format configuration
* feat/copy-to-parquet-parameter:
Enhance Parquet file format handling for timestamp columns
- Added logic to disable dictionary encoding and set DELTA_BINARY_PACKED encoding for timestamp columns in the Parquet file format configuration.
* feat/copy-to-parquet-parameter:
Disable dictionary encoding for timestamp columns in Parquet writer and update default max_active_window_runs in TwcsOptions
- Modified Parquet writer to disable dictionary encoding for timestamp columns to optimize for increasing timestamp data.
* feat/copy-to-parquet-parameter:
Update compaction settings in tests
- Modified `test_compaction_region` to include new compaction options: `compaction.type`,
`compaction.twcs.max_active_window_runs`, and `compaction.twcs.max_inactive_window_runs`.
- Updated `test_merge_mode_compaction` to use `compaction.twcs.max_active_window_runs` and
`compaction.twcs.max_inactive_window_runs` instead of `max_active_window_files` and
`max_inactive_window_files`.
2024-07-10 07:52:30 +00:00
zyy17
20417e646a
ci: add flownode in docker compose ( #4306 )
2024-07-10 06:37:21 +00:00
Ruihang Xia
9271b3b7bd
docs: remove cargo test workspace command ( #4325 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-07-10 06:36:44 +00:00
Ruihang Xia
374cfe74bf
fix(sqlness): relax start time regex to match various precisions ( #4326 )
...
* fix(sqlness): relax start time regex to match various precisions
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* exclude ip pattern
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-07-10 06:35:55 +00:00
Weny Xu
52a9a748a1
revert: lz4 compression ( #4329 )
...
* Revert "test: revert lz4 compression"
This reverts commit 180dda13fa .
* refactor: remove compression field
2024-07-10 04:24:40 +00:00
dennis zhuang
33ed745049
feat: show create view and creating view with columns ( #4086 )
...
* feat: parse column names when creating view
* feat: save the view definition into view info
* feat: supports view columns and show create view
* feat: save plan columns for validation
* fix: typo
* chore: comments and style
* chore: apply suggestions
* test: assert CreateView display result
* chore: style
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* chore: avoid the clone
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* fix: compile error after rebeasing
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-07-09 18:35:11 +00:00
Yingwen
458e5d7e66
feat: add TimeSeriesRowSelector hint ( #4327 )
...
* feat: Add TimeSeriesRowSelector
* feat: scan allow specify series row selector
* chore: Update comment
2024-07-09 12:29:47 +00:00
discord9
1ddf19d886
feat: flownode use Inserter to write to database ( #4323 )
...
* feat: use `Inserter` as Frontend
* fix: enable procedure in flownode
* docs: remove `frontend_addr` opts
* chore: rm fe addr in test runner
* refactor: int test also use inserter invoker
* feat: flow shutdown&refactor: remove `Frontendinvoker`
* refactor: rename `RemoteFrontendInvoker` to `FrontendInvoker`
* refactor: per review
* refactor: remove a layer of box
* fix: standalone use `node_manager`
* fix: remove a `Arc` cycle
2024-07-09 10:44:22 +00:00
Ruihang Xia
185953e586
fix: support unary operator in default value, partition rule and prepare statement ( #4301 )
...
* handle unary operator
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add prepare test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add test and context
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix rebase error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix merge error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-07-09 08:59:06 +00:00
Ning Sun
7fe3f496ac
refactor: do not print error log on PlanQuery error ( #4322 )
2024-07-09 06:34:30 +00:00
Weny Xu
1a9314a581
feat: enhanced the retry logic by adding a random noise ( #4320 )
...
feat: enhanced the retry logic by adding a random noise to the retry delay to avoid retry storms
2024-07-09 04:30:10 +00:00
Ruihang Xia
23bb9d92cb
feat: handle parentheses with unary ops ( #4290 )
...
* feat: handle parentheses with unary ops
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* check tokens before convert to RPN
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add test cases to sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-07-09 04:08:36 +00:00
dennis zhuang
f1d17a8ba5
fix: panic while reading information_schema. KEY_COLUMN_USAGE ( #4318 )
...
* fix: table might be dropped during iteration
* fix: panic while reading information_schema.key_column_usage
* fix: key_column_usage wrong results
2024-07-09 03:30:14 +00:00
tison
d1f1fad440
build(deps): switch to upstream ( #4319 )
...
* build(deps): switch to upstream
* lock
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-07-09 01:56:19 +00:00
Zhenchi
00308218b3
feat(fulltext_index): allow enable full-text index in SQL and gRPC way ( #4310 )
...
* feat(fulltext_index): allow enable full-text index in SQL and gRPC way
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: typo
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: test_fulltext_intm_path
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: explicitly build column options
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: fix error msg
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-08 20:18:48 +00:00
Ning Sun
81308b9063
fix: error on show databases in non-default catalog ( #4316 )
2024-07-08 16:28:00 +00:00
Lei, HUANG
aa4d10eef7
feat(inverted_index): inverted index cache ( #4309 )
...
* feat/inverted-index-cache:
Update dependencies and add caching for inverted index reader
- Updated `atomic` to 0.6.0 and `uuid` to 1.9.1 in `Cargo.lock`.
- Added `moka` and `uuid` dependencies in `Cargo.toml`.
- Introduced `seek_read` method in `InvertedIndexBlobReader` for common seek and read operations.
- Added `cache.rs` module to implement caching for inverted index reader using `moka`.
- Updated `async-compression` to 0.4.11 in `puffin/Cargo.toml`.
* feat/inverted-index-cache:
Refactor InvertedIndexReader and Add Index Cache Support
- Refactored `InvertedIndexReader` to include `seek_read` method and default implementations for `fst` and `bitmap`.
- Implemented `seek_read` in `InvertedIndexBlobReader` and `CachedInvertedIndexBlobReader`.
- Introduced `InvertedIndexCache` in `CacheManager` and `SstIndexApplier`.
- Updated `SstIndexApplierBuilder` to accept and utilize `InvertedIndexCache`.
- Added `From<FileId> for Uuid` implementation.
* feat/inverted-index-cache:
Update Cargo.toml and refactor SstIndexApplier
- Moved `uuid.workspace` entry in Cargo.toml for better organization.
* feat/inverted-index-cache:
Refactor InvertedIndexCache to use type alias for Arc
- Replaced `Arc<InvertedIndexCache>` with `InvertedIndexCacheRef` type alias.
* feat/inverted-index-cache:
Add Prometheus metrics and caching improvements for inverted index
- Introduced `prometheus` and `puffin` dependencies for metrics.
* feat/inverted-index-cache:
Refactor InvertedIndexReader and Cache handling
- Simplified `InvertedIndexReader` trait by removing seek-related comments.
* feat/inverted-index-cache:
Add configurable cache sizes for inverted index metadata and content
- Introduced `index_metadata_size` and `index_content_size` in `CacheManagerBuilder`.
* feat/inverted-index-cache:
Refactor and optimize inverted index caching
- Removed `metrics.rs` and integrated cache metrics into `index.rs`.
* feat/inverted-index-cache:
Remove unused dependencies from Cargo.lock and Cargo.toml
- Removed `moka`, `prometheus`, and `puffin` dependencies from both Cargo.lock and Cargo.toml.
* feat/inverted-index-cache:
Replace Uuid with FileId in CachedInvertedIndexBlobReader
- Updated `file_id` type from `Uuid` to `FileId` in `CachedInvertedIndexBlobReader` and related methods.
* feat/inverted-index-cache:
Refactor cache configuration for inverted index
- Moved `inverted_index_metadata_cache_size` and `inverted_index_cache_size` from `MitoConfig` to `InvertedIndexConfig`.
* feat/inverted-index-cache:
Remove unnecessary conversion of `file_id` in `SstIndexApplier`
- Simplified the initialization of `CachedInvertedIndexBlobReader` by removing the redundant `into()` conversion for `file_id`.
2024-07-08 12:36:59 +00:00
Zhenchi
4811fe83f5
fix: test_fulltext_intm_path ( #4314 )
...
* fix: test_fulltext_intm_path
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-08 12:34:35 +00:00
Ruihang Xia
96861137b2
fix(ci): remove sqlness state in success ( #4313 )
...
* fix(ci): remove sqlness state in success
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix regex
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-07-08 12:32:36 +00:00
Yohan Wal
8e69543704
feat: support inserting into binary value through string ( #4197 )
...
feat: support inserting binary by string
2024-07-08 12:09:30 +00:00
Ruihang Xia
e5730a3745
refactor: split match arms in prom_expr_to_plan into smaller methods ( #4317 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-07-08 11:59:59 +00:00
localhost
c0e9b3dbe2
chore: disable TraceLayer on_failure log ( #4315 )
2024-07-08 10:53:35 +00:00
Yingwen
59afa70311
feat!: Set merge mode while creating table in influx handler ( #4299 )
...
* feat: influxdb write auto set merge mode
* chore: update logs
* chore: address PR comments
2024-07-08 04:55:36 +00:00
dennis zhuang
bb32230f00
feat: impl show table status ( #4303 )
...
* feat: impl show table status
* chore: style and comment
* test: revert lz4 compression
2024-07-08 03:58:29 +00:00
tison
fe0be1583a
build(deps): upgrade opendal to 0.47.3 ( #4307 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-07-08 03:33:38 +00:00
Weny Xu
08c415c729
ci: retry on error or timeout during installing operator ( #4308 )
...
chore(ci): retry on error or timeout during installing operator
2024-07-08 03:31:13 +00:00
Weny Xu
58f991b864
fix: deregister failure detector in region migration ( #4293 )
...
* fix: deregister failure detector in region migration
* chore: apply suggestions from CR
2024-07-07 06:58:12 +00:00
Zhenchi
a710676d06
feat(fulltext_index): integrate full-text indexer with sst writer ( #4302 )
...
* feat(fulltext_index): integrate full-text indexer with sst writer
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: delay building puffin writer
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: indexer test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: add abort on empty indexer
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* config: indicates default mode
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* config: introduce "auto" and "unlimited" as mem threshold
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* doc: comment about push empty string
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-07 04:10:19 +00:00
Eugene Tolbakov
3f4928effc
feat(sql): add iso-8601 format support for intervals ( #4291 )
...
* feat(sql): add iso-8601 format support for intervals
* fix(sql): address CR feedback
* chore(sql): use regex to check the start of iso 8601
2024-07-05 22:19:05 +00:00
Weny Xu
bc398cf197
feat(remote wal): set default compresion to LZ4 ( #4294 )
...
* feat(remote wal): set default compresion to LZ4
* fix: fix test
2024-07-05 20:40:18 +00:00
discord9
09fff24ac4
feat: make flow distributed work&tests ( #4256 )
...
feat: flownode frontend client&test
feat: Frontend Client
feat: set frontend invoker for flownode
feat: set frontend invoker for flownode
chore: test script
WIP: test flow distributed
feat: hard coded demo
docs: flownode example toml
feat: add flownode support in runner
docs: comments for node
chore: after rebase
docs: add a todo
tests: move flow tests to common
fix: flownode sqlness dist test
chore: per review
docs: make
fix: make doc
2024-07-05 14:46:44 +00:00
Weny Xu
30b65ca99e
chore: bump OpenDAL to 0.47.2 ( #4297 )
...
chore: bump opendal to 0.47.2
2024-07-05 13:54:32 +00:00
Yingwen
b1219fa456
feat: refine scan metrics logging ( #4296 )
...
* fix: collect scan cost in row group reader
* feat: remove log after scan
* feat: collect prepare scan cost before fetching readers
* print first poll elapsed
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: print more first poll
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-07-05 08:39:35 +00:00
Weny Xu
4f0984c1d7
chore: remove original region failover implementation ( #4237 )
...
chore: remove original region failure implementation
2024-07-05 08:03:46 +00:00
Weny Xu
0b624dc337
ci: retry on error during installing operator ( #4295 )
...
chore(ci): retry on error during installing operator
2024-07-05 07:54:31 +00:00
Yingwen
60f599c3ef
feat: expose merge_mode option ( #4289 )
...
feat: expose merge mode options
2024-07-05 07:40:01 +00:00
Zhenchi
f71b7b997d
refactor(inverted_index): integrate puffin manager with sst indexer ( #4285 )
...
* refactor(puffin): adjust generic parameters
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor(inverted_index): integrate puffin manager for build
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* Revert "refactor(puffin): adjust generic parameters"
This reverts commit 81ea1b6ee4 .
* fix: column_ids remove ignore columns
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: remove with_ignore_column_ids
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* docs: add comments for IndexOutput
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* tiny fix
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* config: hide compress
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: index_size > 0 indicates index available
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* perf: reduce to_string`
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: clippy
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: address comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: address comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-05 07:12:50 +00:00
Weny Xu
8a119aa0b2
feat: add naive region failover test for metric table ( #4269 )
...
* feat: add failover test for metric table
* chore: introduce help marco
* chore: remove incorrect check
2024-07-05 06:54:23 +00:00
dennis zhuang
d2f6daf7b7
fix: prepare inserting with column defaults not work, #4244 ( #4272 )
...
* fix: prepare inserting with column defaults not work, #4244
* fix: build column_defaults every time when creating adapters
* feat: cache the column_defaults in table
* test: assert ts column
* fix: unit
* chore: style
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: typo
* chore: style
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-07-05 06:50:12 +00:00
Ning Sun
d9efa564ee
feat: add path prefix label to obejct storage metrics ( #4277 )
...
* feat: add path prefix label to storage metrics
* refactor: return full path when the levels are less than 3
* refactor: align path label name with upstream
* refactor: better implementation of sub path
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-07-05 06:45:47 +00:00
shuiyisong
849e0b9249
feat: delete pipeline ( #4156 )
...
* feat: add delete for pipeline
* chore: remove unused code
* refactor: delete pipeline
* chore: add pipeline management api metrics
* chore: minor cr issues
* chore: add unit test
* chore: fix cr issue
* fix: test
* chore: add `GreptimedbManageResponse`
* fix: typo
* fix: typo
2024-07-05 06:23:49 +00:00
discord9
c21e969329
fix: call df_func with literal ( #4265 )
...
* fix: call df_func with literal
* chore: rm dbg log forget to remove
2024-07-05 06:21:22 +00:00
shuiyisong
9393a1c51e
fix: align pre-commit config with make file ( #4292 )
2024-07-05 04:19:57 +00:00
shuiyisong
69bb7ded6a
fix: enable space string in yaml value ( #4286 )
...
* fix: enable space string in yaml value
* fix: typo
2024-07-05 03:39:26 +00:00
Weny Xu
b5c6c72b02
fix: enhance ColumnOption::DefaultValue formatting for string values ( #4287 )
2024-07-04 13:16:51 +00:00
Ning Sun
8399dcada3
refactor: use rwlock for modifiable session data ( #4232 )
...
* chore: update sqlness results
* refactor: use rwlock for modifiable data in session and querycontext
* chore: format toml
* refactor: use mutable_inner structure for mutable fields
* refactor: remove arc wrapper
2024-07-04 12:53:25 +00:00
Zhenchi
6e2c21dd3f
refactor(puffin): adjust generic parameters ( #4279 )
...
* refactor(puffin): adjust generic parameters
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: remove Box impl
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-04 12:22:04 +00:00
Weny Xu
70f7baffda
feat(fuzz): enhance condition check of region migration finish ( #4283 )
2024-07-04 12:14:52 +00:00
Weny Xu
4ec247f34d
feat: store peer info in TableFlowValue ( #4280 )
...
* feat: store peer info in `TableFlowValue`
* chore: apply suggestions from CR
2024-07-04 09:37:23 +00:00
Weny Xu
22f4d43b10
fix(fuzz): generate valid string ( #4281 )
...
* fix: generate valid string
* refactor(fuzz): wait for procedure finish at first
2024-07-04 08:22:39 +00:00
discord9
d9175213fd
chore: add missing s for --metasrv-addr ( #4278 )
2024-07-04 07:38:00 +00:00
Ruihang Xia
03c933c006
feat: handle AND/OR and priority in matches fn ( #4270 )
...
* feat: handle AND/OR and priority in matches fn
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* transform AST
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle non-big-write AND & OR
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-07-04 06:19:03 +00:00
Zhenchi
65c9fbbd2f
feat(fulltext_index): integrate puffin manager with inverted index applier ( #4266 )
...
* feat(fulltext_index): integrate puffin manager with inverted index applier
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: get rid of unexpected not found from write cache
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: move create_dir_all to BoundedStager::new
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: update config.md
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* config: unify directories
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: silent remove
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: config docs
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: auxiliary -> aux
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-04 06:18:58 +00:00
Weny Xu
ee9a5d7611
feat: introduce FlowRouteValue ( #4263 )
...
* feat: introduce `FlowRouteKey` and `FlowRouteValue`
* feat: put `FlowRouteValue` values in flow creation
* feat: use `FlowRouteValue`
* refactor: remove `PeerLookupServiceRef` in `DdlContext`
* chore: remove unused code
* Update src/common/meta/src/key.rs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* chore: apply suggestions from CR
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-07-03 19:46:16 +00:00
ZonaHe
8e306f3f51
feat: update dashboard to v0.5.3 ( #4262 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2024-07-03 14:45:55 +00:00
Weny Xu
76fac359cd
feat: implement naive fuzz test for region migration ( #4252 )
...
* fix(fuzz): adapt for new partition rules
* feat: implement naive fuzz test for region migration
* chore(ci): add ci cfg
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-07-03 13:30:41 +00:00
Lei, HUANG
705b22411b
fix(puffin): fix dependency ( #4267 )
...
fix/puffin-dependency: Update async-compression to 0.4 with features and add features to moka in Cargo.toml
2024-07-03 12:13:26 +00:00
zyy17
c9177cceeb
ci: push latest greptimedb nigthly build image ( #4260 )
2024-07-03 11:14:06 +00:00
Jeremyhi
ddf2e6a3c0
feat: provide a simple way to create metaclient ( #4257 )
...
* feat: provide a simple way to create metaclient
* chore: minor refactor using metaclient
* chore: minor refactor using metaclient
2024-07-03 08:11:55 +00:00
discord9
967b2cada6
feat!: remove alias metasrv-addr ( #4239 )
2024-07-03 06:53:43 +00:00
Weny Xu
0f4b9e576d
chore(ci): add timeout (60min) for fuzz tests ( #4255 )
2024-07-03 03:36:43 +00:00
Yohan Wal
c4db9e8aa7
fix!: forbid to change information_schema ( #4233 )
...
* fix: forbid to change tables in information_schema
* refactor: use unified read-only check function
* test: add more sqlness tests for information_schema
* refactor: move is_readonly_schema to common_catalog
2024-07-03 03:09:23 +00:00
Ning Sun
11cf9c827e
feat: dbeaver mysql compatibility, use statement and information_schema.tables ( #4218 )
...
* feat: add more placeholder field in information_schema.tables
* feat: make schema modifiable for use statement
* chore: add todo items
* fix: resolve lint issues after data type changes
* chore: update sqlness results
* refactor: patch for select database is no longer needed
* test: align tests and data types
* Apply suggestions from code review
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* fix: use canonicalize_identifier for database name
* feat: add all columns for information_schema.tables
* test: remove vairables from sqlness results
* feat: add to_string impl for table options
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-07-03 01:31:13 +00:00
Weny Xu
be29e48a60
chore: reduce insertion size of fuzz test ( #4243 )
...
* chore: reduce size of fuzz test
* chore: get env cfg variables
2024-07-02 13:02:04 +00:00
Lei, HUANG
226136011e
refactor: change InvertedIndexWriter method signature to offsets to f… ( #4250 )
...
refactor: change InvertedIndexWriter method signature to offsets to facilliate caching
2024-07-02 12:49:18 +00:00
zyy17
fd4a928521
refactor: add RemoteCompaction error ( #4251 )
...
* refactor: make location field public
* refactor: add RemoteCompaction error
2024-07-02 12:33:57 +00:00
zyy17
ef5d1a6a65
ci: update centos yum source and specify cargo-binstall version ( #4248 )
...
* ci: use 'vault.centos.org' as default yum for centos:7 image
* ci: fix cargo-binstall version to adapt rust toolchain
* ci: specify cargo-binstall version to adapt current rust toolchain
2024-07-02 11:56:21 +00:00
Zhenchi
e64379d4f7
feat(fulltext_index): introduce creator ( #4249 )
...
* feat(fulltext_index): introduce creator
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: typo
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: typo
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: return error if writer not found
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: helper function for tests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-02 09:06:14 +00:00
zyy17
f2c08b8ddd
feat: introduce the interface of RemoteJobScheduler ( #4181 )
...
* refactor: add Compactor trait
* chore: add compact() in Compactor trait and expose compaction module
* refactor: add CompactionRequest and open_compaction_region
* refactor: export the compaction api
* refactor: add DefaultCompactor::new_from_request
* refactor: no need to pass mito_config in open_compaction_region()
* refactor: CompactionRequest -> &CompactionRequest
* fix: typo
* docs: add docs for public apis
* refactor: remove 'Picker' from Compactor
* chore: add logs
* chore: change pub attribute for Picker
* refactor: remove do_merge_ssts()
* refactor: update comments
* refactor: use CompactionRegion argument in Picker
* chore: make compaction module public and remove unnessary clone
* refactor: move build_compaction_task() in CompactionScheduler{}
* chore: use in open_compaction_region() and add some comments for public structure
* refactor: add 'manifest_dir()' in store-api
* refactor: move the default implementation to DefaultCompactor
* refactor: remove Options from MergeOutput
* chore: minor modification
* fix: clippy errors
* fix: unit test errors
* refactor: remove 'manifest_dir()' from store-api crate(already have one in opener)
* refactor: use 'region_dir' in CompactionRequest
* refactor: refine naming
* refactor: refine naming
* refactor: remove clone()
* chore: add comments
* refactor: add PickerOutput field in CompactorRequest
* feat: introduce RemoteJobScheduler
* feat: add RemoteJobScheudler in schedule_compaction_request()
* refactor: use Option type for senders field of CompactionFinished
* refactor: modify CompactionJob
* refactor: schedule remote compaction job by options
* refactor: remove unused Options
* build: remove unused log
* refactor: fallback to local compaction if the remote compaction failed
* fix: clippy errors
* refactor: add plugins in mito2
* refactor: add from_u64() for JobId
* refactor: make schedule module public
* refactor: add error for RemoteJobScheduler
* refactor: add Notifier
* refactor: use Arc for Notifier
* refactor: add 'remote_compaction' in compaction options
* fix: clippy errors
* fix: unrecognized table option
* refactor: add 'start_time' in CompactionJob
* refactor: modify error type of RemoteJobScheduler
* chore: revert changes for request
* refactor: code refactor by review comment
* refactor: use string type for JobId
* refactor: add 'waiters' field in DefaultNotifier
* fix: build error
* refactor: take coderabbit's review comment
* refactor: use uuid::Uuid as JobId
* refactor: return waiters when schedule failed and add on_failure for DefaultNotifier
* refactor: move waiters from notifier to Job
* refactor: use ObjectStoreManagerRef in open_compaction_region()
* refactor: implement for JobId and adds related unit tests
* fix: run unit tests failed
* refactor: add RemoteJobSchedulerError
2024-07-02 07:08:43 +00:00
Zhenchi
db5d1162f0
feat(puffin): complete dir support ( #4240 )
...
* feat(puffin): implement CachedPuffinReader
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: next PR to introduce CachedPuffinManager
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: rename
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(puffin): implement MokaCacheManager
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: clippy
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: +1s
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(puffin): implement CachedPuffinManager and add tests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: corner case to get a blob
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: keep dir in used
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: add more tests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: add doc comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: toml format
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: rename unreleased_dirs
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: refine some comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: handle more cornor cases
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: refine
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: simplify
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: more explanation
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: comment compressed
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: fmt
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: address comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: Cached* -> Fs*
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: CacheManager -> Stager
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: rename Puffin(A)sync* -> (A)sync*
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: fmt
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-02 05:43:06 +00:00
tison
ea081c95bf
chore: add AUTHOR.md file ( #4241 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-07-02 01:07:13 +00:00
LFC
6276e006b9
refactor: add interceptor after Influxdb lines are converted to grpc row insert ( #4225 )
...
* fix: make Influxdb lines able to be inserted into last created tables
* Update src/servers/src/influxdb.rs
* add an option to control the time index alignment behavior
* fix ci
* refactor: use interceptor to handle timestamp align
* Apply suggestions from code review
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Co-authored-by: tison <wander4096@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-07-01 22:28:00 +00:00
tison
2665616f72
build(deps): Upgrade OpenDAL to 0.47 ( #4224 )
...
* catch up changes
Signed-off-by: tison <wander4096@gmail.com >
* fmt
Signed-off-by: tison <wander4096@gmail.com >
* Fix cache for 0471 (#7 )
* Fix cache for 0471
Signed-off-by: Xuanwo <github@xuanwo.io >
* Make clippy happy
Signed-off-by: Xuanwo <github@xuanwo.io >
---------
Signed-off-by: Xuanwo <github@xuanwo.io >
* tidy
Signed-off-by: tison <wander4096@gmail.com >
* use opendal's exported type
Signed-off-by: tison <wander4096@gmail.com >
* clippy
Signed-off-by: tison <wander4096@gmail.com >
* fmt
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Signed-off-by: Xuanwo <github@xuanwo.io >
Co-authored-by: Xuanwo <github@xuanwo.io >
2024-07-01 17:05:15 +00:00
zyy17
e5313260d0
refactor: use ObjectStoreManagerRef type in open_compaction_region() and add related unit test ( #4238 )
2024-07-01 13:10:50 +00:00
Zhenchi
b69b24a237
feat(puffin): implement MokaCacheManager ( #4211 )
...
* feat(puffin): implement MokaCacheManager
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: clippy
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: +1s
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: corner case to get a blob
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: keep dir in used
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: add more tests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: add doc comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: toml format
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: rename unreleased_dirs
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: refine some comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: handle more cornor cases
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: refine
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: simplify
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: more explanation
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: use recycle bin
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: remove instead
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: address comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: remove unnecessary removing
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-07-01 13:10:13 +00:00
discord9
f035a7c79c
feat: flow cli for distributed ( #4226 )
...
* feat(WIP): add FlownodeInstance for flow cli
* feat(WIP): cli
* feat: add merge opts func
* refactor: move server&error to src dir
* feat: flownode cli build
* feat: add `flownode` subcmd to cli
* refactor: per review
* refactor!: BREAKING remove alias `metasrv-addr`
* chore: after rebase
* feat: cache invalide flownode cache
* chore: small refactor per review
* chore: fix a typo
* feat!: revert breaking change
* chore: per review
* refactor: not accept `metasrv-addr` only for flownode
2024-07-01 09:56:15 +00:00
Ruihang Xia
a4e99f5666
feat: basic implement of matches fn ( #4222 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/common/function/src/scalars/matches.rs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update src/common/function/src/scalars/matches.rs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* revert typo fix
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* ignore typo unqualifed
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* enhance grammar restrictions
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
* todo about tokenizer
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* reverse order
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rewrite escape_pattern
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-07-01 07:59:59 +00:00
Jeremyhi
5d396bd6d7
feat: forgot collect flownode clusterinfo handler ( #4236 )
...
* feat: forgot collect flownode clusterinfo handler
* fix: unit test
* fix: filter stale heartbeat
2024-07-01 06:42:31 +00:00
zyy17
fe2c5c3735
refactor: expose DatanodeBuilder::build_object_store_manager() and MitoConfig::sanitize() ( #4212 )
...
* refactor: expose DatanodeBuilder::build_object_store_manager()
* refactor: expose MitoConfig::sanitize()
2024-07-01 06:36:32 +00:00
Weny Xu
6a634f8e5d
feat: register & deregister region failure detectors actively ( #4223 )
...
* feat: Use DATANODE_LEASE_SECS from distributed_time_constants for heartbeat pause duration
* feat: introduce `RegionFailureDetectorController` to manage region failure detectors
* feat: add `RegionFailureDetectorController` to `DdlContext`
* feat: add `region_failure_detector_controller` to `Context` in region migration
* feat: register region failure detectors during rollback region migration procedure
* feat: deregister region failure detectors during drop table procedure
* feat: register region failure detectors during create table procedure
* fix: update meta config
* chore: apply suggestions from CR
* chore: avoid cloning
* chore: rename
* chore: reduce the size of the test
* chore: apply suggestions from CR
* chore: move channel initialization into `RegionSupervisor::channel`
* chore: minor refactor
* chore: rename ident
2024-07-01 05:58:27 +00:00
Jeremyhi
214fd38f69
feat: add build info for flow heartbeat task ( #4228 )
...
* chore: refactor load region stats
* feat: add build info for flow heartbeat
2024-07-01 03:19:25 +00:00
zyy17
ddc7a80f56
fix: add serialize_ignore_column_ids() to fix deserialize region options failed from json string ( #4229 )
...
* fix: add serialize_ignore_column_ids() to fix deserialize region options failed from json string
* refactor: return empty vector if column_id is empty
2024-06-30 09:59:14 +00:00
Ruihang Xia
a7aa556763
feat: output multiple partition in MergeScanExec ( #4227 )
...
* feat: output multiple partition in MergeScanExec
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix range manipulate
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-28 13:45:22 +00:00
Lei, HUANG
ef935a1de6
feat!: reduce sorted runs during compaction ( #3702 )
...
* feat: add functions to find and merge sorted runs
* chore: refactor code
* chore: remove some duplicates
* chore: remove one clone
* refactor: change max_active_window_files to max_active_window_runs
* feat: integrate with sorted runs
* fix: unit tests
* feat: limit num of sorted runs during compaction
* fix: some test
* fix: some cr comments
* feat: use smallvec
* chore: rebase main
* feat/reduce-sorted-runs:
Refactor compaction logic and update test configurations
- Refactored `merge_all_runs` function to use `sort_ranged_items` for sorting.
- Improved item merging logic by iterating with `into_iter` and handling overlaps.
- Updated test configurations to use `max_active_window_runs` instead of `max_active_window_files` for consistency.
---------
Co-authored-by: tison <wander4096@gmail.com >
2024-06-28 08:17:30 +00:00
Weny Xu
352cc9ddde
test: add e2e test for region failover ( #4188 )
...
* test: add e2e test for region failover
* chore: add ci cfg
* chore: reduce parallelism to 8
* fix(ci): enable region failure
* chore: set sqlx LogLevel to Off
* refactor: move help functions to utils
2024-06-28 06:49:41 +00:00
discord9
b6585e3581
refactor(flow): make from_substrait_* async& worker handle refactor ( #4210 )
...
* refactor: use oneshot to receive result
* refactor: make from_substrait_* async
* refacrot: remove serde for plan&expr
2024-06-27 17:17:46 +00:00
Yingwen
10b7a3d24d
feat: Implements merge_mode region options ( #4208 )
...
* feat: add update_mode to region options
* test: add test
* feat: last not null iter
* feat: time series last not null
* feat: partition tree update mode
* feat: partition tree
* fix: last not null iter slice
* test: add test for compaction
* test: use second resolution
* style: fix clippy
* chore: merge two lines
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
* chore: address CR comments
* refactor: UpdateMode -> MergeMode
* refactor: LastNotNull -> LastNonNull
* chore: return None earlier
* feat: validate region options
make merge mode optional and use default while it is None
* test: fix tests
---------
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
2024-06-27 07:52:58 +00:00
Eugene Tolbakov
8702066967
feat(sql): add casting support for shortened intervals ( #4220 )
...
* feat(sql): add casting support for shortened intervals
* chore(sql): apply CR suggestion, minor renamings
2024-06-26 22:07:09 +00:00
Jeremyhi
df0fff2f2c
feat(servers): make http timeout and body limit optional ( #4217 )
...
* feat(servers): make http timeout and body limit optional
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: make config-docs
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-26 06:14:14 +00:00
dennis zhuang
a779cb36ec
fix: wrong frontend registration address ( #4199 )
...
* fix: frontend registration address is wrong, #4186
* fix: license header
* chore: adds hostname to frontend grpc
* fix: forgot run make config-docs
* chore: warn when using bind_addr
* fix: flow node heartbeat carrying address
2024-06-26 06:13:07 +00:00
zyy17
948c8695d0
refactor: add SerializedPickerOutput and field modification of CompactorRequest ( #4198 )
...
* refactor: remove compaction_options and use RegionOptions type for region_options
* refactor: add file_purger field in CompactionRegion
* refactor: add SerializedPickerOutput
* refactor: rename CompactorRequest to OpenCompactionRegionRequest and remove PickerOutput
* refactor: use &PickerOutput instead of clone()
2024-06-25 13:04:07 +00:00
Ruihang Xia
4d4a6cd265
feat: validate partition rule on create table ( #4213 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-25 12:55:01 +00:00
Zhenchi
5dde148b3d
feat(puffin): implement CachedPuffinReader ( #4209 )
...
* feat(puffin): implement CachedPuffinReader
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: next PR to introduce CachedPuffinManager
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: rename
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-06-25 12:27:06 +00:00
Weny Xu
8cbe7166b0
refactor: migrate region failover implementation to region migration ( #4172 )
...
* refactor: migrate region failover implementation to region migration
* fix: use HEARTBEAT_INTERVAL_MILLIS as lease secs
* fix: return false if leader is downgraded
* fix: only remove failure detector after submitting procedure successfully
* feat: ignore dropped region
* refactor: retrieve table routes in batches
* refactor: disable region failover on local WAL implementation
* fix: move the guard into procedure
* feat: use real peer addr
* feat: use interval instead of sleep
* chore: rename `HeartbeatSender` to `HeartbeatAcceptor`
* chore: apply suggestions from CR
* chore: reduce duplicate code
* chore: apply suggestions from CR
* feat: lookup peer addr
* chore: add comments
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-06-25 11:58:17 +00:00
Yingwen
f5ac158605
docs: remove outdated docs ( #4205 )
...
* docs: remove outdated docs
* ci: align ci
* chore: Revert "ci: align ci"
This reverts commit 2c3c0eed7e .
* ci: fix docs ci
2024-06-25 09:46:30 +00:00
Lei, HUANG
120447779c
feat: bulk memtable codec ( #4163 )
...
* feat: introduce bulk memtable encoder/decoder
* chore: rebase main
* chore: resolve some comments
* refactor: only carries time unit in ArraysSorter
* fix: some comments
2024-06-25 09:02:20 +00:00
discord9
82f6373574
feat: FlownodeClient ( #4206 )
...
* feat: FlownodeClient
* chore: remove wrong doc
* fix: debug impl for NodeClients
* chore: rename `FlownodeClient` to `FlowRequester`
2024-06-25 08:40:24 +00:00
Zhenchi
1e815dddf1
feat(puffin): implement CachedPuffinWriter ( #4203 )
...
* feat(puffin): support lz4 compression for footer
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(puffin): introduce puffin manager trait
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(puffin): implement CachedPuffinWriter
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-06-25 08:00:48 +00:00
Weny Xu
b2f61aa1cf
fix: format error correctly ( #4204 )
...
* chore: remove TODO comments
* fix: format error correctly
2024-06-25 07:56:13 +00:00
Ruihang Xia
a1e2612bbf
fix: align workflows again for the troublesome GHA ( #4196 )
...
* fix: align workflows again for the troublesome GHA
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* unify
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-25 06:52:01 +00:00
Yingwen
9aaf7d79bf
feat: Dedup strategy that keeps the last not null field ( #4184 )
...
* feat: dedup strategy: last not null
* fix: fix tests
* fix: fix single batch
* chore: warning
* chore: skip has_null check
* refactor: rename fields
* fix: merge last fields may not reset builder
* chore: clear before filter deleted
* chore: remove debug logs
* chore: Update comment
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-25 06:38:48 +00:00
Yingwen
4a4237115a
test: wait until checkpoint finish ( #4202 )
2024-06-25 06:21:19 +00:00
Eugene Tolbakov
840f81e0fd
fix(sql): improve compound signed number processing ( #4200 )
2024-06-25 04:01:46 +00:00
Eugene Tolbakov
cdd4baf183
feat(sql): improve interval expression, support shortened version ( #4182 )
...
* feat(sql): improve interval expression, support shortened version
* fix(sql): remove accidental change of sqlness assertion
* fix(sql): address CR feedback, add more tests
* chore(sql): add more tests
2024-06-24 20:29:34 +00:00
Zhenchi
4b42c7b840
feat(puffin): introduce puffin manager trait ( #4195 )
...
* feat(puffin): support lz4 compression for footer
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(puffin): introduce puffin manager trait
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-06-24 16:02:52 +00:00
discord9
a44fe627ce
feat: heartbeat task&peer lookup in proc ( #4179 )
...
* feat: herat beat task
* feat: use real flow peer allocator when building
* feat: add peer look up in ddl context
* fix: drop flow test
* refactor: per review(WIP)
* refactor: not check if is alive
* refactor: per review
* refactor: remove useless `reset`
* refactor: per bot advices
* refactor: alive peer
* chore: bot review
2024-06-24 15:06:33 +00:00
taobo
77904adaaf
fix: region_peers returns same region_id for multi logical tables ( #4190 )
...
* fix: `region_peers` returns same region_id for multi logical tables
* test: add sqlness test for information_schema.region_peers
* refactor: region_peers sqlness
2024-06-24 14:12:36 +00:00
Zhenchi
07cbabab7b
feat(puffin): support lz4 compression for footer ( #4194 )
...
* feat(puffin): support lz4 compression for footer
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-06-24 11:39:03 +00:00
zyy17
ea7c17089f
refactor: add region_dir in CompactionRegion ( #4187 )
2024-06-24 08:25:52 +00:00
discord9
517917453d
fix(flow): fix call df func bug&sqlness test ( #4165 )
...
* tests: flow sqlness tests
* tests: WIP df func test
* fix: use schema before expand for transform expr
* tests: some basic flow tests
* tests: unit test
* chore: dep use rev not patch
* fix: wired sqlness error?
* refactor: per review
* fix: temp sqlness bug
* fix: use fixed sqlness
* fix: impl drop as async shutdown
* refactor: per bot's review
* tests: drop worker handler both sync/async
* docs: add rationale for test
* refactor: per review
* chore: fmt
2024-06-24 07:52:45 +00:00
zyy17
0139a70549
refactor: make RegionOptions and MergeOutput serializable ( #4180 )
...
* chore: make RegionOptions serializable and add region_dir in CompactionRegion
* refactor: make `PickerOutput` and `MergeOutput` serializable and deserializable
* refactor: remove Serialize and Deserialize from PickerOutput
* chore: revert changes for file.rs
* chore: revert changes for compactor.rs and compaction.rs
---------
Co-authored-by: tison <wander4096@gmail.com >
2024-06-24 07:37:53 +00:00
tison
5566dd72f2
chore: highlight our committers in CONTRIBUTING.md ( #4189 )
...
* chore: highlight our committers in CONTRIBUTING.md
Signed-off-by: tison <wander4096@gmail.com >
* chore: appy suggestion
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* chore: apply suggestion
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Trigger CI
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-06-22 08:23:30 +00:00
ZonaHe
dea33a7aaf
feat: update dashboard to v0.5.2 ( #4185 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2024-06-21 14:32:46 +00:00
Weny Xu
15ad9f2f6f
fix: region logical regions after catching up ( #4176 )
...
* fix: region logical regions after catching up
* test: add metric table migration test
* chore: apply suggestions from CR
2024-06-21 10:30:18 +00:00
Ruihang Xia
fce65c97e3
feat: make RegionScanner aware of PartitionRange ( #4170 )
...
* define PartitionRange
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add optimizer rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement interfaces
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl aggr stream
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add fallback method
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add document and rename struct
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-21 09:54:22 +00:00
Ruihang Xia
ac574b66ab
feat: add num_rows and num_row_groups to manifest ( #4183 )
...
* featadd num_rows and num_row_groups to manifest
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add document
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-21 07:15:13 +00:00
Weny Xu
1e52ba325f
feat: introduce chaos crds ( #4173 )
...
feat: add chaos-mesh crds
2024-06-21 06:28:51 +00:00
Yohan Wal
b739c9fd10
feat: PREPARE and EXECUTE statement from mysql client ( #4125 )
...
* feat: prepare stmt in mysql client
* feat: execute stmt in mysql client
* fix: handle parameters properly
* refactor: use existing funcs to convert expr to scalar value
* refactor: use uuid strings as stmt_key for queries from COM_PREPARE packet
* refactor: take prepare and execute parser as submodule
* test: add unit test for converting expr to scalar value
* feat: deallocate stmt in mysql client
* chore: comments and duplicates
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-06-21 02:02:57 +00:00
Ruihang Xia
21c89f3247
perf: optimize RecordBatch to HttpOutput conversion ( #4178 )
...
* add benchmark
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* save 70ms
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add profiler
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* save 50ms
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* save 160ms
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* format toml file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix license header
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix windows build
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-20 12:33:58 +00:00
Jeremyhi
5bcd7a14bb
feat: use the write runtime to handle the heartbeats ( #4177 )
2024-06-20 08:45:07 +00:00
dennis zhuang
4306cba866
feat: show database options ( #4174 )
...
* test: test create table with database ttl
* feat: show database options
* fix: comment
* chore: apply suggestion
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
* chore: fix CR comments and refactor
* chore: style
Co-authored-by: Weny Xu <wenymedia@gmail.com >
---------
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-06-20 04:21:58 +00:00
Jeremyhi
4c3d4af127
feat: register flow node ( #4166 )
...
* feat: rename keys.rs to key.rs
* feat: refactor datanode keys
* feat: add flownode key
* feat: keep flownode's lease info in metasrv
* feat: flow selector
* feat: impl_try_from_lease_key and impl_from_str_lease_key to simple code
2024-06-20 03:46:19 +00:00
localhost
48a0f39b19
chore: enhance add pipeline http api return data ( #4167 )
...
* chore: enhance add pipeline http api return data
* chore: replaceing hard code header value
2024-06-20 02:19:31 +00:00
ZonaHe
8abebad458
feat: update dashboard to v0.5.1 ( #4171 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2024-06-20 01:46:54 +00:00
LFC
cc2f7efb98
chore: bump datafusion version to fix last_value regression ( #4169 )
...
* chore: bump datafusion version to fix `last_value` regression
* fix: resolve PR comments
* fix ci
2024-06-19 07:47:17 +00:00
taobo
22d12683b4
refactor!: unify FrontendOptions and DatanodeOptions by using GrpcOptions ( #4088 )
...
* refactor: move GrpcOptions to servers/grpc
* fix: optimize code
* fix: docs
* refactor: move DatanodeOptions.rpc_hostname to grpc.hostname
* fix: merge main
* refactor code impl
test: add test_depreacted_cli_options unit test
* Update src/servers/src/grpc.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-06-18 22:45:38 +00:00
Yingwen
fe74efdafe
feat: Implement memtable range ( #4162 )
...
* refactor: RangeBase
* feat: memtable range
* feat: scanner use mem range
* feat: remove base from mem range context
* feat: impl ranges for memtables
* chore: fix warnings
* refactor: make predicate cheap to clone
* refactor: MemRange -> MemtableRange
* feat: pub empty memtable to fix warnings
* test: fix sqlness result
2024-06-18 22:25:19 +00:00
discord9
cd9705ccd7
feat(flow): support datafusion scalar function ( #4142 )
...
* chore: call df function types
* feat: RelationDesc to DfSchema
* refactor: use RelationDesc instead of Type
* chore: WIP get to phy expr
* feat: custom deserialize
* chore: fmt
* refactor: renaming to DfScalarFunction
* feat: eval df func(untested)
* fix: had to spawn a thread for calling async
* chore: per review advices
* tests: test df scalar function
2024-06-18 12:34:38 +00:00
Weny Xu
ea2d067cf1
feat: implement the OrderedBatchProducer ( #4134 )
...
* feat: implement the `OrderedBatchProducer`
* test: add test of cancel safety
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* refactor: simplify the `BackgroundProducerWorker`
* feat: implement the OrderedBatchProducer v2
* refactor: switch to `OrderedBatchProducer`
* chore: rename to `MAX_FLUSH_QUEUE_SIZE`
* refactor: switch to `OrderedBatchProducerV2`
* refactor: remove `OrderedBatchProducerV1`
* test: add tests
* refactor: make config configurable
* refactor: minor refactor
* chore: remove unused code
* chore: remove `benchmarks` crate
* chore: update config doc
* chore: remove unused comment
* refactor: refactor client registry
* refactor: rename `max_batch_size` to `max_batch_bytes`
* chore: use constant value
* chore: ensure serialized meta < ESTIMATED_META_SIZE
* chore: apply suggestions from CR
* chore: remove the `CHANNEL_SIZE`
* chore: apply suggestions from CR
* fix: ensure serialized meta < ESTIMATED_META_SIZE
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-06-18 07:20:01 +00:00
Ning Sun
70d113a355
feat: update default size of bgworkers, add hbworkers ( #4129 )
...
* feat: update default size of bgworkers, add hbworkers
* feat: update frontend heartbeat as well
* chore: update sample config files and default settings
* chore: update config docs
* Revert "chore: update config docs"
This reverts commit 8107f4c120 .
* Revert "chore: update sample config files and default settings"
This reverts commit f5ae701c8d .
* feat: use default heartbeat runtime size
* chore: update config docs
2024-06-18 06:18:37 +00:00
shuiyisong
cb657ae51e
feat(pipeline): join processor ( #4158 )
...
* feat: add join processor
* test: add join simple test
* chore: fix header
* chore: update commit
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* test: add more join test
* chore: fix lint
* chore: update comment
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-06-18 05:00:34 +00:00
Jeremyhi
141d017576
feat: enable metasrv to accept flownode's heartbeats ( #4160 )
...
* feat: make metasrv can accept flownode's heartbeat
* chore: proto
2024-06-18 04:07:46 +00:00
yuanbohan
0fc18b6865
feat(pipeline): gsub prosessor ( #4121 )
...
* chore: add log http ingester scaffold
* chore: add some example code
* chore: add log inserter
* chore: add log handler file
* chore: add pipeline lib
* chore: import log handler
* chore: add pipelime http handler
* chore: add pipeline private table
* chore: add pipeline API
* chore: improve error handling
* chore: merge main
* chore: add multi content type support for log handler
* refactor: remove servers dep on pipeline
* refactor: move define_into_tonic_status to common-error
* refactor: bring in pipeline 3eb890c551b8d7f60c4491fcfec18966e2b210a4
* chore: fix typo
* refactor: bring in pipeline a95c9767d7056ab01dd8ca5fa1214456c6ffc72c
* chore: fix typo and license header
* refactor: move http event handler to a separate file
* chore: add test for pipeline
* chore: fmt
* refactor: bring in pipeline 7d2402701877901871dd1294a65ac937605a6a93
* refactor: move `pipeline_operator` to `pipeline` crate
* chore: minor update
* refactor: bring in pipeline 1711f4d46687bada72426d88cda417899e0ae3a4
* chore: add log
* chore: add log
* chore: remove open hook
* chore: minor update
* chore: fix fmt
* chore: minor update
* chore: rename desc for pipeline table
* refactor: remove updated_at in pipelines
* chore: add more content type support for log inserter api
* chore: introduce pipeline crate
* chore: update upload pipeline api
* chore: fix by pr commit
* chore: add some doc for pub fn/struct
* chore: some minro fix
* chore: add pipeline version support
* chore: impl log pipeline version
* gsub prosessor
* chore: add test
* chore: update commit
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Co-authored-by: paomian <xpaomian@gmail.com >
Co-authored-by: shuiyisong <xixing.sys@gmail.com >
Co-authored-by: shuiyisong <113876041+shuiyisong@users.noreply.github.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-06-17 07:57:47 +00:00
yuanbohan
0aceebf0a3
feat(pipeline): transform support on_failure ( #4123 )
...
* chore: add log http ingester scaffold
* chore: add some example code
* chore: add log inserter
* chore: add log handler file
* chore: add pipeline lib
* chore: import log handler
* chore: add pipelime http handler
* chore: add pipeline private table
* chore: add pipeline API
* chore: improve error handling
* chore: merge main
* chore: add multi content type support for log handler
* refactor: remove servers dep on pipeline
* refactor: move define_into_tonic_status to common-error
* refactor: bring in pipeline 3eb890c551b8d7f60c4491fcfec18966e2b210a4
* chore: fix typo
* refactor: bring in pipeline a95c9767d7056ab01dd8ca5fa1214456c6ffc72c
* chore: fix typo and license header
* refactor: move http event handler to a separate file
* chore: add test for pipeline
* chore: fmt
* refactor: bring in pipeline 7d2402701877901871dd1294a65ac937605a6a93
* refactor: move `pipeline_operator` to `pipeline` crate
* chore: minor update
* refactor: bring in pipeline 1711f4d46687bada72426d88cda417899e0ae3a4
* chore: add log
* chore: add log
* chore: remove open hook
* chore: minor update
* chore: fix fmt
* chore: minor update
* chore: rename desc for pipeline table
* refactor: remove updated_at in pipelines
* chore: add more content type support for log inserter api
* chore: introduce pipeline crate
* chore: update upload pipeline api
* chore: fix by pr commit
* chore: add some doc for pub fn/struct
* chore: some minro fix
* chore: add pipeline version support
* chore: impl log pipeline version
* transform on_failure
* chore: add test
* chore: move test to a separate file
* chore: add comment
---------
Co-authored-by: paomian <xpaomian@gmail.com >
Co-authored-by: shuiyisong <xixing.sys@gmail.com >
2024-06-17 06:56:31 +00:00
Yingwen
558272de61
refactor: Decouple dedup and merge ( #4139 )
...
* feat: remove dedup/filter deleted from merge reader
* feat: impl dedup reader
* feat: support filter deleted flag
* test: test dedup reader
* feat: remove put_only field
* chore: fix clippy
* feat: metrics
* test: test empty batch
* perf: optimize dedup strategy
Avoid iterating all timestamps.
* test: fix test
* feat: generic
2024-06-17 04:09:50 +00:00
LFC
f4a5a44549
refactor: make region manifest checkpoint ran in background ( #4133 )
...
* refactor: use in-database manifest as checkpoint instead of merging incremental files in object store
* refactor: make region manifest checkpoint ran in background
* reduce unnecessary metrics
* Update src/mito2/src/manifest/checkpointer.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* resolve PR comments
* resolve PR comments
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-06-17 03:47:18 +00:00
zyy17
5390603855
refactor: add Compactor trait to abstract the compaction ( #4097 )
...
* refactor: add Compactor trait
* chore: add compact() in Compactor trait and expose compaction module
* refactor: add CompactionRequest and open_compaction_region
* refactor: export the compaction api
* refactor: add DefaultCompactor::new_from_request
* refactor: no need to pass mito_config in open_compaction_region()
* refactor: CompactionRequest -> &CompactionRequest
* fix: typo
* docs: add docs for public apis
* refactor: remove 'Picker' from Compactor
* chore: add logs
* chore: change pub attribute for Picker
* refactor: remove do_merge_ssts()
* refactor: update comments
* refactor: use CompactionRegion argument in Picker
* chore: make compaction module public and remove unnessary clone
* refactor: move build_compaction_task() in CompactionScheduler{}
* chore: use in open_compaction_region() and add some comments for public structure
* refactor: add 'manifest_dir()' in store-api
* refactor: move the default implementation to DefaultCompactor
* refactor: remove Options from MergeOutput
* chore: minor modification
* fix: clippy errors
* fix: unit test errors
* refactor: remove 'manifest_dir()' from store-api crate(already have one in opener)
* refactor: use 'region_dir' in CompactionRequest
* refactor: refine naming
* refactor: refine naming
* refactor: remove clone()
* chore: add comments
* refactor: add PickerOutput field in CompactorRequest
2024-06-17 03:03:47 +00:00
Ruihang Xia
a2e3532a57
docs: add guide for tsbs benchmark ( #4151 )
...
* docs: add guide for tsbs benchmark
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-16 16:02:15 +08:00
Ruihang Xia
2faa6d6c97
ci: align docs with develop ( #4152 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-15 16:33:57 +00:00
Weny Xu
d6392acd65
fix(sqlness): catch different format timestamp ( #4149 )
2024-06-15 11:13:01 +00:00
localhost
01e3a24cf7
feat: log ingestion support ( #4014 )
...
* chore: add log http ingester scaffold
* chore: add some example code
* chore: add log inserter
* chore: add log handler file
* chore: add pipeline lib
* chore: import log handler
* chore: add pipelime http handler
* chore: add pipeline private table
* chore: add pipeline API
* chore: improve error handling
* chore: merge main
* chore: add multi content type support for log handler
* refactor: remove servers dep on pipeline
* refactor: move define_into_tonic_status to common-error
* refactor: bring in pipeline 3eb890c551b8d7f60c4491fcfec18966e2b210a4
* chore: fix typo
* refactor: bring in pipeline a95c9767d7056ab01dd8ca5fa1214456c6ffc72c
* chore: fix typo and license header
* refactor: move http event handler to a separate file
* chore: add test for pipeline
* chore: fmt
* refactor: bring in pipeline 7d2402701877901871dd1294a65ac937605a6a93
* refactor: move `pipeline_operator` to `pipeline` crate
* chore: minor update
* refactor: bring in pipeline 1711f4d46687bada72426d88cda417899e0ae3a4
* chore: add log
* chore: add log
* chore: remove open hook
* chore: minor update
* chore: fix fmt
* chore: minor update
* chore: rename desc for pipeline table
* refactor: remove updated_at in pipelines
* chore: add more content type support for log inserter api
* chore: introduce pipeline crate
* chore: update upload pipeline api
* chore: fix by pr commit
* chore: add some doc for pub fn/struct
* chore: some minro fix
* chore: add pipeline version support
* chore: impl log pipeline version
* chore: fix format issue
* fix: make the LogicalPlan of a query pipeline sorted in desc order
* chore: remove some debug log
* chore: replacing hashmap cache with moak
* chore: fix by pr commit
* chore: fix toml format issue
* chore: update Cargo.lock
* chore: fix by pr commit
* chore: fix some issue by pr commit
* chore: add more doc for pipeline version
---------
Co-authored-by: shuiyisong <xixing.sys@gmail.com >
2024-06-14 17:03:30 +00:00
Weny Xu
bf3ad44584
fix: fix release CI typo ( #4147 )
...
* fix: ci typo
* chore: use aws registry
2024-06-14 14:29:34 +00:00
Weny Xu
11a903f193
chore(ci): switch to aws registry ( #4145 )
...
chore: switch to aws registry
2024-06-14 11:46:57 +00:00
Weny Xu
acdfaabfa5
fix(ci): use ld_classic on macOS ( #4143 )
...
fix: use ld_classic on macos
2024-06-14 08:09:12 +00:00
Weny Xu
54ca06ba08
chore: bump version to v0.8.2 ( #4141 )
2024-06-14 03:39:08 +00:00
Weny Xu
1f315e300f
fix: retry on unknown error ( #4138 )
2024-06-13 11:15:38 +00:00
Weny Xu
573e25a40f
chore: run fuzz tests with disk cache ( #4118 )
...
* chore: run fuzz tests with disk cache
* fix: print error messages correctly
2024-06-13 09:07:12 +00:00
Lei, HUANG
f8ec46493f
refactor: simplify parquet writer ( #4112 )
...
* refactor: simplify parquet writer
* chore: fix clippy
* refactor: use AsyncArrowWriter instead of BufferedWriter
* refactor: remove BufferedWriter
* fix: add chunk parameter to avoid entity too small issue
* refactor: use AtomicUsize instead of Mutex
* fix: add chunk argument to stream_to_parquet
* chore: fmt
* wip: fail check
* fix: check
* fmt
* refactor: use impl Future instead of async_trait
* fmt
* refactor: use associate types
2024-06-13 07:32:47 +00:00
Weny Xu
14a2d83594
chore: remove unused code ( #4135 )
...
* chore: remove unused code
* Update src/mito2/src/wal/entry_reader.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-12 13:18:33 +00:00
Yingwen
65f8b72d34
feat: Implement RegionScanner for SeqScan ( #4060 )
...
* feat: ordered builder wip
* feat: impl RegionScanner for SeqScan
* feat: implement scan_partition and build_stream
* chore: return SeqScan as RegionScanner
* fix: group parts
* feat: split parts
* chore: reader metrics
* chore: metrics
* chore: remove unused codes
* chore: support holding a group of ranges in ScanPart
* feat: group ScanParts to ScanParts
* feat: impl SeqScanner again
* chore: observe build cost in ScannerMetrics
* chore: fix compiler warnings
* style: fix clippy
* docs: update config docs
* chore: forward DisplayAs to scanner
* test: update sqlness tests
* chore: update debug fmt
* chore: custom debug for timestamp
fix test compiling issue with common-macro when running
cargo nextest -p common-time
* chore: update debug format
* feat: update fmt for scan part
* chore: fix warning
* fix: sanitize parallelism
* feat: split parts
* test: fix config api test
* feat: update logs
* chore: Revert "chore: remove unused codes"
This reverts commit b548b30a01eeded59b1a0a8d89f9293ca63afc41.
* chore: Revert "docs: update config docs"
This reverts commit a7997e78d6ddcf635560574de8c1948c495bdd12.
* feat: each partition scan files in parallel
* test: fix config api test
* docs: fix typo
* chore: address comments, simplify tests
* feat: global semaphore
* feat: always spawn task
* chore: simplify default explain output format
* handle output partiton number is 0
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-12 08:21:30 +00:00
LFC
9473daab8b
fix: explicitly set config instead of using changable default in tests ( #4132 )
...
* fix: explicitly set config instead of using changable default in tests
* fix: resolve PR comments
2024-06-11 10:51:01 +00:00
LFC
5a6021e34f
refactor: remove substrait ser/de for region query in standalone ( #3812 )
...
* refactor: remove substrait serde for region query in standalone
* fix ci
* move QueryRequest to common-query
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* format code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* format toml file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: format toml
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-06-11 09:33:47 +00:00
discord9
1b00526de5
fix(flow): infer table schema correctly ( #4113 )
...
* refactor: make individual col name optional
* chore: rename TypedPlan's `typ` to `schema`
* feat: add optional col name to typed plan
* feat: pass col name all along
* feat: correct infer output table schema
* chore: unused import
* fix: error when key is not projected
* refactor: per review
* chore: fmt
2024-06-11 08:57:47 +00:00
Yingwen
5533bd9293
chore(common-macro): remove features covered by full ( #4131 )
2024-06-11 07:44:53 +00:00
Ning Sun
587e99d806
fix: macro crate cannot be compiled alone ( #4130 )
...
* fix: macro crate cannot be compiled alone
* Update src/common/macro/Cargo.toml
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: tison <wander4096@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-06-11 05:36:29 +00:00
Yingwen
9cae15bd1b
fix: executes pending ddls if region memtable is empty while scheduling next flush ( #4119 )
...
* ci: enable debug log
* chore: test to reproduce panic
* chore: Revert "ci: enable debug log"
This reverts commit 17eff2a045 .
* test: add test for alter during flush
* fix: clear status if region has nothing to flush
It will also executes pending ddls and requests
* docs: fix typo
2024-06-11 00:10:17 +00:00
cjw
d8b51cfaba
refactor: remove double checks of memtable size ( #4117 )
...
* refactor: remove unnecessary unwrap
* Update src/mito2/src/region/version.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Co-authored-by: Kermit <chenjiawei1@xiaohongshu.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-06-07 23:34:03 +00:00
Weny Xu
e142ca40d7
feat: invoke handle_batch_open_requests ( #4107 )
...
* feat: open all regions via invoking `handle_batch_open_requests`
* tests: add sqlness tests
* refactor: avoid cloning
* chore: apply suggestions from CR
* chore: update config.md
* chore: apply suggestions from CR
2024-06-07 09:07:45 +00:00
Yingwen
e982d2e55c
fix: Update region Version in the worker loop ( #4114 )
...
* feat: handle region edit result
* feat: handle edit result
* feat: handle truncate result
* feat: flush compaction
* feat: invoke in worker
* feat: remove unused fields
* style: fix clippy
* feat: remove applier
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-06-07 06:27:16 +00:00
Weny Xu
09e0e1b246
chore: run fuzz tests with kafka remote wal ( #4105 )
...
* chore: add fuzz tests with kafka
* chore(ci): use minio
* chore: add empty line
* chore(ci): refactor
* chore: add empty line
* fix: update config
* fix: add default value for `MetaClientOptions`
* fix: remove redundant `debug_assert`
* chore: run fuzz tests with disk cache
* chore: remove redundant minio setup
* chore: cache targets
* Revert "chore: run fuzz tests with disk cache"
This reverts commit d81783187d .
* chore: fix typo
* chore: apply suggestions from CR
* Revert "fix: remove redundant `debug_assert`"
This reverts commit 09b899eed1 .
2024-06-07 03:47:40 +00:00
irenjj
9c42825f5d
feat: Implement SHOW CREATE FLOW ( #4040 )
...
* feat: Implement SHOW CREATE FLOW
* fmt
* stmt for display
* Update src/operator/src/statement.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* test: add sqlness test
* fix test
* parse query in parser
* test: move test to standalone
* reuse ParserContext::new()
* Update tests/cases/standalone/show_create_flow.result
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* add line breaks
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-06-07 03:24:56 +00:00
Jeremyhi
4719569e4f
feat: support gRPC cancellation ( #4092 )
...
* feat: support cancellation
* chore: add unit test for cancellation
* chore: minor refactor
* feat: we do not need to spawn in distributed mode
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-06-06 08:27:25 +00:00
Jeremyhi
b03cb3860e
chore: reduce some burden on the write path ( #4110 )
...
* chore: remove unnecessary checking
* chore: avoid do the same thing in a loop
2024-06-06 06:45:19 +00:00
shuiyisong
2ade511f26
feat: introduce pipeline crate ( #4109 )
...
* chore: introduce pipeline crate
* chore: fix typo
2024-06-05 17:23:25 +00:00
Weny Xu
16b85b06b6
chore: remove gc before running fuzz tests ( #4108 )
2024-06-05 11:59:29 +00:00
Ruihang Xia
03cacf9948
ci: cargo gc all fuzz test runner ( #4081 )
...
* ci: cargo gc all fuzz test runner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore(ci): disable caching targets
* chore(ci): remove .tar file after unzip
* fix cargo-gc command
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: WenyXu <wenymedia@gmail.com >
2024-06-05 09:58:29 +00:00
Weny Xu
c23f8ad113
feat: implement the handle_batch_open_requests ( #4075 )
...
* feat: implement the `handle_batch_open_requests`
* refactor: refactor `handle_batch_open_requests` method signature
* test: add tests for `handle_batch_open_requests`
* chore: fmt code
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-06-05 09:22:34 +00:00
Weny Xu
e0a2c5a581
chore(ci): remove redundant sqlness test config ( #4106 )
2024-06-05 08:39:39 +00:00
zyy17
417ab3b779
ci: add 'make run-cluster-with-etcd' to run greptimedb cluster by using docker-compose ( #4103 )
2024-06-05 08:07:29 +00:00
tison
1850fe2956
feat: show create table only for base table ( #4099 )
...
* feat: show create table only for base table
Signed-off-by: tison <wander4096@gmail.com >
* add new cases
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-06-04 21:29:07 +00:00
taobo
dd06e107f9
test: add fuzz tests for column data type alteration ( #4076 )
...
* feat: support make fuzz-stable in Makefile
* test: add fuzz tests for column data type alteration
* fix: optimize code by cr
2024-06-04 13:38:57 +00:00
sarailQAQ
98c19ed0fa
feat: implement drop multiple tables ( #4085 )
...
* feat: implement drop multiple tables
* fix: pass fmt and clippy checks
* add: drop multiple sqlness test
* update: accept review suggestions
* update: accept reviem suggestion
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* fix: pass clippy check
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-06-04 13:11:41 +00:00
LFC
c0aed1d267
feat: set global runtime size by config file ( #4063 )
...
* set global runtime size
* fix: resolve PR comments
* fix: log the whole option
* fix ci
* debug ci
* debug ci
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-06-04 10:03:33 +00:00
discord9
0a07130931
fix(flow): mfp operator missing rows ( #4084 )
...
* fix: mfp missing rows if run twice in same tick
* tests: run mfp for multiple times
* refactor: make mfp less hacky
* feat: make channel larger
* chore: typos
2024-06-04 09:07:13 +00:00
Weny Xu
a6269397c8
fix: fix EntityTooSmall issue ( #4100 )
...
* fix: fix EntityTooSmall issue
* chore(ci): add minio to coverage
* tests: add test for parquet writer
* chore: move tests to `common-datasource` crate
2024-06-04 08:43:33 +00:00
Lei, HUANG
a80059b47f
fix: recover memtable options when opening physical regions ( #4102 )
...
* fix: recover memtable options when opening physical regions
* chore: fmt
* chore: merge data region options
2024-06-04 08:20:29 +00:00
Weny Xu
b3a4362626
test: run test_flush_reopen_region and test_region_replay with KafkaLogStore ( #4083 )
...
* feat: add `LogStoreFactory` to `TestEnv`
* feat: add `multiple_log_store_factories` template
* test: run `test_flush_reopen_region` and `test_region_replay` with `KafkaLogStore`
* chore: move deps to workspace
* chore: apply suggestions from CR
2024-06-04 08:11:15 +00:00
Kelvin Wu
51e2b6e728
fix: display the PartitionBound and PartitionDef correctly ( #4101 )
...
* fix: display the PartitionBound and PartitionDef correctly
* Update src/partition/src/partition.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* fix: fix unit test of partition definition
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-06-04 08:10:44 +00:00
shuiyisong
d1838fb28d
refactor: move define_into_tonic_status to common-error ( #4095 )
...
* chore: finish cherry-pick
* chore: remove unused code
2024-06-04 03:29:15 +00:00
Weny Xu
cd97a39904
chore: enable strip for tests-fuzz crate ( #4093 )
2024-06-03 14:32:11 +00:00
Weny Xu
4e5dd1ebb0
ci: try to free space after fuzz tests ( #4089 )
...
* chore(ci): remove .tar file after unzip
* chore: free space
* chore: include debug info
2024-06-02 21:22:22 +00:00
Kelvin Wu
88cdefa41e
feat: implement Display for PartitionExpr ( #4087 )
2024-06-02 21:09:00 +00:00
Ruihang Xia
c2218f8be8
build(deps): bump datafusion 20240528 ( #4061 )
...
* build(deps): bump datafusion 20240528
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* another update
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update expected sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix first/last value
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* reformat comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix remaining errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* revert toml format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix pyo3 feature
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove dead code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
* format file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
2024-06-01 14:03:00 +00:00
Ruihang Xia
45fee948e9
fix: display error in correct format ( #4082 )
...
* fix: display error in correct format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add address to RegionServer error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-31 09:25:14 +00:00
discord9
ea49f8a5c4
feat(flow): make write path faster with shared lock ( #4073 )
...
* feat(WIP): make write faster
* feat: read lock on fast path
* chore: per review
2024-05-31 06:50:22 +00:00
Jeremyhi
43afea1a9d
refactor!: remove the tableid in ddl response since tableids is enough ( #4080 )
...
* refactor: remove the tableid in ddl response since tableids is enough
* chore: upgrade proto
2024-05-31 06:41:53 +00:00
Weny Xu
fcfcf86385
feat: implement WalEntryDistributor, WalEntryReciver ( #4031 )
...
* feat: implement the `WalEntryDistributor` and `WalEntryReceiver`
* test: add tests for `WalEntryDistributor`
* refactor: use bounded channel
* chore: apply suggestions from CR
2024-05-31 03:03:38 +00:00
Jeremyhi
26b112ab57
refactor: remove upgrade cli tool ( #4077 )
2024-05-31 00:40:27 +00:00
dennis zhuang
24612f62dd
feat: querying from view works ( #3952 )
...
* feat: querying from view works
* feat: use MemoryCatalogProviderList instead of DummyCatalogList
* refactor: revert src/query/src/dummy_catalog.rs
* chore: clean code
* fix: make clippy happy
* fix: toml format
* fix: sqlness
* fix: forgot files
* fix: make sqlness happy
* test: table source, serializer and decoder
* fix: fail to decode plan because of invalid table names
* test: adds more sqlness test for view
* chore: remove unused errors
* fix: comments
* fix: typo
* fix: invalidate view info cache after creating view successfully
* chore: apply suggestion
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* chore: apply suggestion
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* fix: compile error after rebeasing
* chore: style
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* fix: don't export table_name in common-meta
* chore: change ViewInfo::new signature
* docs: leave a TODO for optimize param
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-30 21:45:56 +00:00
Ruihang Xia
85a231850d
fix: add tailing separator to prefix ( #4078 )
...
* fix: add tailing separator to prefix
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* project select result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-30 15:29:26 +00:00
Ruihang Xia
f024054ed3
ci: cargo gc fuzz test runner ( #4074 )
...
* ci: cargo gc fuzz test runner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change profile to dev
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-30 10:41:29 +00:00
discord9
05751084e7
chore: bump to v0.8.1 ( #4055 )
2024-05-30 07:59:52 +00:00
Jeremyhi
8b6596faa0
feat: avoid some cloning when mirror requests to flownode ( #4068 )
...
* feat: some refactor mirror requests to flownode
* feat: use spawn_bg to avoid impact front-ground write
* feat: add mirror row count metric
2024-05-30 07:29:13 +00:00
Weny Xu
eab309ff7e
fix: avoid acquiring lock during reading stats ( #4070 )
...
* fix: avoid acquiring lock during reading stats
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-05-30 07:08:04 +00:00
discord9
7de336f087
fix(flow): correctness bugs ( #4018 )
...
* fix: optional args of tumble
* fix(WIP): choose
* feat: rename default ts to GREPTIME_TIMESTAMP
* fix: default timestamp name
* fix: reorder write requests
* fix: expire state
* fix: test of tumble
* fix: send buf clear
* fix: ts<start time correct window
* fix: window_start when ts<start_time
* mend
* fix: range begin>range end
* refactor: per reviews
* feat!: ts placeholder rename to __ts_placeholder
* refactor: better condition
* tests(WIP): func sig choose
* tests(WIP): tumble func
* feat: make run_available optional blocking
* tests: tumble transform
* chore: clippy
* fix?: lagged missing data
* fix: flow source break on empty chnl
2024-05-30 03:49:11 +00:00
Weny Xu
6e9a9dc333
refactor(log_store): remove associated type Namespace and Entry in LogStore ( #4038 )
...
* refactor(log_store): remove associated type `Namespace` in `LogStore`
* fix(test): filter entries
* refactor: ignore incomplete parts
* refactor: simplify `RawEntryReaderFilter`
* chore: avoid cloning
* test: add tests for `maybe_emit_entry`
* refactor: remove `Namespace` trait and rename `LogStoreNamespace` to `Namespace`
* chore: apply suggestions from CR
* refactor: refine `entry` method signature
* feat: ingore any potential incomplete parts
* refactor: rename `namespace` to `provider`
* chore: add debug assertion
* refactor: associated type `Entry` in `LogStore`
* refactor: renamse `namespace` to `provider`
* refactor: remove unwrap
* refactor: let `remaining_entries` return a optional vector
* test: add basic tests for kafka logstore
* refactor: move `append` method under `cfg(test)`
* refactor: rename `RawEntry` to `Entry`
* refactor: rename `CorruptedLogEntry` to `CorruptedEntry`
* test: add tests for handling corrupted raw entry stream
* refactor: rename `ns` to `provider`
* refactor: remove `entry_stream.rs` file
* chore: remove unused code
* chore: update comments
* chore: apply suggestions from CR
* chore: update comments
* chore: apply suggestions from CR
* chore: remove Deref
* chore: add comments
* fix: ignores tail corrupted data
* chore: add comments
* fix: add `MIN_BATCH_SIZE` limit
2024-05-29 13:44:01 +00:00
Yingwen
848bd7e553
feat: Implements row group level parallel unordered scanner ( #3992 )
...
* feat: unordered scanner
* feat: support compat
* chore: update debug print
fix: missing ranges in scan parts
* fix: ensure chunk size > 0
* fix: parallel is disabled if there is only one file and memtable
* chore: reader metrics
* chore: remove todo
* refactor: add ScanPartBuilder trait
* chore: pass file meta to the part builder
* chore: make part builder private
* docs: update comment
* chore: remove meta()
* refactor: only prune file ranges in ScanInput
replaces ScanPartBuilder with FileRangeCollector which only collect file
ranges
* chore: address typo
* fix: panic when no partition
* feat: Postpone part distribution
* chore: handle empty partition in mito
* style: fix clippy
2024-05-29 11:06:08 +00:00
LYZJU2019
f0effd2680
feat: Implement SHOW STATUS ( #4050 )
...
* show status returning empty contents
* return an empty set instead of affected rows
* chore: Update src/query/src/sql.rs
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-05-29 04:49:05 +00:00
dennis zhuang
aafb468547
fix: set local or session time_zone not work ( #4064 )
...
* fix: set local or session time_zone not work
* chore: supports PostgreSQL-specific setting time zone
2024-05-29 00:06:13 +00:00
Weny Xu
4aa756c896
feat: open region in background ( #4052 )
...
* feat: open region in background
* feat: trace opening regions
* feat: wait for the opening region
* feat: let engine to handle the future open request
* fix: fix `test_region_registering`
2024-05-28 13:58:15 +00:00
Weny Xu
d3860671a8
chore: add LAST_SENT_HEARTBEAT_ELAPSED metric ( #4062 )
2024-05-28 08:05:37 +00:00
tison
9dd6e033a7
refactor: move Database to client crate behind testing feature ( #4059 )
...
* refactor: move Database to client crate behind testing feature
Signed-off-by: tison <wander4096@gmail.com >
* partial move
Signed-off-by: tison <wander4096@gmail.com >
* catch up more
Signed-off-by: tison <wander4096@gmail.com >
* fix imports
Signed-off-by: tison <wander4096@gmail.com >
* finish
Signed-off-by: tison <wander4096@gmail.com >
* tidy
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-05-28 03:21:43 +00:00
Weny Xu
097f62f459
refactor(fuzz-tests): generate ts value separately ( #4056 )
...
refactor: generate ts value separately
2024-05-27 14:07:32 +00:00
Weny Xu
048368fd87
feat: invoke flush_table and compact_table in fuzz tests ( #4045 )
...
* feat: invoke `flush_table` and `compact_table` in fuzz tests
* feat: support to flush and compact physical metric table
* fix: avoid to create tables with the same name
* feat: validate values after flushing or compacting table
2024-05-27 09:26:50 +00:00
tison
f9db5ff0d6
build(deps): upgrade opendal to 0.46 ( #4037 )
...
* build(deps): upgrade opendal to 0.46
Signed-off-by: tison <wander4096@gmail.com >
* migrate writes
Signed-off-by: tison <wander4096@gmail.com >
* migrate reads
Signed-off-by: tison <wander4096@gmail.com >
* fixup object safety
Signed-off-by: tison <wander4096@gmail.com >
* fixup names
Signed-off-by: tison <wander4096@gmail.com >
* fixup compilation
Signed-off-by: tison <wander4096@gmail.com >
* fixup compilation
Signed-off-by: tison <wander4096@gmail.com >
* a few Buffer to Vec
Signed-off-by: tison <wander4096@gmail.com >
* Make greptime buildable with opendal 0.46 (#5 )
Signed-off-by: Xuanwo <github@xuanwo.io >
* fixup toml check
Signed-off-by: tison <wander4096@gmail.com >
* test_orc_opener
Signed-off-by: tison <wander4096@gmail.com >
* Fix lru cache (#6 )
Signed-off-by: Xuanwo <github@xuanwo.io >
* clippy
Signed-off-by: tison <wander4096@gmail.com >
* improve comments
Signed-off-by: tison <wander4096@gmail.com >
* address comments
Signed-off-by: tison <wander4096@gmail.com >
* reduce buf copy
Signed-off-by: tison <wander4096@gmail.com >
* upgrade to reqwest 0.12
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Signed-off-by: Xuanwo <github@xuanwo.io >
Co-authored-by: Xuanwo <github@xuanwo.io >
2024-05-27 09:12:23 +00:00
Weny Xu
20ce7d428d
fix(metric-engine): missing catchup implementation ( #4048 )
...
* fix(metric-engine): missing catchup implementation
* fix: should be `metadata_region_id`
2024-05-27 07:56:46 +00:00
Weny Xu
75bddc0bf5
fix(fuzz-tests): avoid to drop in-use database ( #4049 )
...
* fix(fuzz-tests): avoid to drop in-use database
* fix: correct datahome path
* fix: correct `schema_name`
* chore: apply suggestions from CR
2024-05-27 07:44:59 +00:00
tison
c78043d526
build(deps): merge tower deps to workspace ( #4036 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-05-27 07:15:30 +00:00
LFC
297105266b
feat: enable tcp keepalive for http server ( #4019 )
...
* feat: enable tcp keepalive for http server
* chore: for enterprise's update
* resolve PR comments
2024-05-27 04:07:36 +00:00
Ruihang Xia
1de17aec74
feat: change EXPIRE WHEN to EXPIRE AFTER ( #4002 )
...
* feat: change EXPIRE WHEN to EXPIRE AFTER
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change remaining
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename create_if_not_exist to create_if_not_exists
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* parse interval expr
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
2024-05-27 04:05:55 +00:00
Weny Xu
389ded93d1
chore: add logs for setting the region to writable ( #4044 )
...
* chore: add logs for setting the region to writable
* fix: ignore redundant logs
2024-05-27 04:01:40 +00:00
Eugene Tolbakov
af486ec0d0
feat(opertor): check if a database is in use before dropping it ( #4035 )
...
feat(opertor): check if database is in use before dropping it
2024-05-27 03:31:58 +00:00
irenjj
25d64255a3
feat: support table level comment ( #4042 )
...
* feat: support table level comment
* use constants
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-05-27 02:28:52 +00:00
tison
3790020d78
build(deps): upgrade promql-parser to 0.4 ( #4047 )
...
* build(deps): upgrade promql-parser to 0.4
Signed-off-by: tison <wander4096@gmail.com >
* lock
Signed-off-by: tison <wander4096@gmail.com >
* catch up upgrades
Signed-off-by: tison <wander4096@gmail.com >
* concise method
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-05-27 01:51:59 +00:00
Weny Xu
5df3d4e5da
feat: implement the LogStoreRawEntryReader and RawEntryReaderFilter ( #4030 )
...
* feat: implement the `LogStoreRawEntryReader`
* feat: implement the `RawEntryReaderFilter`
* test: add tests
2024-05-24 11:53:15 +00:00
tison
af670df515
ci: skip notification for manual releases ( #4033 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-05-24 10:16:06 +00:00
Ruihang Xia
a58256d4d3
feat: round-robin selector ( #4024 )
...
* feat: implement round robin peer selector
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add document and test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-24 07:29:07 +00:00
Weny Xu
466f7c6448
feat: add RawEntryReader and OneshotWalEntryReader trait ( #4027 )
...
* feat: add `RawEntryReader` and `OneShotWalEntryReader` trait
* chore: rename `OneShot` to `Oneshot`
* refacotr: remove `region_id` from `OneshotWalEntryReader`
2024-05-24 06:30:50 +00:00
Ruihang Xia
0101657649
feat: remove one clone on constructing partition ( #4028 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-24 04:01:19 +00:00
taobo
a3a2c8d063
feat: Add TLS support for gRPC service ( #3957 )
...
* feat: Add tls support for grpc service
* feat: add integration test
* fix: integration test
* fix: revert by suggestion
* fix: typos
* fix: optimize code
* fix: optimize code
* docs: update configs
2024-05-23 19:00:16 +00:00
Yingwen
dfc1acbb2a
fix: notifies all workers once a region is flushed ( #4016 )
...
* fix: notify workers to handle stalled requests if flush is finished
* chore: change stalled count to gauge
* feat: process stalled requests eagerly
2024-05-23 12:45:00 +00:00
Lei, HUANG
0d055b6ee6
refactor: remove unused log config ( #4021 )
2024-05-23 08:59:42 +00:00
Weny Xu
614643ef7b
chore(ci): add more replicas ( #4015 )
2024-05-23 02:43:24 +00:00
Ning Sun
b90b7adf6f
feat: add fallback logic for vmagent sending wrong content type ( #4009 )
...
* feat: add fallback logic for vmagent sending wrong content type
* fix: resolve lint issues
* Update src/servers/src/http/prom_store.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-05-23 02:40:17 +00:00
Jeremyhi
418090b464
chore: log error for detail ( #4011 )
...
* chore: log error for detail
* chore: by cr
2024-05-22 12:17:20 +00:00
Lei, HUANG
090b59e8d6
feat: manual compaction ( #3988 )
...
* add compaction udf params
* wip: pass compaction options through grpc
* wip: pass compaction options all the way down to region server
* wip: window compaction task
* feat: trigger major compaction
* refactor: optimize compaction parameter parsing
* chore: rebase main
* chore: update proto
* chore: add some tests
* feat: validate catalog
* chore: fix typo and rebase main
* fix: some cr comments
* fix: file_time_bucket_span
* fix: avoid upper bound overflow
* chore: update proto
2024-05-22 09:42:21 +00:00
shuiyisong
9e1af79637
chore: add ttl to write_cache ( #4010 )
...
* chore: add ttl to write_cache
* chore: update test & add example config
* chore: fix typo
* chore: fix typo
* chore: fix typo
2024-05-22 06:50:12 +00:00
Yohan Wal
9800807fe5
fix(fuzz): sort inserted rows with primary keys and time index ( #4008 )
...
* fix(fuzz): sort inserted rows with primary keys and time index
* fix: correct index when replacing default
* fix: put null behind all values
2024-05-22 03:32:19 +00:00
zyy17
b86d79b906
fix: can't print log because the tracing guard is dropped ( #4005 )
...
* fix: avoid logging guard drop
* chore: remove unused '#[allow(dead_code)]'
2024-05-22 03:24:40 +00:00
Lei, HUANG
e070ba3c32
feat: respect time range when building parquet reader ( #3947 )
...
* feat: convert timestamp range filters to predicates
* chore: rebase main
* fix: remove prediactes once they have been added to timestamp filters to avoid duplicate filtering
* fix: some comments
* fix: resolve conflicts
2024-05-21 16:02:25 +00:00
Weny Xu
43bf7bffd0
fix: try to fix unstable fuzz test ( #4003 )
...
fix: ignore PoolTimedOut
2024-05-21 12:57:09 +00:00
Weny Xu
56aed6e6ff
chore(ci): export kind logs ( #3996 )
...
* chore(ci): export kind logs
* chore: add empty line
2024-05-21 11:56:03 +00:00
zyy17
47785756e5
fix: move log_version() into build() of App to fix no log version on bootstrap ( #4004 )
2024-05-21 09:15:15 +00:00
Jeremyhi
0aa523cd8c
feat: make create view procedure simple as others ( #4001 )
2024-05-21 08:30:57 +00:00
Weny Xu
7a8222dd97
fix: try to fix broken CI ( #3998 )
...
* fix: try to fix broken CI
* chore: using loop to check status
2024-05-21 07:02:18 +00:00
maco
40c585890a
refactor: replace Expr with datafusion::Expr ( #3995 )
...
* refactor: replace Expr with datafusion::Expr
* fix: fmt-toml
* fix: cr comment
2024-05-21 06:40:29 +00:00
zyy17
da925e956e
ci: change the image name of nightly build ( #3994 )
2024-05-21 06:11:12 +00:00
Weny Xu
d7ade3c854
chore(ci): add fuzz tests for distributed mode ( #3967 )
...
* chore(ci): add cfg for setup GreptimeDB cluster
* chore: use kind
* chore: always print info
* chore: add debug print
* chore: set etcd replica to 1
* ci: refactor e2e cfg
* ci: add Fuzz Test for distributed mode
* Apply suggestions from code review
* chore: apply suggestions from CR
* chore(ci): upload logs
2024-05-21 04:58:42 +00:00
Yingwen
179c8c716c
feat: Adds RegionScanner trait ( #3948 )
...
* feat: define region scanner
* feat: single partition scanner
* feat: use single partition scanner
* feat: implement ExecutionPlan wip
* feat: mito engine returns single partition scanner
* feat: implement DisplayAs for region server
* feat: dummy table provider use handle_partitioned_query()
* test: update sqlness test
* feat: table provider use ReadFromRegion
* refactor: remove StreamScanAdapter
* chore: update lock
* style: fix clippy
* refactor: remove handle_query from the RegionEngine trait
* chore: address CR comments
* refactor: rename methods
* refactor: rename ReadFromRegion to RegionScanExec
2024-05-20 11:52:00 +00:00
shuiyisong
19543f9819
feat: support compression on gRPC server ( #3961 )
...
* feat: enable gzip in grpc server side
* feat: add enable_gzip_compression config
* test: add grpc compression test
* feat: support user configured compression on grpc server
* chore: update doc
* chore: add tests
* fix: make config-docs
* chore: fix cr issue
* chore: add test
* refactor: remove config on server side, auto enable all compression support
* chore: minor update
* chore: remove unused code
* refactor: enable zstd compression internally by default
* chore: minor fix
2024-05-20 11:28:00 +00:00
discord9
533ada70ca
chore: remove a dbg! forget to remove ( #3990 )
...
* chore: remove a dbg! forget to remove
* remove other dbg! and add lint
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix pyo3 feature
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-20 08:34:47 +00:00
zyy17
c50ff23194
ci: add 'contents: write' permission ( #3989 )
2024-05-20 06:23:54 +00:00
tison
d7f1150098
ci: fixup strings in check ci status ( #3987 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-05-20 03:59:05 +00:00
zyy17
82c3eca25e
refactor: make the command entry cleaner ( #3981 )
...
* refactor: move run() in App trait
* refactor: introduce AppBuilder trait
* chore: remove AppBuilder
* refactor: remove Options struct and make the start() clean
* refactor: init once for common_telemetry::init_global_logging
2024-05-20 03:34:06 +00:00
Yingwen
df13832a59
feat: use cache in compaction ( #3982 )
2024-05-20 02:36:51 +00:00
tison
7da92eb9eb
ci: check-status for nightly-ci ( #3984 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-05-19 07:10:59 +00:00
Weny Xu
c71298d3d5
chore: pin cargo-ndk to 3.5.4 ( #3979 )
2024-05-18 08:46:01 +00:00
Yingwen
de594833ac
docs: add v0.8.0 TSBS report ( #3983 )
...
docs: add v0.8.0 tsbs report
2024-05-18 08:09:16 +00:00
Eugene Tolbakov
6a9a92931d
chore: change binary array type from LargeBinaryArray to BinaryArray ( #3924 )
...
* chore: change binary array type from LargeBinaryArray to BinaryArray
* fix: adjust try_into_vector logic
* fix: apply CR suggestions, add tests
* chore: fix failing test
* chore: fix integration test
* chore: adjust the assertions according to changed implementation
* chore: add a test with LargeBinary type
* chore: apply CR suggestions
* chore: simplify tests
2024-05-18 08:04:41 +00:00
tison
11ad5b3ed1
ci: report CI failures with creating issues ( #3976 )
...
* ci: report CI failures with creating issues
Signed-off-by: tison <wander4096@gmail.com >
* integrate with CI workflows
Signed-off-by: tison <wander4096@gmail.com >
* mention db-approver
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-05-18 03:03:56 +00:00
zyy17
b8354bbb55
docs: add toc for config docs ( #3974 )
2024-05-18 01:57:49 +00:00
Weny Xu
258675b75e
chore: bump to v0.8.0 ( #3971 )
2024-05-17 15:05:20 +00:00
Weny Xu
11a08cb272
feat(cli): prevent exporting physical table data ( #3978 )
...
* feat: prevent exporting physical table data
* chore: apply suggestions from CR
2024-05-17 14:58:10 +00:00
Ruihang Xia
e9b178b8b9
fix: tql parser hang on abnormal input ( #3977 )
...
* fix: tql parser hang on abnormal input
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* apply review sugg
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-17 14:22:20 +00:00
discord9
3477fde0e5
feat(flow): tumble window func ( #3968 )
...
* feat(WIP): tumble window rewrite parser
* tests: tumble func
* feat: add `update_at` column for all flow output
* chore: cleanup per review
* fix: update_at not as time index
* fix: demo tumble
* fix: tests&tumble signature&accept both ts&datetime
* refactor: update_at now ts millis type
* chore: per review advices
2024-05-17 12:10:28 +00:00
dennis zhuang
9baa431656
fix: changing column data type can't process type alias ( #3972 )
2024-05-17 11:34:31 +00:00
WU Jingdi
e2a1cb5840
feat: support evaluate expr in range query param ( #3823 )
...
* feat: support evaluate expr in range query param
* chore: fix comment
* chore: fix code comment
* fix: disbale now in duration param
2024-05-17 08:31:55 +00:00
Weny Xu
f696f41a02
fix: prevent registering logical regions with AliveKeeper ( #3965 )
...
* fix: register logical region
* chore: fix Clippy
* chore: apply suggestions from CR
2024-05-17 07:38:35 +00:00
Weny Xu
0168d43d60
fix: prevent exporting metric physical table data ( #3970 )
2024-05-17 07:19:28 +00:00
Yingwen
e372e25e30
build: add RUSTUP_WINDOWS_PATH_ADD_BIN env ( #3969 )
...
build: add RUSTUP_WINDOWS_PATH_ADD_BIN: 1
2024-05-17 06:01:46 +00:00
zyy17
ca409a732f
refactor(naming): use the better naming for pubsub ( #3960 )
2024-05-17 03:00:15 +00:00
Ruihang Xia
5c0a530ad1
feat: skip read-only region when trying to flush on region full ( #3966 )
...
* feat: skip read-only region when trying to flush on region full
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* improve log
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* also skip in periodically
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-16 14:56:43 +00:00
Ruihang Xia
4b030456f6
feat: remove timeout in the channel between frontend and datanode ( #3962 )
...
* style: change builder pattern
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: remove timeout
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unused config
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update docs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-16 14:12:42 +00:00
irenjj
f93b5b19f0
feat: limit total rows copied in COPY TABLE FROM with LIMIT segment ( #3910 )
...
* feat: limit total rows copied in COPY TABLE FROM with LIMIT segment
* fmt
* disable default limit
* fix: check parse
* fix test, add error case
* fix: forbide LIMIT in database
* fix: only support LIMIT segment
* fix: simplify
* fix
* fix
* fix
* fix
* fix: test
* fix: change error info
* fix clippy
* fix: fix error msg
* fix test
* fix: test error info
2024-05-16 13:39:26 +00:00
Yingwen
669a6d84e9
test: gracefully shutdown postgres client in sql tests ( #3958 )
...
* chore: debug log
* test: gracefully shutdown pg client
2024-05-16 11:50:45 +00:00
discord9
a45017ad71
feat(flow): expire arrange according to time_index type ( #3956 )
...
* feat: render_reduce's arrangement expire after time passed
* feat: set expire when create flow
2024-05-16 11:41:03 +00:00
discord9
0d9e71b653
feat(flow): flow node manager ( #3954 )
...
* feat(flow): flow node manager
feat(flow): render src/sink
feat(flow): flow node manager in standalone
fix?: higher run freq
chore: remove abunant error enum variant
fix: run with higher freq if insert more
chore: fix after rebase
chore: typos
* chore(WIP): per review
* chore: per review
2024-05-16 11:37:14 +00:00
discord9
93f178f3ad
feat(flow): avg func rewrite to sum/count ( #3955 )
...
* feat(WIP): parse avg
* feat: RelationType::apply_mfp no need expr typs
* feat: avg&tests
* fix(WIP): avg eval
* fix: sum ret correct type
* chore: typos
2024-05-16 10:03:56 +00:00
WU Jingdi
9f4a6c6fe2
feat: support any precision in PromQL ( #3933 )
...
* feat: support any precision in PromQL
* chore: add test
2024-05-16 07:00:24 +00:00
Weny Xu
c915916b62
feat(cli): export metric physical tables first ( #3949 )
...
* feat: export metric physical tables first
* chore: apply suggestions from CR
2024-05-16 06:30:20 +00:00
Weny Xu
dff7ba7598
feat: ignore internal columns in SHOW CREATE TABLE ( #3950 )
...
* feat: ignore internal columns
* chore: add new line
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-05-16 06:28:48 +00:00
Ning Sun
fe34ebf770
test: give windows file watcher more time ( #3953 )
...
* test: give windows file watcher more time
* refactor: use constants for timeout
2024-05-16 01:58:45 +00:00
tison
a1c51a5885
chore: catch up label updates ( #3951 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-05-15 16:44:17 +00:00
zyy17
63a8d293a1
refactor: add Configurable trait ( #3917 )
...
* refactor: add Configurable trait
* refactor: add merge_with_cli_options() to simplify load_options()
* docs: add comments
* fix: clippy errors
* fix: toml format
* fix: build error
* fix: clippy errors
* build: downgrade config-rs
* refactor: use '#[snafu(source(from()))'
* refactor: minor modification for load_layered_options() to make it clean
2024-05-15 12:56:40 +00:00
tison
6c621b7fcf
ci: implement docbot in cyborg ( #3937 )
...
* ci: implement docbot in cyborg
Signed-off-by: tison <wander4096@gmail.com >
* allow remove non-existing label
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
* fixup org name
Signed-off-by: tison <wander4096@gmail.com >
* fixup step name
Signed-off-by: tison <wander4096@gmail.com >
* remove unused file
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-05-15 12:55:49 +00:00
Yingwen
529e344450
ci: Use lld linker in windows tests ( #3946 )
...
* ci: disable other test
* ci: timeout 30
* ci: try to use lld
* ci: change linker
* test: wait for file change in test multiple times
* ci: enable other tests
* chore: revert sleep in loop
2024-05-15 12:34:10 +00:00
Zhenchi
2a169f9364
perf(operator): reuse table info from table creation ( #3945 )
...
perf(operator): reuse table info from creating
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-05-15 09:18:17 +00:00
discord9
97eb196699
feat(flow): query table schema&refactor ( #3943 )
...
* feat: get table info
* feat: remove new&unwrap
* chore: per PR advices
* chore: per review
2024-05-15 08:35:12 +00:00
Yohan Wal
cfae276d37
feat(fuzz): add validator for inserted rows ( #3932 )
...
* feat(fuzz): add validator for inserted rows
* fix: compatibility with mysql types
* feat(fuzz): add datetime and date type in mysql for row validator
2024-05-15 07:05:51 +00:00
Weny Xu
09129a911e
chore: update greptime-proto to a11db14 ( #3942 )
2024-05-15 03:38:47 +00:00
discord9
15d7b9755e
feat(flow): flow worker ( #3934 )
...
* feat: flow worker
* chore: fix after cherry pick
* refactor: error handling
* refactor: error handling
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: merge origin/main
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
2024-05-14 16:09:25 +00:00
Jeremyhi
72897a20e3
chore: minor refactor on etcd kvbackend ( #3940 )
...
* chore: minor refactor on etcd kvbackend
* chore: avoid clone
2024-05-14 13:25:22 +00:00
Lei, HUANG
c04d02460f
fix(metric engine): label mismatch in metric engine ( #3927 )
...
* fix: label mismatch
* test: add unit test
* chore: avoid updating full primary keys
* fix: style
* chore: add some doc for PkIndexMap
* chore: update some doc
2024-05-14 12:58:22 +00:00
discord9
4ca7ac7632
feat(flow): add types for every plan enum variant ( #3938 )
...
* feat: Plan with types
* chore: per review advices
2024-05-14 10:51:37 +00:00
Jeremyhi
a260ba3ee7
feat: use txn to impl cas ( #3936 )
...
* feat: usr txn to impl cas
* chore: fix test
2024-05-14 08:21:27 +00:00
dennis zhuang
efd3f04b7c
feat: create view ( #3807 )
...
* add statement
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: rebase with main
* fix: create flow
* feat: adds gRPC stuff
* feat: impl create_view ddl in operator
* feat: impl CreateViewProcedure
* chore: update cargo lock
* fix: format
* chore: compile error after rebasing main
* chore: refactor and test create view parser
* chore: fixed todo list and comments
* fix: compile error after rebeasing
* test: add create view test
* test: test view_info keys
* test: adds test for CreateViewProcedure and clean code
* test: adds more sqlness test for creating views
* chore: update cargo lock
* fix: don't replace normal table in CreateViewProcedure
* chore: apply suggestion
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
* chore: style
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
2024-05-14 08:03:29 +00:00
Weny Xu
f16ce3ca27
feat: support to invalidate flow cache ( #3926 )
...
* feat: add `FlowName` & `FlowId` to `CacheIdent`
* feat: support to invalidate flow cache
* chore: apply suggestions from CR
2024-05-14 06:24:09 +00:00
Yingwen
6214180ecd
build: upgrade rust toolchain to fix ci issues on Windows ( #3898 )
...
* ci: use windows 2019
* test: ignore cleanup result
* chore: revert change
* test: unstable repeated task test
* build: update rust toolchain and windows
* ci: test sqlness
* chore: enable other tests
2024-05-14 06:13:43 +00:00
Weny Xu
00e21e2021
fix: potential deadlock ( #3930 )
...
fix: fix potential deadlock
2024-05-14 03:04:03 +00:00
maco
494ce65729
feat: limiting the size of query results to Dashboard ( #3901 )
...
* feat: limiting the size of query results to Dashboard
* optimize code
* fix by cr
* fix integration tests error
* remove RequestSource::parse
* refactor: sql query params
* fix: unit test
---------
Co-authored-by: tison <wander4096@gmail.com >
2024-05-14 01:57:30 +00:00
Weny Xu
e15294db41
feat: introduce TableRouteCache to PartitionRuleManager ( #3922 )
...
* chore: add `CompositeTableRouteCacheRef` to `PartitionRuleManager`
* chore: update comments
* fix: add metrics for `get`
* chore: apply suggestions from CR
* chore: correct cache name
* feat: implement `LayeredCacheRegistry`
* fix: invalidate logical tables by physical table id
* refactor: replace `CacheRegistry` with `LayeredCacheRegistry`
* chore: update comments
* chore: apply suggestions from CR
* chore: fix fmt
* refactor: use `TableRouteCache` instead
* chore: apply suggestions from CR
* chore: fix clippy
2024-05-13 13:26:43 +00:00
discord9
be1eb4efb7
feat(flow): render source/sink ( #3903 )
...
* feat(flow): render src/sink
* chore: add empty impl
* chore: typos
* refactor: according to review(WIP)
* refactor: reexport df_sbustrait&use to_sub_plan
* fix: add implict location to error enum
* fix: error handling unwrap query_ctx
2024-05-13 11:58:02 +00:00
Jeff Chiang
9d12496aaf
feat: create database with options ( #3751 )
...
* feat: create database with options
* fix: clippy
* fix: clippy
* feat: rebase and add Display test
* feat: sqlness test for creating database with options
* address comments
Signed-off-by: tison <wander4096@gmail.com >
* fixup tests
Signed-off-by: tison <wander4096@gmail.com >
* catch up
Signed-off-by: tison <wander4096@gmail.com >
* DefaultOnNull
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-05-13 09:00:15 +00:00
Jeremyhi
5d8084a32f
chore: store-addr to store-addrs ( #3925 )
2024-05-13 08:30:25 +00:00
zyy17
60eb5de3f1
refactor: add tracing options in xOptions ( #3919 )
...
* refactor: add tracing options in {DatanodeOptions, FrontendOptions, MetasrvOptions, StandaloneOptions}
* ci: fix integration error
* refactor: minor modification for initialization of tracing options
2024-05-13 05:16:50 +00:00
maco
a0be7198f9
feat: migrate orc-rs to datafusion-orc ( #3923 )
2024-05-13 05:15:06 +00:00
Jeremyhi
6ab3aeb142
refactor: rename metasrv_addr to metasrv_addrs ( #3921 )
2024-05-12 03:44:21 +00:00
Ruihang Xia
590aedd466
fix: sort unstable HTTP result in label values query ( #3920 )
...
* fix: sort unstable HTTP result in label values query
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: Update src/servers/src/http/prometheus.rs
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-05-11 11:33:01 +00:00
Weny Xu
27e376e892
feat: implement the CompositeTableRoute ( #3918 )
...
* feat: implement the `CompositeTableRoute`
* chore: update comments
2024-05-11 11:09:00 +00:00
Weny Xu
36c41d129c
feat: support to create & drop flow via grpc ( #3915 )
...
* feat: support to create & drop flow via grpc
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-05-11 11:01:48 +00:00
Weny Xu
89da42dbc1
refactor: refactor frontend cache ( #3912 )
...
* feat: implement the `TableCache`
* refactor: use `TableCache`
* refactor: replace `TableFlowManager` with `TableFlownodeSetCache`
* refactor: introduce cache crate
* chore: add comments
* chore: update comments
* chore: apply suggestions from CR
* chore: rename `cache_invalidator` to `local_cache_invalidator`
* chore(fuzz): set `acquire_timeout` to 30s
2024-05-11 09:58:18 +00:00
Jeremyhi
04852aa27e
chore: keep the same naming style ( #3916 )
2024-05-11 09:39:49 +00:00
Yingwen
d0820bb26d
refactor: Remove PhysicalPlan trait and use ExecutionPlan directly ( #3894 )
...
* refactor: remove PhysicalPlan
* refactor: remove physical_plan mod
* refactor: import
* fix merge error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-11 07:38:03 +00:00
Jeremyhi
fa6c371380
feat: metaclient builder options with role ( #3909 )
...
* feat: metaclient builder options with default role
* chore: remove unnecessary ut
2024-05-11 06:17:14 +00:00
Jeremyhi
9aa2182cb2
refactor: make txn easy to use ( #3905 )
...
refactor: put_if_not_exists and compare_and_put API
2024-05-11 04:45:04 +00:00
Weny Xu
bca2e393bf
refactor: add procedure_loader macro ( #3906 )
2024-05-11 04:41:21 +00:00
zyy17
b1ef327bac
refactor: remove MixOptions and use StandaloneOptions only ( #3893 )
...
* refactor: remove MixOptions and use StandaloneOptions only
* refactor: refactor code by code review comments
1. Use '&self' in frontend_options() and datanode_options();
2. Remove unused 'clone()';
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* ci: fix integration error
---------
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2024-05-10 16:08:34 +00:00
Ruihang Xia
115c74791d
build(deps): bump snafu to 0.8 ( #3911 )
...
* change Cargo.toml
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* global replace
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle alias in script engine
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-10 13:36:25 +00:00
Ruihang Xia
aec5cca2c7
feat: support distributed EXPLAIN ANALYZE ( #3908 )
...
* feat: fetch and pass per-plan metrics
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl DistAnalyzeExec
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness results
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo again
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/query/src/analyze.rs
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
2024-05-10 12:31:29 +00:00
Weny Xu
06e1c43743
feat: support to drop flow ( #3900 )
...
* feat: support to drop flow
* chore: apply suggestions from CR
2024-05-10 12:09:37 +00:00
Weny Xu
9d36c31209
feat: introduce the CacheRegistry ( #3896 )
...
* feat: implement the `CacheRegistry`
* refactor: change `CacheInvalidator` signature
* feat: implement `CacheInvalidator`
* feat: add `get_or_register`
* fix: fmt toml
* feat: implement the `CacheRegistryBuilder`
* chore: apply suggestions from CR
* chore: fmt code
2024-05-10 11:53:42 +00:00
Weny Xu
c91132bd14
feat: introduce TableNameCache & TableInfoCache & TableRouteCache ( #3895 )
...
* feat: implement the `TableNameCache`
* feat: implement the `TableInfoCache`
* feat: implement the `TableRouteCache`
* test: add tests for `TableInfoCache` & `TableRouteCache`
* chore: use `TableId`
2024-05-10 09:50:44 +00:00
Ruihang Xia
25e9076f5b
docs: correct v0.7 benchmark report ( #3907 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-10 09:33:06 +00:00
Ruihang Xia
08945f128b
fix: sort unstable HTTP result on test profile
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-10 17:01:42 +08:00
Yingwen
5a0629eaa0
feat: Parquet reader builder supports building multiple ranges to read ( #3841 )
...
* chore: change `&mut self` to `&self`
* feat: define partition and partition context
* refactor: move precise_filter to PartitionContext
* feat: filter wip
* feat: compute projection and fields in format
* feat: use RowGroupReader to implement ParquetReader
* fix: use expected meta to get column id for filters
* feat: partition returns row group reader
* style: fix clippy
* feat: add build partitions method
* docs: comment
* refactor: rename Partition to FileRange
* chore: address CR comments
* feat: avoid allocating column ids while constructing ReadFormat
2024-05-10 07:39:38 +00:00
Weny Xu
89dbf6ddd2
chore: bump proto to 219b24 ( #3899 )
...
chore: bump to 219b24
2024-05-10 03:55:34 +00:00
Ruihang Xia
66aa08d815
fix: memory leak in unit test of telemetry ( #3897 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-09 14:29:22 +00:00
Weny Xu
b8a325d18c
feat: implement CacheContainer & TableFlownodeSetCache ( #3885 )
...
* feat: implement the `CacheContainer`
* feat: implement the `TableFlownodeSetCache`
* chore: remove unused feature
* chore: remove unused `Arc`
* refactor: refactor origin `get` to `get_by_ref`
* chore: update comments
* refactor: refactor `CacheContainer`
* chore: move `CacheContainer` to container.rs
* feat: add metrics
* chore: update tests
* test: add tests for value not exists
* test: add test for get
* chore: apply suggestions from CR
2024-05-09 09:26:35 +00:00
Ruihang Xia
ed95e99556
chore: deprecate nyc-taxi benchmark ( #3891 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-09 08:59:38 +00:00
Weny Xu
5545a8b023
feat: implement drop flow procedure ( #3877 )
...
* feat: implement `destroy_flow_metadata` method
* chore: bump proto to 65c1364
* feat: implement the drop flow procedure
* feat: add `MockFlownodeManager`
* tests: add tests for create flow & drop flow procedure
* chore: apply suggestions from CR
* chore: use `ClusterId`
2024-05-09 08:23:19 +00:00
Weny Xu
5140d247e3
feat: implement drop flow parser ( #3888 )
...
* feat: implement drop flow parser
* Update src/sql/src/parsers/drop_parser.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* fix: fmt code
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-09 07:14:22 +00:00
Jeremyhi
f995f6099f
chore: avoid double future ( #3890 )
2024-05-09 07:11:22 +00:00
Jeremyhi
7de62ef5d0
feat: add metasrv start time to node info ( #3883 )
2024-05-09 06:53:55 +00:00
Weny Xu
0e05f85a9d
feat: pass QueryContext to FlowRequestHeader ( #3878 )
...
* feat: pass `QueryContext` to `DdlTaskRequest`
* feat: pass `QueryContext` to `FlowRequestHeader`
* chore: fmt toml
2024-05-09 04:57:33 +00:00
Ruihang Xia
a6a702de4e
feat: support querying field column names in Prometheus HTTP API ( #3880 )
...
* feat: support querying field column names in Prometheus HTTP API
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use tables stream API
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-08 12:18:20 +00:00
Weny Xu
d99746385b
refactor: move mirror insertion tasks to the background runtime ( #3879 )
2024-05-08 07:41:06 +00:00
Yingwen
9d8f72d611
fix: add data type to vector cache key ( #3876 )
...
* test: test for null tag
* test: sqlness test
* fix: add type to vector cache key
* test: update sqlness test
2024-05-08 06:30:28 +00:00
Lei, HUANG
c07a1babd5
refactor(logstore): remove Entry::namemspace ( #3875 )
...
refactor(logstore): remove LogStore::namemspace and related associate types on Entry.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
2024-05-08 06:13:33 +00:00
zyy17
cc8d6b1200
refactor: move Plugins to plugins.rs and use rwlock ( #3862 )
...
* refactor: move `Plugins` to `plugins.rs` and add unit tests
* refactor: use rwlock instead of mutex to improve performance
2024-05-07 23:32:22 +00:00
irenjj
5274806108
feat: limit total rows copied in COPY TABLE FROM stmt ( #3819 )
...
* feat: limit total rows copied in `COPY TABLE FROM` stmt
* fix: break outer loop
* fmt
* fixup
* test: add limit rows test
* fix test
* fix test: add drop
* fix test
* fix test
* fix test
* fix: change to const
2024-05-07 15:44:02 +00:00
Jeremyhi
6e1cc1df55
feat: metasrvs nodeinfo ( #3873 )
...
* feat: get metasrv nodeinfo
* fix: sqlness test
* chore: by comment
* feat: proto version
2024-05-07 11:20:57 +00:00
Ruihang Xia
65f80af9a9
build: run cargo gc to build binaries ( #3874 )
...
* build: run cargo gc to build binaries
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-07 11:16:47 +00:00
zyy17
a68072cb21
refactor: add the main cli entry point struct Command{} and simplify main() ( #3850 )
...
refactor: add the main cli entrypoint struct `Command{}` to simplify `main()`
2024-05-07 09:08:35 +00:00
Ruihang Xia
71c1c7ca24
fix: return metric name instead of query in Prometheus /series API ( #3864 )
...
* fix: return metric name instead of query in Prometheus /series API
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* omit non-tag columns from result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-07 09:07:16 +00:00
Weny Xu
1b5862223c
fix: register regions during procedure recovery ( #3859 )
...
* fix: register regions during procedure recovery
* feat: add `recover` to `Procedure` trait
* refactor: move recovery to `recover` method
2024-05-07 08:30:41 +00:00
Ruihang Xia
c0be0c30de
build: strip sqlness binary ( #3872 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-07 07:53:48 +00:00
Kelvin Wu
154f561da1
refactor: passing QueryContext to RegionServer ( #3829 )
...
* refactor: passing QueryContext to RegionServer
* refactor: change the return type of build() in QueryContextBuilder
* fix: update greptime-proto reference
* chore: apply suggestion
* chore: revert the last commit
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-05-07 15:10:59 +08:00
Weny Xu
aa2934b422
docs: run fuzz tests in dev mode & disable sanitizer ( #3871 )
...
doc: run fuzz tests in dev mode & disable sanitizer
2024-05-07 14:15:07 +08:00
shuiyisong
1b93a026c2
ci: align clippy checks and fixup ( #3868 )
...
* fix: make clippy
* fix: use make in CI
2024-05-07 03:00:38 +00:00
Ruihang Xia
530353785c
refactor: remove re-export from logging ( #3865 )
...
* refactor: remove re-export from logging
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix merge problem
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* run formatter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-06 13:26:01 +00:00
discord9
573c19be32
feat(flow): mirror insert req to flow node ( #3858 )
...
* feat: mirror insert req to flow node
* refactor: group_requests_by_peer
* chore: rename `nodes` to `flows` to be more apt
* docs: add TODO
* refactor: split flow&data node grouping to two func
* refactor: mirror_flow_node_request
* chore: add some TODOs
* refactor: use Option in value
* feat: skip non-src table quickly
* docs: add TODO for `Peer.address`
* fix: dedup
2024-05-06 11:33:14 +00:00
Lei, HUANG
f3b68253c2
chore: remove one slice copy in wal encoding ( #3861 )
...
* chore: remove one slice copy in wal encoding
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
* fix: cr comments
---------
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
2024-05-06 10:26:40 +00:00
shuiyisong
6e9e8fad26
refactor!: remove opentsdb tcp server ( #3828 )
...
* refactor: remove opentsdb tcp server
* refactor: remove config and add test
* refactor: update docs and remove unused code
2024-05-06 06:42:05 +00:00
Weny Xu
6e12e1b84b
fix: retrieve all info instead of checking on demand ( #3846 )
...
* fix: renew region lease bug
* refactor: only register regions once
* chore: apply suggestions from CR
2024-05-06 04:44:47 +00:00
tison
7d447c20c5
chore: try avoid one slice ( #3856 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-05-06 03:44:12 +00:00
tison
9c3b9600ca
ci: avoid trying to send slack notification in forks ( #3857 )
2024-05-06 03:18:21 +00:00
tison
73fe075049
ci: replace pull-request actions with cyborg ( #3854 )
...
* ci: replace pull-request actions with cyborg
Signed-off-by: tison <wander4096@gmail.com >
* skip cron maintenance in forks
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-05-04 03:12:26 +00:00
tison
2748cec7e2
ci: create cyborg for all heavy GitHub integrated actions ( #3852 )
...
* ci: create cyborg for all heavy GitHub integrated actions
Signed-off-by: tison <wander4096@gmail.com >
* hack trigger for testing
Signed-off-by: tison <wander4096@gmail.com >
* fixup token population
Signed-off-by: tison <wander4096@gmail.com >
* tidy up
Signed-off-by: tison <wander4096@gmail.com >
* use tsx
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-05-02 12:31:18 +00:00
dennis zhuang
65d47bab56
feat: adds information_schema cluster_info table ( #3832 )
...
* feat: adds server running mode to KvBackendCatalogManager
* feat: adds MetaClient to KvBackendCatalogManager
* feat: impl information_schema.cluster_info table
* fix: forgot files
* test: update information_schema result
* feat: adds start_time and uptime to cluster_info
* chore: tweak cargo and comment
* feat: rename greptime_region_peers to region_peers
* fix: cluster_info result
* chore: simplify sqlness commands
* chore: set peer_id to -1 for frontends
* fix: move cluster_info to greptime catalog
* chore: use official proto
* feat: adds active_time
* chore: apply suggestion
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
* chore: STANDALONE for runtime_metrics
---------
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
Co-authored-by: tison <wander4096@gmail.com >
2024-05-02 02:49:46 +00:00
Weny Xu
f6e2039eb8
test: introduce unstable fuzz create table test ( #3788 )
...
* feat: implement unstable_fuzz_create_table_standalone
* chore: use drop database
* docs: update docs
* chore: add ci config
* chore: add feature gate
* fix: fix clippy
* chore: update ci
* Apply suggestions from code review
* feat: reduce num
* Apply suggestions from code review
* chore: apply suggestions from CR
* Apply suggestions from code review
* chore: reduce `wait_timeout` in health check
* Update .env.example
* refactor: use `init_greptime_connections_via_env`
* refactor: use `init_greptime_connections_via_env`
---------
Co-authored-by: tison <wander4096@gmail.com >
2024-05-01 06:08:49 +00:00
dimbtp
3b89b9ddd8
refactor: move database client to test ( #3820 )
...
* remove `Database` in `cli export`
* move `Database` to tests-integration
* fix clippy
* move `DatabaseClient` along with `Database`
* `cli export` now use http api
* add TODO for `tests-integration` dependencies
* cleanup code
* 'cli export' test use http api
* remove unsed dependencies in cmd crate
* apply review comments and clean code
* remove unused methods
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-05-01 05:55:13 +00:00
tison
695746193b
ci: reduce workflow files by merging actions ( #3848 )
...
* ci: merge license header checker into dev ci
Signed-off-by: tison <wander4096@gmail.com >
* ci: merge nightly-funtional-tests.yml into nightly-ci.yml
Signed-off-by: tison <wander4096@gmail.com >
* fix typos
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-05-01 04:44:00 +00:00
Yohan Wal
573d369f77
feat(fuzz): add insert logical table target ( #3842 )
...
* refactor: let upper caller control whether to omit column list
* feat(fuzz): add insert logical table target
* ci: add fuzz_insert_logical_table ci cfg
2024-05-01 03:48:51 +00:00
Ruihang Xia
e6eca8ca0c
fix: count_wildcard_to_time_index_rule doesn't handle table reference properly ( #3847 )
...
* validate time index col
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use TableReference instead
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-30 15:59:56 +00:00
Ruihang Xia
e84b1eefdf
perf: optimize count(*) ( #3845 )
...
* perf: optimize count(*)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fallback to count(1) for temporary table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle alias expr in range plan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle subquery alias
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-30 10:10:11 +00:00
Yingwen
777bc3b89d
fix: compiler warnings on Windows ( #3844 )
...
* chore: fix windows warnings
* test: try fix create_metadata_region on windows
* style: fix clippy
* style: fix clippy
2024-04-30 09:40:11 +00:00
Weny Xu
81f3007f6f
refactor: remove TableMetaKey trait ( #3837 )
...
* refactor: use MetaKey trait instead of TableMetaKey
* test: add tests
* test: add more tests
* refactor: use `&str` instead of `String`
2024-04-30 06:31:45 +00:00
shuiyisong
863ee608ca
chore: adding Grafana config for cluster monitor ( #3781 )
...
* chore: add greptimedb-cluster.json
* chore: update readme in grafana
* chore: update readme
2024-04-30 06:20:23 +00:00
Weny Xu
20cbc039e6
refactor: remove catalog prefix ( #3835 )
...
* refactor: remove catalog prefix
* refactor: remove scope.rs
* fix: fix tests
* chore: update comments
* chore: apply suggestions from CR
2024-04-30 03:27:33 +00:00
tison
d11b1fa389
chore: correct RepeatedField origin ( #3838 )
...
* chore: correct RepeatedField origin
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-04-30 03:13:54 +00:00
Ruihang Xia
a0f4881c6e
feat: physical optimizer RemoveDuplicate to remove duplicate exec plans ( #3839 )
...
* feat: physical optimizer RemoveDuplicate to remove duplicate exec plans
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update document
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness results
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-30 03:13:39 +00:00
Kould
aba5e41799
feat: support ALTER TABLE ... MODIFY COLUMN ... ... ( #3796 )
...
* feat: support `ALTER COLUMN xxx TYPE xxx`
* fix: test `test_parse_alter_change_column_type`
* style: code fmt
* style: move to new test: `test_make_alter_column_type_region_request`
* style: simplify the code
* style: remove `v1::region::ChangeColumnType`
* resolve conflicts
* fix: test `test_make_alter_column_type_region_request`
* style: simplify the code
* rebase
* rebase
* rebase
* fix: `ALTER COLUMN ... TYPE` -> `MODIFY COLUMN`
* fix: `parser` -> `self.parser`
* Apply suggestions from code review
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: WenyXu <wenymedia@gmail.com >
2024-04-30 03:13:33 +00:00
Ruihang Xia
371d4cf9f5
fix: broken link in contributing guide ( #3831 )
...
* docs: revise style guide about test mod
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use relative path instead
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-30 03:06:47 +00:00
Yohan Wal
8e3515d396
ci: add fuzz_insert ci cfg ( #3840 )
...
chore(ci): add fuzz_insert ci cfg
2024-04-30 02:44:36 +00:00
Weny Xu
701aba9cdb
refactor: rename flow task to flow ( #3833 )
...
* refactor: rename to `MIN_USER_FLOW_ID`
* refactor: rename to `FLOW_ID_SEQ`
* refactor: rename to `flow_id_sequence`
* refactor: rename to `FlowMetadataManager`
* refactor: rename flow_task.rs to flow.rs
* refactor: rename to FlowInfoManager
* refactor: rename to FlowName
* refactor: rename to FlownodeFlow
* refactor: rename to TableFlow
* refactor: remove TASK
* refactor: rename to __flow
* refactor: rename to flow_id
* refactor: rename to flow_name
* refactor: update comments
* refactor: rename to flow_metadata_manager
* refactor: rename to flow_metadata_allocator
* refactor: rename to FlowMetadataAllocator
* refactor: rename task suffix
* refactor: rename FlowTask to FlowInfo
* refactor: rename FlowTaskScoped to FlowScoped
* refactor: rename FlowTaskId to FlowId
* chore: bump proto to b5412f7
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-04-29 14:02:52 +00:00
Weny Xu
b493ea1b38
feat: implement the CreateFlowProcedure ( #3810 )
...
* feat: implement `FlowTaskMetadataAllocator`
* feat: add `FlowTaskMetadataManagerRef` and `FlowTaskMetadataAllocatorRef`
* chore: fix clippy
* feat: add `FlowTaskNameLock`
* feat: implement the `CreateFlowTaskProcedure`
* chore: rename to `CreateFlowProcedure`
* chore: apply suggestions from CR
* feat: invoke create flow procedure
* chore: apply suggestions from CR
* refactor: rename TYPE_NAME
* feat: register the procedure
* chore: apply suggestions from CR
* feat: acquire the lock of sink table name
2024-04-29 12:34:11 +00:00
Jeremyhi
336db38ce9
refactor!: remove duration type from gRPC ( #3825 )
...
* refactor: remove duration type
* chore: proto
2024-04-29 02:56:09 +00:00
tison
c387687262
refactor: use secrecy SerectString to hold secrets option ( #3804 )
...
* build: centralize secrecy dependency
Signed-off-by: tison <wander4096@gmail.com >
* add secrecy to sql crate
Signed-off-by: tison <wander4096@gmail.com >
* try impl
Signed-off-by: tison <wander4096@gmail.com >
* update test
Signed-off-by: tison <wander4096@gmail.com >
* make linters happy
Signed-off-by: tison <wander4096@gmail.com >
* bundle secrecy
Signed-off-by: tison <wander4096@gmail.com >
* bundle secrecy
Signed-off-by: tison <wander4096@gmail.com >
* replace secrecy
Signed-off-by: tison <wander4096@gmail.com >
* tidy clones
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
* updated
Signed-off-by: tison <wander4096@gmail.com >
* Apply suggestions from code review
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
* use BTreeMap
Signed-off-by: tison <wander4096@gmail.com >
* tidy
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
2024-04-29 02:18:18 +00:00
Ruihang Xia
7ef18c0915
feat: impl parser and operator for CREATE FLOW ( #3806 )
...
* feat: impl parser for CREATE TASK
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* finish parser
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* wip expr
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* finish expr
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename output to sink
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix parser
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove debug code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* upload lock file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename symbol
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
* remove other task word
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* task name to flow name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* one more comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Jeremyhi <jiachun_feng@proton.me >
2024-04-28 12:26:49 +00:00
tison
1bbde15a15
feat: improve error message for typo in IF NOT EXISTS ( #3817 )
...
* refactor: improve error message for typo in IF NOT EXISTS
Signed-off-by: tison <wander4096@gmail.com >
* support table name 'if'
Signed-off-by: tison <wander4096@gmail.com >
* add sqlness cases
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-04-28 11:20:17 +00:00
Ruihang Xia
3dac7cbe37
refactor: remove location_opt and DebugFormat ( #3830 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-28 11:18:55 +00:00
Weny Xu
08263995f6
feat: implement the FrontendInvoker ( #3824 )
...
* chore: add `common-frontend`
* feat: add `FrontendInvoker` trait
* feat: implement the `FrontendInvoker`
2024-04-28 11:11:34 +00:00
Ruihang Xia
c0b909330a
fix: wrong handler implementation of prometheus remote write ( #3826 )
...
* fix: wrong handler implementation of prometheus remote write
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-28 10:52:32 +00:00
Weny Xu
dadee99d69
chore: add warn log for denied to renew region lease ( #3827 )
...
chore: add warn log for region lease renewing
2024-04-28 09:04:01 +00:00
Yohan Wal
f29aebf89f
feat(fuzz): add alter logical table target ( #3818 )
...
* feat(fuzz): add alter logical table target
* chore(ci): add fuzz_alter_logical_table ci cfg
2024-04-28 06:40:37 +00:00
tison
e154dc5fd4
refactor: DfUdfAdapter to bridge ScalaUdf ( #3814 )
...
* refactor: DfUdfAdapter to bridge ScalaUdf
Signed-off-by: tison <wander4096@gmail.com >
* tidy impl
Signed-off-by: tison <wander4096@gmail.com >
* for more
Signed-off-by: tison <wander4096@gmail.com >
* for more
Signed-off-by: tison <wander4096@gmail.com >
* for more
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-04-28 04:17:06 +00:00
Jeremyhi
ed8b13689e
refactor!: remove some admin APIs ( #3821 )
...
chore: remove some admin APIs as they have been replaced by the information schema.
2024-04-28 03:24:13 +00:00
Weny Xu
3112ced9c0
chore: rename all datanode_manager to node_manager ( #3813 )
2024-04-28 02:34:06 +00:00
Yingwen
e410192560
fix: push down order hint of the query again ( #3797 )
...
* feat: add dummy catalog list to query
* chore: fix compiler errors
* feat: use query's dummy catalog
* chore: remove error
* feat: match dummy provider in the order hint
* docs: revert config change
* Apply suggestions from code review
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-26 11:55:44 +00:00
Weny Xu
eb3d2ca759
refactor: refactor DatanodeManager to NodeManager ( #3811 )
...
* chore: bump greptime-proto to 2c14c6e
* refactor: refactor `DatanodeManager` to `NodeManager`
2024-04-26 11:31:03 +00:00
Yohan Wal
934c7e3fef
feat(fuzz): add create logical table target ( #3756 )
...
* feat(fuzz): add create logical table target
* fix: drop physical table after fuzz test
* fix: remove backticks of table name in with clause
* fix: create physical and logical table properly
* chore: update comments
* chore(ci): add fuzz_create_logical_table ci cfg
* fix: create one logical table once a time
* fix: avoid possible duplicate table and column name
* feat: use hard-code physical table
* chore: remove useless phantom
* refactor: create logical table with struct initialization
* chore: suggested changes and corresponding test changes
* chore: clean up
2024-04-26 09:09:08 +00:00
tison
d8ea7c5585
chore: respect axum test client's origin ( #3805 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-04-26 07:19:46 +00:00
Yingwen
77fc1e6de0
fix: prune row groups correctly for columns with the same name ( #3802 )
...
* test: add prune test case
* fix: use latest region metadata to get column id
* test: sort output
2024-04-26 06:52:23 +00:00
tison
4eadd9f8a8
refactor: log statement on error by Display ( #3803 )
...
* refactor: log statement on error by Display
Signed-off-by: tison <wander4096@gmail.com >
* Apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-04-26 04:05:13 +00:00
Weny Xu
1ec595134d
feat: define CreateFlowTask and DropFlowTask ( #3801 )
...
* chore: bump proto to cefc73f
* feat: add `CreateFlowTask` and `DropFlowTask`
* chore: bump to 87f2b38
* chore: bump to 783682f
2024-04-25 12:30:31 +00:00
Weny Xu
9206f60b28
feat: implement FlowTaskMetadataManager ( #3766 )
...
* feat: implement `FlowMetadataManager`
* chore: remove dead code
* refactor: change `sink_tables` to `sink_table`
* refactor: add `PartitionId`
* feat: implement FlowTaskNameManager
* refactor: update doc of keys
* fix: return partition id in `tasks`
* refactor: rename to `FlowTaskId`
* chore: add comments
* chore: add `task_id` in `TaskAlreadyExists`
* chore: add comments
* fix: fmt
* refactor: simplify the docoder
* chore: update comments
* feat: implement `FlowTaskScoped` and `CatalogScoped`
* refactor: refactor flow task keys
* refactor: remove metadata mod
* refactor: rename to `FlowTaskInfo`
* chore: add comments
* refactor: rename to `FlowTaskMetadataManager`
* chore: remove dead code
* Apply suggestions from code review
* chore: change to `pub(crate)`
* chore: apply suggestions from CR
* fix: fix fmt
* chore: fmt doc
2024-04-25 11:59:24 +00:00
discord9
2d0f493040
feat(flow): render reduce ( #3769 )
...
* feat: render reduce
* fix: distinct input dedup&change per review
* chore: typos
* fix: eval_distinct_core&per review
* chore: typos
* docs: more comment on accums internal
* chore: per review
* chore: rebase to main
2024-04-25 09:35:12 +00:00
tison
bba3108e0d
refactor!: unify sql options into OptionMap ( #3792 )
...
* unify sql options into OptionMap
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
* Update src/sql/src/util.rs
* drop legacy regions option
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-04-25 04:06:05 +00:00
Jeremyhi
9524ec83bc
fix!: use the right precision ( #3794 )
...
* fix: use write precision
* chore: rename error
* chore: add doc
* chore: by comment
* chore: right test result
* chore: typo
* chore: add doc
2024-04-25 03:20:10 +00:00
Weny Xu
e0b5f52c2a
fix: fix fuzz test ci ( #3795 )
2024-04-24 10:22:41 +00:00
Ruihang Xia
1272bc9afc
fix: post process result on query full column name of prom labels API ( #3793 )
...
* fix: post process result on query full column name of prom labels API
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* only preserve tag column
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-24 09:38:03 +00:00
Ruihang Xia
df01ac05a1
feat: add validate method to CreateExpr ( #3772 )
...
* feat: add validate method to CreateExpr
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness reproducer
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* verify region create request
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix existing test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add tailing empty line
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more validation
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* disable metric table fuzz
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* minor refactor
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-24 07:29:10 +00:00
Zhenchi
659d34a170
refactor(flow): refine comments and code ( #3785 )
...
* refactor(flow): refine comments and code
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* doc: description of the properties of removed keys
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: `get`'s fast path for cur val
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: discord9 <discord9@163.com >
2024-04-24 07:09:53 +00:00
irenjj
62037ee4c8
feat: impl Display for Statement ( #3744 )
...
* feat: impl Display for Statement
* fix: add license header
* fix: inline function manually
* fix: redacte options
* fix: check secret key and replace value
* test: add test for statement display
* fix: fix check
* fix: inline method
* fix: inline methods
* fix: format
* showcase how to write Display impl
Signed-off-by: tison <wander4096@gmail.com >
* for others
Signed-off-by: tison <wander4096@gmail.com >
* create and copy
Signed-off-by: tison <wander4096@gmail.com >
* create rest
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
* address comments
Signed-off-by: tison <wander4096@gmail.com >
* fixup quote
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-24 07:09:06 +00:00
Lei, HUANG
8d229dda98
chore: always obsolete wal to avoid discontinuous log entries ( #3789 )
2024-04-24 07:08:01 +00:00
Kould
42e7403fcc
feat: support different types for CompatReader ( #3745 )
...
* feat: support different types for `CompatReader`
* chore: only compare whether we need: (data_type)
* fix: optimize code based on review suggestions
- add unit test `test_safe_cast_to_null` to test safely cast
- add DataType to projected_fields
- remove TODO
* fix: assert_eq fail on `projection.rs`
* style: codefmt
* style: fix the code based on review suggestions
2024-04-24 06:27:52 +00:00
Weny Xu
20a933e395
refactor: simplify the PaginationStream ( #3787 )
...
* refactor: simplify the `PaginationStream`
* refactor: refactor decode fn
* fix: fix clippy
2024-04-24 04:29:41 +00:00
Kould
b619950c70
feat: add ChangeColumnType for AlterKind ( #3757 )
...
* feat: add `ModifyColumn` for `AlterKind`
* chore: additional code comments for `AlterKind::ModifyColumns`
* fix: add nullable check on `ModifyColumn`
* style: codefmt
* style: fix the code based on review suggestions
* style: fix the code based on review suggestions
* style: rename `ModifyColumn` -> `ChangeColumnType`
* style: code fmt
* style: `change_columns_type` -> `change_column_types`
2024-04-24 04:27:23 +00:00
Yingwen
4685b59ef1
feat: write manifests in background tasks ( #3709 )
...
* chore: truncate wip
* feat: truncate and edit write manifest in background
* refactor: wrap in manifest context
* feat: alter write manifest in background
* chore: fix compiler errors
* feat: flush update manifest in background
* feat: compaction update manifest in background
* feat: set dropping state
* feat: reset drop state
* feat: check state before updating manifest
* test: fix compaction test
* refactor: rename method
* chore: update comment
* chore: discard state guard
* refactor: use atomic cell to store state enum
* chore: fix clippy
* chore: update toml
* chore: remove unused type alias
* feat: check state after writing manifest
* chore: address CR comments
* chore: change status code
* chore: Update src/mito2/src/region.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* fix: executes applier
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2024-04-24 03:09:48 +00:00
LFC
86a989517e
refactor: move the version string to common ( #3783 )
2024-04-23 14:21:34 +00:00
Yingwen
0aaf7621bd
build: only build amd64 image for CentOS ( #3784 )
...
build: only build amd64 for centos
2024-04-23 13:44:26 +00:00
WU Jingdi
924c52af7c
fix: promql scalar when input empty batch ( #3779 )
2024-04-23 11:16:40 +00:00
Lei, HUANG
f5e5a89e44
chore: bump jobserver ( #3778 )
...
chore: upgrade jobserver to 0.1.31 so that it can build on platforms with older glibc
2024-04-23 09:32:04 +00:00
Lei, HUANG
778e195f07
fix: do not remove deletion markers when window time range overlaps ( #3773 )
...
* fix: do not remove deletion markers when window time range overlaps
* chore: fix some minor issues; add compaction test
* chore: add more test
* fix: nitpick master's nitpick
2024-04-23 08:05:16 +00:00
Ruihang Xia
f764fd5847
fix: consider both db param and extended db header in Prometheus HTTP API ( #3776 )
...
* fix: consider both db param and extended db header in Prometheus HTTP API
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove debug code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-23 07:13:05 +00:00
LFC
19a9035f4b
fix: operating region guards should be dropped when procedure is done ( #3775 )
2024-04-23 06:21:53 +00:00
LFC
96c01a3bf0
fix: the dropping_regions guards should be dropped on procedure done ( #3771 )
...
* fix: the `dropping_regions` guards should be dropped on procedure done
* fix ci
2024-04-23 02:44:12 +00:00
Ruihang Xia
bf21527f18
fix: set is_time_index properly on updating physical table's schema ( #3770 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-22 12:37:25 +00:00
Weny Xu
9e1441e48b
docs: add how-to-write-fuzz-tests.md ( #3763 )
...
* docs: add how-to-write-fuzz-tests.md
* chore: apply suggestions from CR
* chore: apply suggestion from CR
* Update docs/how-to/how-to-write-fuzz-tests.md
Co-authored-by: tison <wander4096@gmail.com >
* Apply suggestions from code review
Co-authored-by: tison <wander4096@gmail.com >
* chore: apply suggestions from CR
* chore: apply suggestions from CR
---------
Co-authored-by: tison <wander4096@gmail.com >
2024-04-22 11:56:16 +00:00
ZonaHe
eeb4e26c71
feat: update dashboard to v0.5.0 ( #3768 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-22 11:41:00 +00:00
tison
7ca0fa52d4
ci: secrets.GITHUB_TOKEN not exist on self-hosted runner ( #3765 )
2024-04-22 11:29:08 +00:00
Ruihang Xia
443722597b
ci: temporary disable compatibility test ( #3767 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-22 11:10:24 +00:00
discord9
d4b814f698
refactor(flow): split render.rs and other minor changes ( #3750 )
...
* refactor: split render.rs
* chore: per review
* chore: per review
* chore: docs explain `apply_updates` behavior
* chore: per review
2024-04-22 09:48:09 +00:00
Ruihang Xia
d0b2a11f2b
feat: add preserve arg to sqlness runner ( #3724 )
...
* feat: add preserve arg to sqlness runner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* replace tempdir with tempfile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-22 09:21:37 +00:00
dependabot[bot]
54432df92f
build(deps): bump rustls from 0.22.3 to 0.22.4 ( #3764 )
...
Bumps [rustls](https://github.com/rustls/rustls ) from 0.22.3 to 0.22.4.
- [Release notes](https://github.com/rustls/rustls/releases )
- [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustls/rustls/compare/v/0.22.3...v/0.22.4 )
---
updated-dependencies:
- dependency-name: rustls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 17:19:08 +08:00
dennis zhuang
8f2ce4abe8
feat: impl show collation and show charset statements ( #3753 )
...
* feat: impl show collation and show charset statements
* docs: add api docs
2024-04-20 06:01:32 +00:00
WU Jingdi
d077892e1c
feat: support PromQL scalar ( #3693 )
2024-04-19 09:56:09 +00:00
LFC
cfed466fcd
chore: update greptime-proto to main ( #3743 )
2024-04-19 06:38:34 +00:00
Ruihang Xia
0c5f4801b7
build: update toolchain to nightly-2024-04-18 ( #3740 )
...
* chore: update toolchain to nightly-2024-04-17
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix ut
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update fuzz test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update to nightly-2024-04-18
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add document
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update CI
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* avoid unnecessary allow clippy attrs
Signed-off-by: tison <wander4096@gmail.com >
* help the compiler find the clone is unnecessary and make clippy happy
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-19 05:42:34 +00:00
Eugene Tolbakov
2114b153e7
refactor: avoid unnecessary alloc by using unwrap_or_else ( #3742 )
...
feat(promql): address post-merge CR
2024-04-19 01:31:25 +00:00
LFC
314f2704d4
build(deps): update datafusion to latest and arrow to 51.0 ( #3661 )
...
* chore: update datafusion
* update sqlness case of time.sql
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: adjust range query partition
* fix: hisogram incorrect result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: ignore filter pushdown temporarily
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: update limit sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: histogram with wrong distribution
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: update negative ordinal sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: bump df to cd7a00b
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* resolve conflicts
* ignore test_range_filter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix promql exec panic
* fix "select count(*)" exec error
* re-enable the "test_range_filter" test since the filter push down seems not necessary to be removed
* fix: range query schema error
* update sqlness results
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* resolve conflicts
* update datafusion, again
* fix pyo3 compile error, and update some sqlness results
* update decimal sqlness cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: promql literal
* fix udaf tests
* fix filter pushdown sqlness tests
* fix?: test_cast
* fix: rspy test fail due to datafusion `sin` signature change
* rebase main to see if there are any failed tests
* debug ci
* debug ci
* debug ci
* enforce input partition
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* debug ci
* fix ci
* fix ci
* debug ci
* debug ci
* debug ci
* fix sqlness
* feat: do not return error while creating a filter
* chore: remove array from error
* chore: replace todo with unimplemented
* Update src/flow/clippy.toml
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: WUJingdi <taylor-lagrange@qq.com >
Co-authored-by: discord9 <discord9@163.com >
Co-authored-by: evenyag <realevenyag@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-18 12:07:18 +00:00
Weny Xu
510782261d
refactor: avoid unnecessary cloning ( #3734 )
...
refactor: using `TxnOpGetResponseSet`
2024-04-18 09:02:28 +00:00
Jeremyhi
20e8c3d864
chore: remove TableIdProvider ( #3733 )
2024-04-18 05:36:37 +00:00
Weny Xu
2a2a44883f
refactor(meta): Ensure all moving values remain unchanged between two transactions ( #3727 )
...
* feat: implement `move_values`
* refactor: using `move_values`
* refactor: refactor executor
* chore: fix clippy
* refactor: remove `CasKeyChanged` error
* refactor: refactor `move_values`
* chore: update comments
* refactor: do not compare `dest_key`
* chore: update comments
* chore: apply suggestions from CR
* chore: remove `#[inline]`
* chore: check length of keys and dest_key
2024-04-18 05:35:54 +00:00
maco
4248dfcf36
feat: support invalidate schema name key cache ( #3725 )
...
* feat: support invalidate schema name key cache
* fix: remove pub for invalidate_schema_cache
* refactor: add DropMetadataBroadcast State Op
* fix: delete files
2024-04-18 04:02:06 +00:00
Yohan Wal
64945533dd
feat: add tinytext, mediumtext and longtext data types ( #3731 )
2024-04-18 03:15:21 +00:00
Yohan Wal
ffc8074556
feat(fuzz): enable create-if-not-exists option ( #3732 )
2024-04-18 02:50:57 +00:00
Ruihang Xia
7e56bf250b
docs: add style guide ( #3730 )
...
* docs: add style guide
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add comments section
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add comment order
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* about error handling
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* about error logging
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-17 11:28:02 +00:00
tison
50ae4dc174
refactor: merge RegionHandleResult into RegionHandleResponse ( #3721 )
...
* refactor: merge RegionHandleResult into RegionHandleResponse
Signed-off-by: tison <wander4096@gmail.com >
* RegionResponse to api::region
Signed-off-by: tison <wander4096@gmail.com >
* order
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-04-17 10:03:20 +00:00
Ruihang Xia
16aef70089
fix: remove ttl option from metadata region ( #3726 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-17 09:13:53 +00:00
tison
786f43da91
chore: cleanup todos that should be panic ( #3720 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-04-17 05:04:14 +00:00
zyy17
3e9bda3267
ci: use greptimedb-ci-tester account ( #3719 )
2024-04-16 14:43:17 +00:00
Eugene Tolbakov
89d58538c7
chore(mito): set null value data size to i64 ( #3722 )
...
* chore(mito): set null value data size to i64
* chore(mito): move comment to a relevant place
2024-04-16 14:40:16 +00:00
Weny Xu
d12379106e
feat(drop_table): support to rollback table metadata ( #3692 )
...
* feat: support to rollback table metadata
* refactor: store table route value instead of physical table route
* feat(drop_table): support to rollback table metadata
* test: add rollback tests for drop table
* fix: do not set region to readonly
* test: add sqlness tests
* feat: implement TombstoneManager
* test: add tests for TombstoneManager
* refactor: using TombstoneManager
* chore: remove unused code
* fix: fix typo
* refactor: using `on_restore_metadata`
* refactor: add `executor` to `DropTableProcedure`
* refactor: simplify the `TombstoneManager`
* refactor: refactor `Key`
* refactor: carry more info
* feat: add `destroy_table_metadata`
* refactor: remove redundant table_route_value
* feat: ensure the key is empty
* feat: introcude `table_metadata_keys`
* chore: carry more info
* chore: remove clone
* chore: apply suggestions from CR
* feat: delete metadata tombstone
2024-04-16 09:22:41 +00:00
Weny Xu
64941d848e
fix(alter_table): ignore request outdated error ( #3715 )
2024-04-16 08:18:38 +00:00
Ruihang Xia
96a40e0300
feat: check partition rule ( #3711 )
...
* feat: check partition rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy and fmt
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* correct test comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-16 08:13:49 +00:00
Yingwen
d2e081c1f9
docs: update memtable config example ( #3712 )
2024-04-16 07:26:20 +00:00
tison
cdbdb04d93
refactor: remove redundant try_flush invocations ( #3706 )
...
* refactor: remove redundant try_flush invocations
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-04-16 06:35:55 +00:00
Lei, HUANG
5af87baeb0
feat: add filter_deleted option to avoid removing deletion markers ( #3707 )
...
* feat: add `filter_deleted` scan option to avoid removing deletion markers.
* refactor: move sort_batches_and_print to test_util
2024-04-16 06:34:41 +00:00
maco
d5a948a0a6
test: Add tests for KvBackend trait implement ( #3700 )
...
* test: add etcd
* optimize code
* test: add etcd tests
* fix: typos
* fix: taplo error and clippy
* avoid print
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-15 10:51:59 +00:00
Eugene Tolbakov
bbea651d08
feat(promql): parameterize lookback ( #3630 )
...
* feat(promql): parameterize lookback
* chore(promql): address CR, adjusted sqlness
* chore(promql): fmt
* chore(promql): fix accidental removal
* fix(promql): address CR
* fix(promql): address CR
* feat(promql): add initial lookback parameter grpc support
* fix: update greptime-proto revision
* chore: restore accidental removal
2024-04-15 09:11:21 +00:00
zyy17
8060c81e1d
refactor: use toml2docs to generate config docs ( #3704 )
...
* refactor: use toml2docs to generate config docs
* ci: add docs check in 'check-typos-and-docs'
2024-04-15 09:08:32 +00:00
Jeremyhi
e6507aaf34
chore: debt 3696 ( #3705 )
2024-04-15 09:02:19 +00:00
Jeremyhi
87795248dd
feat: get metasrv clusterinfo ( #3696 )
...
* feat: add doc for MetasrvOptions
* feat: register candidate before election
* feat: get all peers metasrv
* chore: simply code
* chore: proto rev
* Update src/common/meta/src/cluster.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* Update src/meta-client/src/client.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* fmt
Signed-off-by: tison <wander4096@gmail.com >
* Apply suggestions from code review
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* impl<T: AsRef<[u8]>> From<T> for LeaderValue
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-15 08:10:48 +00:00
irenjj
7a04bfe50a
feat: add strict mode to validate protocol strings ( #3638 )
...
* feat: add strict mode to validate protocol strings
* hotfix: fix test
* fix: fix return pair and test param
* test: add test for utf-8 validation
* fix: cargo check
* Update src/servers/src/prom_row_builder.rs
Co-authored-by: Eugene Tolbakov <ev.tolbakov@gmail.com >
* fix: fix param of without_strict_mode
* fix: change field name in HttpOptions
* fix: replace if else with match
* fix: replace all strict_mode with is_stirct_mode
* fix: fix test_config_api
* fix: fix bench, add vm handshake, catch error
---------
Co-authored-by: Eugene Tolbakov <ev.tolbakov@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-15 07:53:48 +00:00
Yingwen
2f4726f7b5
refactor: Move manifest manager lock to MitoRegion ( #3689 )
...
* feat: remove manager inner wip
* feat: put manifest lock in region
* feat: don't update manifest if manager is stopped
* chore: address CR comments
2024-04-15 05:48:25 +00:00
dennis zhuang
75d85f9915
feat: impl table_constraints table for information_schema ( #3698 )
...
* feat: impl table_constraints table for information_schema
* test: update information_schema sqlness test
* test: adds table_constraints sqlness test
2024-04-15 03:59:16 +00:00
discord9
db329f6c80
feat(flow): transform substrait SELECT&WHERE&GROUP BY to Flow Plan ( #3690 )
...
* feat: transofrm substrait SELECT&WHERE&GROUP BY to Flow Plan
* chore: reexport from common/substrait
* feat: use datafusion Aggr Func to map to Flow aggr func
* chore: remove unwrap&split literal
* refactor: split transform.rs into smaller files
* feat: apply optimize for variadic fn
* refactor: split unit test
* chore: per review
2024-04-12 07:38:42 +00:00
Ning Sun
544c4a70f8
refactor: check error type before logging ( #3697 )
...
* refactor: check error type before logging
* chore: update log level for broken pipe
* refactor: leave a debugging output for non critial error
2024-04-12 02:18:14 +00:00
dimbtp
02f806fba9
fix: cli export "create table" with quoted names ( #3684 )
...
* fix: cli export `create table` with quoted names
* add test
* apply review comments
* fix to pass check
* remove eprintln for clippy check
* use prebuilt binary to avoid compile
* ci run coverage after build
* drop dirty hack test
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-11 06:56:14 +00:00
tison
9459ace33e
ci: add CODEOWNERS file ( #3691 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-04-10 17:47:54 +00:00
Weny Xu
c1e005b148
refactor: drop table procedure ( #3688 )
...
* refactor: refactor drop table procedure
* refactor: refactor test utils
2024-04-10 12:22:10 +00:00
discord9
c00c1d95ee
chore(flow): more comments&lint ( #3680 )
...
* chore: more comments&lint
* chore: per review
* chore: remove abundant dep
2024-04-10 03:31:22 +00:00
tison
5d739932c0
chore: remove TODO that has been done ( #3683 )
...
This TODO is done by https://github.com/GreptimeTeam/greptimedb/pull/3473 .
2024-04-09 22:55:55 +00:00
Ruihang Xia
aab7367804
feat: try get pk values from cache when applying predicate to parquet ( #3286 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-09 12:53:38 +00:00
Yohan Wal
34f935df66
chore: create database api change in protobuf ( #3682 )
2024-04-09 12:11:38 +00:00
Weny Xu
fda1523ced
refactor: refactor alter table procedure ( #3678 )
...
* refactor: refactor alter table procedure
* chore: apply suggestions from CR
* chore: remove `alter_expr` and `alter_kind`
2024-04-09 10:35:51 +00:00
tison
2c0c7759ee
feat: add checksum for checkpoint data ( #3651 )
...
* feat: add checksum for checkpoint data
Signed-off-by: tison <wander4096@gmail.com >
* add test
Signed-off-by: tison <wander4096@gmail.com >
* clippy
Signed-off-by: tison <wander4096@gmail.com >
* fix: checksum should calculate on uncompressed data
Signed-off-by: tison <wander4096@gmail.com >
* address comments
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-04-09 08:32:24 +00:00
Weny Xu
2398918adf
feat(fuzz): support to create metric table ( #3617 )
...
Co-authored-by: tison <wander4096@gmail.com >
2024-04-09 06:00:04 +00:00
Ruihang Xia
50bea2f107
feat: treat all number types as field candidates ( #3670 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-09 03:28:21 +00:00
JeremyHi
1629435888
chore: unify name metasrv ( #3671 )
...
chore: unify name
2024-04-09 03:03:26 +00:00
tison
b3c94a303b
chore: add a fix-clippy Makefile target ( #3677 )
...
* chore: add a fix-clippy Makefile target
* Update Makefile
2024-04-09 02:59:55 +00:00
tison
883b7fce96
refactor: bundle the lightweight axum test client ( #3669 )
...
* refactor: bundle the lightweight axum test client
Signed-off-by: tison <wander4096@gmail.com >
* address comments
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-04-09 02:33:26 +00:00
discord9
ea9367f371
refactor(flow): func spec api&use Error not EvalError in mfp ( #3657 )
...
* refactor: func's specialization& use Error not EvalError
* docs: some pub item
* chore: typo
* docs: add comments for every pub item
* chore: per review
* chore: per reveiw&derive Copy
* chore: per review&test for binary fn spec
* docs: comment explain how binary func spec works
* chore: minor style change
* fix: Error not EvalError
2024-04-09 02:32:02 +00:00
tison
2896e1f868
refactor: pass http method to metasrv http handler ( #3667 )
...
* refactor: pass http method to metasrc http handler
Signed-off-by: tison <wander4096@gmail.com >
* update maintenance endpoint
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
* Update src/meta-srv/src/service/admin.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-04-09 02:26:42 +00:00
Lei, HUANG
183fccbbd6
chore: remove global_ttl config ( #3673 )
...
* chore: remove global_ttl config
* fix: clippy
2024-04-09 02:00:50 +00:00
Weny Xu
b51089fa61
fix: DeserializedValueWithBytes::from_inner misusing ( #3676 )
...
* fix: fix `DeserializedValueWithBytes::from_inner` misusing
* Update src/common/meta/src/key.rs
---------
Co-authored-by: tison <wander4096@gmail.com >
2024-04-09 01:48:35 +00:00
Yohan Wal
682b04cbe4
feat(fuzz): add create database target ( #3675 )
...
* feat(fuzz): add create database target
* chore(ci): add fuzz_create_database ci cfg
2024-04-09 01:33:29 +00:00
tison
e1d2f9a596
chore: improve contributor click in git-cliff ( #3672 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-04-08 18:15:00 +00:00
tison
2fca45b048
ci: setup-protoc always with token ( #3674 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-04-08 18:13:24 +00:00
Yingwen
3e1a125732
feat: add append mode to table options ( #3624 )
...
* feat: add append mode to table options
* test: add append mode test
* test: rename test tables
* chore: Add delete test for append mode
2024-04-08 13:42:58 +00:00
Mofeng
34b1427a82
fix(readme): fix link of Ingester-js ( #3668 )
2024-04-08 12:17:44 +00:00
discord9
28fd0dc276
feat(flow): render map&related tests ( #3581 )
...
* feat: render map&related tests
* chore: license header
* chore: update Cargo.lock&remove unused
* refactor: rename ComputeState to DataflowState
* chore: use org fork
* chore: fix typos
* chore: per review
* chore: more explain to use `VecDeque` in err collector
* chore: typos
* chore: more comment on `Plan::Let`
* chore: typos
* refactor mfp rendering
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: update `now` in closure
* feat: use insert_local
* chore: remove unused
* chore: per review
* chore: fmt comment
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
2024-04-08 11:36:07 +00:00
Weny Xu
32b9639d7c
feat(procedure): support to rollback ( #3625 )
...
* feat: add rollback method
* refactor: simplify the state control
* feat(procedure): support to rollback
* test: add tests for rollback
* feat: persist rollback procedure state
* feat: rollback procedure after restarting
* feat: add `CommitRollback`, `RollingBack` to ProcedureStateResponse
* chore: apply suggestions from CR
* feat: persist rollback error
* feat: add `is_support_rollback`
* chore: apply suggestions from CR
* chore: update greptime-proto
* chore: rename to `rollback_supported`
* chore: rename to `RollbackProcedureRecovered`
2024-04-08 11:23:23 +00:00
ZonaHe
9038e1b769
feat: update dashboard to v0.4.10 ( #3663 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2024-04-08 16:35:41 +08:00
JeremyHi
12286f07ac
feat: cluster information ( #3631 )
...
* chore: keep the same method order in KvBackend
* feat: make meta client can get all node info of cluster
* feat: cluster info data model
* feat: frontend and datanode info
* feat: list node info
* chore: remove the method: is_started
* fix: scan key prefix
* chore: impl From for NodeInfoKey
* chore: doc for trait and struct
* chore: reuse the error
* chore: refactor two collec cluster info handlers
* chore: remove inline
* chore: refactor two collec cluster info handlers
2024-04-08 07:48:36 +00:00
tison
e920f95902
refactor: drop Table trait ( #3654 )
...
* refactor: drop Table trait
Signed-off-by: tison <wander4096@gmail.com >
* finish rename
Signed-off-by: tison <wander4096@gmail.com >
* Apply suggestions from code review
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
* Update time_range_filter_test.rs
* Update src/query/src/tests/time_range_filter_test.rs
* apply comments
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
2024-04-08 07:28:55 +00:00
Yohan Wal
c4798d1913
refactor: move create database to procedure ( #3626 )
...
* refactor: move create database to procedure
* feat: enable database creation of rpc
* chore: update the commit hash of greptime-proto
2024-04-08 07:05:55 +00:00
Ruihang Xia
2ede968c2b
chore: bump version to 0.7.2 ( #3658 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-08 06:33:29 +00:00
Yingwen
89db8c18c8
feat: Add timers to more mito methods ( #3659 )
...
* feat: add timers for more mito methods
* refactor: combine methods to get type name
2024-04-08 05:53:34 +00:00
LFC
aa0af6135d
chore: add manifest related metrics ( #3634 )
...
* chore: add two manifest related metrics
* Update src/mito2/src/manifest/manager.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/mito2/src/metrics.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: resolve PR comments
* update cargo lock
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-04-08 05:53:08 +00:00
dennis zhuang
87e0189e58
fix!: columns table in information_schema misses some columns ( #3639 )
...
* fix: columns table in information_schema misses some columns
* fix: test_information_schema_dot_columns
* fix: fuzz test
* feat: adds srs_id and refactor some columns with constant vector
* fix: test_information_schema_dot_columns
* chore: update comment
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* build(deps): bump h2 from 0.3.24 to 0.3.26 (#3642 )
Bumps [h2](https://github.com/hyperium/h2 ) from 0.3.24 to 0.3.26.
- [Release notes](https://github.com/hyperium/h2/releases )
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.26/CHANGELOG.md )
- [Commits](https://github.com/hyperium/h2/compare/v0.3.24...v0.3.26 )
---
updated-dependencies:
- dependency-name: h2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump whoami from 1.4.1 to 1.5.1 (#3643 )
Bumps [whoami](https://github.com/ardaku/whoami ) from 1.4.1 to 1.5.1.
- [Changelog](https://github.com/ardaku/whoami/blob/v1/CHANGELOG.md )
- [Commits](https://github.com/ardaku/whoami/compare/v1.4.1...v1.5.1 )
---
updated-dependencies:
- dependency-name: whoami
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: adding victoriametrics remote write (#3641 )
* feat: adding victoria metrics remote write
* test: add e2e tests for prom and vm remote writes
* fix: construct correct pk list with pre-existing pk (#3614 )
* fix: construct correct pk list with pre-existing pk
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update UT
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* test(sqlness): release databases after tests (#3648 )
* refactor: rename Greptime_Type to Greptime_type
---------
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ning Sun <sunng@protonmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-04-08 03:20:49 +00:00
tison
7e8e9aba9d
chore: generate release notes with git-cliff ( #3650 )
...
* chore: generate release notes with git-cliff
Signed-off-by: tison <wander4096@gmail.com >
* chore: newlines
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-04-08 03:09:35 +00:00
tison
c93b76ae5f
ci: bump license header checker action version ( #3655 )
2024-04-08 10:38:03 +08:00
Weny Xu
097a0371dc
test(sqlness): release databases after tests ( #3648 )
2024-04-07 09:35:34 +00:00
Ruihang Xia
b9890ab870
fix: construct correct pk list with pre-existing pk ( #3614 )
...
* fix: construct correct pk list with pre-existing pk
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update UT
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-07 08:11:52 +00:00
Ning Sun
b32e0bba9c
feat: adding victoriametrics remote write ( #3641 )
...
* feat: adding victoria metrics remote write
* test: add e2e tests for prom and vm remote writes
2024-04-07 07:09:21 +00:00
dependabot[bot]
fe1a0109d8
build(deps): bump whoami from 1.4.1 to 1.5.1 ( #3643 )
...
Bumps [whoami](https://github.com/ardaku/whoami ) from 1.4.1 to 1.5.1.
- [Changelog](https://github.com/ardaku/whoami/blob/v1/CHANGELOG.md )
- [Commits](https://github.com/ardaku/whoami/compare/v1.4.1...v1.5.1 )
---
updated-dependencies:
- dependency-name: whoami
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-05 19:02:36 -07:00
dependabot[bot]
11995eb52e
build(deps): bump h2 from 0.3.24 to 0.3.26 ( #3642 )
...
Bumps [h2](https://github.com/hyperium/h2 ) from 0.3.24 to 0.3.26.
- [Release notes](https://github.com/hyperium/h2/releases )
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.26/CHANGELOG.md )
- [Commits](https://github.com/hyperium/h2/compare/v0.3.24...v0.3.26 )
---
updated-dependencies:
- dependency-name: h2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-05 19:02:19 -07:00
dimbtp
86d377d028
fix: move object store read/write timer into inner ( #3627 )
...
* fix: move object store read/write timer into inner
* add Drop for PrometheusMetricWrapper
* call await on async read/write
* apply review comments
* git rid of option on timer
2024-04-03 12:24:34 +00:00
Lei, HUANG
ddeb73fbb7
fix: mistakely removes compaction inputs on failure ( #3635 )
...
* fix: mistakely removes compaction inputs on failure
* test: add test for compaction failure
---------
Co-authored-by: evenyag <realevenyag@gmail.com >
2024-04-03 11:54:20 +00:00
niebayes
d33435fa84
feat: introduce wal benchmarker ( #3446 )
...
* feat: introduce wal benchmarker
* chore: add log store metrics
* chore: add some comments to wal benchmarker
* fix: ci
* chore: add more metrics for kafka logstore
* chore: add more timers for kafka logstore
* chore: add more configs
* chore: move humantime to common dependencies
* refactor: refactor wal benchmarker
* fix: apply suggestions from code review
* doc: add a simple README for wal benchmarker
* fix: Cargo.toml
* fix: clippy
* chore: rename wal.rs to wal_bench.rs
* fix: compile
2024-04-03 03:16:05 +00:00
Weny Xu
a0f243c128
feat(procedure): enable auto split large value ( #3628 )
...
* chore: add comments
* chore: remove `pub`
* chore: rename to `merge_multiple_values`
* chore: fix typo
* feat(procedure): enable auto split large value
* chore: apply suggestions from CR
* chore: rename to `max_metadata_value_size`
* chore: remove the NoneAsEmptyString
* chore: set default max_metadata_value_size to 1500KiB
2024-04-02 12:13:59 +00:00
JeremyHi
a61fb98e4a
refactor: alter logical tables ( #3618 )
...
* refactor: on prepare
* refactor: on create regions
* refactor: update metadata
2024-04-02 06:21:34 +00:00
Weny Xu
6c316d268f
feat(procedure): auto split large value to multiple values ( #3605 )
...
* feat: implement MultipleValuesStream
* refactor: move KeySet to common-procedure
* refactor: move MultipleValuesStream to common-procedure
* refactor: refactor String to KeySet
* fix: fix dropping `collecting` unexpectedly
* fix: fix typo
* refactor: add the fast path of put
* refactor: remove `single_value_collector`
* refactor: use `extend` instead of `push`
* test: add more tests for `KvStateStore`
* test(etcd_store): add more tests for `KvStateStore`
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* refactor: refactor with async_stream
* Update src/common/procedure/src/store/util.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-04-01 12:04:29 +00:00
Lei, HUANG
5e24448b96
feat: reject invalid timestamp ranges in copy statement ( #3623 )
...
* chore: reject invalid timestamp ranges in copy statement
* tests: add unit tests
2024-04-01 08:25:31 +00:00
JohnsonLee
d6b2d1dfb8
feat: Support outputting various date styles for postgresql ( #3602 )
...
* test: add integration_test for datetime style
* feat: support various datestyle for postgres
* doc: rewrite the comment about merge_datestyle_value
* test: add more test to illustrate valid datestyle input
2024-04-01 07:31:36 +00:00
Yingwen
bfd32571d9
fix: run purge jobs in another scheduler ( #3621 )
2024-04-01 03:18:14 +00:00
JeremyHi
0eb023bb23
feat: group requests by peer ( #3619 )
2024-04-01 03:10:22 +00:00
dennis zhuang
4a5bb698a9
feat: impl show index and show columns ( #3577 )
...
* feat: impl show index and show columns
* fix: show index from database
* fix: canonicalize table name
* refactor: show parsers
2024-03-29 18:34:52 +00:00
Eugene Tolbakov
18d676802a
feat(function): add timestamp epoch integer support for to_timezone ( #3620 )
...
* feat(function): add timestamp epoch integer support for to_timezone
* chore: fmt
2024-03-29 18:33:24 +00:00
JeremyHi
93da45f678
feat: let alter table procedure can only alter physical table ( #3613 )
...
* feat: let alter table procedure can only alter physicale table
* chore: rm unnecessary todo
2024-03-29 09:50:33 +00:00
Ruihang Xia
7a19f66be0
ci: ignore type in sqlness sql and result files ( #3616 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-29 09:39:37 +00:00
Ning Sun
500f9f10fc
feat: allow cross-schema query in promql ( #3545 )
...
* feat: add __schema__ tag for promql parser
* feat: disable matcher op other than equals
* test: add more test to ensure context getting reset
* test: add integration test
* test: refactor tests
* refactor: remove duplicated test code
* refactor: update according to review comments
* test: add sqlness test for cross schema scenario
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-29 07:41:01 +00:00
JeremyHi
f49cd0ca18
refactor: cache invalidator ( #3611 )
...
* chore: remove some alias
* refactor: cache invalidator
2024-03-29 07:33:51 +00:00
Yingwen
ffbb132f27
feat: Implement an unordered scanner for append mode ( #3598 )
...
* feat: ScanInput
* refactor: seq scan use scan input
* chore: implement unordered scan
* feat: use unordered scan for append table
* fix: unordered scan panic
* docs: update mermaid
* chore: address comment
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2024-03-29 07:25:35 +00:00
Eugene Tolbakov
14267c2aed
feat(tql): add initial support for start,stop,step as sql functions ( #3507 )
...
* feat(tql): add initial support for start,stop,step as sql functions
* fix(tql): remove unwraps, adjust fmt
* fix(tql): address taplo issue
* feat(tql): update parse_tql_query logic
* fix(tql): change query parsing logic to use parser instead of delimiter
* fix(tql): add timestamp function support, add sqlness tests
* fix(tql): add lookback optional param for tql eval
* fix(tql): adjust tests for now() function
* fix(tql): introduce the tqlerror to differentiate failures on parsing, evaluation and simplification stages
* fix(tql): add tests for explain/analyze
* feat(tql): add lookback support for explain/analyze, update tests
* feat(tql): add more sqlness tests
* chore(tql): extract common logic for eval, analyze and explain into a single function
* feat(tql): address CR points
* feat(tql): use snafu for tql errors, add more docs
* feat(tql): address CR points
2024-03-29 06:37:25 +00:00
Ruihang Xia
77cc7216af
feat: support 2+2 and /status/buildinfo ( #3604 )
...
* feat: implement buildinfo endpoint
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor prom result struct
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more integration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* format toml file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/servers/src/http/prometheus_resp.rs
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-29 06:31:39 +00:00
Zhenchi
63681f0e4d
refactor(table): remove unused table requests ( #3603 )
...
* refactor(table): remove unused requests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* update comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: clippy
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: compile
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-03-28 11:31:14 +00:00
Ruihang Xia
06a90527a3
fix: adjust status code to http error code map ( #3601 )
...
* fix: adjust status code to http error code map
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update integration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-28 08:54:51 +00:00
niebayes
d5ba2fcf9d
test: add more integration test for kafka wal ( #3190 )
...
* test: add integration tests for kafka wal
* chore: rebase main
* chore: unify naming convention for wal config
* chore: add register loaders switch
* chore: alter tables by adding a new column
* chore: move rand to dev-dependencies
* chore: update Cargo.lock
2024-03-28 06:55:18 +00:00
dennis zhuang
e3b37ee2c9
fix: canonicalize catalog and schema names ( #3600 )
2024-03-28 06:40:15 +00:00
dennis zhuang
5d7ce08358
feat: adds metric engine to information_schema engines table ( #3599 )
...
* feat: adds metric engine to information_schema engines table
* fix: support value for metric engine
2024-03-28 06:37:34 +00:00
JeremyHi
92a8e863de
chore: do not reply for broadcast msg ( #3595 )
2024-03-27 11:39:23 +00:00
JeremyHi
9428cb8e7c
feat: remove support for logical tables in the create table procedure ( #3592 )
...
* feat: Remove support for logical tables in the create table procedure
* chore: remove the redandent table ids alloc
* chore: minor fix
2024-03-27 10:03:42 +00:00
Weny Xu
5addb7d75a
test: add tests for drop databases ( #3594 )
...
* refactor: minimize visibility of drop database steps
* feat: implement as_any
* refactor: move common functions to test_util
* test: add tests for drop databases
* fix: fix deteling physical table route unexpectedly
2024-03-27 09:18:37 +00:00
Weny Xu
623c930736
refactor: refactor drop table executor ( #3589 )
...
* refactor: refactor drop table executor
* chore: apply suggestions from CR
2024-03-27 06:29:54 +00:00
JeremyHi
5fa01e7a96
feat: create regions persist true ( #3590 )
...
* feat: change open-region-step's status persist as true
* feat: avoid cloning
* fix: fix unit test
2024-03-27 06:26:58 +00:00
Yingwen
922b1a9b66
feat: Implement append mode for a region ( #3558 )
...
* feat: add dedup option to merge reader
* test: test merger
* feat: append mode option
* feat: implement append mode for regions
* feat: only allow put under append mode
* feat: always create builder
* test: test append mode
* style: fix clippy
* test: trigger compaction
* chore: fix compiler errors
2024-03-27 03:21:22 +00:00
shuiyisong
653697f1d5
chore: add back core dependency ( #3588 )
2024-03-26 19:53:22 -07:00
JohnsonLee
83643eb195
feat: Support printing postgresql's bytea data type in its "hex" and "escape" format ( #3567 )
...
* feat: support set variable statement of session
* feat: support printing postgresql's bytea data type in its "hex" and "escape" format in ugly way
* refactor: add 'SessionConfigValue' type and unify the name
* doc: add license header
* refactor: confine coupling with 'sql::ast::Value' in SessionConfigValue
* refactor: move all bytea wrapper into bytea.rs
* fix: remove unused import in context.rs and postgres.rs
* refactor: rename 'set_configuration_parameter' to 'set_session_config'
rename 'set_configuration_parameter' in statement_.rs to 'set_session_config'
* refactor: use mod to organize options via macro
* refactor: re-model the session config value with static type
* test: add integration test
* refactor: move the encode bytea by format type logic into encoder
refactor: use Arc<DashMap> instead of DashMap in QueryContext
refactor: use Arc<DashMap> instead of DashMap in QueryContext
Avoid expensive clone
refactor: use unreachable!() instead of unimplemented!()
refactor: move the encode bytea by format type logic into encoder
test: add binary format integration test case
* test: add ut for byte related type
* doc: remove TODO of bytea_output
* refactor: simplify the implementation with simple struct instead of complex typing
* fix: typo of 'Available'
* fix compile
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-03-27 01:54:41 +00:00
tison
d83279567b
feat(auth): watch file user provider ( #3566 )
...
* feat(auth): watch file user provider
Signed-off-by: tison <wander4096@gmail.com >
* impl
Signed-off-by: tison <wander4096@gmail.com >
* use debouncer
Signed-off-by: tison <wander4096@gmail.com >
* add test
Signed-off-by: tison <wander4096@gmail.com >
* clippy
Signed-off-by: tison <wander4096@gmail.com >
* add path for FileWatch snafu
Signed-off-by: tison <wander4096@gmail.com >
* Apply comments
Signed-off-by: tison <wander4096@gmail.com >
* fix compile
Signed-off-by: tison <wander4096@gmail.com >
* drop notify-debouncer-full dep
Signed-off-by: tison <wander4096@gmail.com >
* empty to allow all
Signed-off-by: tison <wander4096@gmail.com >
* more test and log
Signed-off-by: tison <wander4096@gmail.com >
* relax the wait period
Signed-off-by: tison <wander4096@gmail.com >
* avoid sleep
Signed-off-by: tison <wander4096@gmail.com >
* Revert "avoid sleep"
This reverts commit d7a0be1dea .
* avoid sleep
Signed-off-by: tison <wander4096@gmail.com >
* cargo fmt
Signed-off-by: tison <wander4096@gmail.com >
* tidy dep
Signed-off-by: tison <wander4096@gmail.com >
* adjust
Signed-off-by: tison <wander4096@gmail.com >
* try be stable on CI
Signed-off-by: tison <wander4096@gmail.com >
* deugging
Signed-off-by: tison <wander4096@gmail.com >
* debugging
Signed-off-by: tison <wander4096@gmail.com >
* watch on the dir
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-03-27 01:19:18 +00:00
tison
150454b1fd
chore: Delete CODE_OF_CONDUCT.md ( #3578 )
...
Leverage GitHub's feature to reuse `GreptimeTeam/.github` content.
This depends on https://github.com/GreptimeTeam/.github/pull/5 .
2024-03-26 09:43:05 -07:00
JeremyHi
58c7858cd4
feat: update physical table schema on alter logical tables ( #3585 )
...
* feat: update physical table schema on alter
* feat: alter logical table in sql path
* feat: invalidate cache step1
* feat: invalidate cache step2
* feat: invalidate cache step3
* feat: invalidate cache step4
* fix: failed ut
* fix: standalone cache invalidator
* feat: log the count of already finished
* feat: re-invalidate cache
* chore: by comment
* chore: Update src/common/meta/src/ddl/create_logical_tables.rs
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-03-26 14:29:53 +00:00
dimbtp
dd18d8c97b
build(deps): remove some unused dependencies ( #3582 )
...
* build(deps): remove some unused dependencies
* add `arc-swap` dependency back
2024-03-26 12:48:28 +00:00
Lei, HUANG
175929426a
feat: support time range in copy table ( #3583 )
...
* feat: support specifying time range in copy table statement
* chore: update sqlness results
* fix: sqlness
2024-03-26 11:24:28 +00:00
Ruihang Xia
8f9676aad2
fix: incorrect version info in ( #3586 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-26 09:31:01 +00:00
Ruihang Xia
74565151e9
fix: update pk_cache in compat reader ( #3576 )
...
* fix: update pk_cache in compat reader
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update document
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* avoid mysterious bug
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-26 08:31:00 +00:00
Ruihang Xia
83c1b485ea
chore: limit OpenDAL's feature gates ( #3584 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-26 07:54:06 +00:00
JeremyHi
c2dd1136fe
feat: batch alter logical tables ( #3569 )
...
* feat: add unit test for alter logical tables
* Update src/common/meta/src/ddl/alter_table.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* feat: add some comments
* chore: add debug_assert_eq
* chore: fix some nits
* chore: remove the method batch_get_table_routes
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-26 07:07:23 +00:00
tison
7c1c6e8b8c
refactor: try upgrade regex-automata ( #3575 )
...
* refactor: try upgrade regex-automata
Signed-off-by: tison <wander4096@gmail.com >
* try fix
Signed-off-by: tison <wander4096@gmail.com >
* always check match with next_eoi_state
Signed-off-by: tison <wander4096@gmail.com >
* add a guard to prevent over moving the state
Signed-off-by: tison <wander4096@gmail.com >
* tidy
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-03-26 04:28:14 +00:00
Yingwen
62d8bbb10c
ci: use single commit on the deployment branch ( #3580 )
2024-03-25 21:04:57 -07:00
Weny Xu
bf14d33962
feat: implement the drop database procedure ( #3541 )
...
* refactor: remove Sync trait of Procedure
* refactor: remove unnecessary async
* feat: implement the drop database procedure
* refactor: refactor DdlManager register_loaders
* feat: register the DropDatabaseProcedureLoader
* chore: fmt toml
* feat: support to submit DropDatabaseTask
* feat: support drop database stmt
* fix: empty the tables stream
* fix: ensure the factory always exists
* test: update sqlness results
* chore: correct comments
* test: update sqlness results
* test: update sqlness results
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-03-25 06:12:47 +00:00
tison
0f1747b80d
chore: retain original headers ( #3572 )
...
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-03-25 03:53:51 +00:00
Ruihang Xia
992c7ec71b
feat: update physical table's schema on creating logical table ( #3570 )
...
* feat: update physical table's schema on creating logical table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove debug code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tweak ut const
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* invalid physical table cache
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-25 03:19:30 +00:00
x³u³
2ad0b24efa
fix: set http response chartset to utf-8 when using table format ( #3571 )
2024-03-25 03:13:01 +00:00
Ruihang Xia
2b2fd80bf4
feat: return new added columns in region server's extension response ( #3533 )
...
* feat: adapt the new proto response
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update interfaces
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* write columns to extension
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use physical column's schema
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sort logical columns by name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* format code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* return physical table's column
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/common/meta/src/datanode_manager.rs
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* implement sort column logic
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* proxy create table procedure to create logical table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add unit test for sort_columns
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2024-03-23 09:31:16 +00:00
x³u³
24886b9530
test: add a parameter type mismatch test case to sql integration test ( #3568 )
2024-03-22 17:43:20 +00:00
tison
8345f1753c
chore: avoid confusing TryFrom ( #3565 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-03-22 11:16:36 +00:00
tison
3420a010e6
refactor: reduce one clone by carefully pass ready boundary ( #3543 )
...
* refactor: reduce one clone by carefully pass ready boundary
Signed-off-by: tison <wander4096@gmail.com >
* defensive handle None
Signed-off-by: tison <wander4096@gmail.com >
* tidy code a bit
Signed-off-by: tison <wander4096@gmail.com >
* except batch exist
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-03-22 04:46:17 +00:00
discord9
9f020aa414
fix(flow): Arrange get range with batch unaligned ( #3552 )
...
* fix: Arrange get range with batch unaligned
* chore: per review
* refactor: sort at apply_updates
2024-03-22 04:08:37 +00:00
tison
c9ac72e7f8
ci: use a PAT to list all writers ( #3559 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-03-21 20:25:01 -07:00
Lei, HUANG
86fb9d8ac7
refactor: remove redudant PromStoreProtocolHandler::write ( #3553 )
...
refactor: remove redudant PromStoreProtocolHandler::write API and rename PromStoreProtocolHandler::write_fast to write
2024-03-22 02:09:00 +00:00
Lei, HUANG
1f0fc40287
fix: performance degradation caused by config change ( #3556 )
2024-03-21 12:23:52 +00:00
tison
8b7a5aaa4a
refactor: handle error for http format ( #3548 )
...
* refactor: handle error for http format
Signed-off-by: tison <wander4096@gmail.com >
* finish format handling
Signed-off-by: tison <wander4096@gmail.com >
* simplify auth error
Signed-off-by: tison <wander4096@gmail.com >
* fix
Signed-off-by: tison <wander4096@gmail.com >
* clippy format
Signed-off-by: tison <wander4096@gmail.com >
* no longer set greptime-db-format on influxdb error
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-03-21 07:29:11 +00:00
Weny Xu
856a4e1e4f
refactor: refactor CacheInvalidator ( #3550 )
...
* refactor: refactor InvalidateCache Instruction
* refactor: refactor CacheInvalidator
2024-03-20 10:18:28 +00:00
Yingwen
39b69f1e3b
refactor!: Renames the new memtable to PartitionTreeMemtable ( #3547 )
...
* refactor: rename mod merge_tree to partition_tree
* refactor: rename merge_tree
* refactor: change merge tree comment
* refactor: rename merge tree struct
* refactor: memtable options
2024-03-20 06:40:41 +00:00
tison
bbcdb28b7c
chore: fix comment in fetch-dashboard-assets.sh ( #3546 )
2024-03-20 06:18:14 +00:00
YCCD
6377982501
feat: Able to pretty print sql query result in http output ( #3539 )
...
* feat: Able to pretty print sql query result in http output
* fix: add some tests
* fix: add some space, delete fn into_payload, and impl Display for TableResponse
2024-03-20 03:25:17 +00:00
Lei, HUANG
ddbcff68dd
feat: support append-only mode in time-series memtable ( #3540 )
...
* feat: support append-only mode in time-series memtable
* fix: rename sort_and_dedup to sort
2024-03-19 20:37:54 +00:00
WU Jingdi
5b315c2d40
feat: support multi params in promql range function macro ( #3464 )
...
feat: support multi params in promql range function
2024-03-19 20:36:51 +00:00
Ruihang Xia
9816d2a08b
fix: clone data instead of moving it - homemade future is dangerous ( #3542 )
...
* fix: clone data instead of moving it - homemade future is dangerous
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add comment
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-19 13:46:55 +00:00
Ning Sun
a99d6eb3f9
feat: update pgwire to 0.20 for improved performance ( #3538 )
2024-03-19 10:11:05 +00:00
discord9
2c115bc22a
feat(flow): shared in-memory state for dataflow operator ( #3508 )
...
* feat: Arrangement shared state
* feat: arrange&tests
* docs: detailed&tests for get
* chore: license
* refactor: opt out ts expr&tests: internal ts
* docs: remove some TODOs
* feat: use smallvec size of 2
* refactor: per review
* chore: per review
* chore: per review
* chore: remove reduant clone
* feat: return max expire time&docs: more explain cur expire config
2024-03-19 10:03:05 +00:00
Yingwen
641592644d
feat: support per table memtable options ( #3524 )
...
* feat: add memtable builder to region
* refactor: rename memtable_builder in worker to default_memtable_builder
* fix: return error instead of using default compaction options
Support deserializing memtable and compaction options from the option
map
* feat: optional memtable options
* feat: add MemtableBuilderProvider to create builders
* feat: change default memtable and skip deserializing dedup
* chore: update test and comment
* chore: test invalid type
* feat: metric engine use new memtable manually
* feat: expose more memtable configs
* feat: add memtable options to valid option list
* test: add test
* test: sqlness test
* chore: serde workspace
* chore: remove comments
2024-03-19 08:50:10 +00:00
Weny Xu
fa0f3555d4
refactor: introduce the DropTableExecutor ( #3534 )
...
* refactor: introduce the DropTableExecutor
* fix: register the dropping regions
* test: add tests for on_prepare
* chroe: add TODO comment
2024-03-19 08:29:12 +00:00
ZonaHe
3cad844acd
feat: update dashboard to v0.4.9 ( #3531 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2024-03-19 03:18:42 +00:00
JeremyHi
cf25cf984b
chore: avoid unnecessary cloning ( #3537 )
2024-03-18 13:24:13 +00:00
shuiyisong
3acd5bfad0
chore: http header with metrics ( #3536 )
...
* chore: bring write cost to output
* chore: add write cost to greptimev1result
* chore: add metrics to influxdb write resp header
* chore: add metrics to prom store
* chore: add metrics to otlp
* chore: add debug log
* fix: prom remote read with output
* fix: prom queries don't output metrics header
* chore: extract header value
* chore: refactor code
* chore: fix cr issue
2024-03-18 11:21:19 +00:00
Weny Xu
343525dab8
refactor: remove removed-prefixed keys ( #3535 )
2024-03-18 11:07:30 +00:00
tison
0afac58e4d
feat(metasrv): implement maintenance ( #3527 )
...
* feat(metasrv): implement maintenance
Signed-off-by: tison <wander4096@gmail.com >
* fixup and test
Signed-off-by: tison <wander4096@gmail.com >
* Add coauthors
Co-authored-by: Yingwen <realevenyag@gmail.com >
Co-authored-by: xifyang <595482900@qq.com >
* tidy code
Signed-off-by: tison <wander4096@gmail.com >
* Apply suggestions from code review
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
* always read kv_backend maintenance state
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
Co-authored-by: xifyang <595482900@qq.com >
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
2024-03-18 09:41:14 +00:00
tison
393ea44de0
docs: improve fn comments ( #3526 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-03-18 03:18:01 +00:00
tison
44731fd653
docs: readme style and project status ( #3528 )
...
* docs: readme style
Signed-off-by: tison <wander4096@gmail.com >
* more opening
Signed-off-by: tison <wander4096@gmail.com >
* Project Status
Signed-off-by: tison <wander4096@gmail.com >
* tidy
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-03-18 03:03:25 +00:00
tison
d36a5a74d3
ci: unassign issues stale 14 days ago ( #3529 )
...
This closes https://github.com/GreptimeTeam/greptimedb/issues/3525 .
2024-03-18 03:01:10 +00:00
Yingwen
74862f8c3f
feat(mito): Checks whether a region should flush periodically ( #3459 )
...
* feat: handle flush periodically
* chore: call periodical method in loop
* feat: check periodical tasks on channel timeout
* refactor: use time provider to get time
Mock a time provider to test auto flush
* chore: fix typos
* refactor: rename mock time provider
* style: fix cilppy
* chore: address comment
2024-03-15 06:41:28 +00:00
Weny Xu
a52aedec5b
feat: implement the drop database parser ( #3521 )
...
* refactor: refactor drop table parser
* feat: implement drop database parser
* fix: canonicalize name of create database
* test: update sqlness result
* Update src/operator/src/statement.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-15 06:15:18 +00:00
tison
b6fac619a6
docs: revise README file ( #3522 )
...
* docs: revise README file
Signed-off-by: tison <wander4096@gmail.com >
* build prerequisite
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-03-15 04:22:35 +00:00
Weny Xu
a29e7ebb7d
feat: acquire all locks in procedure ( #3514 )
...
* feat: acquire catalog and schema lock in region failover
* chore: remove unused code
* feat!: acquire catalog and schema lock in region migration
* feat: acquire catalog and schema lock in create table
2024-03-14 11:41:23 +00:00
Yingwen
8ca9e01455
feat: Partition memtables by time if compaction window is provided ( #3501 )
...
* feat: define time partitions
* feat: adapt time partitions to version
* feat: implement non write methods
* feat: add write one to memtable
* feat: implement write
* chore: fix warning
* fix: inner not set
* refactor: add collect_iter_timestamps
* test: test partitions
* chore: debug log
* chore: fix typos
* chore: log memtable id
* fix: empty check
* chore: log total parts
* chore: update comments
2024-03-14 11:13:01 +00:00
Weny Xu
3a326775ee
ci: add bin options to reduce build burden ( #3518 )
...
chore: add bin options
2024-03-14 11:05:35 +00:00
Yingwen
5ad3b7984e
docs: add v0.7 TSBS benchmark result ( #3512 )
...
* docs: add v0.7 TSBS benchmark result
* docs: add OS
* docs: fix format
2024-03-14 08:29:52 +00:00
Yingwen
4fc27bdc75
chore: bump version to v0.7.1 ( #3510 )
...
chore: bump version
2024-03-14 07:43:47 +00:00
LFC
e3c82568e5
fix: correctly generate sequences when the value is pre-existed ( #3502 )
2024-03-14 06:55:12 +00:00
tison
61f0703af8
feat: support decode gzip if influxdb write specify it ( #3494 )
...
* feat: support dedoce gzip if influxdb write specify it
Signed-off-by: tison <wander4096@gmail.com >
* address comments
Signed-off-by: tison <wander4096@gmail.com >
* simplify with tower_http DecompressionLayer
Signed-off-by: tison <wander4096@gmail.com >
* tidy some code
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-03-14 04:26:26 +00:00
Ruihang Xia
b85d7bb575
fix: decoding prometheus remote write proto doesn't reset the value ( #3505 )
...
* reset Sample
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* accomplish test assertion
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* revert toml format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-14 03:08:14 +00:00
Ning Sun
d334d74986
fix!: remove error message from http header to avoid panic ( #3506 )
...
fix: remove error message from http header
2024-03-14 01:43:38 +00:00
Ning Sun
5ca8521e87
ci: attempt to setup docker cache for etcd ( #3488 )
...
* ci: attempt to setup docker cache for etcd
* ci: do not use file hash for cache key
2024-03-14 00:48:02 +00:00
Weny Xu
e4333969b4
feat(fuzz): add alter table target ( #3503 )
...
* feat(fuzz): validate semantic type of column
* feat(fuzz): add fuzz_alter_table target
* feat(fuzz): validate columns
* chore(ci): add fuzz_alter_table ci cfg
2024-03-13 14:11:47 +00:00
Zhenchi
b55905cf66
feat(fuzz): add insert target ( #3499 )
...
* fix(common-time): allow building nanos timestamp from parts split from i64::MIN
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(fuzz): add insert target
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: cleanup cargo.toml and polish comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-03-13 10:03:03 +00:00
WU Jingdi
fb4da05f25
fix: adjust fill behavior of range query ( #3489 )
2024-03-13 09:20:34 +00:00
Zhenchi
904484b525
fix(common-time): allow building nanos timestamp from parts split from i64::MIN ( #3493 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-03-13 02:46:00 +00:00
tison
cafb4708ce
refactor: validate constraints eagerly ( #3472 )
...
* chore: validate constraints eagerly
Signed-off-by: tison <wander4096@gmail.com >
* use timestamp column
Signed-off-by: tison <wander4096@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
* lint
Signed-off-by: tison <wander4096@gmail.com >
* compile
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-03-12 13:09:34 +00:00
Yingwen
7c895e2605
perf: more benchmarks for memtables ( #3491 )
...
* chore: remove duplicate bench
* refactor: rename bench
* perf: add full scan bench for memtable
* feat: filter bench and add time series to bench group
* chore: comment
* refactor: rename
* style: fix clippy
2024-03-12 12:02:58 +00:00
Lei, HUANG
9afe327bca
feat: improve prom write requests decode performance ( #3478 )
...
* feat: optimize decode performance
* fix: some cr comments
2024-03-12 12:00:38 +00:00
discord9
58bd065c6b
feat(flow): plan def ( #3490 )
...
* feat: plan def
* chore: add license
* docs: remove TODO done
* chore: add derive Ord
2024-03-12 10:59:07 +00:00
Yingwen
9aa8f756ab
fix: allow passing extra table options ( #3484 )
...
* fix: do not check options in parser
* test: fix tests
* test: fix sqlness
* test: add sqlness test
* chore: log options
* chore: must specify compaction type
* feat: validate option key
* feat: add option key validation back
2024-03-12 07:03:52 +00:00
discord9
7639c227ca
feat(flow): accumlator for aggr func ( #3396 )
...
* feat: Accumlator trait
* feat: add `OrdValue` accum&use enum_dispatch
* test: more accum test
* feat: eval aggr funcs
* chore: refactor test&fmt clippy
* refactor: less verbose
* test: more tests
* refactor: better err handling&use OrdValue for Count
* refactor: ignore null&more tests for error handle
* refactor: OrdValue accum
* chore: extract null check
* refactor: def&use fn signature
* chore: use extra cond with match guard
* chore: per review
2024-03-12 02:09:27 +00:00
tison
1255c1fc9e
feat: to_timezone function ( #3470 )
...
* feat: to_timezone function
Signed-off-by: tison <wander4096@gmail.com >
* impl Function for ToTimezoneFunction
Signed-off-by: tison <wander4096@gmail.com >
* add test
Signed-off-by: tison <wander4096@gmail.com >
* Add original authors
Co-authored-by: parkma99 <park-ma@hotmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fixup
Signed-off-by: tison <wander4096@gmail.com >
* address comments
Signed-off-by: tison <wander4096@gmail.com >
* add issue link
Signed-off-by: tison <wander4096@gmail.com >
* code refactor
Signed-off-by: tison <wander4096@gmail.com >
* further tidy
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: parkma99 <park-ma@hotmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-03-12 01:46:19 +00:00
Yingwen
06dcd0f6ed
fix: freeze data buffer in shard ( #3468 )
...
* feat: call freeze if the active data buffer in a shard is full
* chore: more metrics
* chore: print metrics
* chore: enlarge freeze threshold
* test: test freeze
* test: fix config test
2024-03-11 14:51:06 +00:00
Weny Xu
0a4444a43a
feat(fuzz): validate columns ( #3485 )
2024-03-11 11:34:50 +00:00
Ruihang Xia
b7ac8d6aa8
ci: use another mirror for etcd image ( #3486 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-11 10:40:19 +00:00
Weny Xu
e767f37241
fix: fix f64 has no sufficient precision during parsing ( #3483 )
2024-03-11 09:28:40 +00:00
JeremyHi
da098f5568
fix: make max-txn-ops limit valid ( #3481 )
2024-03-11 09:27:51 +00:00
shuiyisong
aa953dcc34
fix: impl RecordBatchStream method explicitly ( #3482 )
...
fix: impl RecordBatchStream method explicitly
2024-03-11 09:07:10 +00:00
crwen
aa125a50f9
refactor: make http api returns non-200 status code ( #3473 )
...
* refactor: make http api returns non-200 status code
* recover some code
2024-03-11 03:38:36 +00:00
Ruihang Xia
d8939eb891
feat: clamp function ( #3465 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add unit tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* a little type exercise
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-11 03:26:10 +00:00
shuiyisong
0bb949787c
refactor: introduce new Output with OutputMeta ( #3466 )
...
* refactor: introduce new output struct
* chore: add helper function
* chore: update comment
* chore: update commit
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* chore: rename according to cr
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-11 02:24:09 +00:00
WU Jingdi
8c37c3fc0f
feat: support first_value/last_value in range query ( #3448 )
...
* feat: support `first_value/last_value` in range query
* chore: add sqlness test on `count`
* chore: add test
2024-03-11 01:30:39 +00:00
gcmutator
21ff3620be
chore: remove repetitive words ( #3469 )
...
remove repetitive words
Signed-off-by: gcmutator <329964069@qq.com >
2024-03-09 04:18:47 +00:00
Eugene Tolbakov
aeca0d8e8a
feat(influxdb): add db query param support for v2 write api ( #3445 )
...
* feat(influxdb): add db query param support for v2 write api
* fix(influxdb): update authorize logic to get catalog and schema from query string
* fix(influxdb): address CR suggestions
* fix(influxdb): use the correct import
2024-03-08 08:17:57 +00:00
Weny Xu
a309cd018a
fix: fix incorrect COM_STMT_PREPARE reply ( #3463 )
...
* fix: fix incorrect `COM_STMT_PREPARE` reply
* chore: use column name instead of index
2024-03-08 07:31:20 +00:00
Yingwen
3ee53360ee
perf: Reduce decode overhead during pruning keys in the memtable ( #3415 )
...
* feat: reuse value buf
* feat: skip values to decode
* feat: prune shard
chore: fix compiler errors
refactor: shard prune metrics
* fix: panic on DedupReader::try_new
* fix: prune after next
* chore: num parts metrics
* feat: metrics and logs
* chore: data build cost
* chore: more logs
* feat: cache skip result
* chore: todo
* fix: index out of bound
* test: test codec
* fix: invalid offsets
* fix: skip binary
* fix: offset buffer reuse
* chore: comment
* test: test memtable filter
* style: fix clippy
* chore: fix compiler error
2024-03-08 02:54:00 +00:00
JeremyHi
352bd7b6fd
feat: max-txn-ops option ( #3458 )
...
* feat: max-txn-ops limit
* chore: by comment
2024-03-08 02:34:40 +00:00
Weny Xu
3f3ef2e7af
refactor: separate the quote char and value ( #3455 )
...
refactor: use ident instead of string
2024-03-07 08:24:09 +00:00
Weny Xu
a218f12bd9
test: add fuzz test for create table ( #3441 )
...
* feat: add create table fuzz test
* chore: add ci cfg for fuzz tests
* refactor: remove redundant nightly config
* chore: run fuzz test in debug mode
* chore: use ubuntu-latest
* fix: close connection
* chore: add cache in fuzz test ci
* chore: apply suggestion from CR
* chore: apply suggestion from CR
* chore: refactor the fuzz test action
2024-03-07 06:51:19 +00:00
ZonaHe
c884c56151
feat: update dashboard to v0.4.8 ( #3450 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2024-03-07 04:06:07 +00:00
Weny Xu
9ec288cab9
chore: specify binary name ( #3449 )
2024-03-07 03:56:24 +00:00
LFC
1f1491e429
feat: impl some "set"s to adapt to some client apps ( #3443 )
2024-03-06 13:15:48 +00:00
Weny Xu
c52bc613e0
chore: add bin opt to build cmd ( #3440 )
2024-03-06 08:24:55 +00:00
shuiyisong
a9d42f7b87
fix: add support for influxdb basic auth ( #3437 )
2024-03-06 03:56:25 +00:00
tison
86ce2d8713
build(deps): upgrade opendal to 0.45.1 ( #3432 )
...
* build(deps): upgrade opendal to 0.45.1
Signed-off-by: tison <wander4096@gmail.com >
* Update src/object-store/Cargo.toml
Co-authored-by: Weny Xu <wenymedia@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-03-06 03:08:59 +00:00
Yingwen
5d644c0b7f
chore: bump version to v0.7.0 ( #3433 )
2024-03-05 12:07:37 +00:00
Ruihang Xia
020635063c
feat: implement multi-dim partition rule ( #3409 )
...
* generate expr rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement show create for new partition rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement row spliter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: fix failed tests
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: fix lint issues
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: ignore tests for deprecated partition rule
* chore: remove unused partition rule tests setup
* test(sqlness): add basic partition tests
* test(multi_dim): add basic find region test
* address CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: WenyXu <wenymedia@gmail.com >
Co-authored-by: WenyXu <wenymedia@gmail.com >
2024-03-05 11:39:15 +00:00
dependabot[bot]
97cbfcfe23
build(deps): bump mio from 0.8.10 to 0.8.11 ( #3434 )
...
Bumps [mio](https://github.com/tokio-rs/mio ) from 0.8.10 to 0.8.11.
- [Release notes](https://github.com/tokio-rs/mio/releases )
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/mio/compare/v0.8.10...v0.8.11 )
---
updated-dependencies:
- dependency-name: mio
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-05 11:04:14 +00:00
Lei, HUANG
7183fa198c
refactor: make MergeTreeMemtable the default choice ( #3430 )
...
* refactor: make MergeTreeMemtable the default choice
* refactor: reformat
* chore: add doc to config
2024-03-05 10:00:08 +00:00
Lei, HUANG
02b18fbca1
feat: decode prom requests to grpc ( #3425 )
...
* hack: inline decode
* move to servers
* fix: samples lost
* add bench
* remove useless functions
* wip
* feat: remove object pools
* fix: minor issues
* fix: remove useless dep
* chore: rebase main
* format
* finish
* fix: format
* feat: introduce request pool
* try to fix license issue
* fix: clippy
* resolve comments
* fix:typo
* remove useless comments
2024-03-05 09:47:32 +00:00
shuiyisong
7b1c3503d0
fix: complete interceptors for all frontend entry ( #3428 )
2024-03-05 09:38:47 +00:00
liyang
6fd2ff49d5
ci: refine windows output env ( #3431 )
2024-03-05 08:38:28 +00:00
WU Jingdi
53f2a5846c
feat: support tracing rule sampler ( #3405 )
...
* feat: support tracing rule sampler
* chore: simplify code
2024-03-05 15:40:02 +08:00
Yingwen
49157868f9
feat: Correct server metrics and add more metrics for scan ( #3426 )
...
* feat: drop timer on stream terminated
* refactor: combine metrics into a histogram vec
* refactor: frontend grpc metrics
* feat: add metrics middleware layer to grpc server
* refactor: move http metrics layer to metrics mod
* feat: bucket for grpc/http elapsed
* feat: remove duplicate metrics
* style: fix cilppy
* fix: incorrect bucket of promql series
* feat: more metrics for mito
* feat: convert cost
* test: fix metrics test
2024-03-04 10:15:10 +00:00
Ruihang Xia
ae2c18e1cf
docs(rfcs): multi-dimension partition rule ( #3350 )
...
* docs(rfcs): multi-dimension partition rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change math block type
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update tracking issue
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update discussion
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-03-04 08:10:54 +00:00
dennis zhuang
e6819412c5
refactor: show tables and show databases ( #3423 )
...
* refactor: show tables and show databases
* chore: clean code
2024-03-04 06:15:17 +00:00
tison
2a675e0794
docs: update pull_request_template.md ( #3421 )
2024-03-03 09:51:44 +00:00
JeremyHi
0edf1bbacc
feat: reduce a clone of string ( #3422 )
2024-03-03 08:09:17 +00:00
Eugene Tolbakov
8609977b52
feat: add verbose support for tql explain/analyze ( #3390 )
...
* feat: add verbose support for tql explain/analyze
* chore: apply clippy suggestions
* feat: add sqlness tests
* fix: adjust sqlness replace rules
* fix: address CR (move tql explain/analyze inside common folder)
* fix: address CR(improve comments to indicate that verbose is optional)
2024-03-02 11:18:22 +00:00
JeremyHi
2d975e4f22
feat: tableref cache ( #3420 )
...
* feat: tableref cache
* chore: minor refactor
* chore: avoid to string
* chore: change log level
* feat: add metrics for prometheus remote write decode
2024-03-02 07:37:31 +00:00
Kould
00cbbc97ae
feat: support Create Table ... Like ( #3372 )
...
* feat: support `Create Table ... Like`
* fix: `check_permission` for `Create Table ... Like`
* style: renaming `name` -> `table_name` & `target` -> `source_name` and make `Create Table ... Like` testcase more complicated
* rebase
* avoid _ fn
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-03-02 06:34:13 +00:00
niebayes
7d30c2484b
fix: mitigate memory spike during startup ( #3418 )
...
* fix: fix memory spike during startup
* fix: allocate a region write ctx for each wal entry
2024-03-01 07:46:05 +00:00
Lei, HUANG
376409b857
feat: employ sparse key encoding for shard lookup ( #3410 )
...
* feat: employ short key encoding for shard lookup
* fix: license
* chore: simplify code
* refactor: only enable sparse encoding to speed lookup on metric engine
* fix: names
2024-03-01 06:22:15 +00:00
Ning Sun
d4a54a085b
feat: add configuration for tls watch option ( #3395 )
...
* feat: add configuration for tls watch option
* test: sleep longer to ensure async task run
* test: update config api integration test
* refactor: rename function
2024-03-01 03:49:54 +00:00
dennis zhuang
c1a370649e
fix: show table names not complete from information_schema ( #3417 )
2024-03-01 02:51:46 +00:00
JeremyHi
3cad9d989d
fix: partition region id ( #3414 )
2024-02-29 09:09:59 +00:00
JohnsonLee
a50025269f
feat: Support automatic DNS lookup for kafka bootstrap servers ( #3379 )
...
* feat: Support automatic DNS lookup for kafka bootstrap servers
* Revert "feat: Support automatic DNS lookup for kafka bootstrap servers"
This reverts commit 5baed7b01d .
* feat: Support automatic DNS lookup for Kafka broker
* fix: resolve broker endpoint in client manager
* fix: apply clippy lints
* refactor: slimplify the code with clippy hint
* refactor: move resolve_broker_endpoint to common/wal/src/lib.rs
* test: add mock test for resolver_broker_endpoint
* refactor: accept niebayes's advice
* refactor: rename EndpointIpNotFound to EndpointIPV4NotFound
* refactor: remove mock test and simplify the implementation
* docs: add comments about test_vallid_host_ipv6
* Apply suggestions from code review
Co-authored-by: niebayes <niebayes@gmail.com >
* move more common code
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
Co-authored-by: niebayes <niebayes@gmail.com >
2024-02-29 07:29:20 +00:00
JeremyHi
a3533c4ea0
feat: zero copy on split rows ( #3407 )
2024-02-28 13:27:52 +00:00
Lei, HUANG
3413fc0781
refactor: move some costly methods in DataBuffer::read out of read lock ( #3406 )
...
* refactor: move some costly methods in DataBuffer::read out of read lock
* refactor: also replace ShardReader with ShardReaderBuilder
2024-02-28 12:22:44 +00:00
tison
dc205a2c5d
feat: enable ArrowFlight compression ( #3403 )
...
* feat: enable ArrowFlight compression
Signed-off-by: tison <wander4096@gmail.com >
* turn on features
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-02-28 08:55:44 +00:00
Lei, HUANG
a0a8e8c587
fix: some read metrics ( #3404 )
...
* fix: some read metrics
* chore: fix some metrics
* fix
2024-02-28 08:47:49 +00:00
Zhenchi
c3c80b92c8
feat(index): measure memory usage in global instead of single-column and add metrics ( #3383 )
...
* feat(index): measure memory usage in global instead of single-column and add metrics
* feat: add leading zeros to streamline memory usage
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: fmt
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: remove println
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-02-28 06:49:24 +00:00
Weny Xu
a8cbec824c
refactor: refactor TableRouteManager ( #3392 )
...
* feat: introduce TableRouteStorage
* refactor: remove get & batch_get in TableRouteManager
* refactor: move txn related fn to TableRouteStorage
* chore: apply suggestions from CR
* chore(codecov): ingore tests-integration dir
2024-02-28 06:18:09 +00:00
tison
33d894c1f0
build: do not retry for connrefused ( #3402 )
...
* build: do not retry for connrefused
Signed-off-by: tison <wander4096@gmail.com >
* simplify layout
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-02-28 06:15:23 +00:00
Lei, HUANG
7942b8fae9
chore: add metris for memtable read path ( #3397 )
...
* chore: add metris for read path
* chore: add more metrics
2024-02-28 03:37:19 +00:00
Yingwen
b97f957489
feat: Use a partition level map to look up pk index ( #3400 )
...
* feat: partition level map
* test: test shard and builder
* fix: do not use pk index from shard builder
* feat: add multi key test
* fix: freeze shard before finding pk in shards
2024-02-28 03:17:09 +00:00
tison
f3d69e9563
chore: retry fetch dashboard assets ( #3394 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-02-27 10:07:21 +00:00
dennis zhuang
4b36c285f1
feat: flush or compact table and region functions ( #3363 )
...
* feat: adds Requester to process table flush and compaction request
* feat: admin_fn macros for administration functions
* test: add query result
* feat: impl flush_region, flush_table, compact_region, and flush_region functions
* docs: add Arguments to admin_fn macro
* chore: apply suggestion
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: apply suggestion
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: group_requests_by_peer and adds log
* Update src/common/macro/src/admin_fn.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* feat: adds todo for spawan thread
* feat: rebase with main
---------
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-02-27 08:57:38 +00:00
discord9
dbb1ce1a9b
feat(flow): impl for MapFilterProject ( #3359 )
...
* feat: mfp impls
* fix: after rebase
* test: temporal filter mfp
* refactor: more comments&test
* test: permute
* fix: check input len when eval
* refactor: err handle&docs: more explain graph
* docs: better flowchart map,filter,project
* refactor: visit_* falliable
* chore: better temp lint allow
* fix: permute partially
* chore: remove duplicated checks
* docs: more explain&tests for clarity
* refactor: use ensure! instead
2024-02-27 08:13:55 +00:00
Ruihang Xia
3544c9334c
feat!: new partition grammar - parser part ( #3347 )
...
* parser part
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test in sql
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* comment out and ignore some logic
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update region migration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* temporary disable region migration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* allow dead code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update integration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-02-27 07:20:16 +00:00
Lei, HUANG
492a00969d
feat: enable zstd compression and encodings in merge tree data part ( #3380 )
...
* feat: enable zstd compression in merge tree data part to save memory
* feat: also enable customized column encoding in DataPartEncoder
2024-02-27 06:54:56 +00:00
Yingwen
206666bff6
feat: Implement partition eviction and only add value size to write buffer size ( #3393 )
...
* feat: track key bytes in dict
* chore: done allocating on finish
* feat: evict keys
* chore: do not add to write buffer
* chore: only count value bytes
* fix: reset key bytes
* feat: remove write buffer manager from shards
* feat: change dict size compute method
* chore: adjust dictionary size by os memory
2024-02-27 06:28:57 +00:00
Weny Xu
7453d9779d
fix: throw errors instead of panic ( #3391 )
...
* fix: throw errors instead of panic
* chore: apply suggestions from CR
2024-02-27 03:46:12 +00:00
liyang
8e3e0fd528
ci: add builder result outputs in release action ( #3381 )
2024-02-27 03:43:16 +00:00
dimbtp
b1e290f959
fix: range fix in modulo function tests ( #3389 )
...
fix: range fix for modulo tests
2024-02-26 15:50:23 +00:00
Ruihang Xia
d8dc93fccc
feat(grafana): enable shared tooltip, add raft engine throughput ( #3387 )
...
feat: enable shared tooltip, add raft engine throughput
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-02-26 11:31:15 +00:00
Ning Sun
3887d207b6
feat: make tls certificates/keys reloadable (part 1) ( #3335 )
...
* feat: make tls certificates/keys reloadable (part 1)
* feat: add notify watcher for cert/key files
* test: add unit test for watcher
* fix: correct usage of watcher
* fix: skip watch when tls disabled
2024-02-26 09:37:54 +00:00
Ruihang Xia
e859f0e67d
chore: skip reorder workspace tables in taplo ( #3388 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-02-26 08:57:49 +00:00
Ruihang Xia
ce397ebcc6
feat: change how region id maps to region worker ( #3384 )
...
* feat: change how region id maps to region worker
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add overflow test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-02-26 08:42:29 +00:00
Yingwen
26011ed0b6
fix: resets dict builder keys counter and avoid unnecessary pruning ( #3386 )
...
* fix: dict builder resets num_keys on finish
* feat: skip empty shard and builder
* feat: avoid pruning if possible
Implementations:
- Apply all filters on the partition column
- If no filter to prune, skip decoding keys
2024-02-26 08:24:46 +00:00
Lei, HUANG
8087822ab2
refactor: change the receivers of merge tree components ( #3378 )
...
* refactor: change the receivers of Shard::read/DataBuffer::read/DataParts::read to &self instead of &mut self
* refactor: remove allow(dead_code) in merge tree
2024-02-26 06:50:55 +00:00
Yingwen
e481f073f5
feat: Implement dedup for the new memtable and expose the config ( #3377 )
...
* fix: KeyValues num_fields() is incorrect
* chore: fix warnings
* feat: support dedup
* feat: allow using the new memtable
* feat: serde default for config
* fix: resets pk index after finishing a dict
2024-02-25 13:06:01 +00:00
Lei, HUANG
606309f49a
fix: remove unused imports in memtable_util.rs ( #3376 )
2024-02-25 09:23:28 +00:00
Yingwen
8059b95e37
feat: Implement iter for the new memtable ( #3373 )
...
* chore: read shard builder
* chore: reuse pk weights
* chore: prune key
* chore: shard reader wip
* refactor: shard builder DataBatch
* feat: merge shard readers
* feat: return shard id in shard readers
* feat: impl partition reader
* chore: impl partition read
* feat: impl iter tree
* chore: save last yield pk id
* style: fix clippy
* refactor: rename ShardReaderImpl to ShardReader
* chore: address CR comment
2024-02-25 07:42:16 +00:00
Lei, HUANG
afe4633320
feat: merge tree dedup reader ( #3375 )
...
* feat: add dedup option to merge tree component
* feat: impl dedup reader for shard reader
* refactor: DedupReader::new to DedupReader::try_new
* refactor: remove DedupReader::current_key field
* fix: some cr comments
* fix: fmt
* fix: remove shard_id method from DedupSource
2024-02-24 13:50:49 +00:00
Yingwen
abbfd23d4b
feat: Add freeze and fork method to the memtable ( #3374 )
...
* feat: add fork method to the memtable
* feat: allow mark immutable returns result
* feat: use fork to create the mutable memtable
* feat: remove memtable builder from freeze
* chore: warninigs
* fix: inspect error
* feat: iter returns result
* chore: maintains memtable id in region
* chore: update comment
* fix: remove region status if failed to freeze a memtable
* chroe: update comment
* chore: iter should not require sync
* chore: implement freeze and fork for the new memtable
2024-02-24 12:11:16 +00:00
Yingwen
1df64f294b
refactor: Remove Item from merger's Node trait ( #3371 )
...
* refactor: data reader returns reference to data batch
* refactor: use range to create merger
* chore: Reference RecordBatch in DataBatch
* fix: top node not read if no next node
* refactor: move timestamp_array_to_i64_slice to data mod
* style: fix cilppy
* chore: derive copy for DataBatch
* chore: address CR comments
2024-02-24 07:19:48 +00:00
LFC
a6564e72b4
fix: treat "0" and "1" as valid boolean values. ( #3370 )
...
* Treat "0" and "1" as valid boolean values.
* Update src/sql/src/statements.rs
Co-authored-by: tison <wander4096@gmail.com >
* Fix tests.
---------
Co-authored-by: tison <wander4096@gmail.com >
2024-02-23 14:34:27 +00:00
Lei, HUANG
1f1d1b4f57
feat: distinguish between different read paths ( #3369 )
...
* feat: distinguish between different read paths
* fix: reformat code
2024-02-23 12:40:39 +00:00
Yingwen
b144836935
feat: Implement write and fork for the new memtable ( #3357 )
...
* feat: write to a shard or a shard builder
* feat: freeze and fork for partition and shards
* chore: shard builder
* chore: change dict reader to support random access
* test: test write shard
* test: test write
* test: test memtable
* feat: add new and write_row to DataParts
* refactor: partition freeze shards
* refactor: write_with_pk_id
* style: fix clippy
* chore: add methods to get pk weights
* chroe: fix compiler errors
2024-02-23 07:20:55 +00:00
dependabot[bot]
93d9f48dd7
build(deps): bump libgit2-sys from 0.16.1+1.7.1 to 0.16.2+1.7.2 ( #3367 )
...
Bumps [libgit2-sys](https://github.com/rust-lang/git2-rs ) from 0.16.1+1.7.1 to 0.16.2+1.7.2.
- [Changelog](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/git2-rs/commits )
---
updated-dependencies:
- dependency-name: libgit2-sys
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-23 14:30:09 +08:00
Lei, HUANG
90e9b69035
feat: impl merge reader for DataParts ( #3361 )
...
* feat: impl merge reader for DataParts
* fix: fmt
* fix: sort rows with pk and ts according to sequnce desc
* fix: remove pk weight as pk index are already replace by weights
* fix: format
* fix: some cr comments
* fix: some cr comments
* refactor: simply trait's associated types
* fix: some cr comments
2024-02-23 06:07:55 +00:00
LFC
2035e7bf4c
refactor: set the actual bound port in server handler ( #3353 )
...
* refactor: set the actual bound port so we can use port 0 in testing
* Update src/servers/src/server.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* fmt
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-02-23 02:49:11 +00:00
Ruihang Xia
7341f23019
feat: skip filling NULL for put and delete requests ( #3364 )
...
* feat: optimize for sparse data
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove old structures
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-02-22 14:30:43 +00:00
tison
41ee0cdd5a
build(deps): Upgrade opensrv to 0.7.0 ( #3362 )
...
* build(deps): Upgrade opensrv to 0.7.0
Signed-off-by: tison <wander4096@gmail.com >
* workaround X is not X by casting
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-02-22 13:11:26 +00:00
Kould
578dd8f87a
feat: add isnull function ( #3360 )
...
* code fmt
* feat: add isnull function
* feat: add isnull function
2024-02-22 12:41:25 +00:00
Weny Xu
1dc4fec662
refactor: allocate table ids in the procedure ( #3293 )
...
* refactor: refactor the create logical tables
* test(create_logical_tables): add tests for on_prepare
* test(create_logical_tables): add tests for on_create_metadata
* refactor: rename to create_logical_tables_metadata
* chore: fmt toml
* chore: apply suggestions from CR
2024-02-22 10:53:28 +00:00
Ruihang Xia
f26505b625
fix: typo in lint config ( #3358 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-02-22 08:56:33 +00:00
Ruihang Xia
8289b0dec2
ci: align docs workflow jobs with develop.yml ( #3356 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-02-22 07:01:15 +00:00
Yingwen
53105b99e7
test: fix list_files_and_parse_table_name path issue on windows ( #3349 )
...
* fix: always converts path to slash
* chore: print
* chore: normalize dir
* chore: compile
* chore: rm print
2024-02-22 06:16:41 +00:00
dennis zhuang
564fe3beca
feat: impl migrate_region and procedure_state SQL function ( #3325 )
...
* fix: logical region can't find region routes
* feat: fetch partitions info in batch
* refactor: rename batch functions
* refactor: rename DdlTaskExecutor to ProcedureExecutor
* feat: impl migrate_region and query_procedure_state for ProcedureExecutor
* feat: adds SQL function procedure_state and finish migrate_region impl
* fix: constant vector
* feat: unit tests for migrate_region and procedure_state
* test: test region migration by SQL
* fix: compile error after rebeasing
* fix: clippy warnings
* feat: ensure procedure_state and migrate_region can be only called under greptime catalog
* fix: license header
2024-02-22 02:37:11 +00:00
SteveLauC
e9a2b0a9ee
chore: use workspace-wide lints ( #3352 )
...
* chore: use workspace-wide lints
* respond to review
2024-02-22 01:01:10 +00:00
discord9
860b1e9d9e
feat(flow): impl ScalarExpr&Scalar Function ( #3283 )
...
* feat: impl for ScalarExpr
* feat: plain functions
* refactor: simpler trait bound&tests
* chore: remove unused imports
* chore: fmt
* refactor: early ret on first error
* refactor: remove abunant match arm
* chore: per review
* doc: `support` fn
* chore: per review more
* chore: more per review
* fix: extract_bound
* chore: per review
* refactor: reduce nest
2024-02-21 12:53:16 +00:00
Yingwen
7c88d721c2
Merge pull request #3348
...
* feat: define functions for partitions
* feat: write partitions
* feat: fork and freeze partition
* feat: create iter by partition
* style: fix clippy
* chore: typos
* feat: add scan method to builder
* feat: check whether the builder should freeze first
2024-02-21 20:50:34 +08:00
Lei, HUANG
90169c868d
feat: merge tree data parts ( #3346 )
...
* feat: add iter method for DataPart
* chore: rename iter to reader
* chore: some doc
* fix: resolve some comments
* fix: remove metadata in DataPart
2024-02-21 11:37:29 +00:00
tison
4c07606da6
refactor: put together HTTP headers ( #3337 )
...
* refactor: put together HTTP headers
Signed-off-by: tison <wander4096@gmail.com >
* do refactor
Signed-off-by: tison <wander4096@gmail.com >
* drop dirty commit
Signed-off-by: tison <wander4096@gmail.com >
* reduce changeset
Signed-off-by: tison <wander4096@gmail.com >
* fixup compilations
Signed-off-by: tison <wander4096@gmail.com >
* tidy files
Signed-off-by: tison <wander4096@gmail.com >
* drop common-api
Signed-off-by: tison <wander4096@gmail.com >
* fmt
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-02-21 09:51:10 +00:00
tison
a7bf458a37
chore: remove unused deprecated table_dir_with_catalog_and_schema ( #3341 )
2024-02-21 08:46:36 +00:00
tison
fa08085119
ci: upgrade actions to node20-based version ( #3345 )
...
* ci: upgrade actions to node20-based version
Signed-off-by: tison <wander4096@gmail.com >
* distinguish artifact name
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-02-21 08:09:09 +00:00
Lei, HUANG
86a98c80f5
feat: replace pk index with pk_weight during freeze ( #3343 )
...
* feat: replace pk index with pk_weight during freeze
* chore: add parameter to control pk_index replacement
* fix: dedup pk weights also
* fix: generate pk array before dedup
2024-02-21 08:05:25 +00:00
tison
085a380019
build(deps): axum-tets-helper has included patch-1 ( #3333 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-02-21 07:49:42 +00:00
tison
d9a96344ee
ci: try fix log location ( #3342 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-02-21 07:01:51 +00:00
Weny Xu
41656c8635
refactor: allocate table id in the procedure ( #3271 )
...
* refactor: replace TableMetadataManager with TableNameManager
* refactor: allocate table id in the procedure
* refactor: refactor client logical of handling retries
* feat(test_util): add TestCreateTableExprBuilder
* feat(test_util): add MockDatanodeManager
* feat(test_util): add new_ddl_context
* feat(test_util): add build_raw_table_info_from_expr
* feat(test_util): add MockDatanodeManager::new
* feat(procedure): add downcast_output_ref to Status
* test(create_table): add tests for CreateTableProcedure on_prepare
* refactor(ddl): rename handle_operate_region_error to add_peer_context_if_need
* test(create_table): add tests for CreateTableProcedure on_datanode_create_regions
* test(create_table): add tests for CreateTableProcedure on_create_metadata
* refactor(meta): use CreateTableExprBuilder
* feat(create_table): ensure number of partitions is greater than 0
* refactor: rename to add_peer_context_if_needed
* feat: add context for panic
* refactor: simplify the should_retry
* refactor: use Option<&T> instead of &Option<T>
* refactor: move downcast_output_ref under cfg(test)
* chore: fmt toml
2024-02-21 04:38:46 +00:00
tison
cf08a3de6b
chore: support configure GITHUB_PROXY_URL when fetch dashboard assets ( #3340 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-02-21 02:38:14 +00:00
Yingwen
f087a843bb
feat: Implement KeyDictBuilder for the merge tree memtable ( #3334 )
...
* feat: dict builder
* feat: write and scan dict builder
* chore: address CR comments
2024-02-20 15:39:17 +00:00
Lei, HUANG
450dfe324d
feat: data buffer and related structs ( #3329 )
...
* feat: data buffer and related structs
* fix: some cr comments
* chore: remove freeze_threshold in DataBuffer
* fix: use LazyMutableVectorBuilder instead of two vector; add option to control dedup
* fix: dedup rows according to both pk weights and timestamps
* fix: assembly DataBatch on demand
2024-02-20 09:22:45 +00:00
tison
3dfe4a2e5a
chore: check dirs before create RaftEngine store ( #3327 )
...
* chore: check dirs before create RaftEngine store
Signed-off-by: tison <wander4096@gmail.com >
* fix impl
Signed-off-by: tison <wander4096@gmail.com >
* improve naming
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-02-20 07:48:15 +00:00
LFC
eded08897d
test: add data compatibility test ( #3109 )
...
* test: data files compatibility test
* rework compatibility test
* revert unneeded changes
* revert unneeded changes
* debug CI
* Update .github/workflows/develop.yml
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-02-20 07:44:04 +00:00
Ruihang Xia
b1f54d8a03
fix: disable ansi contorl char when stdout is redirected ( #3332 )
...
* fix: disable ansi contorl char when stdout is redirected
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* don't touch file logging layer
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* disable ansi for two file layers
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: LFC <bayinamine@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: LFC <bayinamine@gmail.com >
2024-02-20 06:42:56 +00:00
shuiyisong
bf5e1905cd
refactor: bring metrics to http output ( #3247 )
...
* refactor: bring metrics to http output
* chore: remove unwrap
* chore: make walk plan accumulate
* chore: change field name and comment
* chore: add metrics to http resp header
* chore: move PrometheusJsonResponse to a separate file and impl IntoResponse
* chore: put metrics in prometheus resp header too
2024-02-20 03:25:18 +00:00
Zhenchi
6628c41c36
feat(metric-engine): set index options for data region ( #3330 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-02-20 02:38:35 +00:00
Yingwen
43fd87e051
feat: Defines structs in the merge tree memtable ( #3326 )
...
* chore: define mods
* feat: memtable struct
* feat: define structs inside the tree
2024-02-19 11:43:19 +00:00
Zhenchi
40f43de27d
fix(index): encode string type to original data to enable fst regex to work ( #3324 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-02-19 10:52:19 +00:00
Zhenchi
4810c91a64
refactor(index): move option segment_row_count from WriteOptions to IndexOptions ( #3307 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-02-19 08:03:41 +00:00
JeremyHi
6668d6b042
fix: split write metadata request ( #3311 )
...
* feat: add txn_helper
* fix: split the create metadata requests to avoid exceeding the txn limit
* fix: add license header
* chore: some improve
2024-02-19 07:33:09 +00:00
JeremyHi
aa569f7d6b
feat: batch get physical table routes ( #3319 )
...
* feat: batch get physical table routes
* chore: by comment
2024-02-19 06:51:34 +00:00
dennis zhuang
8b73067815
feat: impl partitions and region_peers information schema ( #3278 )
...
* feat: impl partitions table
* fix: typo
* feat: impl region_peers information schema
* chore: rename region_peers to greptime_region_peers
* chore: rename statuses to upper case
* fix: comments
* chore: update partition result
* chore: remove redundant checking
* refactor: replace 42 with constant
* feat: fetch region routes in batch
2024-02-19 06:47:14 +00:00
liyang
1851c20c13
ci: add build artifacts needs in notification ( #3320 )
2024-02-19 06:42:09 +00:00
tison
29f11d7b7e
ci: upgrade actions to avoid node16 deprecation warning ( #3317 )
...
* ci: upgrade actions to avoid node16 deprecantion warning
Signed-off-by: tison <wander4096@gmail.com >
* try delete size label action
Signed-off-by: tison <wander4096@gmail.com >
* one more action
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-02-18 15:20:26 +00:00
Ruihang Xia
72cd443ba3
feat: organize tracing on query path ( #3310 )
...
* feat: organize tracing on query path
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* warp json conversion to TracingContext's methods
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unnecessary .trace()
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/query/src/dist_plan/merge_scan.rs
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
2024-02-18 15:04:57 +00:00
dependabot[bot]
df6260d525
fix: bump libgit2-sys from 0.16.1+1.7.1 to 0.16.2+1.7.2 ( #3316 )
...
build(deps): bump libgit2-sys from 0.16.1+1.7.1 to 0.16.2+1.7.2
Bumps [libgit2-sys](https://github.com/rust-lang/git2-rs ) from 0.16.1+1.7.1 to 0.16.2+1.7.2.
- [Changelog](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/git2-rs/commits )
---
updated-dependencies:
- dependency-name: libgit2-sys
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-18 13:25:00 +00:00
Ruihang Xia
94fd51c263
ci: run CI jobs in draft PR ( #3314 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-02-18 13:14:57 +00:00
liyang
3bc0c4feda
ci: add release result send to slack ( #3312 )
...
* feat: add notify release result to slack
* chore: change build image output result name
---------
Co-authored-by: tison <wander4096@gmail.com >
2024-02-18 13:13:04 +00:00
tison
2a26c01412
fix: commit_short sqlness test case ( #3313 )
...
* ci: debug sqlness jobs
Signed-off-by: tison <wander4096@gmail.com >
* fix: commit_short test case
Signed-off-by: tison <wander4096@gmail.com >
* fixup! fix: commit_short test case
Signed-off-by: tison <wander4096@gmail.com >
* fixup! fixup! fix: commit_short test case
Signed-off-by: tison <wander4096@gmail.com >
* revert uploading
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-02-18 11:51:24 +00:00
tison
4e04a4e48f
build: support build without git ( #3309 )
...
* build: support build without git
Signed-off-by: tison <wander4096@gmail.com >
* chore
Signed-off-by: tison <wander4096@gmail.com >
* address comment
Signed-off-by: tison <wander4096@gmail.com >
* fix syntax
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-02-18 10:30:01 +00:00
tison
b889d57b32
build(deps): Upgrade raft-engine dependency cascading ( #3305 )
...
* build(deps): Upgrade raft-engine dependency
Signed-off-by: tison <wander4096@gmail.com >
* genlock and upgrade toolchain
Signed-off-by: tison <wander4096@gmail.com >
* revert toolchain upgrade
Signed-off-by: tison <wander4096@gmail.com >
* Revert "revert toolchain upgrade"
This reverts commit 1c6dd9d7ba .
* toolchain backward and correct dep attr
Signed-off-by: tison <wander4096@gmail.com >
* clippy
Signed-off-by: tison <wander4096@gmail.com >
* revert all
Signed-off-by: tison <wander4096@gmail.com >
* redo
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-02-18 02:31:59 +00:00
Zhenchi
f9ce2708d3
feat(mito): add options to ignore building index for specific column ids ( #3295 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-02-16 08:50:41 +00:00
Zhenchi
34050ea8b5
fix(index): sanitize S3 upload buffer size ( #3300 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-02-16 06:45:31 +00:00
liyang
31ace9dd5c
fix: $TARGET_BIN not found when docker run the image ( #3297 )
...
* fix: TARGET_BIN path
* chore: return available versions
* refactor: Use ENV instead of ARG in ci dockerfile
* chore: add TARGET_BIN ENV pass to ENTRYPOINT
* chore: add TARGET_BIN ENV pass to ENTRYPOINT
* chore: update entrypoint
* chore: update entrypoint
2024-02-15 11:33:05 +00:00
Cancai Cai
2a971b0fff
chore: update link to official website link ( #3299 )
2024-02-13 13:32:46 +00:00
Ruihang Xia
2f98fa0d97
fix: correct the case sensitivity behavior for PromQL ( #3296 )
...
* fix: correct the case sensitivity behavior for PromQL
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove debug code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* consolidate sqlness case
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 >
2024-02-08 03:26:32 +00:00
Hudson C. Dalprá
6b4be3a1cc
fix(util): join_path function should not trim leading / ( #3280 )
...
* fix(util): join_path function should not trim leading `/`
Signed-off-by: Hudson C. Dalpra <dalpra.hcd@gmail.com >
* fix(util): making required changes at join_path function
* fix(util): added unit tests to match function comments
---------
Signed-off-by: Hudson C. Dalpra <dalpra.hcd@gmail.com >
2024-02-07 10:05:04 +00:00
Zhenchi
141ed51dcc
feat(mito): adjust seg size of inverted index to finer granularity instead of row group level ( #3289 )
...
* feat(mito): adjust seg size of inverted index to finer granularity instead of row group level
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: wrong metric
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: more suitable name
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: BitVec instead
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-02-07 08:20:00 +00:00
dennis zhuang
e5ec65988b
feat: administration functions ( #3236 )
...
* feat: adds database() function to return current db
* refactor: refactor meta src and client with new protos
* feat: impl migrate_region and query_procedure_state for procedure service/client
* fix: format
* temp commit
* feat: impl migrate_region SQL function
* chore: clean code for review
* fix: license header
* fix: toml format
* chore: update proto dependency
* chore: apply suggestion
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* chore: apply suggestion
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* chore: apply suggestion
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* chore: apply suggestion
Co-authored-by: fys <40801205+fengys1996@users.noreply.github.com >
* chore: print key when parsing procedure id fails
* chore: comment
* chore: comment for MigrateRegionFunction
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
Co-authored-by: fys <40801205+fengys1996@users.noreply.github.com >
2024-02-07 01:12:32 +00:00
Zhenchi
dbf62f3273
chore(index): add BiError to fulfil the requirement of returning two errors ( #3291 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-02-06 16:03:03 +00:00
Ruihang Xia
e4cd294ac0
feat: put all filter exprs in a filter plan separately ( #3288 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-02-06 09:32:26 +00:00
fys
74bfb09195
feat: support cache for batch_get in CachedMetaKvBackend ( #3277 )
...
* feat: support cache for batch_get in CachedMetaKvBackend.
* add doc of CachedMetaKvBackend
* fix: cr
* fix: correct some words
* fix cr
2024-02-06 03:15:03 +00:00
shuiyisong
4cbdf64d52
chore: start plugins during standalone startup & comply with current catalog while changing database ( #3282 )
...
* chore: start plugins in standalone
* chore: respect current catalog in use statement for mysql
* chore: reduce unnecessory convert to string
* chore: reduce duplicate code
2024-02-06 02:41:37 +00:00
Weny Xu
96f32a166a
chore: share cache corss jobs ( #3284 )
2024-02-05 09:30:22 +00:00
Weny Xu
770da02810
fix: fix incorrect StatusCode parsing ( #3281 )
...
* fix: fix incorrect StatusCode parsing
* chore: apply suggestions from CR
2024-02-05 08:06:43 +00:00
discord9
c62c67cf18
feat: Basic Definitions for Expression&Functions for Dataflow ( #3267 )
...
* added expression&func
* fix: EvalError derive&imports
* chore: add header
* feat: variadic func
* chore: minor adjust
* feat: accum
* feat: use accum for eval func
* feat: montonic min/max as accumulative
* feat: support min/max Date&DateTime
* chore: fix compile error&add test(WIP)
* test: sum, count, min, max
* feat: remove trait impl for EvalError
* chore: remove all impl retain only type definitions
* refactor: nest datatypes errors
* fix: remove `.build()`
* fix: not derive Clone
* docs: add comment for types
* feat: more func&remove `CurrentDatabase`
2024-02-05 07:49:34 +00:00
Ruihang Xia
51feec2579
feat: use simple filter to prune memtable ( #3269 )
...
* switch on clippy warnings
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: use simple filter to prune memtable
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deadcode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refine util function
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-02-04 11:35:55 +00:00
LFC
902570abf6
ci: fix nightly build ( #3276 )
...
* ci: fix nightly build
* ci: fix nightly build
2024-02-03 03:20:47 +00:00
shuiyisong
6ab3a88042
fix: use fe_opts after setup_frontend_plugins in standalone ( #3275 )
...
* chore: modify standalone startup opts
* chore: move frontend and datanode options
2024-02-02 10:36:08 +00:00
discord9
e89f5dc908
feat: support fraction part in timestamp ( #3272 )
...
* feat: support fraction part in timestamp
* test: with timezone
2024-02-01 08:51:26 +00:00
LFC
e375060b73
refactor: add same SST files ( #3270 )
...
* Make adding same SST file multiple times possible, instead of panic there.
* Update src/mito2/src/sst/version.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-01-31 07:21:30 +00:00
LFC
50d16d6330
ci: build GreptimeDB binary for later use ( #3244 )
...
* ci: build GreptimeDB binaries for later use
* debug CI
* try larger runner host
* Revert "try larger runner host"
This reverts commit 03c18c0f51 .
* fix: resolve PR comments
* revert some unrelated action yamls
* fix CI
* use artifact upload v4 for faster upload and download speed
2024-01-31 03:02:27 +00:00
tison
60e760b168
fix: cli export database default value ( #3259 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-01-30 09:56:05 +00:00
dennis zhuang
43ef0820c0
fix: SQL insertion and column default constraint aware of timezone ( #3266 )
...
* fix: missing timezone when parsing sql value to greptimedb value
* test: sql_value_to_value
* fix: column default constraint missing timezone
* test: column def default constraint with timezone
* test: adds sqlness test for default constraint aware of timezone
* fix: typo
* chore: comment
2024-01-30 09:15:38 +00:00
Ruihang Xia
e0e635105e
feat: initial configuration for grafana dashboard ( #3263 )
...
* feat: initial configuration for grafana dashboard
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* lift up dir
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update readme
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add paths to CI config
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tweak config details
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add OpenDAL traffic panel
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove sync count
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update grafana/README.md
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-30 09:11:50 +00:00
discord9
0a9361a63c
feat: basic types for Dataflow Framework ( #3186 )
...
* feat: basic types for Dataflow Framework
* docs: license header
* chore: add name in todo, remove deprecated code
* chore: typo
* test: linear&repr unit test
* refactor: avoid mod.rs
* feat: Relation Type
* feat: unmat funcs
* feat: simple temporal filter(sliding window)
* refactor: impl Snafu for EvalError
* feat: cast as type
* feat: temporal filter
* feat: time index in RelationType
* refactor: move EvalError to expr
* refactor: error handling for func
* chore: fmt&comment
* make EvalError pub again
* refactor: move ScalarExpr to scalar.rs
* refactor: remove mod.rs for relation
* chore: slim down PR size
* chore: license header
* chore: per review
* chore: more fix per review
* chore: even more fix per review
* chore: fmt
* chore: fmt
* feat: impl From/Into ProtoRow instead
* chore: use cast not cast_with_opt&`Key` struct
* chore: new_unchecked
* feat: `Key::subset_of` method
* chore: toml in order
2024-01-30 07:48:22 +00:00
Weny Xu
ddbd0abe3b
fix(Copy From): fix incorrect type casts ( #3264 )
...
* refactor: refactor RecordBatchStreamTypeAdapter
* fix(Copy From): fix incorrect type casts
* fix: unit tests
* chore: add comment
2024-01-30 07:16:36 +00:00
Ruihang Xia
a079955d38
chore: adjust storage engine related metrics ( #3261 )
...
* chore: adjust metrics to metric engine and mito engine
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* adjust more mito bucket
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-30 06:43:03 +00:00
JeremyHi
e5a2b0463a
feat: Only allow inserts and deletes operations to be executed in parallel ( #3257 )
...
* feat: Only allow inserts and deletes operations to be executed in parallel.
* feat: add comment
2024-01-29 11:27:06 +00:00
Weny Xu
691b649f67
chore: switch to free machine ( #3256 )
...
* chore: switch to free machine
* chore: switch sqlness runner to 4core
2024-01-29 08:35:12 +00:00
Ruihang Xia
9a28a1eb5e
fix: decouple columns in projection and prune ( #3253 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-29 08:29:21 +00:00
LFC
fc25b7c4ff
build: make binary name a Dockerfile "ARG" ( #3254 )
...
* build: make binary name a Dockerfile "ARG"
* Update Dockerfile
2024-01-29 08:00:40 +00:00
Ning Sun
d43c638515
ci: merge doc label actor and checker tasks ( #3252 )
2024-01-29 07:09:11 +00:00
shuiyisong
91c8c62d6f
chore: adjust MySQL connection log ( #3251 )
...
* chore: adjust mysql connection log level
* chore: adjust import
2024-01-29 06:53:50 +00:00
JeremyHi
3201aea360
feat: create tables in batch on prom write ( #3246 )
...
* feat: create tables in batch on prom write
* feat: add logic table ids to log
* fix: miss tabble ids in response
2024-01-26 12:47:24 +00:00
Ruihang Xia
7da8f22cda
fix: IntermediateWriter closes underlying writer twice ( #3248 )
...
* fix: IntermediateWriter closes underlying writer twice
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* close writer manually on error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-26 10:03:50 +00:00
Ning Sun
14b233c486
test: align chrono and some forked test deps to upstream ( #3245 )
...
* test: update chrono and its tests
* chore: switch some deps to upstream version
* test: update timestamp range in sqlness tests
2024-01-26 07:39:51 +00:00
discord9
d5648c18c1
docs: RFC of Dataflow Framework ( #3185 )
...
* docs: RFC of Dataflow Framework
* docs: middle layer&metadata store
* chore: fix typo
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* docs: add figure
* chore: use mermaid instead
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-26 07:13:28 +00:00
Ruihang Xia
b0c3be35fb
feat: don't map semantic type in metric engine ( #3243 )
...
* feat: don't map semantic type in metric engine
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove duplicate set_null
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-26 03:50:05 +00:00
Ruihang Xia
5617b284c5
feat: return request outdated error on handling alter ( #3239 )
...
* feat: return request outdated error on handling alter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix tonic code mapping
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy, add comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix deadloop
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update UT
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* address CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: Update log message
* Update src/common/meta/src/ddl/alter_table.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* fix compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-01-26 03:37:46 +00:00
Weny Xu
f99b08796d
feat: add insert/select generator & translator ( #3240 )
...
* feat: add insert into expr generator & translator
* feat: add select expr generator & translator
* chore: apply suggestions from CR
* fix: fix unit tests
2024-01-26 02:59:17 +00:00
JeremyHi
1fab7ab75a
feat: batch create ddl ( #3194 )
...
* feat: batch ddl to region request
* feat: return table ids
chore: by comment
chore: remove wal_options
chore: create logical tables lock key
feat: get metadata in procedure
* chore: by comment
2024-01-26 02:43:57 +00:00
Yingwen
3fa070a0cc
fix: init parquet reader metrics twice ( #3242 )
2024-01-26 01:54:51 +00:00
Weny Xu
8bade8f8e4
fix: fix create table ddl return incorrect table id ( #3232 )
...
* fix: fix create table ddl return incorrect table id
* refactor: refactor param of Status::done_with_output
2024-01-25 13:58:43 +00:00
Wei
6c2f0c9f53
feat: read metadata from write cache ( #3224 )
...
* feat: read meta from write cache
* test: add case
* chore: cr comment
* chore: clippy
* chore: code style
* feat: put metadata to sst cache
2024-01-25 11:39:41 +00:00
LFC
2d57bf0d2a
ci: adding DOCKER_BUILD_ROOT docker arg for dev build ( #3241 )
...
Update Dockerfile
2024-01-25 09:05:27 +00:00
Weny Xu
673a4bd4ef
feat: add pg create alter table expr translator ( #3206 )
...
* feat: add pg create table expr translator
* feat: add pg alter table expr translator
* refactor: refactor MappedGenerator
* chore: apply suggestions from CR
2024-01-25 08:00:42 +00:00
LFC
fca44098dc
ci: make git's "safe.directory" accept all ( #3234 )
...
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
2024-01-25 07:32:03 +00:00
Ning Sun
1bc4f25de2
feat: http sql api return schema on empty resultset ( #3237 )
...
* feat: return schema on empty resultset
* refactor: make schema a required field in http output
* test: update integration test and add schema output
2024-01-25 06:44:28 +00:00
Ning Sun
814924f0b6
fix: security update for shlex and h2 ( #3227 )
2024-01-24 13:31:34 +00:00
ZonaHe
b0a8046179
feat: update dashboard to v0.4.7 ( #3229 )
2024-01-24 08:50:21 +00:00
dennis zhuang
7323e9b36f
feat: change Range Query’s default align behavior aware of timezone ( #3219 )
...
* feat: change Range Query’s default align behavior to 1970-01-01 00:00:00 aware of timezone
* test: test with +23:00 timezone
2024-01-24 08:17:57 +00:00
Weny Xu
f82ddc9491
fix: fix MockInstance rebuild issue ( #3218 )
...
* fix: fix MockInstance rebuild issue
* chore: apply suggestions from CR
2024-01-24 07:52:47 +00:00
Ning Sun
1711ad4631
feat: add Arrow IPC output format for http rest api ( #3177 )
...
* feat: add arrow format output for sql api
* refactor: remove unwraps
* test: add test for arrow format
* chore: update cargo toml format
* fix: resolve lint warrnings
* fix: ensure outputs size is one
2024-01-24 06:10:05 +00:00
LFC
f81e37f508
refactor: make http server built flexibly ( #3225 )
...
* refactor: make http server built flexibly
* Apply suggestions from code review
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* fix: resolve PR comments
* Fix CI.
---------
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2024-01-24 03:45:08 +00:00
Weny Xu
d75cf86467
fix: only register region keeper while creating physical table ( #3223 )
...
fix: only register region keeper during create physical table
2024-01-23 09:42:32 +00:00
Weny Xu
26535f577d
feat: enable concurrent write ( #3214 )
...
* feat: enable concurrent write
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-01-23 09:20:12 +00:00
Ruihang Xia
8485c9af33
feat: read column and region info from state cache ( #3222 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-23 09:10:27 +00:00
Weny Xu
19413eb345
refactor!: rename initialize_region_in_background to init_regions_in_background ( #3216 )
...
refactor!: change initialize_region_in_background to init_regions_in_background
2024-01-23 04:33:48 +00:00
Weny Xu
007b63dd9d
fix: fix default value cannot accept negative number ( #3217 )
...
* fix: fix default value cannot accept negative number
* chore: apply suggestions from CR
2024-01-23 03:33:13 +00:00
Weny Xu
364754afa2
feat: add create alter table expr translator ( #3203 )
...
* feat: add create table expr translator
* feat: add alter table expr translator
* refactor: expose mod
* refactor: expr generator
* chore: ignore typos check for lorem_words
* feat: add string map helper functions
* chore: remove unit tests
2024-01-23 02:53:42 +00:00
Ruihang Xia
31787f4bfd
feat!: switch prom remote write to metric engine ( #3198 )
...
* feat: switch prom remote write to metric engine
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* fix compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* read physical table name from url
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove physical table from header
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix merge error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add with_metric_engine option to config remote write behavior
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* check parameter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add specific config param
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* default with_metric_engine to true
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update UT
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-01-22 14:48:28 +00:00
dennis zhuang
6a12c27e78
feat: make query be aware of timezone setting ( #3175 )
...
* feat: let TypeConversionRule aware query context timezone setting
* chore: don't optimize explain command
* feat: parse string into timestamp with timezone
* fix: compile error
* chore: check the scalar value type in predicate
* chore: remove mut for engine context
* chore: return none if the scalar value is utf8 in time range predicate
* fix: some fixme
* feat: let Date and DateTime parsing from string value be aware of timezone
* chore: tweak
* test: add datetime from_str test with timezone
* feat: construct function context from query context
* test: add timezone test for to_unixtime and date_format function
* fix: typo
* chore: apply suggestion
* test: adds string with timezone
* chore: apply CR suggestion
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* chore: apply suggestion
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2024-01-22 14:14:03 +00:00
shuiyisong
2bf4b08a6b
chore: change default factor to compute memory size ( #3211 )
...
* chore: change default factor to compute memory size
* chore: update doc
* chore: update comment in example config
* chore: extract factor to const and update comments
* chore: update comment by cr suggestion
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-01-22 09:03:29 +00:00
Ruihang Xia
8cc7129397
fix: remove __name__ matcher from processed matcher list ( #3213 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-22 08:50:28 +00:00
Ruihang Xia
278e4c8c30
feat: lazy initialize vector builder on write ( #3210 )
...
* feat: lazy initialize vector builder on write
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* avoid using ConstantVector
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplify expression
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/metric-engine/src/engine/create.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2024-01-22 07:00:04 +00:00
Weny Xu
de13de1454
feat: introduce information schema provider cache ( #3208 )
...
fix: introduce information schema provider cache
2024-01-22 06:41:39 +00:00
Lei, HUANG
3834ea7422
feat: copy database from ( #3164 )
...
* wip: impl COPY DATABASE FROM parser
* wip: impl copy database from
* wip: add some ut
* wip: add continue_on_error option
* test: add sqlness cases for copy database
* fix: trailing newline
* fix: typo
* fix: some cr comments
* chore: resolve confilicts
* fix: some cr comments
2024-01-22 06:33:54 +00:00
Weny Xu
966875ee11
chore: bump opendal to v0.44.2 ( #3209 )
2024-01-21 11:47:18 +00:00
Wei
e5a8831fa0
refactor: read parquet metadata ( #3199 )
...
* feat: MetadataLoader
* refactor code
* chore: clippy
* chore: cr comment
* chore: add TODO
* chore: cr comment
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: clippy
---------
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
2024-01-21 07:21:29 +00:00
Weny Xu
4278c858f3
feat: make procedure able to return output ( #3201 )
...
* feat: make procedure able to return output
* refactor: change Output to Any
2024-01-21 06:56:45 +00:00
Weny Xu
986f3bb07d
refactor: reduce number of parquet metadata reads and enable reader buffer ( #3197 )
...
refactor: reduce reading parquet metadata times and enable read buffer
2024-01-19 12:26:38 +00:00
Weny Xu
440cd00ad0
feat(tests-fuzz): add CreateTableExprGenerator & AlterTableExprGenerator ( #3182 )
...
* feat(tests-fuzz): add CreateTableExprGenerator
* refactor: move Column to root of ir mod
* feat: add AlterTableExprGenerator
* feat: add Serialize and Deserialize derive
* chore: refactor the AlterExprGenerator
2024-01-19 09:39:28 +00:00
dennis zhuang
5e89472b2e
feat: adds parse options for SQL parser ( #3193 )
...
* feat: adds parse options for parser and timezone to scan request
* chore: remove timezone in ScanRequest
* feat: remove timezone in parse options and adds type checking to parititon columns
* fix: comment
* chore: apply suggestions
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: format
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-01-19 09:16:36 +00:00
Yiran
632edd05e5
docs: update SDK links in README.md ( #3156 )
...
* docs: update SDK links in README.md
* chore: typo
2024-01-19 08:54:43 +00:00
Zhenchi
2e4c48ae7a
fix(index): S3 EntityTooSmall error ( #3192 )
...
* fix(index): S3 `EntityTooSmall` error
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: config api
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-01-19 02:57:07 +00:00
Ruihang Xia
cde5a36f5e
feat: precise filter for mito parquet reader ( #3178 )
...
* impl SimpleFilterEvaluator
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* time index and field filter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* finish parquet filter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove empty Batch
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix fmt
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update metric
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use projected schema from batch
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* correct naming
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unnecessary error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-18 06:59:48 +00:00
niebayes
63205907fb
refactor: introduce common-wal to aggregate wal stuff ( #3171 )
...
* refactor: aggregate wal configs
* refactor: move wal options to common-wal
* chore: slim Cargo.toml
* fix: add missing crates
* fix: format
* chore: update comments
* chore: add testing feature gate for test_util
* fix: apply suggestions from code review
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* fix: apply suggestions from code review
* fix: compiling
---------
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2024-01-18 03:49:37 +00:00
Wei
3d7d2fdb4a
feat: auto config cache size according to memory size ( #3165 )
...
* feat: auto config cache and buffer size according to mem size
* feat: utils
* refactor: add util function to common config
* refactor: check cgroups
* refactor: code
* fix: test
* fix: test
* chore: cr comment
Co-authored-by: Yingwen <realevenyag@gmail.com >
Co-authored-by: Dennis Zhuang <killme2008@gmail.com >
* chore: remove default comment
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
Co-authored-by: Dennis Zhuang <killme2008@gmail.com >
2024-01-17 14:35:35 +00:00
LFC
3cfd60e139
refactor: expose region edit in mito engine ( #3179 )
...
* refactor: expose region edit in mito engine
* feat: add a method for editing region directly
* fix: resolve PR comments
* Apply suggestions from code review
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: resolve PR comments
* fix: resolve PR comments
* fix: resolve PR comments
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-01-17 14:25:08 +00:00
shuiyisong
a29b9f71be
chore: carry metrics in flight metadata from datanode to frontend ( #3113 )
...
* chore: carry metrics in flight metadata from datanode to frontend
* chore: fix typo
* fix: ignore metric flight message on client
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: add cr comment
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* chore: add cr comment
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* chore: update proto
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-17 11:38:03 +00:00
shuiyisong
ae160c2def
fix: change back GREPTIME_DB_HEADER_NAME header key name ( #3184 )
...
fix: change back dbname header key
2024-01-17 09:30:32 +00:00
Ruihang Xia
fbd0197794
refactor: remove TableEngine ( #3181 )
...
* refactor: remove TableEngine
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/table/src/table_reference.rs
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
2024-01-17 04:18:37 +00:00
dennis zhuang
204b9433b8
feat: adds date_format function ( #3167 )
...
* feat: adds date_format function
* fix: compile error
* chore: use system timezone for FunctionContext and EvalContext
* test: as_formatted_string
* test: sqlness test
* chore: rename function
2024-01-17 03:24:40 +00:00
niebayes
d020a3db23
chore: expose promql test to distributed instance ( #3176 )
2024-01-17 02:44:55 +00:00
JeremyHi
c6c4ea5e64
feat: tables stream with CatalogManager ( #3180 )
...
* feat: add tables for CatalogManager
* feat: replace table with tables
* Update src/catalog/src/information_schema/columns.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* Update src/catalog/src/information_schema/columns.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* Update src/catalog/src/information_schema/tables.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* Update src/catalog/src/information_schema/tables.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* feat: tables for MemoryCatalogManager
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-01-17 02:31:15 +00:00
Weny Xu
7a1b856dfb
feat: add tests-fuzz crate ( #3173 )
2024-01-16 09:02:09 +00:00
JeremyHi
c2edaffa5c
feat: let tables API return a stream ( #3170 )
2024-01-15 12:36:39 +00:00
tison
189df91882
docs: Update README.md ( #3168 )
...
* docs: Update README.md
Complying with ASF policy we should refer to Apache projects in their full form in the first and most prominent usage.
* Update README.md
* Update README.md
2024-01-15 10:54:53 +00:00
tison
3ef86aac97
docs: add tracking issue for inverted-index RFC ( #3169 )
2024-01-15 10:54:35 +00:00
Wei
07de65d2ac
test: engine with write cache ( #3163 )
...
* feat: write cache test for engine
* chore: unused
* chore: comment
* refactor: super to crate
* chore: cr comment
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: clippy
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-01-15 10:02:53 +00:00
Ning Sun
1294d6f6e1
feat: upgrade pgwire to 0.19 ( #3157 )
...
* feat: upgrade pgwire to 0.19
* fix: update pgwire to 0.19.1
2024-01-15 09:14:08 +00:00
Zhenchi
6f07d69155
feat(mito): enable inverted index ( #3158 )
...
* feat(mito): enable inverted index
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix typos
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix typos
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* accidentally resolved the incorrect filtering issue within the Metric Engine
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* Update src/mito2/src/access_layer.rs
* Update src/mito2/src/test_util/scheduler_util.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: format -> join_dir
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: move intermediate_manager from arg of write_and_upload_sst to field of WriteCache
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: add IndexerBuidler
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix clippy
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-01-15 09:08:07 +00:00
WU Jingdi
816d94892c
feat: support HTTP&gRPC&pg set timezone ( #3125 )
...
* feat: support HTTP&gRPC&pg set timezone
* chore: fix code advice
* chore: fix code advice
2024-01-15 06:29:31 +00:00
LFC
93f28c2a37
refactor: make grpc service able to be added dynamically ( #3160 )
2024-01-15 04:33:27 +00:00
Eugene Tolbakov
ca4d690424
feat: add modulo function ( #3147 )
...
* feat: add modulo function
* fix: address CR feedback
2024-01-13 00:24:25 +00:00
Weny Xu
75975adcb6
fix: fix tests failed on windows ( #3155 )
...
* fix: fix tests failed on windows
* feat: add comments
* Update src/object-store/src/util.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-01-12 09:12:11 +00:00
Ruihang Xia
527e523a38
fix: handle non-identical time index and field column in PromQL set operation ( #3145 )
...
* handle different field columns
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix and/unless on different time index
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 >
2024-01-12 06:27:03 +00:00
Weny Xu
aad2afd3f2
chore: bump version to 0.6.0 ( #3154 )
2024-01-12 06:25:14 +00:00
Weny Xu
bf88b3b4a0
fix: fix store all wal options ( #3149 )
...
* fix: fix store all wal options
* fix: incorrect updating DatanodeTable value
2024-01-12 04:48:14 +00:00
Weny Xu
bf96ce3049
fix: print detailed error ( #3146 )
2024-01-12 04:02:32 +00:00
Weny Xu
430ffe0e28
fix(kafka): overwrite the EntryId with Offset while consuming records ( #3148 )
...
* fix(kafka): overwrite the EntryId with Offset while consuming the KafkaRecords
* fix: temporarily workaround of incorrect entry Id
2024-01-12 03:46:17 +00:00
Zhenchi
c1190bae7b
feat(mito): support write cache for index file ( #3144 )
...
* feat(mito): support write cache for index file
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: merge main
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-01-12 02:40:56 +00:00
Ruihang Xia
0882da4d01
feat: support PromQL operations over the same metric ( #3124 )
...
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update ut cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deadcode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-11 23:07:17 +00:00
Wei
8ec1e42754
feat: read data from write cache ( #3128 )
...
* feat: read from write cache
* chore: add read ranges test
* fix: use get instead of contains_key
* chore: clippy
* chore: cr comment
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: with_label_values
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-01-11 12:06:28 +00:00
Ruihang Xia
b00b49284e
feat: manager kafka cluster in sqlness runner ( #3143 )
...
* feat: manager kafka cluster in sqlness runner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* pull up clippy config
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: niebayes <niebayes@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: niebayes <niebayes@gmail.com >
2024-01-11 09:47:19 +00:00
Ruihang Xia
09b3c7029b
feat: handle drop request for metric table ( #3136 )
...
* handle drop request
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* adjust procedure manager
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add create table sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* insert/query metric table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* address CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/common/meta/src/kv_backend.rs
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* reuse region option for metadata region
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tweak variable name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2024-01-11 09:38:43 +00:00
niebayes
f5798e2833
fix: remove incorrect wal comments in config file ( #3142 )
...
fix: kafka config comments
2024-01-11 09:34:24 +00:00
Zhenchi
fd8fb641fd
feat(parquet): introduce inverted index applier to reader ( #3130 )
...
* feat(parquet): introduce inverted index applier to reader
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: purger removes index file
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: add TODO for escape route
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: add TODO for escape route
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* Update src/mito2/src/access_layer.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* Update src/mito2/src/sst/parquet/reader.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* feat: min-max index to prune row groups filtered by inverted index
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: file_meta.inverted_index_available -> file_meta.available_indexes
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: add TODO for leveraging WriteCache
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix fmt
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: misset available indexes
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: add index file size
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: use smallvec to reduce heap allocation
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: add index size to disk usage
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-01-11 08:04:59 +00:00
Weny Xu
312e8e824e
fix: save code in debug_assert! ( #3137 )
...
fix: save code in debug_assert!
2024-01-11 06:07:08 +00:00
Wei
29a7f301df
feat: write and upload sst ( #3106 )
...
* feat: write and upload sst file
* refactor: unit test
* cr comment
* chore: typos
* chore: cr comment
* chore: conflict
* Apply suggestions from code review
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* chore: fmt
* chore: style
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-01-11 02:34:16 +00:00
LFC
51a3fbc7bf
refactor: change how frontend grpc services are orchestrated ( #3134 )
2024-01-11 02:26:44 +00:00
Lanqing Yang
d521bc9dc5
chore: impl KvBackend for MetaPeerClient ( #3076 )
2024-01-10 14:16:03 +00:00
Weny Xu
7fad4e8356
fix: incorrect parsing broker_endpoints env variable ( #3135 )
2024-01-10 13:59:49 +00:00
Ning Sun
b6033f62cd
refactor: implement version as built-in function and use fixed mysql version ( #3133 )
...
* refactor: implement version as built-in function
* test: add sqlness test for version()
2024-01-10 11:04:18 +00:00
dennis zhuang
fd3f23ea15
feat: adds runtime_metrics ( #3127 )
...
* feat: adds runtime_metrics
* fix: comment
* feat: refactor metrics table
* chore: ensure build_info and runtime_metrics only avaiable in greptime catalog
* feat: adds timestamp column
2024-01-10 10:51:30 +00:00
niebayes
1b0e39a7f2
chore: stop exposing num_partitions ( #3132 )
2024-01-10 10:45:18 +00:00
Weny Xu
3ab370265a
feat: expose the region migration replay_timeout argument ( #3129 )
...
* feat: expose region migration args
* fix: fix ci
2024-01-10 09:47:59 +00:00
Weny Xu
ec8266b969
refactor: refactor the locks in the procedure ( #3126 )
...
* feat: add lock key
* refactor: procedure lock keys
* chore: apply suggestions from CR
2024-01-10 09:46:39 +00:00
Zhenchi
490312bf57
fix: unstable time record test ( #3131 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-01-10 09:41:52 +00:00
Ning Sun
1fc168bf6a
feat: update our cross schema check to cross catalog ( #3123 )
2024-01-09 09:38:48 +00:00
Zhenchi
db98484796
feat(inverted_index): introduce SstIndexCreator ( #3107 )
...
* feat(inverted_index): introduce SstIndexCreator
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: tiny polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: distinguish intermediate store and index store
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: move comment as doc comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: column id as index name
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-01-09 09:24:16 +00:00
Ruihang Xia
7d0d2163d2
fix: expose unsupported datatype error on mysql protocol ( #3121 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-09 09:13:53 +00:00
Ruihang Xia
c4582c05cc
chore: change the default doc checkbox to no need ( #3122 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-09 17:12:54 +08:00
niebayes
a0a31c8acc
chore(remote_wal): remove topic alias ( #3120 )
...
chore: remove topic alias
2024-01-09 07:35:02 +00:00
tison
0db1861452
chore(python): Print Python interpreter version ( #3118 )
...
* chore(pyo3_backend): Print bundle Python interpreter version
Signed-off-by: tison <wander4096@gmail.com >
* print RustPython interpreter version on init
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-01-09 07:04:23 +00:00
Wei
225ae953d1
feat: add parquet metadata to cache ( #3097 )
...
* feat: parquet metadata to sst meta cache
* chore: clippy
* refactor: move code to access_layer
* chore: clone()
2024-01-09 07:00:42 +00:00
Lei, HUANG
2c1b1cecc8
chore: add bound check for raft-engine logstore ( #3073 )
...
* chore: add bound check for raft-engine logstore
* feat: add bound check to append_batch API
* chore: check entry id during replay
* chore: resolve conflicts
* feat: add allow_stale_entries options to force obsolete wal entries
* chore: resolve some comments
2024-01-09 06:42:46 +00:00
Lei, HUANG
62db28b465
feat: add options to enable log recycle and periodical fsync ( #3114 )
...
* feat: add options to enable log recycle and periodical fsync
* fix: resolve review comments
* fix: conflicts
2024-01-09 06:41:23 +00:00
fys
6e860bc0fd
feat: support grpc for otlp trace and metrics ( #3105 )
...
* feat: add grpc support for otlp trace and metrics
* cr: add some comment
* fix: ut
* fix: cr
2024-01-09 05:01:48 +00:00
Yingwen
8bd4a36136
feat(mito): Init the write cache in datanode ( #3100 )
...
* feat: add builder to build cache manager
* refactor: make MitoEngine::new async
* refactor: refactor object store creation
* refactor: add helper fn to attaches layers
* feat: fn to build fs store
* feat: add write cache to engine
* feat: config write cache
* style: fix clippy
* test: fix test
* feat: add warning
* chore: add experimental prefix to configs
* test: fix config test
* test: test weighted size
* feat: add switch to enable write cache
* fix: update cache stats by using get
* style: use then
2024-01-09 04:40:22 +00:00
Ruihang Xia
af0c4c068a
feat: support PromQL function vector ( #3036 )
...
* produce vector plan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* work with OR
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* apply review sugg
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move common const strings to common_query
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add comment for GREPTIME_COUNT
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-09 03:44:00 +00:00
dennis zhuang
26cbcb8b3a
docs: update issue template ( #3119 )
2024-01-09 02:45:55 +00:00
niebayes
122b47210e
chore: bump version to 0.5.1 ( #3116 )
2024-01-08 11:32:56 +00:00
tison
316d843482
feat: support CSV format in sql HTTP API ( #3062 )
...
* chore: fix typo
Signed-off-by: tison <wander4096@gmail.com >
* add csv format
Signed-off-by: tison <wander4096@gmail.com >
* flatten response
Signed-off-by: tison <wander4096@gmail.com >
* more flatten response
Signed-off-by: tison <wander4096@gmail.com >
* add CSV format
Signed-off-by: tison <wander4096@gmail.com >
* format InfluxdbV1Response
Signed-off-by: tison <wander4096@gmail.com >
* format ErrorResponse
Signed-off-by: tison <wander4096@gmail.com >
* propagate ErrorResponse to InfluxdbV1Response
Signed-off-by: tison <wander4096@gmail.com >
* format GreptimedbV1Response
Signed-off-by: tison <wander4096@gmail.com >
* format CsvResponse
Signed-off-by: tison <wander4096@gmail.com >
* impl IntoResponse for QueryResponse
Signed-off-by: tison <wander4096@gmail.com >
* promql
Signed-off-by: tison <wander4096@gmail.com >
* sql
Signed-off-by: tison <wander4096@gmail.com >
* compile
Signed-off-by: tison <wander4096@gmail.com >
* fixup aide
Signed-off-by: tison <wander4096@gmail.com >
* clear debt
Signed-off-by: tison <wander4096@gmail.com >
* fixup UT test_recordbatches_conversion
Signed-off-by: tison <wander4096@gmail.com >
* fixup IT cases
Signed-off-by: tison <wander4096@gmail.com >
* fixup more IT cases
Signed-off-by: tison <wander4096@gmail.com >
* fixup test-integration cases
Signed-off-by: tison <wander4096@gmail.com >
* update comment
Signed-off-by: tison <wander4096@gmail.com >
* fixup deserialize and most query < 1ms
Signed-off-by: tison <wander4096@gmail.com >
* fixup auth tests
Signed-off-by: tison <wander4096@gmail.com >
* fixup tests
Signed-off-by: tison <wander4096@gmail.com >
* fixup and align X-GreptimeDB headers
Signed-off-by: tison <wander4096@gmail.com >
* fixup compile
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-01-08 10:54:27 +00:00
niebayes
8c58d3f85b
test(remote_wal): add unit tests for kafka remote wal ( #2993 )
...
* test: add unit tests
* feat: introduce kafka runtime backed by testcontainers
* test: add test for kafka runtime
* fix: format
* chore: make kafka image ready to be used
* feat: add entry builder
* tmp
* test: add unit tests for client manager
* test: add some unit tests for kafka log store
* chore: resolve some todos
* chore: resolve some todos
* test: add unit tests for kafka log store
* chore: add deprecate develop branch warning
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tmp: ready to move unit tests to an indie dir
* test: update unit tests for client manager
* test: add unit tests for meta srv remote wal
* fix: license
* fix: test
* refactor: kafka image
* doc: add doc example for kafka image
* chore: migrate kafka image to an indie PR
* fix: CR
* fix: CR
* fix: test
* fix: CR
* fix: update Cargo.toml
* fix: CR
* feat: skip test if no endpoints env
* fix: format
* test: rewrite parallel test with barrier
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-01-08 10:48:11 +00:00
LFC
fcacb100a2
chore: expose some codes to let other projects use them ( #3115 )
2024-01-08 06:32:01 +00:00
Weny Xu
58ada1dfef
fix: check env before running kafka test ( #3110 )
...
* fix: check env before running kafka test
* Apply suggestions from code review
Co-authored-by: niebayes <niebayes@gmail.com >
---------
Co-authored-by: niebayes <niebayes@gmail.com >
2024-01-08 06:30:43 +00:00
Weny Xu
f78c467a86
chore: bump opendal to 0.44.1 ( #3111 )
2024-01-08 03:55:58 +00:00
niebayes
78303639db
feat(remote_wal): split an entry if it's too large ( #3092 )
...
* feat: split an entry if it's too large
* chore: rewrite check records
* test: add some unit tests for record
* chore: rewrite entry splitting
* chore: add unit tests for build records
* chore: add more unit tests for record
* chore: rewrite encdec of record
* revert: ignored test
* fix: set limit for max_batch_size
* fix: clippy
* chore: remove heavy logging
* fix: CR
* fix: properly terminate
* fix: CR
* fix: compiling
* fix: sqlness
* fix: CR
* fix: license
* fix: license
2024-01-05 12:41:43 +00:00
JeremyHi
bd1a5dc265
feat: metric engine support alter ( #3098 )
...
* feat: metric engine support alter
* chore: by comment
* feat: get physical table route for frontend
2024-01-05 09:46:39 +00:00
Weny Xu
e0a43f37d7
chore: bump opendal to 0.44 ( #3058 )
...
* chore: bump opendal to 0.44
* fix: fix test_object_store_cache_policy
* Revert "fix: fix test_object_store_cache_policy"
This reverts commit 46c37c343f66114e0f6ee7a0a3b9ee2b79c810af.
* fix: fix test_object_store_cache_policy
* fix: fix test_file_backend_with_lru_cache
* chore: apply suggestions from CR
* fix(mito): fix mito2 cache
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-01-05 09:05:41 +00:00
zyy17
a89840f5f9
refactor(metrics): add 'greptime_' prefix for every metrics ( #3093 )
...
* refactor(metrics): add 'greptimedb_' prefix for every metrics
* chore: use 'greptime_' as prefix
* chore: add some prefix for new metrics
* chore: fix format error
2024-01-05 08:12:23 +00:00
dennis zhuang
c2db970687
feat: pushdown filters for some information_schema tables ( #3091 )
...
* feat: pushdown scan request to information_schema tables stream
* feat: supports filter pushdown for columns
* feat: supports filter pushdown for some information_schema tables
* fix: typo
* fix: predicate evaluate
* fix: typo
* test: predicates
* fix: comment
* fix: pub mod
* docs: improve comments
* fix: cr comments and supports like predicate
* chore: typo
* fix: cargo toml format
* chore: apply suggestion
2024-01-05 07:18:22 +00:00
LFC
e0525dbfeb
chore: expose some codes to let other projects use them ( #3102 )
2024-01-05 06:54:01 +00:00
Weny Xu
cdc9021160
feat(metric): implement role and region_disk_usage ( #3095 )
...
* feat(metric): implement `role` and `region_disk_usage`
* Update src/datanode/src/region_server.rs
* Update src/datanode/src/heartbeat.rs
---------
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
2024-01-05 06:53:52 +00:00
dennis zhuang
702ea32538
docs: update the description of greptimedb project ( #3099 )
...
* docs: update the info of greptimedb project
* chore: move up SQL/PromQL
2024-01-05 03:06:02 +00:00
Weny Xu
342faa4e07
test: add tests for lease keeper with logical table ( #3096 )
2024-01-05 02:29:48 +00:00
tison
44ba131987
fix: improve redact sql regexp ( #3080 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-01-04 14:53:20 +00:00
Yingwen
96b6235f25
feat(mito): Add WriteCache struct and write SSTs to write cache ( #2999 )
...
* docs: remove todo
* feat: add upload cache
* feat: add cache to sst write path
* feat: add storage to part
* feat: add dir to part
* feat: revert storage name
* feat: flush use upload part writer
* feat: use upload part writer in compaction task
* refactor: upload part writer builds parquet writer
* chore: suppress warnings
* refactor: rename UploadCache to WriteCache
* refactor: move source to write_all()
* chore: typos
* chore: remove output mod
* feat: changes upload to async method
* docs: update cache
* chore: fix compiler errors
* docs: remove comment
* chore: simplify upload part
* refactor: remove option from cache manager param to access layer
* feat: remove cache home from file cache
* feat: write cache holds file cache
* feat: add recover and pub some methods
* feat: remove usages of UploadPartWriter
* refactor: move sst_file_path to sst mod
* refactor: use write cache in access layer
* refactor: remove upload
* style: fix clippy
* refactor: pub write cache method/structs
2024-01-04 10:53:43 +00:00
Weny Xu
f1a4750576
feat(tests-integration): add more region migration integration tests ( #3094 )
2024-01-04 08:18:46 +00:00
Zhenchi
d973cf81f0
feat(inverted_index): implement apply for SstIndexApplier ( #3088 )
...
* feat(inverted_index): implement apply for SstIndexApplier
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: rename metrics
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-01-04 07:33:03 +00:00
Weny Xu
284a496f54
feat: add logs for upgrading candidate region and updating metadata ( #3077 )
...
* feat: add logs for upgrading candidate region
* feat: add logs for update metadata
* chore: apply suggestions from CR
2024-01-04 06:57:07 +00:00
WU Jingdi
4d250ed054
fix: Optimize export metric behavior ( #3047 )
...
* fix: optimze export metric bahavior
* chor: fix ci
* chore: update config format
* chore: fix format
2024-01-04 06:40:50 +00:00
LFC
ec43b9183d
feat: table route for metric engine ( #3053 )
...
* feat: table route for metric engine
* feat: register logical regions
* fix: open logical region (#96 )
---------
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2024-01-04 06:30:17 +00:00
ZonaHe
b025bed45c
feat: update dashboard to v0.4.6 ( #3089 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2024-01-04 02:56:41 +00:00
Weny Xu
21694c2a1d
feat: abort region migration if leader region peer is unexpected ( #3086 )
2024-01-03 11:46:51 +00:00
ClSlaid
5c66ce6e88
chore: remove unnecessary result wrappings ( #3084 )
...
patch: remove unnecessary result wrappings
Signed-off-by: 蔡略 <cailue@bupt.edu.cn >
2024-01-03 10:20:33 +00:00
Weny Xu
b2b752337b
fix: fix non-physical error msg ( #3087 )
2024-01-03 09:40:03 +00:00
Weny Xu
aa22f9c94a
refactor: allow procedure to acquire share lock ( #3061 )
...
* feat: implement `KeyRwLock`
* refactor: use KeyRwLock instead of LockMap
* refactor: use StringKey instead of String
* chore: remove redundant code
* refactor: cleanup KeyRwLock staled locks before granting new lock
* feat: clean staled locks manually
* feat: sort lock key in lexicographically order
* feat: ensure the ref count before dropping the rwlock
* feat: add more tests for rwlock
* feat: drop the key guards first
* feat: drops the key guards in the reverse order
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-01-03 08:05:45 +00:00
Weny Xu
611a8aa2fe
feat(tests-integration): add a naive region migration integration test ( #3078 )
...
* fix: fix heartbeat handler ignore upgrade candidate instruction
* fix: fix handler did not inject wal options
* feat: expose `RegionMigrationProcedureTask`
* feat(tests-integration): add a naive region migration test
* chore: apply suggestions from CR
* feat: add test if the target region has migrated
* chore: apply suggestions from CR
2024-01-03 07:12:59 +00:00
Zhenchi
e4c71843e6
feat(inverted_index): get memory usage of appliers ( #3081 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-01-03 06:56:56 +00:00
Zhenchi
e1ad7af10c
feat(puffin): finish return written bytes ( #3082 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-01-03 06:55:09 +00:00
Zhenchi
b9302e4f0d
feat(inverted_index): Add applier builder to convert Expr to Predicates (Part 2) ( #3068 )
...
* feat(inverted_index.integration): Add applier builder to convert Expr to Predicates (Part 1)
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(inverted_index.integration): Add applier builder to convert Expr to Predicates (Part 2)
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: add comparison unit tests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: add eq_list unit tests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: add in_list unit tests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: add and unit tests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: strip tests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-01-03 05:14:40 +00:00
Yingwen
2e686fe053
feat(mito): Implement file cache ( #3022 )
...
* feat: recover cache
* feat: moka features
* test: tests for file cache
* chore: suppress warninig
* fix: parse_inde_key consider suffix
* feat: update cache
* feat: expose cache file path
* feat: use cache_path in test
2024-01-03 02:05:06 +00:00
Weny Xu
128d3717fa
test(tests-integration): add a naive test with kafka wal ( #3071 )
...
* chore(tests-integration): add setup tests with kafka wal to README.md
* feat(tests-integration): add meta wal config
* fix(tests-integration): fix sign of both_instances_cases_with_kafka_wal
* chore(tests-integration): set num_topic to 3 for tests
* test(tests-integration): add a naive test with kafka wal
* chore: apply suggestions from CR
2024-01-02 09:05:20 +00:00
Weny Xu
2b181e91e0
refactor: unify the injection of WAL option ( #3066 )
...
* feat: add prepare_wal_option
* refactor: use integer hashmap
* feat: unify the injection of WAL option
* fix: fix procedure_flow_upgrade_candidate_with_retry
* chore: apply suggestions from CR
2024-01-02 07:40:02 +00:00
Weny Xu
d87ab06b28
feat: add kafka wal integration test utils ( #3069 )
...
* feat(tests-integration): add wal_config
* feat: add kafka wal integration test utils
2024-01-02 07:38:43 +00:00
Weny Xu
5653389063
feat!: correct the kafka config option ( #3065 )
...
* feat: correct the kafka config option
* refactor: rewrite the verbose comments
2024-01-02 07:31:37 +00:00
dimbtp
c4d7b0d91d
feat: add some tables for information_schema ( #3060 )
...
* feat: add information_schema.optimizer_trace
* feat: add information_schema.parameters
* feat: add information_schema.profiling
* feat: add information_schema.referential_constraints
* feat: add information_schema.routines
* feat: add information_schema.schema_privileges
* feat: add information_schema.table_privileges
* feat: add information_schema.triggers
* fix: update sql test result
* feat: add information_schema.global_status
* feat: add information_schema.session_status
* fix: update sql test result
* fix: add TODO for some tables
* Update src/catalog/src/information_schema/memory_table/tables.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-01-02 04:10:59 +00:00
dimbtp
f735f739e5
feat: add information_schema.key_column_usage ( #3057 )
...
* feat: add information_schema.key_column_usage
* fix: follow #3057 review comments
* fix: add sql test for `key_column_usage` table
* fix: fix spell typo
* fix: resolve conflict in sql test result
2023-12-31 12:29:06 +00:00
dimbtp
6070e88077
feat: add information_schema.files ( #3054 )
...
* feat: add information_schema.files
* fix: update information_schema.result
* fix: change `EXTRA` field type to string
2023-12-31 02:08:16 +00:00
niebayes
9db168875c
fix(remote_wal): some known issues ( #3052 )
...
* fix: some known issues
* fix: CR
* fix: CR
* chore: replace Mutex with RwLock
2023-12-30 15:28:10 +00:00
AntiTopQuark
4460af800f
feat(TableRouteValue): add panic notes and type checks ( #3031 )
...
* refactor(TableRouteValue): add panic notes and type checks
* chore: add deprecate develop branch warning
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add error defines and checks
* Update README.md
* update code format and fix tests
* update name of error
* delete unused note
* fix unsafe .expect() for region_route()
* update error name
* update unwrap
* update code format
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-30 13:02:26 +00:00
Zhenchi
69a53130c2
feat(inverted_index): Add applier builder to convert Expr to Predicates (Part 1) ( #3034 )
...
* feat(inverted_index.integration): Add applier builder to convert Expr to Predicates (Part 1)
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: add docs
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: typos
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* Update src/mito2/src/sst/index/applier/builder.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: remove unwrap
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: error source
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-12-30 07:32:32 +00:00
Ning Sun
1c94d4c506
ci: fix duplicatd doc issue ( #3056 )
2023-12-30 13:36:14 +08:00
Ning Sun
41e51d4ab3
chore: attempt to add doc issue in label task ( #3021 )
...
* chore: attempt to add doc issue in label task
* ci: check pr body for doc issue creation
2023-12-29 20:17:34 +08:00
dennis zhuang
11ae85b1cd
feat: adds information_schema.schemata ( #3051 )
...
* feat: improve information_schema.columns
* feat: adds information_schema.schemata
* fix: instance test
* fix: comment
2023-12-29 09:22:31 +00:00
LFC
7551432cff
refactor: merge standalone and metasrv table metadata allocators ( #3035 )
...
* refactor: merge standalone and metasrv table metadata allocators
* Update src/common/meta/src/ddl/table_meta.rs
Co-authored-by: niebayes <niebayes@gmail.com >
* Update src/common/meta/src/ddl/table_meta.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
---------
Co-authored-by: niebayes <niebayes@gmail.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2023-12-29 08:50:59 +00:00
Weny Xu
e16f093282
test(remote_wal): add sqlness with kafka wal ( #3027 )
...
* feat(sqlness): add kafka wal config
* chore: add sqlness with kafka wal ci config
* fix: fix config
* chore: apply suggestions from CR
* fix: add metasrv config to sqlness with kafka
* fix: replay memtable should from flushed_entry_id + 1
* fix: should set append flag to fopen
* feat: start wal allocator in standalone meta mode
* feat: append a noop record after kafka topic initialization
* test: ignore tests temporally
* test: change sqlness kafka wal config
2023-12-29 08:17:22 +00:00
Weny Xu
301ffc1d91
feat(remote_wal): append a noop record after kafka topic initialization ( #3040 )
...
* feat: append a noop record after kafka topic initialization
* chore: apply suggestions from CR
* feat: ignore the noop record during the read
2023-12-29 07:46:48 +00:00
Weny Xu
d22072f68b
feat: expose region migration http endpoint ( #3032 )
...
* feat: add region migration endpoint
* feat: implement naive peer registry
* chore: apply suggestions from CR
* chore: rename `ContextFactoryImpl` to `DefaultContextFactory`
* chore: rename unregister to deregister
* refactor: use lease-based alive datanode checking
2023-12-29 06:57:00 +00:00
Weny Xu
b526d159c3
fix: replay memtable should from flushed_entry_id + 1 ( #3038 )
...
* fix: replay memtable should from flushed_entry_id + 1
* chore: apply suggestions from CR
2023-12-28 16:12:07 +00:00
ZonaHe
7152407428
feat: update dashboard to v0.4.5 ( #3033 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-12-28 11:51:43 +00:00
Ruihang Xia
b58296de22
feat: Implement OR for PromQL ( #3024 )
...
* with anit-join
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl UnionDistinctOn
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* unify schema
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add UTs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/promql/src/planner.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-12-28 06:56:17 +00:00
Yingwen
1d80a0f2d6
chore: Update CI badge in README.md ( #3028 )
...
chore: Update README.md
Fix CI badge
2023-12-28 05:59:27 +00:00
Ruihang Xia
286b9af661
chore: change all reference from develop to main ( #3026 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-28 04:11:00 +00:00
dennis zhuang
af13eeaad3
feat: adds character_sets, collations and events etc. ( #3017 )
...
feat: adds character_sets, collations and events etc. to information_schema
2023-12-28 04:01:42 +00:00
Weny Xu
485a91f49a
feat: implement handle upgrade region instruction ( #3013 )
...
* feat: implement task tracker
* feat: implement handle upgrade region instruction
* refactor: remove redundant code
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* refactor: refactor wait_for_replay_millis to wait_for_replay_timeout
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2023-12-28 02:08:47 +00:00
Ruihang Xia
bd0eed7af9
chore: do not send message for xlarge PR ( #3020 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-27 13:22:19 +00:00
zyy17
b8b1e98399
refactor: use string type instead of Option type for '--store-key-prefix' ( #3018 )
...
* refactor: use string type instead of Option type for '--store-key-prefix'
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* chore: refine for code review comments
---------
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2023-12-27 11:26:30 +00:00
Weny Xu
abeb32e042
feat: implement region migration manager ( #3014 )
...
* feat: implement region migration manager
* Update src/meta-srv/src/procedure/region_migration/manager.rs
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* chore: apply suggestions from CR
---------
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-12-27 10:50:10 +00:00
Weny Xu
840e94630d
feat: implement param parsing of SubmitRegionMigrationTaskHandler ( #3015 )
...
* feat: implement param parsing of `SubmitMigrationTaskHandler`
* chore: apply suggestions from CR
* refactor: change `SubmitRegionMigrationTaskParams` to `SubmitRegionMigrationTaskRequest`
2023-12-27 10:08:54 +00:00
Wei
43e3a77263
fix: decimal128 ScalarValue to Value ( #3019 )
...
fix: decimal128 scalarvalue to value
2023-12-27 10:03:37 +00:00
WU Jingdi
d1ee1ba56a
feat: support set timezone in db ( #2992 )
...
* feat: support set timezone in db
* chore: fix ci
* chore: fix code advice
* fix: rename `time_zone` to `timezone`
2023-12-27 09:19:39 +00:00
Ning Sun
feec4e289d
feat: upgrade pgwire to 0.18 for corrected statement caching ( #3010 )
2023-12-27 03:02:25 +00:00
Ruihang Xia
718447c542
docs: RFC of enclosing column id ( #2983 )
...
* docs: RFC of enclosing column id
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update docs/rfcs/2023-12-22-enclose-column-id.md
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* Apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
* accomplish the first point
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-12-27 02:54:53 +00:00
LFC
eadde72973
chore: "fix: revert unfinished route table change" ( #3009 )
...
Revert "fix: revert unfinished route table change (#3008 )"
This reverts commit 8ce8a8f3c7 .
2023-12-27 02:40:59 +00:00
Ning Sun
7c5c75568d
chore: try to fix size labeller ( #3012 )
2023-12-26 21:36:44 +08:00
Ruihang Xia
1c9bf2e2a7
fix: change CI target repo to the origin one ( #3011 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-26 21:15:44 +08:00
niebayes
d061bf3d07
feat(remote_wal): introduce kafka remote wal ( #3001 )
...
* feat: integrate remote wal to standalone
* fix: test
* chore: ready to debug kafka remote wal
* fix: test
* chore: add some logs for remote wal
* chore: add logs for topic manager
* fix: properly terminate stream consumer
* fix: properly handle TopicAlreadyExists error
* fix: parse config file error
* fix: properly handle last entry id
* chore: prepare for merge
* fix: test
* fix: typo
* fix: set replication_factor properly
* fix: CR
* test: tmp for test
* Revert "test: tmp for test"
This reverts commit 093a3e0038 .
* fix: serde
* fix selector type deserialize
2023-12-26 12:35:24 +00:00
Ruihang Xia
8ce8a8f3c7
fix: revert unfinished route table change ( #3008 )
...
* Revert "refactor: hide `RegionRoute` behind `TableRouteValue` (#2989 )"
This reverts commit 1641fd572a .
* Revert "feat: MetricsEngine table route (part 1) (#2952 )"
This reverts commit 6ac47e939c .
2023-12-26 09:56:49 +00:00
Ruihang Xia
bf635a6c7c
feat: replace ahash with murmur3 on generating tsid ( #3007 )
...
* feat: replace ahash with murmur3 on generating tsid
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change random seed
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-26 07:45:31 +00:00
LFC
196c06db14
feat: make logging to stdout configurable ( #3003 )
...
* feat: make logging to stdout configurable
* fix sqlness
* fix: resolve PR comments
2023-12-26 07:37:50 +00:00
Ruihang Xia
99565a3676
fix: update doc label on pr edit ( #3005 )
...
* fix: update doc label on pr edit
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update token
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more trigger types
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-26 14:53:34 +08:00
Weny Xu
c902d43380
refactor(remote_wal): add StandaloneWalConfig ( #3002 )
...
* feat: integrate remote wal to standalone
* fix: test
* refactor: refactor standalone wal config
* chore: change default kafka port to 9092
* chore: apply suggestions from CR
---------
Co-authored-by: niebayes <niebayes@gmail.com >
2023-12-26 04:31:41 +00:00
Wei
95f172eb81
feat: convert FileMetaData to ParquetMetaData ( #2980 )
...
* feat: can convert Format FileMetaData to ParquetMetaData
* test: parquet metadata equal
* chore: test
* chore: cr comment
Co-authored-by: fys <40801205+fengys1996@users.noreply.github.com >
* chore: cr comment
* refactor: type name
* chore: cr comment
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: fys <40801205+fengys1996@users.noreply.github.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-12-26 04:27:36 +00:00
Ruihang Xia
3bd2f79841
chore(ci): auto doc labeler job ( #2998 )
...
* chore(ci): auto doc labeler job
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tweak rules
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-25 15:55:01 +00:00
tison
417be13400
feat: adopt human-panic crash reports ( #2996 )
...
* feat: adopt human-panic crash reports
Signed-off-by: tison <wander4096@gmail.com >
* build: fix dep toml conflict
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2023-12-25 13:23:18 +00:00
Ruihang Xia
0a9ad004a4
chore: bump version to 0.5.0 ( #3000 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-25 13:14:59 +00:00
SSebo
cf561df854
feat: export runtime metric to promethues ( #2985 )
...
* feat: export runtime metric to promethues
* fix: export tokio metric should enable tokio_unstable
* chore: tokio-metric export add more check info
2023-12-25 12:47:22 +00:00
LFC
1641fd572a
refactor: hide RegionRoute behind TableRouteValue ( #2989 )
...
* refactor: hide `RegionRoute` behind `TableRouteValue` (Metric Engine table route, part 2)
* Update src/common/meta/src/ddl/create_table.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* Update src/meta-srv/src/procedure/region_migration/test_util.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* fix: resolve PR comments
* fix: rustfmt
* compatible with the old TableRouteValue
* Update src/common/meta/src/key/table_route.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2023-12-25 11:37:50 +00:00
Weny Xu
89129c99c8
chore: setup kafka standalone in coverage test ( #2984 )
...
* chore: setup kafka standalone in coverage test
* test: add a naive test for topic manager
2023-12-25 11:18:54 +00:00
Ruihang Xia
48cd22d459
feat: support querying metric engine from frontend ( #2987 )
...
* query one logical table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* map column id
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deadcode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove redundent column name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-25 10:47:57 +00:00
zyy17
0d42651047
feat: add '--store-key-prefix' to support multiple meta instances can use the same etcd backend ( #2988 )
...
* feat: add '--store-key-prefix' to support multiple meta instances can use the same etcd backend
* refactor: refine lock_key
2023-12-25 09:33:25 +00:00
niebayes
bab198ae68
feat(remote_wal): impl kafka log store ( #2971 )
...
* feat: introduce client manager
* chore: add errors for client manager
* chore: add record utils
* chore: impl kafka log store
* chore: build kafka log store upon starting datanode
* chore: update comments for kafka log store
* chore: add a todo for getting entry offset
* fix: typo
* chore: remove unused
* chore: update comments
* fix: typo
* fix: resolve some review conversations
* chore: move commonly referenced crates to workspace Cargo.toml
* fix: style
* fix: style
* chore: unify topic name prefix
* chore: make backoff config configurable by users
* chore: properly use backoff config in wal config
* refactor: read/write of kafka log store
* fix: typo
* fix: typo
* fix: resolve review conversations
2023-12-25 09:21:52 +00:00
niebayes
d4ac8734bc
refactor(remote_wal): entry id usage ( #2986 )
...
* chore: update comments for log store stuff
* refactor: entry id usage
* tmp update
* Revert "tmp update"
This reverts commit fcfcda2851 .
* fix: resolve review conversations
* fix: resolve review conversations
* chore: remove entry offset
2023-12-25 07:30:27 +00:00
Lei, HUANG
4664cc601c
fix: install nextest bin ( #2990 )
...
* use binstall to install nextest
* fix: change all docker files
* Update docker/dev-builder/centos/Dockerfile
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-25 06:01:47 +00:00
Weny Xu
06fd7fd210
feat: add skip_wal_replay to OpenRegion instruction ( #2977 )
...
feat: add skip_wal_replay to OpenRegion instruction
2023-12-23 06:42:21 +00:00
dennis zhuang
d7b2e791b9
fix: duplicate information_schema ( #2979 )
...
* fix: duplicate information_schema
* chore: style
* fix: comment in sqlness
2023-12-22 14:02:11 +00:00
niebayes
7d509e97f6
chore: move some commonly referenced crates to workspace Cargo.toml ( #2981 )
...
fix: resolve conflicts
2023-12-22 09:13:18 +00:00
Wei
a7349b573b
feat: support fetch ranges in concurrent ( #2959 )
...
* feat: concurrent fetch ranges
* chore: cr comment
* chore: cr comment
* chore: clippy
2023-12-22 08:47:55 +00:00
niebayes
830a91c548
feat(remote_wal): implement topic allocation ( #2970 )
...
* chore: implement wal options allocator
* chore: implement round-robin topic selector
* feat: add shuffle to round-robin topic selector
* chore: implement kafka topic manager
* test: add tests for wal options allocator
* test: add wal provider to test config files
* test: leave todos for adding tests for remote wal
* fix: resolve review conversations
* fix: typo
2023-12-22 08:26:48 +00:00
ZonaHe
6221e5b105
feat: update dashboard to v0.4.4 ( #2978 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-12-22 06:37:39 +00:00
Ning Sun
43f01cc594
feat: add a default internal schema ( #2974 )
2023-12-22 06:25:19 +00:00
WU Jingdi
675767c023
feat: Support export metric in remote write format ( #2928 )
...
* feat: remote write metric task
* chore: pass stanalone task to frontend
* chore: change name to system metric
* fix: add header and rename to export metrics
2023-12-22 02:09:12 +00:00
dennis zhuang
054bca359e
feat: adds build_info table ( #2969 )
2023-12-21 12:28:09 +00:00
Weny Xu
ff8c10eae7
feat: add CatchupRequest to engine ( #2939 )
...
* chore: remove redundant code
* feat(mito): add CatchupRequest
feat: reopen region before replay if need
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* Apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-12-21 08:27:53 +00:00
Zhenchi
b5c5458798
refactor: remove unused code for pruning row groups ( #2973 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-12-21 07:54:29 +00:00
Ruihang Xia
6a1f5751c6
feat(metric-engine): open and close metric regions ( #2961 )
...
* implementation
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add metrics
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* define consts
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix compile error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* print region id with display
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* only ignore region not found
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-21 07:33:22 +00:00
LFC
8776b1204b
feat: use explicitly set table id ( #2945 )
...
* feat: make standalone table metadata allocator able to use explicitly set table id
* rebase
* fix: resolve PR comments
2023-12-21 05:51:43 +00:00
Yiran
bad89185c2
ci: add user-doc label checker ( #2967 )
2023-12-21 03:04:03 +00:00
Weny Xu
6c1c7d8d24
feat: allow initializing regions in background ( #2930 )
...
* refactor: open regions in background
* feat: add status code of RegionNotReady
* feat: use RegionNotReady instead of RegionNotFound for a registering region
* chore: apply suggestions from CR
* feat: add status code of RegionBusy
* feat: return RegionBusy for mutually exclusive operations
2023-12-20 11:37:46 +00:00
niebayes
9da1f236d9
feat(remote_wal): add skeleton for remote wal related to datanode ( #2941 )
...
* refactor: refactor wal config
* test: update tests related to wal
* feat: introduce kafka wal config
* chore: augment proto with wal options
* feat: augment region open request with wal options
* feat: augment mito region with wal options
* feat: augment region create request with wal options
* refactor: refactor log store trait
* feat: add skeleton for kafka log store
* feat: generalize building log store when starting datanode
* feat: integrate wal options to region write
* chore: minor update
* refactor: remove wal options from region create/open requests
* fix: compliation issues
* chore: insert wal options into region options upon initializing region server
* chore: integrate wal options into region options
* chore: fill in kafka wal config
* chore: reuse namespaces while writing to wal
* chore: minor update
* chore: fetch wal options from region while handling truncate/flush
* fix: region options test
* fix: resolve some review conversations
* refactor: serde with wal options
* fix: resolve some review conversations
2023-12-20 09:01:17 +00:00
LFC
6ac47e939c
feat: MetricsEngine table route (part 1) ( #2952 )
...
* refactor: make `TableRouteValue` an enum to add the variant of MetricsEngine table route
* fix: resolve PR comments
* Update src/common/meta/src/key/table_route.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2023-12-20 07:31:59 +00:00
Zhenchi
7d1724f832
feat(inverted_index.create): add index creator ( #2960 )
...
* feat(inverted_index.create): add read/write for external intermediate files
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: MAGIC_CODEC_V1 -> CODEC_V1_MAGIC
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: fix typos intermedia -> intermediate
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: typos
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(inverted_index.create): add external sorter
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: fix typos intermedia -> intermediate
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: drop the stream as early as possible to avoid recursive calls to poll
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: project merge sorted stream
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: add total_row_count to SortOutput
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: remove change of format
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(inverted_index.create): add index creator
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: add check for total_row_count
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: lazy set meta of writer
This reverts commit 63cb5bdb5c3a08406d978357d8167ca18ed1b83b.
* feat: lazyily provide inverted index writer
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish readability
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: add push_with_name_n
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-12-20 07:02:13 +00:00
Weny Xu
d2f49cbc2e
chore: remove debug = 1 of dev profile ( #2966 )
2023-12-20 04:37:46 +00:00
Weny Xu
97c3755ab6
feat(mito): add skip_wal_replay option to OpenRegionRequest ( #2955 )
...
* feat(mito): add skip_replay_wal option to OpenRegionRequest
* test: add tests for skip replay wal
* chore: rename `skip_replay_wal` to `skip_wal_replay`
2023-12-20 03:31:48 +00:00
JeremyHi
5f8c17514f
chore: SelectorType use snake_case ( #2962 )
...
chore: let SelectorType use snake_case
2023-12-20 02:28:29 +00:00
niebayes
839e653e0d
feat(remote_wal): add skeleton for remote wal related to meta srv ( #2933 )
...
* feat: introduce wal config and kafka config
* feat: introduce kafka topic manager and selector
* feat: introduce region wal options
* chore: build region wal options upon starting meta srv
* feat: integrate region wal options allocator into table meta allocator
* chore: add wal config to metasrv.example.toml
* chore: add region wal options map to create table procedure
* feat: augment region create request with wal options
* feat: augment DatanodeTableValue with region wal options map
* chore: encode region wal options upon constructing table creator
* feat: persist region wal options when creating table meta
* fix: sqlness test
* chore: set default wal provider to raft-engine
* refactor: refactor wal options
* chore: update wal options allocator
* refactor: rename region wal options to wal options
* chore: update usages of region wal options
* chore: add some comments to kafka
* chore: fill in kafka config
* test: add tests for serde wal config
* test: add tests for wal options
* refactor: refactor wal options allocator to enum
* refactor: store wal options into the request options instead
* fix: typo
* fix: typo
* refactor: move wal options map to region info
* refactor: refacto serialization and deserialization of wal options
* refactor: use serde_json to encode wal options
* chore: rename wal_options_map to region_wal_options
* chore: resolve some review comments
* fix: typo
* refactor: replace kecab-case with snake_case
* fix: sqlness and converage tests
* fix: typo
* fix: coverage test
* fix: coverage test
* chore: resolve some review conversations
* fix: resolve some review conversations
* chore: format comments in metasrv.example.toml
* chore: update import style
* feat: integrate wal options allocator to standalone mode
* test: add compatible test for OpenRegion
* test: add compatible test for UpdateRegionMetadata
* chore: remove based suffix from topic selector type
2023-12-19 12:43:47 +00:00
LFC
c7b36779c1
fix: correctly decode mysql timestamp binary value ( #2946 )
...
* fix: correctly decode mysql timestamp binary value
* fix: ut
* fix: resolve PR comments
2023-12-19 11:05:28 +00:00
Wei
bbcac3a541
fix: auto create datatype_extension missing ( #2953 )
2023-12-19 10:53:31 +00:00
dennis zhuang
600cde1ff2
fix: wrong link for selector ( #2958 )
2023-12-19 10:50:48 +00:00
Zhenchi
83de399bef
feat(inverted_index.create): add external sorter ( #2950 )
...
* feat(inverted_index.create): add read/write for external intermediate files
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: MAGIC_CODEC_V1 -> CODEC_V1_MAGIC
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: fix typos intermedia -> intermediate
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: typos
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(inverted_index.create): add external sorter
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: fix typos intermedia -> intermediate
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: drop the stream as early as possible to avoid recursive calls to poll
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: project merge sorted stream
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: add total_row_count to SortOutput
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: remove change of format
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: rename segment null bitmap
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: test type alias
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: allow `memory_usage_threshold` to be None to turn off dumping
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: change segment_row_count type to NonZeroUsize
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: accept BytesRef instead
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: add `push_n` to adapt mito2
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: add k-way merge TODO
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: more sorter cases
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: make the merge tree balance
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* Update src/index/src/inverted_index/create/sort/external_sort.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: stable feature
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-12-19 08:14:37 +00:00
Ruihang Xia
6b8dbcfb54
chore: update toolchain to 20231219 ( #2932 )
...
* update toolchain file, remove unused feature gates
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update action file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update to 12-19
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-19 07:24:08 +00:00
Wei
3e6a564f8e
fix: blocking read timer lack of parameter ( #2954 )
2023-12-19 06:16:55 +00:00
Zhenchi
ccbd49777d
fix: correct the error message for snappy compress ( #2956 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-12-19 06:14:40 +00:00
Weny Xu
29fc2ea9d8
feat: fetch manifests in concurrent ( #2951 )
...
* feat: fetch manifests in concurrent
* chore: set fetching manifest concurrency limit to 16
2023-12-19 06:12:30 +00:00
WU Jingdi
d180e41230
fix: change range query time slot to [align_ts, align_ts + range) ( #2938 )
2023-12-19 02:35:14 +00:00
liyang
62d5fcbd76
refactor: greptimedb cluster sqlness test scripts ( #2947 )
2023-12-18 10:59:14 +00:00
Zhenchi
d339191e29
refactor: remove reduntant .compat() ( #2949 )
...
* refactor: remove reduntant `.compat()`
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* remove dep
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-12-18 10:36:45 +00:00
Zhenchi
029ff2f1e3
feat(inverted_index.create): add read/write for external intermediate files ( #2942 )
...
* feat(inverted_index.create): add read/write for external intermediate files
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: MAGIC_CODEC_V1 -> CODEC_V1_MAGIC
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: fix typos intermedia -> intermediate
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: typos
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: futures_code -> asynchronous_codec
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: bump bytes to 1.5
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-12-18 09:44:48 +00:00
Ruihang Xia
9af9c0229a
feat: create table procedure for metric engine, part 1 ( #2943 )
...
* implementation
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* initialize
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove empty file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* apply review sugg
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-18 08:03:28 +00:00
WU Jingdi
4383a69876
fix!: remove range calendar as To option ( #2940 )
...
fix: remove range calendar as `To` option
2023-12-18 07:48:49 +00:00
LFC
033a065359
refactor: make sequence bounded with max value ( #2937 )
...
* refactor: make sequence bounded with max value
(cherry picked from commit 3a8eba6f863327a96b617cd86ee2d39fac30abb2)
* fix: resolve PR comments
2023-12-18 07:05:28 +00:00
dennis zhuang
262a79a170
feat: adds some tables to information_schema ( #2935 )
...
* feat: adds engines table to information_schema
* feat: adds COLUMN_PRIVILEGES and COLUMN_STATISTICS
* feat: refactor memory tables
* chore: rename memory_tables
* test: adds unit tests
* chore: format
* chore: style
* fix: by cr comments
* refactor: tables
2023-12-18 06:10:22 +00:00
Wei
5dc7ce1791
fix: typos and bit operations ( #2944 )
...
* fix: typos and bit operation
* fix: helper
* chore: add tests in decimal128.rs and interval.rs
* chore: test
* chore: change proto version
* chore: clippy
2023-12-18 03:06:11 +00:00
discord9
e35a494a3f
test: fix a wronged test script ( #2934 )
2023-12-14 14:27:36 +00:00
shuiyisong
5dba373ede
chore: return json body under http status 401 ( #2924 )
...
* chore: change auth_fn to function and return response with json body
* chore: move unsupported to debug level
* chore: add docs and tests
* chore: rebase and update test
2023-12-14 10:01:12 +00:00
Weny Xu
518bac35bc
feat: add log and tracing layers for Copy From statement ( #2929 )
...
feat: add log and tracing layers
2023-12-14 06:15:30 +00:00
Ning Sun
39f80876cd
feat: upgrade rustls library family, opensrv-mysql and pgwire ( #2927 )
...
* feat: deps up
* fmt: toml format
2023-12-14 05:56:39 +00:00
LFC
181e16a11a
refactor: make instance started separately ( #2911 )
...
* refactor: make instance started separately, to support further integrated into other binaries
* fix: resolve PR comments
* fix: resolve PR comments
2023-12-14 03:44:29 +00:00
JeremyHi
99dda93f0e
feat: sql with influxdb v1 result format ( #2917 )
...
* feat: sql with influxdb v1 result format
* chore: add unit tests
* feat: minor refactor
* chore: by comment
* chore; u128 to u64 since serde can't deser u128 in enum
* chore: by comment
* chore: apply suggestion
* chore: revert suggestion
* chore: try again
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-12-13 16:15:37 +00:00
ZonaHe
d3da128d66
feat: update dashboard to v0.4.3 ( #2926 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-12-13 11:12:17 +00:00
WU Jingdi
370ec04a9d
fix: use linear interpolation to implement range LINEAR fill strategy ( #2903 )
...
* fix: use linear interpolation to implement range LINEAR fill strategy
* chore: update test case
* chore: optimize linear interpolation implementation
* chore: update test and add comment
2023-12-13 09:53:35 +00:00
LFC
c13d2fd11d
ci: correctly find the binary in dev-build when using "dev" profile ( #2925 )
2023-12-13 09:04:44 +00:00
Yue Deng
3d651522c2
feat: add build() function to return the database build info ( #2919 )
...
* feat: add build function and register it
build() function to return the database build info #2909
* refactor: fix typos and change code structure
* test: add test for build()
* refactor: cargo fmt and eliminate warnings
* Apply suggestions from code review
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* refactor: move system.sql to a new directory
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2023-12-13 09:02:00 +00:00
Wei
fec3fcf4ef
feat: builder to vector without resetting ( #2915 )
...
* feat: finish_cloned() without resetting
* test: add unit cases
* chore: port comment
* chore: apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-12-13 06:48:09 +00:00
LFC
3555e1644c
ci: able to choose cargo profile in dev-build action ( #2923 )
2023-12-13 04:14:16 +00:00
niebayes
c42168d7c2
chore: remove useless storage apis ( #2904 )
...
* chore: remove metadata.rs
* chore: remove snapshot.rs
* chore: remove chunk.rs
* chore: remove engine.rs
* chore: remove MIN_OP_TYPE from types.rs
* chore: remove region.rs
* chore: remove almost all codes in requests.rs
* chore: remove WriteRequest from requests.rs
* chore: remove responses.rs
* chore: remove unused descriptors from descriptors.rs
* chore: remove unused consts from consts.rs
* chore: remove useless comments
2023-12-13 03:36:14 +00:00
Weny Xu
3c24ca1a7a
test: add more tests for region migration procedure ( #2895 )
...
* test: add flow test for open candidate region with retryable error
* test: add flow test for upgrade candidate retry failed
* test: add flow test for upgrade candidate with retry
2023-12-13 03:00:58 +00:00
Wei
9531469660
fix: date - interval sqlness ( #2912 )
...
fix: date - interval can work
2023-12-12 12:45:38 +00:00
LFC
880ca2e786
fix: return error to client if prepare stmt param not match ( #2918 )
...
* fix: return error to client if prepare stmt param not match
* Update src/servers/src/mysql/handler.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-12 12:41:09 +00:00
Ruihang Xia
0ce2b50676
feat!: do not get TZ info from server local env ( #2905 )
...
* feat: do not get TZ info from server local env
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add empty line
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-12 12:41:05 +00:00
WU Jingdi
34635558d2
fix: support tailing commas in SQL ( #2913 )
...
* fix: support tailing commas in SQL
* fix: broken ci
2023-12-12 11:56:23 +00:00
Ruihang Xia
8a74bd36f5
style: rename *Adaptor to *Adapter ( #2914 )
...
* rename RecordBatchStreamAdaptor to RecordBatchStreamWrapper
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename ServerSqlQueryHandlerAdaptor to ServerSqlQueryHandlerAdapter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-12 09:45:09 +00:00
Weny Xu
cf6bba09fd
refactor: use downgrading the region instead of closing region ( #2863 )
...
* refactor: use downgrading the region instead of closing region
* feat: enhance the tests for alive keeper
* feat: add a metric to track region lease expired
* chore: apply suggestions from CR
* chore: enable logging for test_distributed_handle_ddl_request
* refactor: simplify lease keeper
* feat: add metrics for lease keeper
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* refactor: move OpeningRegionKeeper to common_meta
* feat: register operating regions to MemoryRegionKeeper
2023-12-12 09:24:17 +00:00
Ruihang Xia
89a0d3af1e
feat: set default debug level of release and dev profiles to 1 ( #2916 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-12 08:01:18 +00:00
tison
47e51545dd
ci: prevent running nightly FT in forks ( #2906 )
2023-12-12 02:49:52 +00:00
Zhenchi
1e22f1cb4f
feat(inverted_index.format): add writer ( #2900 )
...
* feat(inverted_index.format): add writer
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: remove clippy allow
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* Update src/index/src/inverted_index/error.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-11 09:55:25 +00:00
dennis zhuang
cf8b6c77dc
chore: clean up unused errors ( #2901 )
2023-12-11 09:08:50 +00:00
Yingwen
6a57f4975e
perf(mito): scan SSTs and memtables in parallel ( #2852 )
...
* feat: seq scan support parallelism
* feat: scan region by parallelism in config
* feat: enlarge channel size
* chore: parallel builder logs
* feat: use parallel reader accroding to source num
* chore: 128 channel size
* feat: add fetch cost metrics
* feat: add channel size to config
* feat: builder cost
* feat: logs
* feat: compiler error
* feat: fetch cost
* feat: convert cost
* chore: Revert "feat: logs"
This reverts commit 01e0df2c3a .
* chore: fix compiler errors
* feat: reduce channel size to 32
* chore: use workspace tokio-stream
* test: test scan in parallel
* chore: comment typos
* refactor: build all sources first
* test: test 0 parallelism
* feat: use parallel scan by default
* docs: update config example
* feat: log parallelism
* refactor: keep config in engine inner
* refactor: rename parallelism method
* docs: update docs
* test: fix config api test
* docs: update parallel scan comment
* feat: 0 for default parallelism
2023-12-11 06:43:17 +00:00
tison
178018143d
ci: prevent running nightly CI in forks ( #2898 )
...
Signed-off-by: tison <wander4096@gmail.com >
2023-12-11 02:34:59 +00:00
tison
73227bbafd
chore: ignore MySQL client sent SELECT $$ ( #2896 )
...
Signed-off-by: tison <wander4096@gmail.com >
2023-12-11 02:27:22 +00:00
Weny Xu
5a99f098c5
test: add tests for region migration procedure ( #2857 )
...
* feat: add backward compatibility test for persistent ctx
* refactor: refactor State of region migration
* feat: add test utils for region migration tests
* test: add simple region migration tests
* chore: apply suggestions from CR
2023-12-08 08:47:09 +00:00
Ruihang Xia
7cf9945161
fix: re-enable ignored case test_query_prepared ( #2892 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-08 08:35:56 +00:00
tison
bfb4794cfa
fix: handle heartbeat shutdown gracefully ( #2886 )
...
* fix: handle heartbeat shutdown gracefully
Signed-off-by: tison <wander4096@gmail.com >
* improve logging
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2023-12-08 03:59:05 +00:00
Ruihang Xia
58183fe72f
fix: align linear_regression to PromQL's behavior ( #2879 )
...
* fix: accept f64 and i64 as predict_linear's param
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use second instead of millisecond
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add test to linear_regression
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-08 02:41:10 +00:00
Niwaka
09aa4b72a5
chore: update storage config example ( #2887 )
...
chore: update config example
2023-12-07 03:18:56 +00:00
dennis zhuang
43f32f4499
feat: impl date_add/date_sub functions ( #2881 )
...
* feat: adds date_add and date_sub function
* test: add date function
* fix: adds interval to date returns wrong result
* fix: header
* fix: typo
* fix: timestamp resolution
* fix: capacity
* chore: apply suggestion
* fix: wrong behavior when adding intervals to timestamp, date and datetime
* chore: remove unused error
* test: refactor and add some tests
2023-12-07 03:02:15 +00:00
tison
ea80570cb1
fix: mysql version function result ( #2884 )
...
Signed-off-by: tison <wander4096@gmail.com >
2023-12-06 16:14:09 +00:00
Niwaka
cfe3a2c55e
feat!: support table ddl for custom storage ( #2733 )
...
* feat: support table ddl for custom_storage
* refactor: rename extract_variant_name to name
* chore: add blank
* chore: keep compatible
* feat: rename custom_stores to providers
* chore: rename
* chore: config
* refactor: add should_retry in client Error
* fix: test fail
* chore: remove unused options
* chore: remove unused import
* chore: remove the blanks.
* chore: revert
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-12-06 15:59:01 +00:00
Ruihang Xia
2cca267a32
chore: tweak status code of promql errors ( #2883 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-06 13:50:53 +00:00
tison
f74715ce52
refactor: RegionEngine::handle_request always returns affected rows ( #2874 )
...
* refactor: RegionEngine::handle_request -> handle_execution
Signed-off-by: tison <wander4096@gmail.com >
* propagate refactor
Signed-off-by: tison <wander4096@gmail.com >
* revert spell change
Signed-off-by: tison <wander4096@gmail.com >
* propagate refactor
Signed-off-by: tison <wander4096@gmail.com >
* cargo clippy
Signed-off-by: tison <wander4096@gmail.com >
* propagate refactor
Signed-off-by: tison <wander4096@gmail.com >
* cargo fmt
Signed-off-by: tison <wander4096@gmail.com >
* more name clarification
Signed-off-by: tison <wander4096@gmail.com >
* revert rename
Signed-off-by: tison <wander4096@gmail.com >
* wrap affected rows into RegionResponse
Signed-off-by: tison <wander4096@gmail.com >
* flatten return AffectedRows
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2023-12-06 13:27:19 +00:00
Weny Xu
1141dbe946
chore: unify the meta metrics styling ( #2875 )
...
* chore: unify the meta metrics styling
* chore: apply suggestions from CR
2023-12-06 09:20:41 +00:00
ZonaHe
a415685bf1
feat: update dashboard to v0.4.2 ( #2882 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-12-06 09:13:02 +00:00
dennis zhuang
f9e7762c5b
fix: add new column as primary key can't work ( #2876 )
2023-12-05 11:07:53 +00:00
Zhenchi
0b421b5177
feat(inverted_index.search): add index applier ( #2868 )
...
* feat(inverted_index.search): add fst applier
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: typos
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(inverted_index.search): add fst values mapper
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: remove meta check
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: fmt & clippy
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: one expect for test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(inverted_index.search): add index applier
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: bitmap_full -> bitmap_full_range
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: add check for segment_row_count
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: remove redundant code
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: reader test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: match error in test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: fmt
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: add helper function to construct fst value
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: polish unit tests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: bytemuck to extract offset and size
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: toml format
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: use bytemuck
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: reorg value in unit tests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: update proto
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: add a TODO reminder to consider optimizing the order of apply
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: InList predicates are applied first to benefit from higher selectivity
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: update proto
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: add read options to control the behavior of index not found
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: move read options to implementation instead of trait
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: add SearchContext, refine doc comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: move index_not_found_strategy as a field of SearchContext
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: rename varient
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-12-05 08:24:24 +00:00
WU Jingdi
aa89d9deef
fix: replace opendal PrometheusLayer ( #2861 )
...
* fix: replace opendal `PrometheusLayer`
* chore: add docs on `PrometheusMetricsLayer`
* chore: fix code advice
* chore: fix bug on `PrometheusMetricsLayer`
2023-12-05 07:15:45 +00:00
Weny Xu
b3ffe5cd1e
feat: handle the downgrade region instruction ( #2855 )
...
* feat: handle the downgrade region instruction
* test: add tests for RegionHeartbeatResponseHandler
* refactor: remove unused code
2023-12-05 03:30:55 +00:00
Ruihang Xia
d6ef7a75de
fix: type conversion rule reverses operands ( #2871 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-05 03:25:29 +00:00
LFC
6344b1e0db
fix: fragile integration tests ( #2870 )
2023-12-05 02:35:23 +00:00
tison
7d506b3c5f
feat: drop if exists ( #2859 )
...
* feat: drop if exists
Signed-off-by: tison <wander4096@gmail.com >
* sqlness cases
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2023-12-05 02:18:33 +00:00
Zhenchi
96e12e9ee5
fix: correct the previously unsuccessful decimal_ops sort result fix ( #2869 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-12-04 15:29:02 +00:00
Zhenchi
a9db80ab1a
feat(inverted_index.search): add fst values mapper ( #2862 )
...
* feat(inverted_index.search): add fst applier
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: typos
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(inverted_index.search): add fst values mapper
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: remove meta check
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: fmt & clippy
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: one expect for test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: match error in test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: fmt
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: add helper function to construct fst value
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: bytemuck to extract offset and size
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: toml format
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-12-04 13:29:02 +00:00
Ruihang Xia
5f5dbe0172
fix: sort result of sqlness case decimal_ops ( #2867 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-12-04 12:34:27 +00:00
Wei
dac7a41cbd
feat: sqlness for decimal128 ( #2822 )
2023-12-04 11:22:38 +00:00
Ruihang Xia
de416465a6
feat: support time() and related functions in PromQL ( #2854 )
...
* enhance empty_metric
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implementation
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix lhs & rhs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo, update sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deadcode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add cast to bool modifier
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-12-04 11:21:54 +00:00
Zhenchi
58c13739f0
feat(inverted_index.search): add fst applier ( #2851 )
...
* feat(inverted_index.search): add fst applier
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: typos
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-12-04 09:21:09 +00:00
WU Jingdi
806400caff
feat: add align to / interval support in range query ( #2842 )
...
* feat: add align to / interval support in range query
* chore: fix ci
* chore: simplify `parse_duration_expr`
* chore: change s to ms
2023-12-04 08:00:41 +00:00
Weny Xu
f78dab078c
chore: correct closeable typos ( #2860 )
2023-12-04 06:25:48 +00:00
Weny Xu
7a14db68a6
feat: add upgrade candidate region step ( #2829 )
...
* feat: add upgrade candidate region step
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2023-12-04 05:09:27 +00:00
Weny Xu
c26f2f94c0
chore: add logs and metrics ( #2858 )
...
* chore: add logs and metrics
* feat: add the timer to track heartbeat intervel
* feat: add the gauge to track region leases
* refactor: use gauge instead of the timer
* chore: apply suggestions from CR
* feat: add hit rate and etcd txn metrics
2023-12-04 02:51:30 +00:00
Weny Xu
781f2422b3
feat: add update metadata step for rollbacking downgraded region ( #2812 )
...
* feat: add update metadata step for rollbacking downgraded region
* feat: invalidate table cache after updating metadata
* feat: add migration abort step
2023-12-01 11:36:05 +00:00
Yingwen
7e68ecc498
feat: do not concat batches in MergeReader ( #2833 )
2023-12-01 06:52:43 +00:00
LFC
9ce9421850
refactor: add builder for Frontend ( #2849 )
2023-12-01 04:39:47 +00:00
zyy17
c0df2b9086
ci: set 'omitBody' true when releasing ( #2845 )
...
ci: set 'omitBody'
2023-11-30 10:53:07 +00:00
Yiran
29d344ccd2
docs: update getting-started document link ( #2843 )
2023-11-30 10:03:09 +00:00
Wei
fe2fc723bc
refactor: DataType name function ( #2836 )
...
* refactor: DataType name function
* chore: test case
2023-11-30 03:49:09 +00:00
Wei
2332305b90
refactor: replace usage of ArrayData by clone ( #2827 )
...
* refactor: use array clone()
* refactor: slice
* chore: clippy
2023-11-30 03:27:29 +00:00
Ruihang Xia
9ccd182109
feat: implement PromQL set op AND/UNLESS ( #2839 )
...
* initial impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* disable OR for now
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-30 03:17:57 +00:00
Weny Xu
ae8153515b
feat: add update metadata step for upgrading candidate region ( #2811 )
2023-11-29 11:10:38 +00:00
Weny Xu
cce5edc88e
feat: add downgrade leader region step ( #2792 )
...
* feat: add downgrade leader region step
* chore: apply suggestions from CR
* chore: rename exist to exists
* chore: apply suggestions from CR
2023-11-29 09:17:28 +00:00
Weny Xu
616eb04914
chore: bump version to 0.4.4 ( #2840 )
...
chore: bump to v0.4.4
2023-11-29 08:59:42 +00:00
ZonaHe
7c53f92e4b
feat: update dashboard to v0.4.1 ( #2841 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-11-29 08:50:25 +00:00
Ruihang Xia
445bd92c7a
feat: add arg to standalone start command ( #2837 )
...
* feat: add arg to standalone start command
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add this arg to metasrv
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove short arg name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-29 07:44:43 +00:00
Ruihang Xia
92a9802343
feat: canonicalize all unquoted identifier to lowercase ( #2828 )
...
* feat: canonicalize all unquoted identifier to lowercase
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* test altering table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* primary key declare
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix primary key declare
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* partition by and time index
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove redundent call to canonicalize
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-29 06:40:10 +00:00
Yingwen
abbac46c05
fix: do not expose manifest compression algorithm ( #2835 )
...
* fix: don't allow to set manifest compression algorithm
* docs: update config examples
2023-11-29 05:49:40 +00:00
ZonaHe
d0d0f091f0
feat: update dashboard to v0.4.0 ( #2832 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-11-28 10:38:37 +00:00
fys
707a0d5626
fix: urldecode when influxdb auth ( #2831 )
...
* fix: add url decode when influxdb auth
* chore: fmt toml
2023-11-28 09:35:03 +00:00
Weny Xu
e42767d500
fix: fix name verifying ( #2825 )
2023-11-28 02:47:03 +00:00
Weny Xu
ca18ccf7d4
fix: fix broken CI ( #2826 )
2023-11-27 14:49:39 +00:00
hygkui
b1d8812806
docs: Update README.md Add JS Client link ( #2821 )
...
* Update README.md Add JS Client link
Add JS Client link
* chore: apply suggestion
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-11-27 14:23:54 +00:00
Weny Xu
7547e7ebdf
fix: fix procedure loaders not found issue ( #2824 )
2023-11-27 10:50:28 +00:00
Yingwen
6100cb335a
fix(mito): do not check nullability of fields in delete requests ( #2815 )
...
* test: test for delete rows from table with non null columns
* test: test delete and reopen
* fix: allow deleting rows with non null column
2023-11-27 09:54:50 +00:00
WU Jingdi
0badb3715e
feat: support sample ratio in trace ( #2809 )
...
* feat: support sample ratio in trace
* chore: fix code advice
2023-11-27 06:46:46 +00:00
Ning Sun
bd9c2f2666
fix: windows build and check ci check for windows ( #2819 )
2023-11-27 03:42:44 +00:00
Zhenchi
b3edbef1f3
feat(inverted_index): add index reader ( #2803 )
...
* feat(inverted_index): add reader
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: toml format
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: add prefix relative_ to the offset parameter
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* docs: add doc comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: update proto
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: outdated docs
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-11-27 03:31:44 +00:00
Weny Xu
9e58bba363
feat: add set_readonly_gracefully for engine ( #2787 )
...
* feat: add set_readonly_gracefully for engine
* chore: apply suggestions from CR
* chore: rename to set_readonly_test
* chore: apply suggestions from CR
2023-11-24 10:59:05 +00:00
Wei
3a4c9f2b45
feat: supports decimal type in RPC ( #2788 )
...
* refactor: ColumnDataTypeWrapper
* feat: decimal128 grpc
* feat: add test case
* chore: add TODO
* chore: empty line
* chore: remove precision and scale
* refactor: remove precision and scale
* chore: remove sqlness test
* chore: rename
* chore: proto version
* chore: cr comment.
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/mito2/src/memtable/time_series.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-11-24 09:19:33 +00:00
LFC
64a36e9b36
refactor: start datanode more flexibly ( #2800 )
...
* refactor: start datanode more flexibly
* Update src/datanode/src/datanode.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* fix: resolve PR comments
* Apply suggestions from code review
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-11-24 08:16:21 +00:00
Ruihang Xia
33566ea0f0
feat: handle scan request on metric engine ( #2793 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* read/write tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy lints
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix compile error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy lints
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* apply review sugg
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* do not filter out internal column
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy lints
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-24 08:01:49 +00:00
tison
ff8ab6763b
chore: internal ChrootKvBackend refactor and test ( #2799 )
...
* try avoid rate limit
Signed-off-by: tison <wander4096@gmail.com >
* chroot utilities as method
Signed-off-by: tison <wander4096@gmail.com >
* add test
Signed-off-by: tison <wander4096@gmail.com >
* make clippy happy
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2023-11-24 06:45:09 +00:00
Yingwen
00e4bd45f0
feat: add put_only field to skip filtering deletion ( #2801 )
...
* feat: add put_only field to skip filtering deletion
* docs: fix typo
2023-11-24 06:33:17 +00:00
Ning Sun
85eebcb16f
fix: correct mysql timestamp encoding for binary protocol ( #2797 )
...
* fix: correct mysql timestamp encoding for binary protocol
* test: add tests for mysql timestamp encoding
2023-11-23 18:54:59 +00:00
tison
102e43aace
test: use EtcdStore in IT cases ( #2734 )
...
* test: use EtcdStore in IT cases
Signed-off-by: tison <wander4096@gmail.com >
* retrigger CI
Signed-off-by: tison <wander4096@gmail.com >
* refactor: KvPair can take etcd KeyValue
Signed-off-by: tison <wander4096@gmail.com >
* temporary use fork
Signed-off-by: tison <wander4096@gmail.com >
* drop cloned
Signed-off-by: tison <wander4096@gmail.com >
* chroot_key_value
Signed-off-by: tison <wander4096@gmail.com >
* chroot and prepend in each point
Signed-off-by: tison <wander4096@gmail.com >
* adjust call points
Signed-off-by: tison <wander4096@gmail.com >
* cargo clippy
Signed-off-by: tison <wander4096@gmail.com >
* point to upstream etcd-client
Signed-off-by: tison <wander4096@gmail.com >
* test etcd chroot
Signed-off-by: tison <wander4096@gmail.com >
* add NO_CHROOT constant
Signed-off-by: tison <wander4096@gmail.com >
* check
Signed-off-by: tison <wander4096@gmail.com >
* handle range end
Signed-off-by: tison <wander4096@gmail.com >
* handle special encoded key or range_end
Signed-off-by: tison <wander4096@gmail.com >
* fixup implementation
Signed-off-by: tison <wander4096@gmail.com >
* clippy
Signed-off-by: tison <wander4096@gmail.com >
* avoid test name conflict
Signed-off-by: tison <wander4096@gmail.com >
* chroot to kvbackend level
Signed-off-by: tison <wander4096@gmail.com >
* fixup all occurances
Signed-off-by: tison <wander4096@gmail.com >
* fix type
Signed-off-by: tison <wander4096@gmail.com >
* Update src/common/meta/src/kv_backend/txn.rs
* make github happy
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
2023-11-23 05:47:00 +00:00
Ruihang Xia
56fc77e573
fix: add missing error display message ( #2791 )
...
* fix: add missing error display message
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-11-23 02:59:49 +00:00
Weny Xu
4c76d4d97e
feat: add update metadata step for downgrading leader region ( #2771 )
2023-11-21 12:01:28 +00:00
Zhenchi
9e5cdf47d9
chore(puffin): re-add tests file ( #2790 )
...
* chore(puffin): re-add tests file
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: fmt
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-11-21 11:02:18 +00:00
Zhenchi
bdb677dc52
chore(puffin): remove tests ( #2789 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-11-21 10:02:34 +00:00
Ruihang Xia
99dbb7401c
refactor: remove sequence number from ScanRequest ( #2785 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-21 07:38:30 +00:00
Zhenchi
a7bbd61f28
feat(puffin): add file writer ( #2776 )
...
* feat(puffin): add file writer
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* Update src/puffin/src/file_format/writer/file.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* Update src/puffin/src/file_format/writer/file.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* feat: footer bytes with capacity
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: footer bytes with capacity
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* Update src/puffin/src/file_format/writer.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* feat: add flush
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: specify default flags
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: close async writer
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-11-21 06:35:48 +00:00
tison
efc5abfc02
build: upgrade etcd-client to 0.12.2 ( #2781 )
...
* build: upgrade etcd-client to 0.12.2
Signed-off-by: tison <wander4096@gmail.com >
* upgrade nightly toolchain
Signed-off-by: tison <wander4096@gmail.com >
* chore: run clippy
Signed-off-by: tison <wander4096@gmail.com >
* Update Cargo.toml
Co-authored-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: Ning Sun <classicning@gmail.com >
2023-11-21 06:33:41 +00:00
Weny Xu
43a7457e15
fix: bring back inactive_region_ids ( #2783 )
2023-11-21 06:24:33 +00:00
Ruihang Xia
20f01219e9
refactor: adjust metric engine structure ( #2773 )
...
* extract consts into a separate mod
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add documents
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* split state
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* split create
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* split alter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* split put
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix metadata clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix engine clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-21 05:21:22 +00:00
JeremyHi
dc351a6de9
feat: heartbeat handler control ( #2780 )
2023-11-21 02:48:11 +00:00
zyy17
5f87b1f714
ci: add ubuntu:18.10 dev-builder for using old version glibc(>=2.28) ( #2779 )
2023-11-20 16:51:42 +00:00
Yingwen
b9146c88ff
refactor: Remove usages of the old storage crate ( #2777 )
...
* chore: remove storage from some crate
* feat: remove storage config
* feat: remove storage from cmd
* feat: impl stream_to_parquet
* feat: remove storage from operator
* feat: remove stream writer from mito2
* feat: remove storage from project toml
* test: fix config api test
* docs: remove outdated configs
* refactor: remove storage directory
2023-11-20 20:29:41 +08:00
Bruce Chen
9558b3c201
build(cmd): upgrade clap to 4.x ( #2775 )
...
* build(cmd): upgrade clap to 4.4.8
* build(cmd): upgrade clap to 4.4
2023-11-20 10:43:31 +00:00
fys
da68d8ce4b
feat: add random weighted choose in load_based selector ( #2234 )
...
* feat: add random weigted choose in load_based selector
* fix: meta cannot save heartbeats when cluster have no region
* chore: print some log
* chore: remove unused code
* cr
* add some logs when filter result is empty
2023-11-20 06:47:42 +00:00
Wei
01867adaa7
feat: unit test for mutable vector ( #2768 )
...
feat: test for mutable trait datatype method
2023-11-20 06:20:13 +00:00
Zhenchi
d9eeeee06e
feat(puffin): add file reader ( #2751 )
...
* feat(puffin): add file reader
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: toml format
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: rename PuffinParser to PuffinFileReader
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: polish comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* Update src/puffin/src/file_format/reader/footer.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/puffin/src/file_format/reader/file.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/puffin/src/file_format/reader/footer.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/puffin/src/file_format/reader/footer.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: check file size
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: redundant type cast
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: reuse read buffer
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: check payload size
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: check payload size
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: validate blob offset
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: validate blob offset
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-11-20 04:29:41 +00:00
Weny Xu
4fcda272fb
feat: add open candidate region step ( #2757 )
...
* feat: add open candidate region state
* feat: register the opening region
* chore: apply suggestions from CR
2023-11-20 03:36:00 +00:00
Yingwen
ce959ddd3f
feat(mito): implements row group level page cache ( #2688 )
...
* feat: add page cache
* docs: update mito config toml
* feat: impl CachedPageReader
* feat: use cache reader to read row group
* feat: do not fetch data if we have pages in cache
* chore: return if nothing to fetch
* feat: enlarge page cache size
* test: test write read parquet
* test: test cache
* docs: update comments
* test: fix config api test
* feat: cache metrics
* feat: change default page cache size
* test: fix config api test
2023-11-20 02:55:50 +00:00
Weny Xu
730a3faa02
fix: fix exits typos ( #2772 )
2023-11-20 02:07:01 +00:00
WU Jingdi
91820a8006
fix: empty by in range query ( #2770 )
...
* fix: empty by in range query
* Apply suggestions from code review
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-17 11:18:14 +00:00
WU Jingdi
500e299e40
feat: Enable distributed tracing in greptimedb ( #2755 )
...
* feat: implement distributed tracing
* fix: change usage of span
* fix: use otlp as exporter
* chore: update dependence
* chore: add span info
* chore: add alias
* chore: use instrument instead of trace
2023-11-17 08:51:57 +00:00
Ruihang Xia
ac4b6cd7f0
feat: write logical region to metric engine ( #2759 )
...
* transform write request
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add tests for put request
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use table_id instead of metric_name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* CR sugg.
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* define random state as const
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-17 07:44:11 +00:00
Weny Xu
3ab494764f
feat: add migration start step ( #2756 )
...
* feat: add migration start state
* refactor: move PersistentContext and VolatileContext into Context
* chore: apply suggestions from CR
2023-11-17 07:05:04 +00:00
Lanqing Yang
5608035074
fix!: improve user experience on setting compression type ( #2765 )
...
* fixes: https://github.com/GreptimeTeam/greptimedb/issues/2758
Chore: improve user experience on setting compression type
* Update src/common/datasource/src/compression.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-11-17 06:27:13 +00:00
Lei, HUANG
e083b8011c
chore: bump greptimedb version v0.4.3 ( #2766 )
2023-11-17 06:12:37 +00:00
Yingwen
06327fba1e
feat: improve http error message ( #2767 )
...
* feat: improve http error message
* feat: log http error
* style: fix clippy
* test: fix test
2023-11-17 04:03:30 +00:00
Yingwen
06da33b1ed
fix: mysql writer does not print error message in some cases ( #2763 )
...
* fix: mysql writer does not print error in some cases
* feat: http error msg
2023-11-17 03:07:54 +00:00
Yingwen
2aa6ac5731
fix: correct memtable cost ( #2762 )
2023-11-17 02:58:51 +00:00
Weny Xu
b28af9443b
feat: grant lease to opening regions ( #2752 )
...
* feat: add OpeningRegionKeeper
* feat: grant lease to opening regions
2023-11-17 02:19:50 +00:00
Yingwen
142035340d
fix: compiler errors under non-default features ( #2761 )
...
* feat: bump prost and fix pprof feature compiler errors
* feat: fix compiler errors on tokio-console
* chore: fix compiler errors
* ci: add all features check to ci
2023-11-16 19:43:44 +00:00
Wei
d2cf72e0f1
fix: iterator bad implement ( #2760 )
...
* fix: iter_data() doesn't stop
* chore: Update src/datatypes/src/vectors/decimal.rs
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-11-16 12:26:05 +00:00
Wei
ae27fbc7f2
feat: impl Vector, DataType traits for decimal128 ( #2727 )
...
* feat: decimal128 vector
* feat: Decimal128Type in datatypes
* refactor: cast function
* feat: decimal128 type in ConcreteDataType
* chore: decimal
* chore: sql_data_type_to_concrete_data_type
* chore: cr comment
Co-authored-by: Dennis Zhuang <killme2008@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: fix finish()
* chore: add debug_assert to new decimal128
---------
Co-authored-by: Dennis Zhuang <killme2008@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-11-16 06:44:26 +00:00
Weny Xu
9bd10134dd
feat: add region migration procedure skeleton ( #2743 )
...
* feat: add region migration procedure skeleton
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* refactor: unify the lock key
2023-11-15 09:07:23 +00:00
Zhenchi
3329da5b72
feat(puffin): add partial reader ( #2741 )
...
* feat(puffin): add partial reader
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* address comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-11-15 06:28:20 +00:00
Lei, HUANG
a24f8c96b3
perf: disable dictionary of ts columns ( #2749 )
...
* perf: disable dictionary of ts columns
* fix: unit test
2023-11-15 06:14:28 +00:00
Ruihang Xia
a691cff0c4
feat: alter logical region in metric region ( #2726 )
...
* add test for add and alter logical region
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove table id
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* CR sugg.
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* extract internal states into a struct
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unused deps
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* tweak fn name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-11-15 03:52:52 +00:00
Yingwen
f92b55c745
feat: Ignore file not found error temporarily while compacting files ( #2745 )
...
* feat: support ignoring file not found error
* feat: ignore not found during compaction
2023-11-15 03:48:51 +00:00
taobo
a9e5b902fd
test: move sqlness env show test to common dir ( #2748 )
2023-11-14 15:05:53 +00:00
Ruihang Xia
5b978269cc
feat: simplify log file output by removing bunyan layer ( #2747 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-14 14:18:34 +00:00
LFC
3dffc7b62c
fix: upgrade dependency to resolve github security alert ( #2744 )
2023-11-14 09:11:43 +00:00
Ning Sun
968c872d15
chore: remove kubecon event section from readme ( #2739 )
2023-11-14 09:01:22 +00:00
Ruihang Xia
e2a770f8de
fix: handle if num_cpus / 2 == 0 ( #2740 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-14 06:44:10 +00:00
Weny Xu
dc46e96879
refactor: replace InactiveRegionManager with RegionLeaseKeeper ( #2729 )
...
* refactor: replace InactiveRegionManager with RegionLeaseKeeper
* refactor: remove InactiveRegionManager
* chore: remove remark_inactive_region field
* chore: apply suggestions from CR
* refactor: reduce meta server cache scope
* chore: remove redundant code
2023-11-14 05:16:13 +00:00
Ruihang Xia
8f3b299a45
fix: Normalize default constrain fn name ( #2737 )
...
* fix: normalize current_timestamp to current_timestamp()
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy lints
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-14 03:22:23 +00:00
Ruihang Xia
506e6887f3
chore: add rerun-if-changed to dashboard feature ( #2728 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-13 18:20:59 +00:00
Zhenchi
1757061272
feat: introduce metadata struct of puffin ( #2725 )
...
* feat: introduce metadata struct of puffin
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: fmt
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: address suggestions
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-11-13 10:02:40 +00:00
Ruihang Xia
6599bb5a46
feat: do not require worker's number to be power of 2 ( #2732 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-13 09:04:44 +00:00
tison
3f981ef2b3
chore: improve bug report issue template ( #2716 )
...
* chore: improve bug report issue template
1. _Firstly_ require a _minimal_ reproduce.
2. Explicitly ask what is expected and what happen instead.
* Update .github/ISSUE_TEMPLATE/bug_report.yml
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-13 07:09:20 +00:00
Wei
5cff735e02
chore: metric-engine rfc format ( #2735 )
...
fix format
2023-11-13 03:25:54 +00:00
tison
f5eede4ce1
feat: support prometheus format_query endpoint ( #2731 )
...
* feat: support prometheus format_query endpoint
Signed-off-by: tison <wander4096@gmail.com >
* add test
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2023-11-10 10:33:28 +00:00
Weny Xu
22ee45f3df
feat: downgrade failed region before closing ( #2715 )
...
* feat: add update_region_status method
* feat: downgrade failed region before closing
* chore: apply suggestions from CR
2023-11-10 05:05:05 +00:00
tison
8fd0766754
fix: store raw objname internally ( #2719 )
...
* fix: store raw objname internally
Signed-off-by: tison <wander4096@gmail.com >
* add a utility
Signed-off-by: tison <wander4096@gmail.com >
* add a sqlness test case
Signed-off-by: tison <wander4096@gmail.com >
* cargo clippy
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2023-11-10 02:56:30 +00:00
tison
af7107565a
refactor: use humantime for user-facing options ( #2724 )
...
* refactor: use humantime for user-facing options
Signed-off-by: tison <wander4096@gmail.com >
* unify quote style
Signed-off-by: tison <wander4096@gmail.com >
* taplo fmt
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2023-11-09 13:29:47 +00:00
Ruihang Xia
f02dc0e274
feat: run dist planner after simplify expression rule ( #2723 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-09 12:44:50 +00:00
Lei, HUANG
b53537e69b
fix: unify all sst_write_buffer_size usage ( #2712 )
...
* fix: unify all sst_write_buffer_size usage
* fix: some CR comments
* fix: logs
2023-11-09 11:22:47 +00:00
tison
0cd6dacb45
chore: multiple licenses fixes ( #2714 )
...
* chore: avoid license risk from akka
Signed-off-by: tison <wander4096@gmail.com >
* chore: LICENSE test is AS IS
Signed-off-by: tison <wander4096@gmail.com >
* ci: use hawkeye to pin in inceptionYear
Signed-off-by: tison <wander4096@gmail.com >
* add instruction for running license header apply
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2023-11-09 10:38:12 +00:00
Weny Xu
a3611516a2
refactor: heartbeat response contains region role ( #2718 )
2023-11-09 09:24:36 +00:00
Ruihang Xia
93f21b188d
chore: unify workspace dependencies and remove some unused ( #2713 )
...
* log-store
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* base64
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* udeps
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* snafu
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* snafu style
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change the workspace deps' style
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-09 07:34:22 +00:00
tison
b9a7c2db7e
feat: make PhiAccrualFailureDetector configurable ( #2709 )
...
* feat: make PhiAccrualFailureDetector configurable
Signed-off-by: tison <wander4096@gmail.com >
* propagate
Signed-off-by: tison <wander4096@gmail.com >
* f32 does not implement Eq
Signed-off-by: tison <wander4096@gmail.com >
* add to test
Signed-off-by: tison <wander4096@gmail.com >
* fmt clippy
Signed-off-by: tison <wander4096@gmail.com >
* Update src/meta-srv/src/failure_detector.rs
* address comments
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2023-11-09 06:26:33 +00:00
Ruihang Xia
c62ba79759
feat: create logical region to metric engine ( #2706 )
...
* wip: create logical region
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change metadata region to handle table id rather than table name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement create logic region
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add some tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement alter logical region
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* test, style and document
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* don't change default constraint
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-09 06:04:04 +00:00
Weny Xu
9d029f7337
refactor: refactor region lease keeper ( #2704 )
...
* refactor: refactor region lease keeper
* chore: apply suggestions from CR
2023-11-09 05:40:17 +00:00
Weny Xu
f1e8afcda9
docs: add region migration RFC ( #2703 )
...
feat: add region migration rfc
2023-11-09 02:57:43 +00:00
yuanbohan
9697632888
fix(plugin): setup frontend plugin with mut reference ( #2711 )
...
chore: plugin setup with mut reference
2023-11-08 15:17:47 +00:00
tison
69ee2c336c
fix: created_on of RawTableMeta should be init with Utc::now ( #2710 )
...
Signed-off-by: tison <wander4096@gmail.com >
2023-11-08 08:45:49 +00:00
Yingwen
1f57c6b1f0
feat(mito): Add metrics to read path ( #2701 )
...
* feat: SST metrics and debug log
* feat: add parquet metrics
* feat: iter memtable metrics
* feat: memtable metrics and read elapsed
* feat: merge metrics
* feat: seq scan metrics
* chore: typo
* test: fix merge test
* feat: fix compiler errors
* feat: scan region log level
* feat: add build cost to seq scan metrics
* feat: adjust memtable log level
* fix: correct merge metrics
2023-11-08 07:38:04 +00:00
Ruihang Xia
53a5864944
fix: don't assert path under windows ( #2708 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-08 03:30:12 +00:00
yuanbohan
5b70881098
feat: specialize Display for String OtlpAnyValue ( #2699 )
2023-11-08 03:24:13 +00:00
Niwaka
06d273b75a
fix: GET: /config return all configurations when running standalone ( #2630 )
...
* fix: config api return all configurations when running standalone
* chore: follow same style
* fix: avoid panic
2023-11-08 03:22:19 +00:00
Ruihang Xia
b382900c5c
fix: don't assert path under windows
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-08 11:14:57 +08:00
Lei, HUANG
c79bb5a936
fix: memtable prune ( #2698 )
...
* fix: memtable prune
* test: add memtable prune test case with complex filter
* fix: test format
2023-11-07 06:44:21 +00:00
shuiyisong
7e0dcfc797
chore: export tool minor refactor ( #2612 )
...
* chore: cr issue
* chore: cr issue
* chore: skip information schema
* chore: fix clippy
* chore: add basic auth support to cli export
* chore: fix cr issue
* chore: reduce `flush` invocation
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: use BufWriter
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-11-06 16:47:27 +00:00
Zhenchi
51ddebdc73
docs: rfc of inverted index for SST file ( #2693 )
...
* docs: rfc of inverted index for SST file
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* docs: add row_count_in_group
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* docs: fix spell check
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* docs: update api
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-11-06 13:40:28 +00:00
Niwaka
e9f7579091
feat: support region ddl for custom_storage ( #2679 )
...
* feat: support region ddl for custom_storage
* fix: typo
* fix: propagate error
* refactor: have manifest_options accept RegionOptions
* chore: improve document
2023-11-06 11:18:47 +00:00
dennis zhuang
f387a09535
fix: refactor and fix to_unixtime ( #2695 )
...
* fix: refactor and fix to_unixtime
* fix: sqlness tests
* feat: supports date type
* fix: test
* feat: supports datetime type
* refactor: convert_to_seconds
2023-11-06 11:00:14 +00:00
zyy17
cf94d3295f
feat: add '--server-addr' in sqlness runner ( #2692 )
...
* feat: add '--server-addr' and '--mode' in sqlness runner
* chore: remove '--mode'
* refactor: add 'connect_db()'
2023-11-06 10:56:04 +00:00
Wei
0a91335e24
feat: decimal128 type in common ( #2696 )
...
* feat: decimal type in common
* chore: rename
* feat: decimal128 compare
* chore: clippy
* chore: typos
* chore: cr comment
Co-authored-by: Dennis Zhuang <killme2008@gmail.com >
* chore: cr comment.
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Co-authored-by: Dennis Zhuang <killme2008@gmail.com >
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
2023-11-06 08:04:50 +00:00
Ruihang Xia
6fd04e38a3
feat: implement create region request for metric engine ( #2694 )
...
* implement basic put/get/exist interfaces
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* test add_column and add_table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move engine test to test_util
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* verify incoming create region request
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* create data region
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy lints
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* apply review sugg
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-06 03:48:26 +00:00
WU Jingdi
bbaae9223a
feat: enable empty range by ( #2697 )
2023-11-06 03:45:33 +00:00
Weny Xu
060864d0c1
feat: decrease the page size if the response size exceeds the limit ( #2689 )
...
* feat: decrease the `page size` if the response message size exceeds the limit
* chore: apply suggestions from CR
* feat: prefer to use adaptive_page_size
* chore: apply suggestions from CR
2023-11-06 03:36:15 +00:00
Yingwen
395632c874
feat(mito): filters memtables by their time ranges ( #2686 )
...
* feat: filter memtable by time range
* fix: incorrect time range returned by time series memtable
* test: test memtable pruning
2023-11-03 08:48:21 +00:00
Ruihang Xia
0dca63bc7b
feat: Metric engine skeleton ( #2687 )
...
* metadata region logic
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix mito2 test feature gate
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* override unused warnings
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add basic test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* apply review sugg
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy lints
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-03 08:34:08 +00:00
Ruihang Xia
7323d727c9
feat: support current_timestamp and now as default constrains ( #2690 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-03 08:32:02 +00:00
yuanbohan
68f92ecf08
feat(otlp): json attributes via impl Serialeze trait ( #2685 )
...
* feat: json attributes via impl Serialeze trait
* chore: rename TraceLink to SpanLink
* feat: support serialize null value
2023-11-03 07:27:04 +00:00
Weny Xu
39d52f25bf
feat: enable metasrv leader cached kv ( #2629 )
...
* feat: enable metasrv leader cached kv
* fix: fix cached kv caching the empty value bug
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* refactor: change DEFAULT_PAGE_SIZE to 1536
2023-11-03 03:56:28 +00:00
Weny Xu
fb8d0c6ce5
refactor: unify the KvBackend ( #2684 )
...
* refactor: unify the KvBackend
* refactor: rename kv_store to kv_backend
* chore: apply suggestions from CR
* refactor: rename kv_store to kv_backend
* refactor: rename KvStoreConfig to KvBackendConfig
2023-11-03 02:46:43 +00:00
Weny Xu
ce867fb583
feat: introduce the region lease keeper ( #2645 )
...
* feat: introduce the region lease keeper
* chore: apply suggestions from CR
* refactor: simplify `retain_active_regions`
* refactor: remove Default of RegionStat
* chore: add todo comments
* chore: apply suggestions from CR
* refactor: simplify `retain_active_regions`
* fix: fix ci
2023-11-02 12:01:17 +00:00
localhost
04a8fc5138
chore: change admin table api return json format ( #2683 )
2023-11-02 07:37:57 +00:00
JeremyHi
479ffe5a0f
feat: query table meta by ids ( #2675 )
...
* feat: add table meta by id
* feat: add help for http api
* chore: by comment
* feat: display for LeaderChangeMessage
2023-11-02 02:45:12 +00:00
yuanbohan
4b48c716b2
fix(OTLP/Trace): use Timestamp instead of Time for json ( #2677 )
...
fix: use Timestamp instead of Time for trace time
2023-11-01 09:41:51 +00:00
Ruihang Xia
a9137b77f0
fix: sort condition in HistogramFold ( #2674 )
...
* sort ts before le
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add test case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-11-01 08:28:53 +00:00
Yingwen
5f3bbdca4f
feat(mito): Reads SST's row groups one by one ( #2668 )
...
* feat: read parquet metadata
* feat: add create method for row group
* feat: read parquet by row group
* refactor: use VecDeque to collect batches
* style: fix row group clippy warnings
* chore: update comments
* style: fix clippy
* refactor: simplify row group reader builder
* docs: fix grammar issue
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* chore: format code
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-11-01 03:59:16 +00:00
zyy17
7bd137f398
chore: update greptime-proto to main ( #2672 )
2023-11-01 03:13:36 +00:00
shuiyisong
15a0775a3c
chore: use https when tls is present ( #2671 )
...
* chore: use https
* chore: use tls
2023-11-01 02:44:02 +00:00
WU Jingdi
180bc64cb0
feat: change metric crate from metrics to prometheus ( #2655 )
...
* feat: change metrics to prometheus
* chore: fix code advise
* chore: resolve merge conflict
* chore: fix code advise
2023-10-31 15:46:57 +00:00
Weny Xu
e3320c531d
feat: add leader_status for RegionRoute ( #2670 )
2023-10-31 09:34:56 +00:00
shuiyisong
d77003fb3b
fix: add back mut ref ( #2669 )
...
* chore: add back mut ref
* chore: allow clippy complaint
2023-10-31 07:00:42 +00:00
Weny Xu
54ed7529ca
feat: introduce the region role ( #2640 )
...
* feat: introduce region role
* chore: apply suggestions from CR
2023-10-31 06:59:22 +00:00
Yingwen
465c8f714e
feat(mito): avoid buffering all batches for the same primary key ( #2658 )
...
* feat: Control merge reader by batch size
* test: test heap have large range
* fix: merge one batch
* test: merge many duplicates
* test: test reheap hot
* feat: don't handle empty batch in merge reader
2023-10-31 06:36:31 +00:00
Weny Xu
88eb69530a
refactor: remove router rpc ( #2646 )
2023-10-31 04:54:56 +00:00
Wei
36c0742c45
feat: region disk usage statistic ( #2665 )
...
* feat: region usage
* chore: code comment
* chore: unit test
* feat: region usage for engine
* chore: rename to region usage
* feat: add to heartbeat
* chore: u64 to i64 convert
* chore: cr comment.
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/file-engine/src/engine.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-10-31 03:57:37 +00:00
yuanbohan
84bcca9117
fix: events or links to string ( #2667 )
2023-10-31 02:41:47 +00:00
WU Jingdi
d2f3793d15
fix: explain range query ( #2664 )
...
* fix: explain range query
* chore: add comment
2023-10-30 13:21:25 +00:00
Niwaka
000e1471eb
feat: make mito2 have ObjectStoreManager(initial) ( #2643 )
...
* feat: make mito2 have object_store_manager(initial)
* chore: address review
* refactor: Arc<ObjectStoreManager> to ObjectStoreManagerRef and replace Vec with tuple
* fix: add ObjectStoreManager::from_default
* fix: remove cfg(test)
* fix: remove try_new from ObjectStoreManager
2023-10-30 13:16:04 +00:00
Yingwen
d0ff8ab191
test: remove unstable timezone test ( #2666 )
...
test: remove berlin test
2023-10-30 09:17:38 +00:00
Weny Xu
bd177b8cc4
refactor: remove move_value ( #2661 )
...
* chore: bump orc-rust to 0.2.42
* refactor: remove move_value
2023-10-27 03:42:50 +00:00
Wei
958ff3f185
feat: estimate region wal size ( #2652 )
...
* feat: estimated wal size
* chore: modify factor
* chore: cr comment
* chore: add TODO
2023-10-27 02:46:24 +00:00
Ruihang Xia
5d8b0e8154
chore: bump dependencies ( #2659 )
...
* fix all hard error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix nextest
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* trivial changes
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix order by
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix sql keyword and data type
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix range exec's input partitioning
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix cover input type
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix explain analyze
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update distributed mode sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix lints
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update locks
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* downgrade dlv-list
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-10-26 12:24:14 +00:00
Ning Sun
84490f56b8
fix: remove StatusCode::Unexpected from masked error code set ( #2654 )
...
* fix: remove Unexpected status code from masked error code set
* fix: lint issue
* test: revert test for unexpected error
2023-10-26 07:57:23 +00:00
Abhinesh
cb97768004
fix(grammatical): correct typos and improve grammar ( #2656 )
...
* Update CONTRIBUTING.md
* docs: Update CONTRIBUTING.md
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-10-26 07:30:57 +00:00
Ruihang Xia
f08a35d6b9
feat: implement histogram_quantile in PromQL ( #2651 )
...
* add to planner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl evaluate_array
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* compute quantile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix required input ordering
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* todo to fixme
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-10-25 08:19:30 +00:00
zyy17
e8adaaf5f7
ci: add the simple framework of nightly functional tests ( #2648 )
2023-10-25 14:44:36 +08:00
tison
a63fa76b7b
docs: Update README.md ( #2653 )
...
OpenDAL has been transferred to the ASF.
2023-10-25 06:28:32 +00:00
localhost
102e4c975d
chore: show version report data only once at db startup ( #2647 )
2023-10-25 03:38:33 +00:00
Yingwen
16a3257ada
fix: add serde default to MitoConfig ( #2650 )
...
* fix: add serde default to MitoConfig
* docs: update config toml
2023-10-24 11:24:47 +00:00
liyang
01fdbf3626
chore: upgrade 0.4.2 ( #2644 )
2023-10-24 12:21:58 +08:00
Lei, HUANG
97897aaf9b
fix: predicate shall use real schema to create physical exprs ( #2642 )
...
* fix: prune predicate show use real schema to create physical exprs
* refactor: remove redundant results
* fix: unit tests
* test: add more sqlness cases
* test: add more sqlness cases
* fix: sqlness orderby
* chore: update log
* fix: cache physical expr in memtable iter
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-10-24 03:41:25 +00:00
Wei
1fc42a681f
refactor: create_or_open always set writable ( #2641 )
...
feat: set opened region writable
2023-10-23 10:32:51 +00:00
Wei
fbc8f56eaa
feat: lookup manifest file size ( #2590 )
...
* feat: get manifest file size
* feat: manifest size statistics
* refactor: manifest map key
* chore: comment and unit test
* chore: remove no-use function
* chore: change style
* Apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: cr comment
* chore: cr comment
* chore: cr comment
* chore: cr comment
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-10-23 08:59:00 +00:00
yuanbohan
44280f7c9d
feat(otlp): initial OTLP trace support ( #2627 )
...
* feat: otlp tracing framework via http
* feat: otlp trace transformer plugin
* feat: successfully write traces into db
* chore: plugin to parse request
* test: helper functions
* feat: parse_request_to_spans function
* chore: remove implicite calling parse in PraceParser
* chore: fix clippy
* chore: add TODO marker for span fields
* refactor TraceParser trait
* refactor TraceParser trait
* table_name method in OTLP TraceParser trait
* fix: approximate row, column count
* chore: function signature without row
* chore: do not clone by moving span.kind upper
* docs for parse and to_grpc_insert_requests
---------
Co-authored-by: fys <fengys1996@gmail.com >
Co-authored-by: fys <40801205+fengys1996@users.noreply.github.com >
2023-10-23 06:37:43 +00:00
Ning Sun
0fbde48655
feat: hide internal error and unknown error message from end user ( #2544 )
...
* feat: use fixed error message for unknown error
* feat: return fixed message for internal error as well
* chore: include status code in error message
* test: update tests for asserts of error message
* feat: change status code of some datafusion error
* fix: make CollectRecordbatch an query error
* test: update sqlness results
2023-10-23 03:07:35 +00:00
Niwaka
9dcfd28f61
feat: impl ObjectStoreManager for custom_storage ( #2621 )
...
* feat: impl ObjectStoreManager for custom_storage
* fix: rename object_store_manager to manager
* fix: rename global to default
* chore: add document for ObjectStoreManager
* refactor: simplify default_object_store
* fix: address review
2023-10-23 03:00:29 +00:00
Yingwen
82dbc3e1ae
feat(mito): Ports InMemoryRowGroup from parquet crate ( #2633 )
...
* feat: ports InMemoryRowGroup from parquet
* chore: pub InMemoryRowGroup
* style: allow some clippy lints
2023-10-23 02:22:19 +00:00
Ruihang Xia
4d478658b5
fix: pass datanode config file in distributed mode sqlness ( #2631 )
...
* fix: pass datanode config file in distributed mode sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-10-20 10:57:23 +00:00
localhost
89ebe47cd9
feat: RepeatedTask adds execute-first-wait-later behavior. ( #2625 )
...
* feat: RepeatedTask adds execute-first-wait-later behavior.
* feat: add inverval generator for repeate task component
* feat: impl debug for dyn IntervalGenerator trait
* chore: change some words
* chore: instead of complicated way, we add an initial_delay to control task interval
* chore: some improve by pr comment
2023-10-20 09:43:45 +00:00
Ruihang Xia
212ea2c25c
feat: implement HistogramFold plan for prometheus histogram type ( #2626 )
...
* basic impl of fold plan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add schema test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fill plan attributes
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix styles
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* unify variable names
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-10-20 07:42:10 +00:00
Ruihang Xia
1658d088ab
ci: add size labeler ( #2628 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-10-20 06:39:13 +00:00
Baasit
346b57cf10
feat: row protocol support for opentsdb ( #2623 )
...
* feat: opentsdb row protocol
* fix: added commnets for num of rows and failure if output is not of affecetd rows
* fix: added extra 1 to number of columns
* fix: avoided cloning datapoints, took ownership instead
* fix: avoided cloning datapoints, took ownership instead
* fix: changed vecotr slice to vector
* fix: remove clone
* fix: combined datapoints and requests with zip instead of enumerating
---------
Co-authored-by: Ubuntu <ubuntu@ip-172-31-43-183.us-east-2.compute.internal >
2023-10-20 06:25:59 +00:00
Weny Xu
e1dcf83326
fix: correct the range behavior in MemoryKvBackend & RaftEngineBackend ( #2615 )
...
* fix: correct the range behavior in MemoryKvBackend & RaftEngineBackend
* refactor: migrate tests from MemoryKvBackend
* chore: apply suggestions from CR
* fix: fix license header
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* fix: fix range bugs
2023-10-20 02:30:47 +00:00
Ning Sun
b5d9d635eb
ci: add slack notification for nightly ci failure ( #2617 )
2023-10-19 15:47:15 +00:00
zyy17
88dd78a69c
ci: remove the old version python ( #2624 )
...
ci: remove old version python
2023-10-19 15:46:15 +00:00
zyy17
6439b929b3
ci: the 'publish-github-release' and 'release-cn-artifacts' have to wait for all the artifacts are built ( #2622 )
2023-10-19 21:05:44 +08:00
Wei
ba15c14103
feat: get internal value size of ValueRef ( #2613 )
...
* feat: impl byte_size
* chore: clippy
* chore: cr comment
2023-10-19 11:59:37 +08:00
Weny Xu
d57b144b2f
chore: change test_remove_outdated_meta_task sleep time to 40ms ( #2620 )
...
chore: change test_remove_outdated_meta_task sleep time to 300ms
2023-10-18 11:33:35 +00:00
WU Jingdi
46e106bcc3
feat: allow nest range expr in Range Query ( #2557 )
...
* feat: eable range expr nest
* fix: change range expr rewrite format
* chore: organize range query tests
* chore: change range expr name(e.g. MAX(v) RANGE 5s FILL 6)
* chore: add range query test
* chore: fix code advice
* chore: fix ca
2023-10-18 07:03:26 +00:00
localhost
a7507a2b12
chore: change telemetry report url to resolve connectivity issues ( #2608 )
...
chore: change otel report url to resolve connectivity issues
2023-10-18 06:58:54 +00:00
Wei
5b8e5066a0
refactor: make ReadableSize more readable. ( #2614 )
...
* refactor: ReadableSize is readable.
* docs: Update src/common/base/src/readable_size.rs
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-10-18 06:32:50 +00:00
Weny Xu
dcd481e6a4
feat: stop the procedure manager if a new leader is elected ( #2576 )
...
* feat: stop the procedure manager if a new leader is elected
* chore: apply suggestions from CR
* chore: apply suggestions
* chore: apply suggestions from CR
* feat: add should_report to GreptimeDBTelemetry
Signed-off-by: WenyXu <wenymedia@gmail.com >
* refactor: refactor subscribing leader change loop
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2023-10-18 06:12:28 +00:00
zyy17
3217b56cc1
ci: release new version '0.4.0' -> '0.4.1' ( #2611 )
2023-10-17 07:33:41 +00:00
shuiyisong
eccad647d0
chore: add export data to migrate tool ( #2610 )
...
* chore: add export data to migrate tool
* chore: export copy from sql too
2023-10-17 06:33:58 +00:00
Yun Chen
829db8c5c1
fix!: align frontend cmd name to rpc_* ( #2609 )
...
fix: align frontend cmd name to rpc_*
2023-10-17 06:18:18 +00:00
Ruihang Xia
9056c3a6aa
feat: implement greptime cli export ( #2535 )
...
* feat: implement greptime cli export
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* read information schema
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* parse database name from cli params
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-10-17 01:56:52 +00:00
ZhangJian He
d9e7b898a3
feat: add walconfig dir back ( #2606 )
...
Signed-off-by: ZhangJian He <shoothzj@gmail.com >
2023-10-16 11:26:06 +00:00
zyy17
59d4081f7a
ci: correct image name of dev build ( #2603 )
2023-10-16 03:54:44 +00:00
zyy17
6e87ac0a0e
ci: refine release-cn-artifacts action ( #2600 )
...
* ci: add copy-image.sh and upload-artifacts-to-s3.sh
* ci: remove unused options in dev build
* ci: use 'upload-artifacts-to-s3.sh' and 'copy-image.sh' in release-cn-artifacts action
* refactor: refine copy-image.sh
2023-10-13 17:04:06 +08:00
shuiyisong
d89cfd0d4d
fix: auth in standalone mode ( #2591 )
...
chore: user_provider in standalone mode
2023-10-13 08:37:58 +00:00
Yingwen
8a0054aa89
fix: make nyc-taxi bench work again ( #2599 )
...
* fix: invalid requests created by nyc-taxi
* feat: add timestamp to table name
* style: fix clippy
* chore: re-export deps for client
* fix: wait result
* chore: no need to define a prefix constant
2023-10-13 08:16:26 +00:00
Yun Chen
f859932745
fix: convert to ReadableSize & Durations ( #2594 )
...
* fix: convert to ReadableSize & Durations
* fix: change more grpc sender/recv message size to ReadableSize
fix: format
fix: cargo fmt
fix: change cmd test to use durations
fix: revert metaclient change
fix: convert default fields in meta client options
fix: human serde meta client durations
* fix: remove milisecond postfix in heartbeat option
* fix: humantime serde on heartbeat
* fix: update config example
* fix: update integration test config
* fix: address pr comments
* fix: fix pr comment on default annotation
2023-10-13 03:28:29 +00:00
Ruihang Xia
9a8fc08e6a
docs(benchmark): update 0.4.0 tsbs result ( #2597 )
...
* docs(benchmark): update 0.4.0 tsbs result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-10-13 03:08:14 +00:00
Ruihang Xia
825e4beead
build(ci): pin linux runner to ubuntu-20.04 ( #2586 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-10-12 18:08:05 +08:00
zyy17
0a23b40321
ci: downgrade builder version: ubuntu 22.04 -> ubuntu 20.04 for compatible with older version glibc(>=2.31) ( #2592 )
2023-10-12 16:46:25 +08:00
Ruihang Xia
cf6ef0a30d
chore(cli): deregister cli attach command ( #2589 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-10-12 08:11:17 +00:00
dennis zhuang
65a659d136
fix: ensure data_home directory created ( #2588 )
...
fix: ensure data_home directory created before creating metadata store, #2587
2023-10-12 07:32:55 +00:00
Ruihang Xia
62bcb45787
feat!: change config name from kv_store to metadata_store ( #2585 )
...
featchange config name from kv_store to metadata_store
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-10-12 06:55:09 +00:00
zyy17
94f3542a4f
ci: fix skopeo running errors ( #2581 )
...
ci: fix skopeo auth error
2023-10-12 06:13:56 +00:00
LFC
fc3bc5327d
ci: release Windows artifacts ( #2574 )
...
* ci: release Windows artifacts
* ci: release Windows artifacts
2023-10-12 14:10:59 +08:00
Ning Sun
9e33ddceea
ci: run windows tests every night instead of every commit ( #2577 )
...
ci: move windows ci to nightly-ci
2023-10-12 02:53:42 +00:00
zyy17
c9bdf4ff9f
ci: refine the process of releasing dev-builder images ( #2580 )
...
* fix: fix error of releasing android builder image
* fix: run skopeo error
* ci: add 'release-dev-builder-images-cn' job
* ci: add 'disable_building_images'
* fix: add vars
* ci: use skopeo container
* ci: update opts defaule values
2023-10-12 02:41:54 +00:00
dennis zhuang
0a9972aa9a
fix: cache capacity unit in sample config ( #2575 )
2023-10-11 11:02:39 +00:00
zyy17
76d5b710c8
ci: add more options for releasing dev-builder images ( #2573 )
2023-10-11 16:24:50 +08:00
zyy17
fe02366ce6
fix: remove unused options and add 'build-android-artifacts' ( #2572 )
2023-10-11 15:32:58 +08:00
zyy17
d7aeb369a6
refactor: add new action 'release-cn-artifacts' ( #2554 )
...
* refactor: add new action 'release-cn-artifacts'
* refactor: refine naming: 'release-artifacts' -> 'publish-github-release'
Signed-off-by: zyy17 <zyylsxm@gmail.com >
---------
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2023-10-11 03:42:04 +00:00
zyy17
9284bb7a2b
ci: seperate the job of building dev-builder images ( #2569 )
2023-10-11 11:09:53 +08:00
liyang
e23dd5a44f
fix: fix to readme document link ( #2566 )
2023-10-11 02:45:43 +00:00
zyy17
c60b59adc8
chore: add the steps of building android binary ( #2567 )
2023-10-11 02:31:11 +00:00
Lei, HUANG
c9c2b3c91f
fix: revert memtable pk rb cache to rwlock ( #2565 )
...
* fix: revert memtable pk rb cache to rwlock
* feat: refine
2023-10-10 20:51:05 +08:00
Yingwen
7f75190fce
chore: update Cargo.lock ( #2564 )
2023-10-10 16:28:50 +08:00
Yingwen
0a394c73a2
chore: bump version to 0.4.0 ( #2563 )
2023-10-10 16:16:15 +08:00
JeremyHi
ae95f23e05
feat: add metrics for region server ( #2552 )
...
* feat: add metircs for region server
* fix: add comment and remove unused code
2023-10-10 07:40:16 +00:00
Lei, HUANG
6b39f5923d
feat: add compaction metrics ( #2560 )
...
* feat: add compaction metrics
* feat: add compaction request total count
* fix: CR comments
2023-10-10 07:38:39 +00:00
JeremyHi
ed725d030f
fix: support multi addrs while using etcd ( #2562 )
...
fix: support multi addrs while useing etcd
2023-10-10 07:30:48 +00:00
Wei
4fe7e162af
fix: human_time mismatch ( #2558 )
...
* fix: human_time mismatch.
* fix: add comment
2023-10-10 07:22:12 +00:00
Yingwen
8a5ef826b9
fix(mito): Do not write to memtables if writing wal is failed ( #2561 )
...
* feat: add writes total metrics
* fix: don't write memtable if write ctx is failed
* feat: write rows metrics
2023-10-10 06:55:57 +00:00
Ruihang Xia
07be50403e
feat: add basic metrics to query ( #2559 )
...
* add metrics to merge scan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* count series in promql
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tweak label name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tweak label name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* document metric label
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-10-10 06:55:25 +00:00
Lei, HUANG
8bdef9a348
feat: memtable filter push down ( #2539 )
...
* feat: memtable support filter pushdown to prune primary keys
* fix: switch to next time series when pk not selected
* fix: allow predicate evaluation failure
* fix: some clippy warnings
* fix: panic when no primary key in schema
* feat: cache decoded record batch for primary key
* refactor: use arcswap instead of rwlock
* fix: format toml
2023-10-10 04:03:10 +00:00
Yingwen
d4577e7372
feat(mito): add metrics to mito engine ( #2556 )
...
* feat: allow discarding a timer
* feat: flush metrics
* feat: flush bytes and region count metrics
* refactor: add as_str to get static string
* feat: add handle request elapsed metrics
* feat: add some write related metrics
* style: fix clippy
2023-10-10 03:53:17 +00:00
dennis zhuang
88f26673f0
fix: adds back http_timeout for frontend subcommand ( #2555 )
2023-10-10 03:05:16 +00:00
Baasit
19f300fc5a
feat: renaming kv directory to metadata ( #2549 )
...
* fix: renamed kv directory to metadata directory
* fix: changed function name
* fix: changed function name
2023-10-09 11:43:17 +00:00
Weny Xu
cc83764331
fix: check table exists before allocating table id ( #2546 )
...
* fix: check table exists before allocating table_id
* chore: apply suggestions from CR
2023-10-09 11:40:10 +00:00
Yingwen
81aa7a4caf
chore(mito): change default batch size/row group size ( #2550 )
2023-10-09 11:10:12 +00:00
Yingwen
d68dd1f3eb
fix: schema validation is skipped once we need to fill a column ( #2548 )
...
* test: test different order
* test: add tests for missing and invalid columns
* fix: do not skip schema validation while missing columns
* chore: use field_columns()
* test: add tests for different column order
2023-10-09 09:20:51 +00:00
Lei, HUANG
9b3470b049
feat: android image builder dockerfile ( #2541 )
...
* feat: android image builder dockerfile
* feat: add building android dev-builder to ci config file
* fix: add build arg
* feat: use makefile to build image and add strip command
2023-10-09 09:10:14 +00:00
Weny Xu
8cc862ff8a
refactor: refactor cache invalidator ( #2540 )
2023-10-09 08:19:18 +00:00
Weny Xu
81ccb58fb4
refactor!: compare with origin bytes during the transactions ( #2538 )
...
* refactor: compare with origin bytes during the transaction
* refactor: use serialize_str instead
* Update src/common/meta/src/key.rs
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* chore: apply suggestions from CR
---------
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-10-09 08:17:19 +00:00
Weny Xu
ce3c10a86e
refactor: de/encode protobuf-encoded byte array with base64 ( #2545 )
2023-10-09 05:31:44 +00:00
shuiyisong
007f7ba03c
refactor: extract plugins crate ( #2487 )
...
* chore: move frontend plugins fn
* chore: move datanode plugins to fn
* chore: add opt plugins
* chore: add plugins to meta-srv
* chore: setup meta plugins, wait for router extension
* chore: try use configurator for grpc too
* chore: minor fix fmt
* chore: minor fix fmt
* chore: add start meta_srv for hook
* chore: merge develop
* chore: minor fix
* chore: replace Arc<Plugins> with PluginsRef
* chore: fix header
* chore: remove empty file
* chore: modify comments
* chore: remove PluginsRef type alias
* chore: remove `OptPlugins`
2023-10-09 04:54:27 +00:00
Weny Xu
dfe68a7e0b
refactor: check push result out of loop ( #2511 )
...
* refactor: check push result out of loop
* chore: apply suggestions from CR
2023-10-09 02:49:48 +00:00
Ruihang Xia
d5e4fcaaff
feat: dist plan optimize part 2 ( #2543 )
...
* allow udf and scalar fn
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* put CountWildcardRule before dist planner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* bump datafusion to fix first_value/last_value
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use retain instead
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-10-09 02:18:36 +00:00
Yingwen
17b385a985
fix: compiler errors under pprof and mem-prof features ( #2537 )
...
* fix: compiler errors under pprof feature
* fix: compiler errors under mem-prof feature
2023-10-08 08:28:45 +00:00
shuiyisong
067917845f
fix: carry dbname from frontend to datanode ( #2520 )
...
* chore: add dbname in region request header for tracking purpose
* chore: fix handle read
* chore: add write meter
* chore: add meter-core to dep
* chore: add converter between RegionRequestHeader and QueryContext & update proto version
2023-10-08 06:30:23 +00:00
Weny Xu
a680133acc
feat: enable no delay for mysql, opentsdb, http ( #2530 )
...
* refactor: enable no delay for mysql, opentsdb, http
* Apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-10-08 06:19:52 +00:00
Yingwen
0593c3bde3
fix(mito): pruning for mito2 ( #2525 )
...
* fix: pruning for mito2
* chore: refactor projection parameters; add some tests; customize row group size for each flush task.
* chore: pass whole RegionFlushRequest
---------
Co-authored-by: Lei, HUANG <mrsatangel@gmail.com >
2023-10-08 03:45:15 +00:00
Lei, HUANG
0292445476
fix: timestamp range filter ( #2533 )
...
* fix: timestamp range filter
* fix: rebase develop
* fix: some style issues
2023-10-08 03:29:02 +00:00
dennis zhuang
ff15bc41d6
feat: improve object storage cache ( #2522 )
...
* feat: refactor object storage cache with moka
* chore: minor fixes
* fix: concurrent issues and invalidate cache after write/delete
* chore: minor changes
* fix: cargo lock
* refactor: rename
* chore: change DEFAULT_OBJECT_STORE_CACHE_SIZE to 256Mib
* fix: typo
* chore: style
* fix: toml format
* chore: toml
* fix: toml format
* Update src/object-store/src/layers/lru_cache/read_cache.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* chore: update Cargo.toml
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: update src/object-store/Cargo.toml
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: refactor and apply suggestions
* fix: typo
* feat: adds back allow list for caching
* chore: cr suggestion
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: cr suggestion
Co-authored-by: Yingwen <realevenyag@gmail.com >
* refactor: wrap inner Accessor with Arc
* chore: remove run_pending_task in read and write path
* chore: the arc is unnecessary
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-10-08 03:27:49 +00:00
Yingwen
657542c0b8
feat(mito): Cache repeated vector for tags ( #2523 )
...
* feat: add vector_cache to CacheManager
* feat: cache repeated vectors
* feat: skip decoding pk if output doesn't contain tags
* test: add TestRegionMetadataBuilder
* test: test ProjectionMapper
* test: test vector cache
* test: test projection mapper convert
* style: fix clippy
* feat: do not cache vector if it is too large
* docs: update comment
2023-10-07 11:36:00 +00:00
Ning Sun
0ad3fb6040
fix: mysql timezone settings ( #2534 )
...
* fix: restore time zone settings for mysql
* test: add integration test for time zone
* test: fix unit test for check
2023-10-07 10:21:32 +00:00
Bamboo1
b44e39f897
feat: the schema of RegionMetadata is not output during debug ( #2498 )
...
* feat: the schema of RegionMetadata is not output during debug because column_metadatas contains duplicate information
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* feat: the id_to_index of RegionMetadata is not output during debug
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* feat: add debug trait
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* feat: use default debug in ConcreteDataType
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: add std::fmt
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* test: add debug trait test
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: typo
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: resolve conversation
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: format
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* fix: test bug
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
---------
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
2023-10-07 08:01:54 +00:00
Weny Xu
f50f2a84a9
fix: open region missing options ( #2473 )
...
* fix: open region missing options
* refactor: remove redundant clone
* chore: apply suggestions from CR
* chore: apply suggestions
* chore: apply suggestions
* test: add test for initialize_region_server
* feat: introduce RegionInfo
2023-10-07 07:17:16 +00:00
Yingwen
fe783c7c1f
perf(mito): Use a heap to merge batches for the same key ( #2521 )
...
* feat: merge by heap
* fix: fix heap order
* feat: avoid pop/push next and refactor some functions
* feat: replace merge_batches and fixe tests
* test: add test that a key is deleted
* fix: skip empty batch
* style: clippy
* chore: fix typos
2023-10-07 02:56:08 +00:00
Weny Xu
00fe7d104e
feat: enable tcp no_delay by default for internal services ( #2527 )
2023-10-07 02:35:28 +00:00
Zhenchi
201acd152d
fix: missing file engine with default options ( #2519 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-09-28 10:25:12 +00:00
Niwaka
04dbd835a1
feat: support greatest function ( #2490 )
...
* feat: support greatest function
* feat: make greatest take date_type as input
* fix: move sqlness test into common/function/time.sql
* fix: avoid using unwarp
* fix: use downcast
* refactor: simplify arrow cast
2023-09-28 10:25:09 +00:00
Wenjie0329
e3d333258b
docs: add event banner ( #2518 )
2023-09-28 08:08:43 +00:00
Ruihang Xia
10ecc30817
feat: pushdown aggr, limit and sort plan ( #2495 )
...
* check partition for aggr plan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle empty partition rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove CheckPartition option
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update some valid sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* opt-out promql plan and update sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix limit
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix insert select subquery
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update unit test result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/query/src/dist_plan/analyzer.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-09-28 06:35:45 +00:00
JeremyHi
52ac093110
fix: drop table 0 rows affected ( #2515 )
2023-09-28 06:21:18 +00:00
Zhenchi
1f1d72bdb8
feat: defensively specify limit parameter for file stream ( #2517 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-09-28 06:14:27 +00:00
Zhenchi
7edafc3407
feat: push down filters to region engine ( #2513 )
...
feat: pushdown filters to region engine
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-09-27 13:50:44 +00:00
LFC
ccd6de8d6b
fix: allow .(dot) literal in table name ( #2483 )
...
* fix: allow `.`(dot) literal in table name
* fix: resolve PR comments
2023-09-27 11:50:07 +00:00
shuiyisong
ee8d472aae
chore: tune return msg ( #2506 )
...
* chore: test return msg
* fix: test_child_error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: fix test
* chore: minor fix grpc return value
* chore: format return msg
* chore: use root error as return value
* chore: fix empty err display
* chore: iter through external error
* chore: remove err msg
* chore: remove unused field
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-27 10:40:25 +00:00
Weny Xu
9282e59a3b
fix: re-create heartbeat stream ASAP ( #2499 )
...
* chore: set default connect_timeout_millis to 1000
* fix: re-create heartbeat stream ASAP
* chore: apply suggestions
2023-09-27 04:00:16 +00:00
Ruihang Xia
fbe2f2df46
refactor: simplify warn! and error! macros ( #2503 )
...
* refactor: simplify the error! and warn! macros
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* support display format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* err.msg to err
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-27 03:07:03 +00:00
Yingwen
db6ceda5f0
fix(mito): fix region drop task runs multiple times but never clean the dir ( #2504 )
...
fix: fix region drop task runs multiple times but never clean the directory
2023-09-27 02:58:17 +00:00
Ruihang Xia
e352fb4495
fix: check for table scan before expanding ( #2491 )
...
* fix: check for table scan before expanding
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change assert_ok to unwrap
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy warning
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* don't skip dml
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* uncomment ignored tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-26 12:12:08 +00:00
Yingwen
a6116bb866
feat(mito): Add cache manager ( #2488 )
...
* feat: add cache manager
* feat: add cache to reader builder
* feat: add AsyncFileReaderCache
* feat: Impl AsyncFileReaderCache
* chore: move moka dep to workspace
* feat: add moka cache to the manager
* feat: implement parquet meta cache
* test: test cache manager
* feat: consider vec size
* style: fix clippy
* test: fix config api test
* feat: divide cache
* test: test disabling meta cache
* test: fix config api test
* feat: remove meta cache if file is purged
2023-09-26 11:46:19 +00:00
Ruihang Xia
515ce825bd
feat: stack trace style debug print for error ( #2489 )
...
* impl macro stack_trace_debug
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* manually mark external error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* ignore warnings
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy warnings
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use debug print
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplify the error and warn macro
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix ut
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add docs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* replace snafu backtrace with location
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-26 11:23:21 +00:00
Vanish
7fc9604735
feat: distribute truncate table in region server ( #2414 )
...
* feat: distribute truncate table
* chore: add metrics for truncate table
* test: add sqlness test
* chore: cr
* test: add multi truncate
* chore: add trace id to the header
2023-09-26 11:14:14 +00:00
Zhenchi
a4282415f7
fix: convert datetime to chrono datetime ( #2497 )
...
* fix: convert datetime to chrono datetime
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: typo
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix the bad fix
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-09-26 09:04:12 +00:00
Zhenchi
0bf26642a4
feat: re-support query engine execute dml ( #2484 )
...
* feat: re-support query engine execute dml
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: remove region_number in InsertRequest
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: add doc comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-09-26 08:37:04 +00:00
Weny Xu
230a3026ad
fix: dn doesn't have chance to send a heartbeat to the new leader ( #2471 )
...
* refactor: set meta leader lease secs to 3s
* fix: correct default heartbeat interval
* refactor: ask meta leader in parallel
* feat: configure heartbeat client timeout to 500ms
* fix: trigger to send heartbeat immediately after fail
* fix: fix clippy
2023-09-26 05:05:38 +00:00
Wei
54e506a494
refactor: datetime time unit ( #2469 )
...
* refactor: datetime time unit
* Update src/common/time/src/datetime.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: cr.
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-09-25 10:00:56 +00:00
Yingwen
7ecfaa240f
refactor(mito): remove #[allow(dead_code)] ( #2479 )
2023-09-25 09:20:00 +00:00
LFC
c0f080df26
fix: print root cause error message to user facing interface ( #2486 )
2023-09-25 08:44:49 +00:00
Niwaka
f9351e4fb5
chore: add integration test for issue2437 ( #2481 )
2023-09-25 06:23:16 +00:00
zyy17
00272d53cc
chore: fix typo ( #2477 )
2023-09-24 06:47:14 +00:00
JeremyHi
7310ec0bb3
chore: refactor options ( #2476 )
2023-09-24 02:12:33 +00:00
Yingwen
73842f10e7
fix(mito): normalize region dir in RegionOpener ( #2475 )
...
fix: normalize region dir in RegionOpener
2023-09-23 10:06:00 +00:00
Yingwen
32d1d68441
fix(mito): reset is_sorted to true after the merger finishing one series ( #2474 )
...
fix: reset is_sorted flag to true after the merger finishing one series
2023-09-23 10:05:34 +00:00
Ning Sun
ffa729cdf5
feat: implement storage for OTLP histogram ( #2282 )
...
* feat: implement new histogram data model
* feat: use prometheus table format for histogram
* refactor: remove duplicated code
* fix: histogram tag column
* fix: use accumulated count in buckets
* refactor: using row based protocol for otlp WIP
* refactor: use row based writer for otlp.
Also updated row writer for owned keys
* refactor: use row writers for otlp
* test: add integration tests for histogram
* refactor: change le column name
2023-09-23 07:59:14 +00:00
JeremyHi
9d0de25bff
chore: typo ( #2470 )
2023-09-22 09:47:34 +00:00
Wei
aef9e7bfc3
refactor: not allowed int64 type as time index ( #2460 )
...
* refactor: remove is_timestamp_compatible.
* chore: fmt
* refactor: remove int64 to timestamp match
* chore
* chore: apply suggestions from code review
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* chore: fmt
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-09-22 06:28:02 +00:00
Yingwen
c6e95ffe63
fix(mito): compaction scheduler schedules more tasks than expected ( #2466 )
...
* test: test on_compaction_finished
* fix: avoid submit same region to compact
* feat: persist and recover compaction time window
* test: fix test
* test: sort like result
2023-09-22 06:13:12 +00:00
Yingwen
c9f8b9c7c3
feat: update proto and remove create_if_not_exists ( #2467 )
2023-09-22 03:24:49 +00:00
Baasit
688e64632d
feat: support for show full tables ( #2410 )
...
* feat: added show tables command
* fix(tests): fixed parser and statement unit tests
* chore: implemeted display trait for table type
* fix: handled no tabletype and error for usopprted command in show databse
* chore: removed full as a show kind, instead as a show option
* chore(tests): fixed failing test and added more tests for show full
* chore: refactored table types to use filters
* fix: changed table_type to tables
2023-09-22 02:34:57 +00:00
JeremyHi
8e5eaf5472
chore: remove unused region_stats method form table ( #2458 )
...
chore: remove unused region_status method form table
2023-09-22 02:27:29 +00:00
LinFeng
621c6f371b
feat: limit grpc message size ( #2459 )
...
* feat: add two grpc config options
Those options are for:
* Limit receiving(decoding) message size
* Limit sending(enoding) message size
* test: add integration tests for message size limit
2023-09-22 02:07:46 +00:00
Ruihang Xia
4c7ad44605
refactor: remove SqlStatementExecutor ( #2464 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-22 01:57:48 +00:00
Weny Xu
6306aeabf0
chore: bump opendal to 0.40 ( #2465 )
2023-09-21 14:25:23 +00:00
JeremyHi
40781ec754
fix: test on windows ( #2462 )
...
* fix: test on windows
* fix: fix windows root
* fix: use relative path instead of root
* fix: remove incorrect replace
* fix: fix tests
---------
Co-authored-by: WenyXu <wenymedia@gmail.com >
2023-09-21 10:57:56 +00:00
zyy17
c7b490e1a0
ci: expand upload retry timeout ( #2461 )
2023-09-21 10:02:15 +00:00
Ruihang Xia
e3f53a8060
fix: add slash after generated region_dir ( #2463 )
...
* fix: add slash after generated region_dir
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update ut
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-21 07:46:05 +00:00
Weny Xu
580d11b1e1
refactor: unify table metadata cache invalidator ( #2449 )
...
* refactor: unify table metadata cache invalidator
* chore: apply from suggestions
2023-09-21 03:45:49 +00:00
shuiyisong
20f4f7971a
refactor: remove source and location in snafu display ( #2428 )
...
* refactor: remove source pt 1
* refactor: remove source pt 2
* refactor: remove source pt 3
* refactor: remove location pt 1
* refactor: remove location pt 2
* chore: remove rustc files
* chore: fix error case
* chore: fix test
* chore: fix test
* chore: fix cr issue
Co-authored-by: fys <40801205+fengys1996@users.noreply.github.com >
---------
Co-authored-by: fys <40801205+fengys1996@users.noreply.github.com >
2023-09-21 02:55:24 +00:00
dennis zhuang
9863e501f1
test: revert ignored tests ( #2455 )
2023-09-21 02:33:18 +00:00
zyy17
df0877111e
ci: make upload-to-s3 configurable(for now, it's false) ( #2456 )
2023-09-20 14:12:54 +00:00
dennis zhuang
23cc7d82e5
feat: supports binary data type ( #2454 )
2023-09-20 12:53:19 +00:00
Ruihang Xia
34d6288945
feat: bring back sqlness and integration tests ( #2448 )
...
* enable integration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* disable sqlness region failover
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* enable sqlness in CI
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sort unstable result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* set require_lease_before_startup to true
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: fix inconsistent cache
* replace windows path chars
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* ignore some integration cases in windows
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Revert "ignore some integration cases in windows"
This reverts commit 122478b7c1 .
* disable windows for now
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: fix close region bug in RegionHeartbeatResponseHandler
* disable failover tests
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: WenyXu <wenymedia@gmail.com >
2023-09-20 09:17:30 +00:00
JeremyHi
567fbad647
chore: type alias typo ( #2452 )
...
chore: typo
2023-09-20 07:53:35 +00:00
Ruihang Xia
a5c499572c
feat: open region in parallel ( #2451 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-20 07:40:17 +00:00
JeremyHi
ca50ba5dc4
fix: remark region as inactive on leader changed ( #2446 )
...
* fix: remark reigon as inactive on leader changed
* chore: by comment
2023-09-20 06:37:27 +00:00
Yingwen
17e560c909
feat(mito): Allow to retry create request and alter request ( #2447 )
...
* feat: RegionMetadataBuilder allow adding/dropping columns multiple times
* test: test add if not exists/drop if exists
* feat: change validator and add need_alter
* test: fix tests and test need_alter
* test: test alter retry
* feat: open before create
* style: fix clippy
2023-09-20 06:36:46 +00:00
Weny Xu
339e12c64a
fix: fix alter table verification ( #2437 )
...
* fix: fix verify alter
* refactor: move AlterTable UpdateMetadata to last step
* refactor: send region request in parallel
* Update src/table/src/metadata.rs
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
* Update src/table/src/metadata.rs
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
---------
Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com >
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-09-19 13:40:48 +00:00
Ruihang Xia
0f79ccab31
refactor: remove the old mito engine ( #2443 )
...
Co-authored-by: Even Yag <realevenyag@gmail.com >
2023-09-19 09:30:13 +00:00
Yingwen
7b606ed289
feat(mito): make use of options in RegionCreate/OpenRequest ( #2436 )
...
* refactor: move RegionOptions to options mod
* refactor: define compaction strategy in region/options.rs
* feat: use duration for time window
* refactor: rename CompactionStrategy to CompactionOptions
* feat: use serde to parse options
* feat: parse options
* feat: set options on creation/opening
* test: test create/open with options
* chore: remove todo
* feat: get compaction ttl and options from RegionOptions
* style: fix clippy
* chore: Remove unused engine_options
* style: fix clippy
* chore: remove todo
2023-09-19 09:06:09 +00:00
Weny Xu
1fb2d95c5f
fix: fix open region missing path ( #2441 )
...
* fix: fix open region missing path
* fix: correct log
* chore: apply suggestions from CR
* fix: fix tests
2023-09-19 08:50:59 +00:00
Wei
8ee62a7d90
fix: parse i64 to different kinds of timestamp ( #2440 )
...
* feat: support i64 to multi-timestamp.
* chore: fmt
2023-09-19 08:26:25 +00:00
Ruihang Xia
802229de87
fix: type cast bugs found by sqlness ( #2438 )
...
* update valid results
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* accomplish datatype
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* cast null
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix unit tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-19 08:20:41 +00:00
Zhenchi
deac284973
refactor: RegionRequestHandler -> RegionQueryHandler ( #2439 )
...
* refactor: RegionRequestHandler -> RegionQueryHandler
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: rename FrontendRegionQueryHandler
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: privte RegionInvoker
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-09-19 08:19:58 +00:00
Wei
5805e8d4b6
feat: type conversion between Values ( #2394 )
...
* feat: add cast() in datatype trait.
* feat: add cast for primitive type
* feat: add unit test cases
* test: add datetime/time cases.
* refactor: time_type cast function.
* chore: typos.
* refactor code.
* feat: add can_cast_type func.
* chore: rename cast to try_cast
* feat: impl cast_with_opt
* chore: pub use cast_with_opt
* chore: add timezone for test
* Update src/common/time/src/date.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* chore: duration type
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-09-18 14:25:38 +00:00
dennis zhuang
342cc0a4c4
fix: compile error after updating protos ( #2435 )
2023-09-18 12:12:39 +00:00
Weny Xu
df6c79a378
fix: check version before alter region ( #2433 )
...
* fix: check version before alter region
* chore: apply suggestions from CR
* Update src/mito2/src/worker/handle_alter.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-09-18 11:49:26 +00:00
dennis zhuang
5566f34bd1
feat: make scripts table work again ( #2420 )
...
* feat: make scripts table work again
* chore: typo
* fix: license header
* Update src/table/src/metadata.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* chore: cr comments
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-18 11:43:21 +00:00
Wei
14e6998d41
feat: impl duration datatype and vectors ( #2180 )
...
* feat: impl datatype, vector traits for duration.
* feat: duration and grpc.
* test: add unit test cases.
* chore: style and test case.
* fix: update greptime-proto version and helper.rs
* chore: fix type name.
* Update src/datatypes/src/data_type.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: cr.
* chore: fix greptime-proto
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-09-18 11:28:06 +00:00
Weny Xu
43476e1ff9
refactor: rename coordination to require_lease_before_startup ( #2431 )
2023-09-18 11:07:42 +00:00
Weny Xu
c42cce57ca
fix: fix incorrect matches ( #2430 )
...
* fix: fix incorrect matches
* fix: fix incorrect status code
2023-09-18 10:53:32 +00:00
Zhenchi
d6d46378a1
test: fix some integration tests ( #2432 )
...
* test: fix some integration tests
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: add timezone setting
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-09-18 10:52:14 +00:00
Ruihang Xia
fbbf3978d9
fix: render comment in SHOW CREATE TABLE ( #2427 )
...
* feat: add comment field to ColumnDef
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-18 10:51:10 +00:00
dennis zhuang
b0c56a3e23
feat: type alias ( #2331 )
...
* fix: remove location from error msg
* feat: adds transformer for sqlparser statements
* feat: supports type alias
* fix: typo
* fix: license header
* test: adds timestamp_types test
* refactor: transform
* fix: rebase develop and fix tests
* fix: compile error
* chore: delete src/datanode/src/sql/create_external.rs
2023-09-18 09:43:02 +00:00
Zhenchi
73af1368bd
test: more integration test cases for external table ( #2429 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-09-18 09:21:51 +00:00
Weny Xu
2c3ff90dbc
feat: start services after first heartbeat response processed ( #2424 )
...
* feat: start services after first heartbeat response processed
* refactor: watch changes in RegionAliveKeeper
* feat: add coordination to DatanodeOptions
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: enable coordination in sqlness
2023-09-18 08:49:26 +00:00
Zhenchi
3a39215f11
feat: migrate file engine from table to reigon ( #2365 )
...
* feat: migrate file engine from table to reigon
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* Update src/file-engine/src/engine.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* feat: specify ts index for file engine
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: handle time index for external table
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: some integration testsg
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: add file schema and table schema compatibility
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: compatible file schema to region schema
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: add error msg
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: simplify close
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: implement set_writable
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: tests-integration compilation
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
2023-09-18 08:02:43 +00:00
JeremyHi
e7e254cd11
feat: all distributed time together ( #2423 )
2023-09-17 15:18:52 +00:00
Yingwen
4a82926d72
docs: fix cargo doc errors and warnings ( #2421 )
...
* docs: fix cargo doc warnings and errors
* docs: fix warnings
* docs: fix warnings
* chore: rm src/common/function-macro/src/lib.rs
2023-09-17 11:45:15 +00:00
Ruihang Xia
92824d1c66
fix: update several sqlness results ( #2422 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-17 11:33:40 +00:00
Yingwen
55ae5e5b66
feat(mito): Implements compaction scheduler ( #2413 )
...
* feat: allow multiple waiters in compaction request
* feat: compaction status wip
* feat: track region status in compaction scheduler
* feat: impl compaction scheduler
* feat: call compaction scheduler
* feat: remove status if nothing to compact
* feat: schedule compaction after flush
* feat: set compacting to false after compaction finished
* refactor: flush status only needs region id and version control
* refactor: schedule_compaction don't need region as argument
* test: test flush/scheduler for empty requests
* test: trigger compaction in test
* feat: notify scheduler on truncated
* chore: Apply suggestions from code review
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
---------
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-09-17 09:15:11 +00:00
Ruihang Xia
693e8de83a
feat: scope spawned task with trace id ( #2419 )
...
* feat: scope spawned task with trace id
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-17 09:05:28 +00:00
JeremyHi
542e863ecc
fix: missing datanode id on keep lease ( #2415 )
2023-09-17 07:57:17 +00:00
Ruihang Xia
49310acea1
refactor: rename common-function-macro subcrate ( #2418 )
...
* rename common-function-macro to common-macro
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* put impl into their own file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-17 07:56:41 +00:00
Weny Xu
5b08e03944
feat: sync regions between RegionServer and RegionAliveKeeper ( #2417 )
...
* feat: sync regions between RegionServer and RegionAliveKeeper
* Apply suggestions from code review
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* refactor: rename event name
* chore: apply suggestions
---------
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-09-17 07:55:44 +00:00
JeremyHi
98a40bae95
feat!: unify naming with options ( #2416 )
2023-09-17 07:24:57 +00:00
JeremyHi
342a6d071f
feat: heartbeat request with header ( #2412 )
...
* feat: heartbeat request with header
* chore: frontend send heartbeat with a longer interval
2023-09-16 09:56:41 +00:00
Baasit
0a692aafb0
feat: clap wrapper around sqlness ( #2400 )
...
* feat: wrapped sqlness with clap to provide nice interface
* fix: added spaces and changed -f flag to bool
2023-09-16 08:53:08 +00:00
dennis zhuang
627c5b7419
feat: move table operations from frontend to operator crate ( #2411 )
...
* feat: move table operations from frontend to operator crate
* chore: blank line
* fix: toml format
* chore: move constants
2023-09-16 07:58:45 +00:00
Ruihang Xia
5e35087b67
fix: generate region path with given prefix ( #2409 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-16 03:23:36 +00:00
Ruihang Xia
c149c123c3
feat: reopen corresponding regions on starting datanode ( #2399 )
...
* separate config and datanode impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* partial implement of fetching region id list
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* reopen all regions on starting region server
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness & assign default datanode id
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* set writable on lease
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* apply cr suggs.
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/datanode/src/datanode.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-09-15 13:30:20 +00:00
Vanish
0bd6b9bb39
feat: implement truncate region for mito2 ( #2335 )
...
* feat: implement truncate region for mito2.
* chore: add license header and fix typos
* Update src/mito2/src/worker/handle_truncate.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* cr
* chore: consider the flush task being executed before truncating the region.
* test
* feat: check flush and compaction tasks
* chore: remove useless changes
* Update src/mito2/src/manifest/action.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/mito2/src/worker/handle_flush.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: CR, consider sequence number
* test: use EventListener to test the flush task during truncate
* fix: fix listener error
* Update src/mito2/src/engine/truncate_test.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: cr
* fix: remove set None
* Update src/mito2/src/region/version.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* Update src/mito2/src/worker/handle_flush.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* Update src/mito2/src/worker/handle_truncate.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* doc: add some doc for FlushTruncateListener and RegionTruncate
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-09-15 13:20:01 +00:00
Bamboo1
6aec30a1a8
feat: reserve internal column ( #2396 )
...
* feat: reserve internal column
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* test: add function test
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* fix: spell typos
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: resolve conversation
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
---------
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
2023-09-15 11:19:40 +00:00
LFC
a688760563
fix: validate partition columns ( #2393 )
...
fix: partition column must belong to primary keys or equals to time index
2023-09-15 10:07:32 +00:00
LFC
4b13c88752
fix: resolve more integration tests ( #2406 )
...
* fix: resolve more integration tests
* Update tests-integration/tests/http.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2023-09-15 09:43:16 +00:00
JeremyHi
9572b1edbb
feat: region storage path ( #2404 )
...
* feat: region storage path
* Update src/common/meta/src/key/datanode_table.rs
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* chore: by cr
* feat: upgrade proto
---------
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2023-09-15 09:07:54 +00:00
dennis zhuang
43e3c94fd1
refactor: catalog managers ( #2405 )
...
* feat: rename catalog::local to catalog::memory
* refactor: catalog managers
* chore: license header
2023-09-15 08:48:14 +00:00
Ruihang Xia
364b99a14c
fix: enable ignored promql unit tests ( #2403 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-15 07:37:30 +00:00
shuiyisong
a8ae386a57
chore: add #[serde(default)] to new added engine field ( #2402 )
...
chore: add serde default to new field
2023-09-15 07:11:57 +00:00
LFC
fe5679e77e
refactor: remove table ident ( #2368 )
...
* refactor:
1. remove TableIdent, use TableId directly
2. use the latest greptime-proto
3. independently invalidate table id cache and table name cache
* rebase
* fix: resolve PR comments
* fix: resolve PR comments
2023-09-15 05:14:40 +00:00
JeremyHi
8e70b9e982
feat: remove deprecated metadata keys ( #2398 )
...
* feat: remove deprecated metadata keys
* feat: this time, weny indeed said [removes it]
2023-09-15 02:11:21 +00:00
JeremyHi
d1adb915bf
feat: set readonly first when deregister region ( #2391 )
...
* feat: set readonly first when deregister region
* revert distxxx
2023-09-14 12:12:38 +00:00
Yingwen
a84a8ad04f
fix: alter table procedure panics while renaming table ( #2397 )
...
* fix: procedure panic on renaming table
* test: fix test_insert_and_select invalid arguments
* test: fix test_standalone_insert_and_query using wrong semantic type
* test: fix test_distributed_insert_delete_and_query semantic type
2023-09-14 11:50:00 +00:00
JeremyHi
7bb8a5999c
feat!: add engine name to DatanodeTableValue ( #2395 )
...
* feat: add engine name to DatanodeTableValue
* fix: by cr
2023-09-14 09:50:35 +00:00
Yingwen
26992d58cd
chore: decrease mutable write buffer limit ( #2390 )
...
* chore: set mutable limit to half of the global write buffer size
* refactor: put handle_flush_finished after handle_flush_request
* refactor: rename tests.rs to basic_test.rs
* style: fmt code
2023-09-14 08:24:14 +00:00
Ruihang Xia
47bf300869
fix: update sqlness result for order_by ( #2389 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-14 07:28:40 +00:00
Yingwen
a7df5a7c9a
fix(mito): incorrect field index in ProjectionMapper ( #2388 )
...
* chore: update todo comments
* test: add test for projection
* fix: panics when projecting fields
* chore: remove todos
2023-09-14 04:15:15 +00:00
Yingwen
d4ae8a6fed
feat(mito): Add writable flag to region ( #2349 )
...
* feat: add writable flag to region.
* refactor: rename MitoEngine to MitoEngine::scanner
* feat: add set_writable() to RegionEngine
* feat: check whether region is writable
* feat: make set_writable sync
* test: test set_writable
* docs: update comments
* feat: send result on compaction failure
* refactor: wrap output sender in new type
* feat: on failure
* refactor: use get_region_or/writable_region_or
* refactor: remove send_result
* feat: notify waiters on flush scheduler drop
* test: fix tests
* fix: only alter writable region
2023-09-14 02:45:30 +00:00
Yingwen
da54a0c139
fix: alter table procedure forgets to update next column id ( #2385 )
...
* feat: add more info to error messages
* feat: store next column id in procedure
* fix: update next column id for table info
* test: fix add col test
* chore: remove location from invalid request error
* test: update test
* test: fix test
2023-09-14 02:06:57 +00:00
Ruihang Xia
cc7eb3d317
fix: querying temporary table ( #2387 )
...
* fix information schema
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove log
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-13 14:30:56 +00:00
Weny Xu
93f3048f4f
refactor: migrate OpenDal to 0.39 ( #2383 )
...
* chore: bump opendal to 7d552
* refactor: migrate OpenDal to 0.39
* chore: apply suggestions from CR
2023-09-13 12:43:53 +00:00
LFC
d08b05c963
fix: make test-integration able to compile ( #2384 )
...
* fix: make test-integration able to compile
* chore: fmt toml
---------
Co-authored-by: WenyXu <wenymedia@gmail.com >
2023-09-13 12:42:46 +00:00
JeremyHi
f76aa278fd
feat: atomic metadata ( #2366 )
...
* feat: atomic creating metadata
* chore: exist exists
* chore: license header
* chore: weny never say that
* feat: add put_conditionally to kv_backend
2023-09-13 10:51:05 +00:00
JeremyHi
6f4779b474
feat: engine name in heartbeat ( #2377 )
2023-09-13 09:10:10 +00:00
Ruihang Xia
de723d9c1c
fix: update sqlness result in distributed mode ( #2381 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-13 09:07:55 +00:00
dennis zhuang
7448e975c2
chore: change error messages ( #2379 )
...
* chore: change error messages
* chore: remove locaton in table not found error msg
2023-09-13 08:21:03 +00:00
dennis zhuang
3f97a0d285
fix: gRPC max mesage size limitation ( #2375 )
...
* fix: gRPC max mesage size limitation
* chore: don't set max_encoding_message_size
2023-09-13 08:13:49 +00:00
Ruihang Xia
60bdf9685f
feat: use the latest command line options for sqlness runner ( #2371 )
...
feat: use the latest command line options
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-13 03:38:43 +00:00
Ruihang Xia
9c76d2cf54
feat: convert sql number to values with target type ( #2370 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-13 11:14:42 +08:00
Weny Xu
1a7268186b
chore: bump raft-engine to 22dfb4 ( #2360 )
2023-09-12 07:57:15 -05:00
Ruihang Xia
eeecce4623
refactor: remove table procedure ( #2359 )
...
remove table procedure
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-12 07:57:15 -05:00
Ruihang Xia
1ad5f6e5d5
refactor: system tables in FrontendCatalogManager ( #2358 )
...
* rename method names
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove system table, table engine, register/deregister
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add system catalog
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* run nextest
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* some documents
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: fix clippy
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: WenyXu <wenymedia@gmail.com >
2023-09-12 07:57:15 -05:00
Yingwen
46eca5026e
fix(mito): Stores and recovers flushed sequence ( #2355 )
...
* test: add test for reopen
* feat: last entry id starts from flushed entry id
* fix: store flushed sequence and recover it from manifest
* test: check sequence in alter test
* test: more tests for alter
2023-09-12 07:57:15 -05:00
Weny Xu
912341e4fa
fix: fix start issues under standalone mode ( #2352 )
...
* fix: fix standalone starts
* chore: bump raft-engine to 571462e
* refactor: remove MetadataService
2023-09-12 07:57:15 -05:00
JeremyHi
80c5d52015
feat: stop region server ( #2356 )
...
* feat: stop region server
* fix: close region first
2023-09-12 07:57:15 -05:00
Zhenchi
4af126eb1b
feat: consolidate Insert request related partitioning and distributed processing operations into Inserter ( #2346 )
...
* refactor: RegionRequest as param of RegionRequestHandler.handle
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: partition insert & delete reqs for both standalone and distributed mode
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: nit change
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: wrong function nameg
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: do request in inserter & deleter
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: remove RegionRequestHandler.handle
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: rename table_creator
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: nit change
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: nit change
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-09-12 07:57:15 -05:00
LFC
fe954b78a2
refactor: system tables in new region server ( #2344 )
...
refactor: inverse the dependency between system tables and catalog manager
2023-09-12 07:57:15 -05:00
JeremyHi
3cab6de391
feat: filter out empty heartbeat req ( #2345 )
...
* feat: filter out empty heartbeat request
* fix: big mistake
2023-09-12 07:57:15 -05:00
Yingwen
606ee43f1d
feat(mito): Implement skeleton for alteration ( #2343 )
...
* feat: impl handle_alter wip
* refactor: move send_result to worker.rs
* feat: skeleton for handle_alter_request
* feat: write requests should wait for alteration
* feat: define alter request
* chore: no warnings
* fix: remove memtables after flush
* chore: update comments and impl add_write_request_to_pending
* feat: add schema version to RegionMetadata
* feat: impl alter_schema/can_alter_directly
* chore: use send_result
* test: pull next_batch again
* feat: convert pb AlterRequest to RegionAlterRequest
* feat: validate alter request
* feat: validate request and alter metadata
* feat: allow none location
* test: test alter
* fix: recover files and flushed entry id from manifest
* test: test alter
* chore: change comments and variables
* chore: fix compiler errors
* feat: add is_empty() to MemtableVersion
* test: fix metadata alter test
* fix: Compaction picker doesn't notify waiters if it returns None
* chore: address CR comments
* test: add tests for alter request
* refactor: use send_result
2023-09-12 07:57:15 -05:00
Lei, HUANG
3331e3158c
feat(mito2): compaction ( #2317 )
...
* feat: compaction component
* feat: mito2 compaction
* Avoid building time range predicates when merge SST files since in TWCS we don't enforce strict time window.
* fix: some CR comments
* minor: change CompactionRequest::senders to an option
* chore: handle compaction finish error
* feat: integrate compaction into region worker
* chore: rebase upstream
* fix: Some CR comments
* chore: Apply suggestions from code review
* style: fix clippy
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-09-12 07:57:15 -05:00
Weny Xu
a4604afde5
refactor: rename NEXT_TABLE_ROUTE_PREFIX to TABLE_ROUTE_PREFIX ( #2348 )
...
* refactor: rename NEXT_TABLE_ROUTE_PREFIX to TABLE_ROUTE_PREFIX
* chore: apply suggestions from CR
2023-09-12 07:57:15 -05:00
Weny Xu
f386329e29
refactor: introduce DdlTaskExecutor and refactor statement executor ( #2341 )
...
* feat: add kv store option
* refactor: refactor statement executor
* refactor: refactor standalone table creator
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* refactor: move ShowCreateTable and CreateDatabase to StatementExecutor
* fix: fix RegionDistribution
* feat: build standalone
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2023-09-12 07:57:15 -05:00
Yingwen
3f6d557b8d
feat: Implements a reader to make schema compatible ( #2326 )
...
* docs: update comment
* feat: Add compat reader to SeqScan
* feat: add struct to compat pk and fields
* refactor: remove unused fields from ParquetReader
* feat: compat framework
* feat: Implement CompatPrimaryKey and CompatFields
* feat: implement compat reader
* feat: Test compat reader
* test: test compat reader
* feat: add more checks to concat
* style: fix clippy
* test: more tests for compat reader
* test: test reader with projection
2023-09-12 07:57:15 -05:00
Ruihang Xia
6215f124f7
refactor: remove datanode instance ( #2342 )
...
* pass nextest
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deadcode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename region_alive_keepers
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-12 07:57:15 -05:00
LFC
1d83c942a9
refactor: script table creation ( #2340 )
...
* refactor:
1. remove method `register_system_table` from CatalogManager
2. the creation of ScriptTable (as a system table) is removed from CatalogManager. Instead, the ScriptTable is created when Frontend instance is starting; and is created by calling Frontend instance's grpc handler.
* rebase
2023-09-12 07:57:15 -05:00
Ruihang Xia
f287a5db9f
feat: adapt region keep aliver for region server ( #2333 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor, collapse one layer
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove old heartbeat handler impls
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove old region alive keeper
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove remote catalog manager
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* global replace
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* test countdown task
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-12 07:57:15 -05:00
Zhenchi
dac6b2e80a
feat(frontend): migrate delete to region server ( #2329 )
...
* feat(frontend): migrate delete to region server
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: add more check and do trim columns
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: RegionRequestHandler.handle retrun AffectedRows
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-09-12 07:57:15 -05:00
Yingwen
1e44e86d81
feat(mito): Stall write requests and add more flush tests ( #2322 )
...
* feat: impl reject write
* feat: sanitize reject size
* feat: add should_stall to WriteBufferManager
* feat: stall requests
* test: mock WriteBufferManager
* feat: add new_with_manager for test and remove object_store from inner
* feat: add an event listener for tests
* feat: Use listener to test flush
* refactor: add flush_test.rs
* style: fix clippy
* feat: test write stall
* test: test flush empty
2023-09-12 07:57:15 -05:00
JeremyHi
56691ff03b
refactor: mailbox timeout ( #2330 )
...
refactor: Optimize the timeout mechanism of the mailbox
2023-09-12 07:57:15 -05:00
Weny Xu
e4de63625f
refactor: refactor raft engine backend and state store ( #2336 )
...
* refactor: remove redundant code
* refactor: refactor RaftEngineBackend Error to common_meta::error::Error
* refactor: refactor state store
* chore: apply suggestions from CR
2023-09-12 07:57:15 -05:00
Ruihang Xia
4b2b59c31b
refactor: clean unnecessary disabled lints ( #2338 )
...
* clean manifest
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean engine
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean region
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean asscess_layer
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean manifest manager
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean row_converter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean scheduler
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean worker
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-12 07:57:15 -05:00
Weny Xu
2ee2d29085
refactor: move Sequence to common meta ( #2337 )
2023-09-12 07:57:15 -05:00
Yingwen
c3f6529178
fix: improve error message in validate_proto_value ( #2328 )
...
* fix: correct error message in validate_proto_value()
* fix: print location in InvalidRequest error
* style: format
2023-09-12 07:57:15 -05:00
Ruihang Xia
eb7116ab56
feat: read/write works in distributed mode 🎉 ( #2327 )
...
* add do_get method to RegionRequestHandler
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move RegionRequestHandler to client crate
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use RegionRequestHandler in MergeScan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* minor fix
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* ignore tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-12 07:57:15 -05:00
Zhenchi
5f7d48f107
feat(frontend): reorg insert converters and introduce stmt_to_region ( #2324 )
...
* feat(frontend): reorg insert converters and introduce stmt_to_region
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: shorten import path
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: add check for column count
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: clippy
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-09-12 07:57:15 -05:00
LFC
711e27d9fa
feat: distributed alter table in region server ( #2311 )
...
* feat: distributed alter table in region server
* rebase
2023-09-12 07:57:15 -05:00
Weny Xu
922e342b63
refactor: refactor ddl manager ( #2306 )
...
* refactor: refactor ddl manager
* chore: apply suggestions from CR
2023-09-12 07:57:15 -05:00
Zhenchi
7dde9ce3ce
feat(frontend): migrate insert to region server ( #2318 )
...
* feat(frontend): migrate insert to region server
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: move converter to Inserter
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: rename convert function
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: add span id
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: compilation
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* retrigger action
* retrigger action
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-09-12 07:57:15 -05:00
Yingwen
3eccb36047
feat: avoid using vector to get default value ( #2323 )
2023-09-12 07:57:15 -05:00
Ruihang Xia
f71aa373c1
feat: start datanode with config ( #2312 )
...
* remove memory-catalog and procedure
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* derive serde for MitoConfig
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* start datanode with configs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove dir in WalConfig
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add rename field attr
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add stupid duplicated mito config
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove wrong import
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* wired compile error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-12 07:57:15 -05:00
Ruihang Xia
50fca2400e
feat: adapt methods from RegionEngine for MitoEngine ( #2315 )
...
* feat: adapt methods from RegionEngine for MitoEngine
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* minor fixes
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-12 07:57:15 -05:00
JeremyHi
920763d7dd
feat: add metric and manage tool for InactiveRegionKey ( #2313 )
...
* feat: add metric and manage tool for InactiveRegionKey
* chore: by review comment
2023-09-12 07:57:15 -05:00
dennis zhuang
a3d5931fca
feat: unify all protocol options ( #2316 )
...
* feat: unify all protocol options
* feat: adds enable to example configs
* chore: style
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
---------
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-09-12 07:57:15 -05:00
dennis zhuang
b1599ad3a5
fix: can't adding new columns as primary key ( #2310 )
2023-09-12 07:57:15 -05:00
dennis zhuang
38697e0c4d
feat: build http client for cloud object storage ( #2314 )
...
* feat: build http client for s3/oss/azblob storages
* chore: style
* fix: test
* fix: cargo toml fmt
2023-09-12 07:57:15 -05:00
Yingwen
50220f8f04
feat: Impl write buffer manager for mito2 ( #2309 )
...
* feat: add write buffer manager to builder
* feat: impl WriteBufferManager
* feat: impl MemtableVersion::mutable_usage
* chore: Address CR comments
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* refactor: rename mutable_limitation to mutable_limit
---------
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-09-12 07:57:15 -05:00
Niwaka
3504d8254e
fix: unused table options ( #2267 )
...
* fix: unused table options keys
* refactor: simplify validate table options
* chore: Add newlines
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-09-12 07:57:15 -05:00
dennis zhuang
fad58835bf
fix: don't raise an error when manifest directory is not created ( #2308 )
...
* fix: don't raise an error when manifest directory is not created
* chore: apply suggestion
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-09-12 07:57:15 -05:00
Lei, HUANG
43fdff3639
feat: remove memtable request ( #2307 )
...
* refactor: remove scan request from memtable API
* docs: Update comment
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-09-12 07:57:15 -05:00
Weny Xu
271f80daad
fix: LoadBase Selector cannot follow the region distribution rules ( #2259 )
...
* fix: LoadBase Selector cannot follow the region distribution rules
* chore: apply suggestions from CR
2023-09-12 07:57:15 -05:00
Lei, HUANG
36231a5d50
feat(mito2): add alloc_tracker for memtable ( #2266 )
...
* feat: add alloc_tracker for memtable
* chore: integrate WriteBufferManager
2023-09-12 07:57:15 -05:00
JeremyHi
a7fa40e16d
fix: filter out outdated heartbeat ( #2303 )
...
* fix: filter out outdated heartbeat, #1707
* feat: reorder handlers
* refactor: disableXXX to enableXXX
* feat: make full use of region leases to facilitate failover
* chore: minor refactor
* chore: by comment
* feat: logging on inactive/active
2023-09-12 07:57:15 -05:00
Yingwen
648b2ae293
feat(mito): Flush region ( #2291 )
...
* chore: call handle_flush_request
* feat: alias SchedulerRef and clean scheduler on drop
* feat: add scheduler to workers
* feat: remove RegionMemtableStats
* feat: pick regions to flush
* feat: add more fields to region flush task
* feat: smallvec workspace dep
* feat: Use list to hold immutable memtables
* feat: flush job wip
* feat: use access layer to read write sst
* feat: flush memtables to l0
* feat: write manifest
* feat: schedule next flush on success
* feat: schedule flush on success and failure
* feat: add purger to region
* feat: apply edit after flush
* feat: collect stats for SSTs
* feat: manual flush
* test: test flush and fix manifest test
* feat: remove flush scheduler job limit
* fix: typo
* style: clippy
* feat: clean flushed files on failure
* chore: address CR comment
* refactor: Use put_rows
* feat: Clean flush scheduler on drop
* feat: remove region flush status on drop and close
* chore: address CR comment
2023-09-12 07:57:15 -05:00
Weny Xu
fa5e3b94d3
refactor: refactor ddl procedure ( #2304 )
2023-09-12 07:57:15 -05:00
Weny Xu
4818887e38
refactor: refactor DistInstance ( #2305 )
2023-09-12 07:57:15 -05:00
Ruihang Xia
eddff17523
feat: drop region in mito2 ( #2286 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* check in opening region
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo again
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/mito2/src/worker/handle_drop.rs
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* remove file in order
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix remove logic
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use scan to list files
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-09-12 07:57:15 -05:00
Weny Xu
c839ed271c
refactor: refactor: ddl context ( #2301 )
...
* refactor: refactor: ddl context
* refactor: remove unused code
* chore: apply suggestions from CR
2023-09-12 07:57:15 -05:00
JeremyHi
4d2cae4174
refactor: inactive node manager ( #2300 )
...
refactor: use region_id instead of table®ion_num in InactiveNodeManager
2023-09-12 07:57:15 -05:00
Yingwen
b234733c61
feat(mito): Support deleting rows in mito2 ( #2275 )
...
* feat: check delete request
* test: test delete and overwrite
2023-09-12 07:57:15 -05:00
Lei, HUANG
9691d19601
feat: impl kv backend for raft engine ( #2280 )
...
* feat: kv backend on raft-engine
* feat: raft-engine kvbackend
* fix: toml
* fix: some review comments
* chore: optimize delete
* fix: lift lock in batch_delete
2023-09-12 07:57:15 -05:00
LFC
ff3881f0e1
feat: drop distributed Mito2 table ( #2260 )
...
* feat: drop distributed Mito2 table
* rebase develop
* fix: resolve PR comments
* fix: resolve PR comments
2023-09-12 07:57:15 -05:00
JeremyHi
fa542f6e93
feat: new heartbeat ( #2299 )
2023-09-12 07:57:15 -05:00
Zhenchi
d6c82867d5
refactor: remove the most Table impls ( #2274 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-12 07:57:15 -05:00
Lei, HUANG
86d56f71ef
fix: flume bug ( #2298 )
...
fix: flume
2023-09-12 07:57:15 -05:00
Zhenchi
b42d343ae6
feat(frontend): unify column inserter and row inserter ( #2293 )
...
* refactor: unify inserter
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(frontend): unify column inserter and row inserter
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: remove redundant clone
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: move empty check ahead
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat: add more logs
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: leading license
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* adjust indent
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-09-12 07:57:15 -05:00
Yingwen
365e557e7a
feat(mito): Integrate access layer and file purger to region ( #2296 )
...
* feat: alias SchedulerRef and clean scheduler on drop
* feat: add scheduler to workers
* feat: use access layer to read write sst
* feat: add purger to region
* refactor: allow getting region_dir from AccessLayer
* feat: add scheduler to FlushScheduler
* feat: getter for object store
* chore: fix typo
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-12 07:57:15 -05:00
Ruihang Xia
46d171d341
chore: bump greptime-proto to replace region_dir ( #2290 )
...
chore: bump greptime-proto to replace region_dir
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-12 07:57:15 -05:00
Ruihang Xia
718246ea1a
feat: implement heartbeat for region server ( #2279 )
...
* retrieve region stats from region server
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement heartbeat handler
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* start datanode with region server
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* disable non-unit test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement heartbeat task
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-12 07:57:15 -05:00
JeremyHi
58d07e0e62
feat: v04 rm unused exprs ( #2285 )
...
* feat: rm compact and flush exprs
* refactor: continue to rm compact and flush
2023-09-12 07:57:15 -05:00
dennis zhuang
db89235474
feat: only allow timestamp type as time index ( #2281 )
...
* feat: only allow timestamp data type as time index
* test: update sqltest cases, todo: need some fixes
* fix: sqlness tests
* fix: forgot adding back cte test
* chore: style
2023-09-12 07:57:15 -05:00
shuiyisong
6e593401f7
refactor: collecting memory usage during scan ( #2353 )
...
* chore: try custom metrics
* chore: fix header
* chore: minor change
2023-09-12 15:52:57 +08:00
Yingwen
466fbaca5d
fix: panic in try_into_vector() ( #2351 )
2023-09-11 19:06:31 +08:00
ZonaHe
de966af83b
feat: update dashboard to v0.3.3 ( #2339 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-09-06 19:19:56 +08:00
Zou Wei
b8c50d00aa
feat: sqlness test for interval type ( #2265 )
...
* feat: add integration-test for interval type.
* chore: add two cases.
* chore: cr
* chore: Field to Column
2023-09-04 14:30:48 +08:00
Ruihang Xia
a12ee5cab8
fix: qualify inputs on handling join in promql ( #2297 )
...
* add qualifier to join inputs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add one more case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update test results
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-09-01 11:51:34 +08:00
ZonaHe
a0d15b489a
feat: update dashboard to v0.3.2 ( #2295 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-08-31 22:05:00 +08:00
shuiyisong
baa372520d
fix: json compatibility to null ( #2287 )
...
* fix: existing null value for schema name value
* chore: fix null check
* fix: change catalognamevalue and schemanamevalue to option
* fix: fix null case
2023-08-31 14:21:10 +08:00
shuiyisong
5df4d44761
feat: schema level opts ( #2283 )
...
* chore: update proto
* chore: add try from for schema name value
* chore: merge schema opts to table opts while creating table
* chore: use table ttl opts first
* chore: add unit test
* chore: update proto version
2023-08-30 08:11:08 +00:00
Weny Xu
8e9f2ffce4
fix: skip procedure if target route is not found ( #2277 )
...
* fix: skip procedure if target route is not found
* chore: apply suggestions from CR
2023-08-30 06:59:50 +00:00
Weny Xu
1101e7bb18
fix: deregister table after keeper closes table ( #2278 )
...
* fix: deregister table after keeper closes table
* chore: apply suggestions from CR
2023-08-30 03:43:04 +00:00
zyy17
5fbc941023
ci: upload the latest artifacts to 'latest/' directory of S3 bucket in scheduled and formal release ( #2276 )
...
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2023-08-29 09:00:45 +00:00
Bamboo1
68600a2cf9
feat(mito2): add file purger and cooperate with scheduler to purge sst files ( #2251 )
...
* feat: add file purger and use scheduler
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: code format
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: code format
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* feat: print some information about handling error message
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* fix: resolve conversion
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: code format
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: resolve conversation
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* fix: resolve conflicting files
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: code format
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: code format
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
---------
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
2023-08-29 07:55:03 +00:00
Yingwen
805f254d15
feat(mito): Flush framework for mito2 ( #2262 )
...
* feat: write buffer manager
* feat: skeleton
* feat: add flush logic to write path
* feat: add methods to memtable trait
* feat: freeze memtable
* feat: define flush task
* feat: schedule_flush wip
* feat: adding pending requests/tasks
* feat: separate ddl request and background request
* feat: Remove RegionTask and RequestBody
* feat: handle flush related requests
* feat: make tests pass
* style: fix clippy
* docs: update comment
* refactor: rename background requests
* feat: replace Option<RegionWriteCtx> with an enum MaybeStalling
2023-08-29 07:13:15 +00:00
Zhenchi
2a6c830ca7
refactor(table): remove Table impl for system ( #2270 )
...
* refactor(table): remove Table impl for system
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: format & import
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-08-29 03:43:43 +00:00
Weny Xu
22dea02485
fix: use RegionId region number instead ( #2273 )
2023-08-29 02:52:24 +00:00
LFC
ef75e8f7c3
feat: create distributed Mito2 table ( #2246 )
...
* feat: create distributed Mito2 table
* rebase develop
2023-08-28 12:07:52 +00:00
Weny Xu
71fc3c42d9
fix: open region does not register catalog/schema ( #2271 )
...
* fix: open region does not register catalog/schema
* fix: fix ci
2023-08-28 12:06:10 +00:00
JeremyHi
c02ac36ce8
feat: avoid confusion in desc table ( #2272 )
...
feat: Field to Column to aviod confusion in DESC TABLE
2023-08-28 11:50:33 +00:00
Lei, HUANG
c112b9a763
feat(mito2): WAL replay ( #2264 )
...
* feat: replay memtable when opening table
* test: region replay
* refactor: save logstore in TestEnv
* fix: some cr comments
* chore: rebase develop
* chore: update last entry id during replay
2023-08-28 11:45:23 +00:00
Weny Xu
96fd17aa0a
fix: fix typoes ( #2268 )
2023-08-28 09:26:00 +00:00
Ruihang Xia
6b8cf0bbf0
feat: impl region engine for mito ( #2269 )
...
* update proto
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* convert request
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update proto
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* import result convertor
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename symbols
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-28 09:24:12 +00:00
Yingwen
e2522dff21
feat(mito): Skeleton for scanning a region ( #2230 )
...
* feat: define stream builder
* feat: scan region wip
* feat: create SeqScan in ScanRegion
* feat: scanner
* feat: engine handles scan request
* feat: map projection index to column id
* feat: Impl record batch stream
* refactor: change BatchConverter to ProjectionMapper
* feat: add column_ids to mapper
* feat: implement SeqScan::build()
* chore: fix typo
* docs: add mermaid for ScanRegion
* style: fix clippy
* test: fix record batch test
* fix: update sequence and entry id
* test: test query
* feat: address CR comment
* chore: address CR comments
* chore: Update src/mito2/src/read/scan_region.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-08-28 06:59:31 +00:00
LFC
d8f851bef2
fix: keep region failover state not changed upon failure ( #2261 )
2023-08-28 04:40:47 +00:00
JeremyHi
63b22b2403
feat: prometheus row inserter ( #2263 )
...
* feat: prometheus row inserter
* chore: add unit test
* refactor: to row_insert_requests
* chore: typo
* chore: alloc row by TableData
* chore: by review comment
2023-08-28 03:22:23 +00:00
Weny Xu
c56f5e39cd
refactor: set default metasrv procedure retry times to 12 ( #2242 )
2023-08-26 07:41:15 +00:00
Weny Xu
7ff200c0fa
fix: align region numbers to real regions ( #2257 )
2023-08-25 11:48:58 +00:00
dennis zhuang
5160838d04
chore: change version to 0.4.0-nightly ( #2258 )
...
* chore: change version to 0.4.0-nightly
* fix: test
2023-08-25 09:44:39 +00:00
shuiyisong
f16f58266e
refactor: query_ctx from http middleware ( #2253 )
...
* chore: change userinfo to query_ctx in http handler
* chore: minor change
* chore: move prometheus http to http mod
* chore: fix uni test:
* chore: add back schema check
* chore: minor change
* chore: remove clone
2023-08-25 09:36:33 +00:00
Ruihang Xia
8d446ed741
fix: quote ident on rendered SQL ( #2248 )
...
* fix: quote ident on rendered SQL
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* read quote style from query context
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-08-25 07:25:21 +00:00
JeremyHi
de1daec680
feat: upgrade desc table output ( #2256 )
2023-08-25 06:52:22 +00:00
Zhenchi
9d87c8b6de
refactor(table): cleanup dist table ( #2255 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-08-25 06:37:39 +00:00
Lei, HUANG
6bf260a05c
chore: write to mito2 ( #2250 )
...
* chore: write to mito2
* fix: clippy
* feat: brdige memtable
* chore: rebase develop
2023-08-25 06:18:42 +00:00
WU Jingdi
15912afd96
fix: the inconsistent order of input/output in range select ( #2229 )
...
* fix: the inconsistent order of input/output in range select
* chore: apply CR
2023-08-25 04:12:59 +00:00
Lei, HUANG
dbe0e95f2f
feat(mito2): concat and projection ( #2243 )
...
* refactor: use arrow::compute::concat instead of push values to vector builders
* feat: support projection
* refactor: remove sequence
* refactor: concatenate
* fix: series must not be empty
* refactor: projection
2023-08-25 03:25:27 +00:00
Ruihang Xia
20b7f907b2
fix: promql planner should clear its states on each selector ( #2247 )
...
* reset planner status on selector
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add empty line
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sort result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* mask fields to keep ordering
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-25 03:07:44 +00:00
Weny Xu
b13d932e4e
fix: fix RegionAliveKeeper does not find the table after restarting ( #2249 )
2023-08-25 03:05:17 +00:00
Bamboo1
48348aa364
fix: fix test_scheduler_continuous_stop in scheduler ( #2252 )
...
* fix: fix test_scheduler_continuous_stop in scheduler
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: add document annotation
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
---------
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
2023-08-25 02:59:48 +00:00
Zhenchi
9ce73e7ca1
refactor(frontend): TableScan instead of scan_to_stream for COPY TO ( #2244 )
...
* refactor(frontend): TableScan instead of `scan_to_stream` for `COPY TO`
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: format
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-08-24 12:46:54 +00:00
Ruihang Xia
b633a16667
feat: apply rewriter to subquery exprs ( #2245 )
...
* apply rewriter to subquery exprs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* workaround for datafusion's check
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change time index type
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-24 11:48:04 +00:00
Zhenchi
0a6ab2a287
refactor(script): not to call scan_to_stream on table ( #2241 )
...
* refactor(script): not to call `scan_to_stream` on table
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: build plan via LogicalPlanBuilder
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-08-24 08:10:07 +00:00
JeremyHi
7746e5b172
feat: dist row inserter ( #2231 )
...
* feat: fronend row inserter
* feat: row splitter
chore: row splitter's unit test
* feat: RowDistInserter
* feat: make influxdb line protocol using row-based protocol
* Update src/partition/src/row_splitter.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/frontend/src/instance/distributed/row_inserter.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: by review comment
* Update src/frontend/src/instance/distributed/row_inserter.rs
Co-authored-by: LFC <bayinamine@gmail.com >
* chore: by comment
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
Co-authored-by: LFC <bayinamine@gmail.com >
2023-08-24 06:58:05 +00:00
Weny Xu
a7e0e2330e
fix: invalidate cache after altering ( #2239 )
2023-08-24 03:56:17 +00:00
Lei, HUANG
19d2d77b41
fix: parse large timestamp ( #2185 )
...
* feat: support parsing large timestamp values
* chore: update sqlness tests
* fix: tests
* fix: allow larger window
2023-08-24 03:52:15 +00:00
Yingwen
4ee1034012
feat(mito): merge reader for mito2 ( #2210 )
...
* feat: Implement slice and first/last timestamp for Batch
* feat(mito): implements sort/concat for Batch
* chore: fix typo
* chore: remove comments
* feat: sort and dedup
* test: test batch operations
* chore: cast enum to test op type
* test: test filter related api
* sytle: fix clippy
* feat: implement Node and CompareFirst
* feat: merge reader wip
* feat: merge wip
* feat: use batch's operation to sort and dedup
* feat: implement BatchReader for MergeReader
* feat: simplify codes
* test: test merge reader
* refactor: use test util to create batch
* refactor: remove unused imports
* feat: update comment
* chore: remove metadata() from Source
* chroe: update comment
* feat: source supports batch iterator
* chore: update comment
2023-08-24 03:37:51 +00:00
Ruihang Xia
e5ba3d1708
feat: rewrite the dist analyzer ( #2238 )
...
* it works!
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add documents
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unstable timestamp from sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename rewriter struct
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-24 03:29:08 +00:00
dennis zhuang
8b1f4eb958
feat: types sqlness tests ( #2073 )
...
* feat: timestamp types sqlness tests
* feat: adds timestamp tests
* test: add string tests
* test: comment a case in timestamp
* test: add float type tests
* chore: adds TODO
* feat: set TZ=UTC for sqlness test
2023-08-24 03:26:19 +00:00
discord9
eca7e87129
chore: try from value ( #2236 )
...
* chore: try from value
* chore: add TryFromValueError variant
2023-08-24 02:44:13 +00:00
Weny Xu
beb92ba1d2
refactor: use table id instead of table ident ( #2233 )
2023-08-23 13:28:08 +00:00
Lei, HUANG
fdb5ad23bf
refactor: use Batch::sort_and_dedup instead of Values::sort_in_place ( #2235 )
2023-08-23 08:56:49 +00:00
Ruihang Xia
d581688fd2
fix: dist planner has wrong behavior in table with multiple partitions ( #2237 )
...
* fix: dist planner has wrong behavior in table with multiple partitions
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update tests/cases/distributed/explain/multi_partitions.sql
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
2023-08-23 08:32:20 +00:00
Bamboo1
4dbc32f532
refactor: remove associate type in scheduler to simplify it #2153 ( #2194 )
...
* feature: add a simple scheduler using flume
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* fix: only use a sender rather clone many senders
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* fix: use select to avoid loop
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* feat: add parameters in new function to build the flume capacity and number of receivers
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* test: add countdownlatch test concurrency
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* test: add barrier replacing countdownlatch to test concurrency and add wait all tasks finished in stop
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: add some document annotation
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: add license header
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: code format
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: add Cargo.lock
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: Cargo.toml format
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: delete println in test
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: code format
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: code format
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* feat: add error handle
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* fix: fix error handle and add test scheduler stop
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: spelling mistake
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* fix: wait all tasks finished
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: add todo which need wrap Future returned by send_async
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: code format
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* test: remove unnessary sleep in test
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* fix: resolve some conflicts
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* fix: resolve conversation
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: code format
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* chore: code format
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
* feat: modify the function of schedule to synchronize and drop sender after stopping scheduler
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
---------
Signed-off-by: ZhuZiyi <zyzhu2001@gmail.com >
2023-08-23 06:28:00 +00:00
Zhenchi
af95e46512
refactor(table): eliminate calls to DistTable.delete ( #2225 )
...
* refactor(table): eliminate calls to DistTable.delete
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: format
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: clippy
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-08-23 02:33:48 +00:00
Weny Xu
d81ddd8879
chore: fix clippy ( #2232 )
2023-08-23 02:24:29 +00:00
Ning Sun
88247e4284
fix!: resolve residual issues with removing prometheus port ( #2227 )
...
* fix: resolve residual issues when removing prometheus port
* fix: remove prometheus from sample config as well
2023-08-23 01:49:11 +00:00
Ruihang Xia
18250c4803
feat: implement Flight and gRPC services for RegionServer ( #2226 )
...
* extract FlightCraft trait
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* split service handler in GrpcServer
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* left grpc server implement
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* start region server if configured
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-22 13:30:09 +00:00
dennis zhuang
18fa0e01ed
feat: remove checkpoint_on_startup ( #2228 )
...
feat: update flushed manifest version when it is larger
2023-08-22 13:09:34 +00:00
Yingwen
cc3e198975
feat(mito): Implement operations like concat and sort for Batch ( #2203 )
...
* feat: Implement slice and first/last timestamp for Batch
* feat(mito): implements sort/concat for Batch
* chore: fix typo
* chore: remove comments
* feat: sort and dedup
* test: test batch operations
* chore: cast enum to test op type
* test: test filter related api
* sytle: fix clippy
* docs: comment for slice
* chore: address CR comment
Don't return Option in get_timestamp()/get_sequence()
2023-08-22 12:03:02 +00:00
Yingwen
cd3755c615
feat(mito): Support handling RegionWriteRequest ( #2218 )
...
* feat: convert region request to worker write request
* chore: remove unused codes
* test: fix tests compiler errors
* chore: remove create/close/open request from worker requests
* chore: add comment
* chore: fix typo
2023-08-22 11:16:00 +00:00
Lei, HUANG
be1e13c713
feat(mito2): time series memtable ( #2208 )
...
* feat: time series memtable
* feat: add some test
* fix: some clippy warnings
* chore: some rustdoc
* refactor: test
* fix: remove useless functions
* feat: add config for TimeSeriesMemtable
* chore: some optimize
* refactor: remove bucketing
* refactor: avoid cloing RegionMetadataRef across all Series; make initial_builder_capacity a const; sort batch only by timestamp and sequence
2023-08-22 08:40:46 +00:00
Zhenchi
cb3561f3b3
refactor(table): eliminate calls to DistTable.insert ( #2219 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-08-22 06:15:02 +00:00
Niwaka
b3b43fe1c3
fix: table options can't be found in distributed mode ( #2209 )
...
* fix: table options can't be found in distributed mode
* refactor: use iterator for regions_numbers
* chore: remove TODO
2023-08-22 03:53:56 +00:00
WU Jingdi
b411769de6
feat: Implement a basical range select query ( #2138 )
...
* feat: Implement a basical range select query
* chore: support any timestamp type & CR fix
2023-08-22 03:07:14 +00:00
niebayes
e5f4ca2dab
feat: streaming do_get ( #2171 )
...
* feat: rewrite do_get for streaming get flight data
* feat: rewrite do_get call stack but leave the async stream adapter not modified yet
* feat: rewrite the async stream adapter to accept greptime record batch stream
* fix: resolve some PR comments
* feat: rewrite tests to adapt to the streaming do_get
* feat: add unit tests for streaming do_get
* feat: rewrite timer metric of merge scan
* remove unhelpful unit tests for streaming do_get
* add a new metric timer for merge scan and fix some test errors
* rewrite mysql writer to write query results in a streaming manner
* fix: fix fmt errors
* fix: rewrite sqlness runner to take into account the streaming do_get
* fix: fix toml format errors
* fix: resolve some PR comments
* fix: resolve some PR comments
* fix: refactor do_get to increase readability
* fix: refactor mysql try_write_one to increase readability
2023-08-22 02:54:05 +00:00
Weny Xu
5b7b2cf77d
fix: fix ddl client can not update leader addr ( #2205 )
...
* fix: fix ddl client can not update leader addr
* chore: apply suggestions from CR
* feat: add message to context
* fix: only retry if unavailable or deadline exceeded
* chore: apply suggestions from CR
2023-08-21 13:57:29 +00:00
shuiyisong
9352649f22
chore: add table region key to delete in upgrade tool ( #2214 )
2023-08-21 08:16:10 +00:00
shuiyisong
c5f507c20e
fix: add user_info extension to prom_store handler ( #2212 )
...
chore: add user_info extention to prom_store auth
2023-08-21 04:55:34 +00:00
JeremyHi
033b650d0d
feat: row write protocol ( #2189 )
...
* feat: datanode's row insrter
* refactor: ExprFactory
* feat: row inserter in standalon mode
* chore: minor refactor
* feat: influxdb line protocol's row protocol
* chore: minor refactor
* improve: avoid to use too many string
* no longer async
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* chore: do not check empty data
* chore: by review comment
* chore: by comment
* chore: by review comment
* chore: by review comment
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-19 13:08:44 +00:00
dennis zhuang
272f649b22
fix: some TODO in sqlness cases and refactor meta-client error ( #2207 )
...
* fix: some TODO in sqlness cases and refactor meta-client error
* fix: delete tests/cases/standalone/alter/drop_col_not_null_next.output
2023-08-18 10:09:11 +00:00
Ruihang Xia
3150f4b22e
fix: specify input ordering and distribution for prom plan ( #2204 )
...
* fix: specify input ordering and distribution for prom plan
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-08-18 09:45:46 +00:00
Weny Xu
e1ce1d86a1
refactor: unite key serialization method ( #2195 )
2023-08-18 09:42:19 +00:00
ZonaHe
b8595e1960
feat: update dashboard to v0.3.1 ( #2192 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-08-18 09:42:18 +00:00
shuiyisong
61e6656fea
fix: auth in prometheus gateway service ( #2206 )
...
* fix: auth in prometheus gateway service
* chore: remove unused code
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-18 09:41:38 +00:00
Ruihang Xia
1bbec75f5b
fix: skip partition clause in show create table ( #2200 )
...
* fix: skip partition clause in show create table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update test results
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-18 09:10:31 +00:00
Zhenchi
8d6a2d0b59
refactor: apply numbers to ThinTable ( #2202 )
...
* refactor: apply numbers to `ThinTable`
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: tiny polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: unused import
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-08-18 03:11:37 +00:00
Weny Xu
177036475a
fix: support to copy from parquet with typecast ( #2201 )
2023-08-18 03:09:54 +00:00
Zhenchi
87a730658a
refactor: add ThinTable to proxy tables from infoschema ( #2193 )
...
* refactor: add thin table to proxy tables in info_schema
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix(catalog): fix typo in DataSourceAdapter struct name
* fix: remove redundant Send + Sync
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor(catalog): rename DataSourceAdapter to InformationTableDataSource
* feat(catalog): add ThinTableAdapter for adapting ThinTable to Table interface
* rebase develop
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: default impl for table_type of InformationTable
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: filter_pushdown as table field
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: remove explicit type declaration
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-08-17 15:19:14 +00:00
JeremyHi
b67e5bbf70
fix: invalid err msg ( #2196 )
2023-08-17 11:12:35 +00:00
Ruihang Xia
4aaf6aa51b
feat: implement query API for RegionServer ( #2197 )
...
* some initial change
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl dummy structs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* decode and send logical plan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement table scan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add some comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-17 11:02:31 +00:00
Weny Xu
6e6ff5a606
refactor: update table metadata in single txn ( #2172 )
...
* refactor: table-metadata-manager
* feat: remove comparing when deleting metadata
* fix: fix comment typos
* chore: apply suggestions from CR
* test: add tests for updating DatanodeTable
* fix: fix clippy
* chore: apply suggestions from CR
* refactor: improve update table route tests
* refactor: return Txn instead of TxnRequest
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* refactor: update table metadata in single txn
* feat: check table exists before drop table executing
* test: add tests for table metadata manager
* refactor: remove table region manager
* chore: apply suggestions from CR
* feat: add bench program
* chore: apply suggestions from CR
2023-08-17 06:29:19 +00:00
Yingwen
4ba12155fe
feat(mito): Implement SST format for mito2 ( #2178 )
...
* chore: update comment
* feat: stream writer takes arrow's types
* feat: Define Batch struct
* feat: arrow_schema_to_store
* refactor: rename
* feat: write parquet in new format with tsids
* feat: reader support projection
* feat: Impl read compat
* refactor: rename SchemaCompat to CompatRecordBatch
* feat: changing sst format
* feat: make it compile
* feat: remove tsid and some structs
* feat: from_sst_record_batch wip
* chore: push array
* chore: wip
* feat: decode batches from RecordBatch
* feat: reader converts record batches
* feat: remove compat mod
* chore: remove some codes
* feat: sort fields by column id
* test: test to_sst_arrow_schema
* feat: do not sort fields
* test: more test helpers
* feat: simplify projection
* fix: projection indices is incorrect
* refactor: define write/read format
* test: test write format
* test: test projection
* test: test convert record batch
* feat: remove unused errors
* refactor: wrap get_field_batch_columns
* chore: clippy
* chore: fix clippy
* feat: build arrow schema from region meta in ReadFormat
* feat: initialize the parquet reader at `build()`
* chore: fix typo
2023-08-17 06:25:50 +00:00
Weny Xu
832e5dcfd7
chore: remove allow-unused ( #2184 )
2023-08-17 03:15:12 +00:00
shuiyisong
d45ee8b42a
chore: fix collect region stat on non-base table ( #2190 )
2023-08-17 02:13:49 +00:00
JeremyHi
6cd7319d67
refactor: grpc insert ( #2188 )
...
* feat: interval type for row protocol
* feat: minor refactor grpc insert
* Update src/common/grpc-expr/src/util.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* fix: by comment
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-16 11:25:25 +00:00
Yingwen
bb062003ef
ci: fallback to run_id to avoid cancelling other jobs ( #2186 )
...
ci: fallback to run id to avoid cancelling other jobs
2023-08-16 09:24:17 +00:00
Weny Xu
8ea1763033
refactor: refactor table metadata manager ( #2159 )
...
* refactor: table-metadata-manager
* feat: remove comparing when deleting metadata
* fix: fix comment typos
* chore: apply suggestions from CR
* test: add tests for updating DatanodeTable
* fix: fix clippy
* chore: apply suggestions from CR
* refactor: improve update table route tests
* refactor: return Txn instead of TxnRequest
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2023-08-16 06:43:03 +00:00
Zhenchi
1afe96e397
refactor: prevent dist table from invoking scan ( #2179 )
...
* refactor: prevent dist table from invoking `scan`
* refactor: reorg code
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: add comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-08-16 04:43:33 +00:00
Ruihang Xia
814c599029
ci: cancel in-progress actions on new commit ( #2182 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-16 04:21:14 +00:00
Ruihang Xia
4c3169431b
feat: move region metadata to store-api ( #2181 )
...
* add metadata & handle_read
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move metadata to store-api
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* dep aquamarine
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deadcode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove temporary code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/store-api/Cargo.toml
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* remove old mod
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-08-16 04:18:26 +00:00
sh2
202540823f
refactor!: move prometheus routes to default http server ( #2005 )
...
* move prometheus routes to default http server
Signed-off-by: sh2 <shawnhxh@outlook.com >
* fix ci test and remove the server logic of prometheus
* remove unused import and prometheus relevant code
* fix ci: rustfmt and test
* fix ci: silly fmt
* fix ci: silly silly fmt
* change `/prom_store` back to `/prometheus`
* remove unused variable
---------
Signed-off-by: sh2 <shawnhxh@outlook.com >
2023-08-16 03:21:14 +00:00
dennis zhuang
0967678a51
feat: don't enable telemetry for debug building ( #2177 )
2023-08-16 01:53:11 +00:00
shuiyisong
c8cde704cf
chore: minor auth crate change ( #2176 )
...
* chore: pub auth_mysql
* chore: pub all error
* chore: remove back to error
* chore: wrap failed permission check result to err
* chore: minor change
2023-08-15 10:49:22 +00:00
JeremyHi
24dc827ff9
feat: grpc handler result ( #2107 )
...
* feat: grpc handler inner result
* feat: ext header, x-greptime-err-code, x-greptime-err-msg
* fix: sqlness case
* chore: by comment
* fix: convert status to Error
2023-08-15 09:34:00 +00:00
Weny Xu
f5e44ba4cf
docs: rfc of update metadata in single txn ( #2165 )
...
* docs: rfc of update metadata in single txn
* chore: apply suggestion from CR
2023-08-15 17:44:07 +08:00
zyy17
32c3ac4fcf
refactor: improve the image building performance ( #2175 )
...
* refactor: use '--output type=local' in 'build-greptime-by-buildx' target to reduce unnecessary 'docker cp'"
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* refactor: improve the image building performance
* ci: release centos dev builder
* ci: use 'make build-by-dev-builder' to improve docker build performance
* refactor: add 'which' command in centos
* fix: add 'OUTPUT_DIR' to fix 'make docker-image-buildx' error
* fix: fix incorrect dockerfile path
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* refactor: remove configure-aws-credentials action and use env variables
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* ci: update slack notification prompt
* refactor: clean up the target directory before building artifacts of centos7
---------
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2023-08-15 09:28:09 +00:00
Niwaka
a8f2e4468d
feat: handle multiple grpc deletes ( #2150 )
...
* feat: handle multiple grpc deletes
* fix: make DistDeleter::grpc_delete return usize
* fix: remove backtrace from MissingTimeIndexColumn
* fix: avoid using unwrap in PartitionRuleManager::split_delete_request
* fix: simplify MissingTimeIndexColumn
2023-08-15 08:22:46 +00:00
Yingwen
d4565c0a94
feat(mito): Defines the read Batch struct for mito2 ( #2174 )
...
* feat: define batch
* feat: define Batch struct
* feat: stream writer takes arrow's types
* feat: make it compile
* feat: use uint64vector and uint8vector
* feat: add timestamps and primary key
2023-08-15 06:39:21 +00:00
Ruihang Xia
2168970814
feat: define region server and related requests ( #2160 )
...
* define region server and related requests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fill request body
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change mito2's request type
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: bump greptime-proto to d9167cab (row insert/delete)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove name_to_index
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* address cr comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* finilise
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-15 06:27:27 +00:00
Weny Xu
69a2036cee
feat!: add deserializer for Partition ( #2169 )
...
* feat!: add deserializer for Partition
* fix: fix tests
2023-08-15 03:36:58 +00:00
Lei, HUANG
e924b44e83
refactor: KeyValues return ValueRef ( #2170 )
...
* refactor: KeyValues return ValueRef
* 1. Change KeyValues returned value from pb value to ValueRef
2. Replace OpType/SemanticType with pb's OpType and SemanticType to avoid duplicated conversions.
* feat: define min value of OpType as a const
* fix: toml format
2023-08-14 14:51:13 +00:00
Yingwen
768239eb49
fix: panic on truncate table in distributed mode ( #2173 )
2023-08-14 14:20:20 +00:00
Ning Sun
f3157df190
fix: normalize otlp string keys ( #2168 )
2023-08-14 09:39:54 +00:00
dennis zhuang
b353bd20db
fix: print_anonymous_usage_data_disclaimer at wrong place ( #2167 )
2023-08-14 08:01:10 +00:00
Lei, HUANG
55b5df9c51
feat: row wise converter ( #2162 )
...
* feat: impl mem-comparable encoding for timestamp
* fix: test cases
* impl time series encode/decoder
* fix: merge unsupported match arms
* fix: clippy
* chore: big number delimiter
* feat: encode timestamps as i64
* fix: remove useless error variant
2023-08-14 07:13:39 +00:00
Ruihang Xia
393047a541
feat: implement metric for MergeScanExec ( #2166 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-14 07:10:45 +00:00
LFC
606b489d53
feat: redact secrets in sql when logging ( #2141 )
2023-08-14 06:40:00 +00:00
Weny Xu
d0b3607633
feat: add table route manager and upgrade tool ( #2145 )
...
* feat: add table route manager and upgrade tool
* test: add table route manager tests
* feat: add new TableRouteValue struct
* chore: apply suggestions from CR
* refactor: change HashMap to BTreeMap
* feat: add version to TableRouteValue
2023-08-14 04:19:44 +00:00
Weny Xu
5b012a1f67
feat!: switch to new catalog/schema key ( #2140 )
...
* feat!: switch to new catalog/schema key
* chore: apply suggestions from CR
2023-08-14 03:08:43 +00:00
Ruihang Xia
f6b53984da
fix(metasrv)!: do not overwrite boolean options unconditionally ( #2161 )
...
* fix: do not overwrite boolean options unconditionally
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix sqlness start command
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-14 03:04:54 +00:00
shuiyisong
7f51141ed0
refactor: auth crate ( #2148 )
...
* chore: move user_info to auth crate
* chore: temp commit before resolving tests compile error
* chore: fix compile issue
* chore: minor fix
* chore: tmp save
* chore: change user_info to trait
* chore: minor change & use auth result user info in pg session setup
* chore: add as_any to user_info
* chore: rename user_info
* chore: remove ice file
* chore: add permission checker
* chore: add grpc permission check
* chore: add session spawn user_info to query_ctx
* chore: minor update
* chore: add permission checker to sql handler & temp save
* chore: add permission checker to prometheus handler
* chore: add permission checker to opentsdb handler
* chore: add permission checker to other handlers
* chore: add test
* chore: add user_info setting on http entrance
* chore: fix toml
* chore: remove box in permission req
* chore: cr issue
* chore: cr issue
2023-08-14 02:51:26 +00:00
Ruihang Xia
6d64e1c296
feat(mito): checkpoint for mito2 ( #2142 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* adjust dir structure
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix styles
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sort result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* downgrade log level
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* apply CR sugg.
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add region id to log
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-13 09:26:01 +00:00
Yingwen
e6090a8d5b
feat(mito): Write wal and memtable ( #2135 )
...
* feat: hold wal entry in RegionWriteCtx
* feat: entry id and commited sequence
* feat: write to wal
* feat: write memtable
* feat: fill missing columns
* feat: validate write request
* feat: more validation to write request
* chore: fix typos
* feat: remove init and validate rows in new()
* style: fix clippy
2023-08-12 07:44:44 +00:00
谢政
b62e643e92
build: update protobuf-build to support apple silicon ( #2143 )
...
* build: update protobuf-build to support apple silicon
* build: Update src/log-store/Cargo.toml
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* build: update the Cargo.lock too
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-12 03:31:51 +00:00
dennis zhuang
6f40128058
feat!: enable telemetry by default ( #2137 )
...
* feat: remove greptimedb-telemetry feature
* feat: adds enable_telemetry option to metasrv and datanode
* refactor: move data_home from file config to storage config
* feat: store the installation uuid into datanode and metasrv working home
* fix: cargo toml fmt
* test: ignore region failver test when using local fle storage
* test: ignore telemetry reporter in test mode
* feat: print warning log when enabling telemetry
* chore: the telemetry doc link
* chore: remove enable_telemetry from datanode example config file
* refactor: rename GREPTIMEDB_TELEMETRY_CLIENT_REQUEST_TIMEOUT
* chore: rename print_warn_log to print_anonymous_usage_data_disclaimer
2023-08-11 14:50:40 +00:00
LFC
0b05c22be1
fix: make "explain" executable in repl ( #2157 )
2023-08-11 20:21:40 +08:00
Ruihang Xia
4fd1057764
fix: several clippy error/warnings after upgrading toolchain ( #2156 )
...
* fix pyscripts mod
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy::needless-pass-by-ref-mut
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add pyo3 feature gate in Makefile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-11 20:20:21 +08:00
Zou Wei
6877d082f6
feat: compatible with postgres interval type ( #2146 )
...
* feat: impl ToSql/FromSql/ToSqlText for PgInterval.
* chore: remove useless code.
* feat: compatible with postgres interval type.
* chore: cr comment.
2023-08-11 20:19:57 +08:00
LFC
2dcc67769e
fix: runs sqlness test on windows-latest-8-cores ( #2158 )
2023-08-11 17:34:58 +08:00
Ruihang Xia
b9bac2b195
fix: let information_schema know itself ( #2149 )
...
* rename show create table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* register information_schema on registering catalog
* fix tests in standalone
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix frontend catalog manager
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy & typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tweak sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename constructor
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename method
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo (again)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove redundent clones
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-11 15:37:27 +08:00
Zou Wei
584acca09d
feat: impl duration type ( #2117 )
...
* feat: impl duration type in common time.
* feat: convert from/to std::time::Duration.
* refactor: convert function
2023-08-11 07:04:42 +00:00
LFC
ad2021a8d8
feat: print build output if it's failed in sqlness ( #2152 )
...
* feat: print build output if it's failed in sqlness
* feat: print build output if it's failed in sqlness
2023-08-11 03:34:15 +00:00
zyy17
c970c206d1
ci: add retry for uploading artifacts to s3 ( #2147 )
2023-08-10 12:59:04 +00:00
LFC
5c19913a91
build: on windows ( #2054 )
...
* build on windows
* rebase develop
* fix: resolve PR comments
2023-08-10 08:08:37 +00:00
zyy17
587a24e7fb
ci: add working dir and some minor changes of create-version.sh ( #2133 )
...
* ci: add context argument in build-greptime-binary action
* refactor: add 'working-dir' in upload-artifacts action and rename 'context' to 'working-dir'
* refactor: use timestamp as part of image tag when trigger manually
2023-08-10 04:46:43 +00:00
Ning Sun
0270708d6d
fix: correct grpc metric labels ( #2136 )
2023-08-10 03:59:41 +00:00
WU Jingdi
b7319fe2b1
feat: Support RangeSelect LogicalPlan rewrite ( #2058 )
...
* feat: Support RangeSelect LogicalPlan rewrite
* chore: fix code advice
* fix: change format of range_fn
* chore: optimize project plan rewrite
* chore: fix code advice
2023-08-10 02:53:20 +00:00
LFC
ea3708b33d
fix: deserialize TableInfoValue with missing field ( #2134 )
2023-08-10 02:43:24 +00:00
Zhenchi
7abe71f399
fix(table): return correct table types ( #2131 )
...
* fix(table): return correct table types
Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
* fix: NumbersTable to be Temporary table
Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
* fix(test): fix affected cases
Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
* fix(test): fix affected cases
Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
* fix: fmt
Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
* fix(tests): fix instance_test expected result
* retrigger action
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
2023-08-09 11:07:00 +00:00
Ruihang Xia
b156225b80
fix: correct the schema used by TypeConversionRule ( #2132 )
...
* fix: correct the schema used by TypeConversionRule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* specify time zone in UT
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-09 08:18:17 +00:00
zyy17
2ac51c6348
fix: set the correct working dir before building the artifacts ( #2129 )
2023-08-09 14:34:29 +08:00
Ning Sun
7f5f8749da
test: add conditional compilation flag for datanode mock module ( #2130 )
2023-08-09 06:10:54 +00:00
Yingwen
d4e863882f
feat: Add write method to memtable trait ( #2123 )
...
* feat: validate semantic type
* feat: define KeyValues
* test: test semantic type check
* feat: impl KeyValues
* test: test KeyValues
* feat: Add write to Memtable
* style: fix clippy
* docs: more comment
2023-08-09 04:07:50 +00:00
Ning Sun
d18eb18b32
feat: use server inferenced types on statement describe ( #2032 )
...
* feat: use server inferenced types on statement describe
* feat: add support for server inferenced type
* feat: allow parameter type inferencing
* chore: update comments
* fix: lint issue
* style: comfort rustfmt
* Update src/servers/src/postgres/types.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-08-09 02:57:56 +00:00
liyang
aa6452c86c
chore: rename dockerhub registry password ( #2127 )
2023-08-09 02:28:56 +00:00
zyy17
d44cd9c6f5
fix: add 'image-name' argument to correct the invalid image namespace(mix with image-name) ( #2126 )
2023-08-09 10:04:11 +08:00
gongzhengyang
ce0f909cac
perf: change current schema and catalog to borrow, clone only necessary ( #2116 )
...
perf: change current schema and catalog to borrow, clone only when necessary
Co-authored-by: gongzhengyang <gongzhengyang@bolean.com.cn >
2023-08-08 12:48:24 +00:00
Ruihang Xia
4c693799d8
fix: bugs related to merge scan ( #2118 )
...
* fix: prevent optimize merge scan, mark distinct as unsupported
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix some other problems
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix unit tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deadcode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add some comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/query/src/optimizer/type_conversion.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-08-08 11:42:57 +00:00
Vanish
57836e762b
feat: truncate table in standalone mode ( #2090 )
...
* feat: impl table procedure in standalone mode
* chore: remove useless changes
* test: add some tests
* Update src/table-procedure/src/truncate.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* CR
* Update src/datanode/src/sql/truncate_table.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: fmt
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-08-08 11:23:36 +00:00
zyy17
d927ab1ce5
ci: add 'upload-to-s3' option and disable it in dev build ( #2124 )
2023-08-08 11:22:24 +00:00
Ning Sun
c39de9072f
refactor: use workspace dependencies for internal modules ( #2119 )
...
* refactor: use workspace dependencies for internal modules
* fix: resolve issue with mock module in datanode
* refactor: update test modules
2023-08-08 11:02:34 +00:00
zyy17
815a6d2d61
fix: var compare error(yet another stupid mistake) ( #2122 )
2023-08-08 17:39:53 +08:00
zyy17
f1f8a1d3a9
ci: fix incorrect variable name ( #2121 )
2023-08-08 17:20:11 +08:00
zyy17
e7abd00fc0
ci: fix error import path ( #2120 )
2023-08-08 17:12:54 +08:00
zyy17
5e2fdec1b6
ci: add dev-build ( #2114 )
2023-08-08 07:58:59 +00:00
Lei, HUANG
2d9ea595cb
chore!: change logstore namespace prefix ( #1998 )
...
* chore: change logstore namespace prefix
* chore: change delimiter
2023-08-08 07:36:46 +00:00
LFC
46fa3eb629
chore: upgrade rust toolchain to latest nightly ( #2049 )
...
* chore: upgrade rust toolchain to latest nightly
* rebase develop
* update rust toolchain in ci
2023-08-08 07:17:51 +00:00
Weny Xu
7d0d8dc6e3
feat: return metasrv leader addr ( #2110 )
2023-08-07 10:01:42 +00:00
Zhenchi
f8d152231d
feat(information_schema): implement table_factory method ( #2108 )
...
* feat(information_schema): implement table_factory method
* refactor(catalog): simplify table_factory method
* Update src/table/src/data_source.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-07 08:07:25 +00:00
Weny Xu
c8cb1ef5bc
feat: add schema and catalog key migration tool ( #2048 )
...
* feat: add schema and catalog key migration tool
* chore: apply suggestions from CR
2023-08-07 06:22:05 +00:00
Zou Wei
d5cadeeec3
feat: conversion between interval and gRPC ( #2064 )
...
* feat: support grpc for interval type
* chore: add unit test cases.
* chore: cargo clippy
* chore: modify greptime-proto version
* chore: cr comment.
* chore: cargo fmt
* refactor: convert function.
2023-08-07 06:22:04 +00:00
Ruihang Xia
7210b35d86
docs: rfc of refactoring table trait ( #2106 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-07 02:55:19 +00:00
Vanish
cf7e8c9142
feat: truncate region ( #2097 )
...
* feat: impl truncate region
* test: test truncate region
* chore: typo
* refactor: table truncate
* chore: remove useless changes
* chore: reset version
* fix: wait for flush task to complete
* fix: clippy
* chore: remove useless changes
* CR
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/storage/src/engine.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/storage/src/engine.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/storage/src/region.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/storage/src/region/tests/truncate.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/storage/src/region/tests/truncate.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/storage/src/region/writer.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* CR
* Update src/storage/src/engine.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/storage/src/manifest/region.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-08-04 12:26:25 +00:00
Yingwen
cb4dd89754
feat(mito): Implement mito2 Wal ( #2103 )
...
* feat: define wal struct
* feat: Implement Wal read/write
* feat: obsolete wal
* test: test wal
* refactor: use try_stream and remove async from scan
2023-08-04 11:04:25 +00:00
zyy17
9139962070
fix: fix version output empty error: '$GITHUB_ENV' -> '$GITHUB_OUTPUT' ( #2104 )
2023-08-04 17:48:11 +08:00
Ruihang Xia
9718aa17c9
feat: define region group and sequence ( #2100 )
...
* define region group
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* define region sequence
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* check partition number
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* test region seq and group
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-04 09:08:07 +00:00
Ruihang Xia
18896739d8
fix: disable region failover in sqlness test ( #2102 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-04 08:38:40 +00:00
zyy17
8bcad936d3
fix: wrong action url prompt ( #2099 )
...
fix: wrong action url
2023-08-04 07:39:02 +00:00
shuiyisong
7efff2d704
fix: introduce taplo.toml and sort Cargo.toml ( #2096 )
...
* fix: add taplo.toml
* fix: introduce taplo.toml & sort cargo.toml
* chore: remove option in ci too
2023-08-04 06:44:45 +00:00
Ning Sun
93cd4ab89d
ci: require cargo.lock up to date ( #2094 )
2023-08-04 02:59:01 +00:00
Yingwen
e5663a075f
feat(mito): preparation to implementing write ( #2085 )
...
* refactor: move request mod
* feat: add mutation
* feat: add handle_write mod
* feat: one mutation at a time
* feat: handle write requests
* feat: validate schema
* refactor: move schema check to write request
* feat: add convert value
* feat: fill default values
* chore: remove comments
* feat: remove code
* feat: remove code
* feat: buf requests
* style: fix clippy
* refactor: rename check functions
* chore: fix compile error
* chore: Revert "feat: remove code"
This reverts commit 6516597540 .
* chore: Revert "feat: remove code"
This reverts commit 5f2b790a01 .
* chore: upgrade greptime-proto
* chore: Update comment
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-08-04 02:53:02 +00:00
zyy17
ac81d3c74f
fix: add the missing 'NIGHTLY_RELEASE_PREFIX' and fail fast in 'allocate-runners' job ( #2093 )
2023-08-04 02:51:47 +00:00
JeremyHi
7987e08ca2
chore: typo ( #2092 )
2023-08-04 01:38:17 +00:00
Eugene Tolbakov
1492700acc
fix(timestamp): add trim for the input date string ( #2078 )
...
* fix(timestamp): add trim for the input date string
* fix(timestamp): add analyzer rule to trim strings before conversion
* fix: adjust according to CR
2023-08-03 23:33:47 +00:00
shuiyisong
6f1094db0a
fix: arc() usage in non-test code ( #2091 )
...
* chore: try fix arc issue
* chore: move `parse_catalog_and_schema_from_client_database_name` to catalog crate
* fix: arc issue
* fix: arc issue
* fix: arc issue
* fix: arc issue
* fix: minor change
2023-08-03 10:16:02 +00:00
zyy17
21655cb56f
ci: add nightly build workflow ( #2089 )
2023-08-03 09:11:39 +00:00
Ruihang Xia
5f0403c245
feat: improve /label and /labels APIs in prometheus server ( #2087 )
...
* support __name__ for /label
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* make match[] in labels optional
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-08-03 07:51:08 +00:00
fys
d7002caca7
chore: add meter-core dependency ( #2088 )
2023-08-03 07:24:34 +00:00
fys
dda922507f
feat: impl pubsub in metasrv ( #2045 )
...
* feat: impl pubsub
* add test_subscriber_disconnect unit test
* chore: cr
* cr
* cr
2023-08-03 03:56:43 +00:00
Yingwen
fdd4929c8f
refactor(mito): mv mito2 request ( #2086 )
...
* refactor: mv request mod to crate level
* refactor: mv SkippedFields
2023-08-03 03:38:46 +00:00
zyy17
90b2200cc8
chore!: modify install.sh to adapt the new release package format ( #2077 )
...
chore: modify install.sh to adapt the new release package format
2023-08-03 02:09:31 +00:00
Vanish
e3a079a142
fix: session features ( #2084 )
2023-08-02 13:39:17 +00:00
discord9
c55841988e
feat: necessary Hash derive for types ( #2075 )
...
* feat: necessary derive for types
* impl (Partial)Ord for ConcreteDataType
2023-08-02 13:08:43 +00:00
zyy17
279df2e558
fix: incorrect argument name: 'disable_run_tests' -> 'disable-run-tests' ( #2079 )
...
fix: 'disable_run_tests' -> 'disable-run-tests'
2023-08-02 11:16:56 +00:00
Ning Sun
7a27ef8d11
fix: remove openssl from reqwest and use rustls instead ( #2081 )
...
* fix: remove openssl from reqwest and use rustls instead
* fix: correct server url
* style: fix toml format
2023-08-02 10:23:21 +00:00
zyy17
be8f243c64
chore: update Cargo.lock ( #2068 )
2023-08-02 15:23:16 +08:00
zyy17
e1edb87017
fix: add the missing 'TARGET' in Makefile ( #2066 )
2023-08-02 06:42:43 +00:00
Ruihang Xia
bbbeaa709b
fix(deps): update greptime-proto rev to the one after merge ( #2063 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-02 06:33:10 +00:00
Weny Xu
4626c2efe5
feat: add Catalog and Schema Manager ( #2037 )
...
* feat: add Range Stream
* feat: add catalog and schema manager
* feat: enhance KeyValueDecoderFn
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2023-08-02 03:56:29 +00:00
Ruihang Xia
346c52eb72
docs: update SDK list ( #2062 )
...
* docs: update SDK list
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* correct py url
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-02 02:31:43 +00:00
zyy17
47a796c0ba
fix: incorrect github token secret name ( #2061 )
...
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2023-08-02 02:20:49 +00:00
shuiyisong
5eb2c609a3
fix: auth in grpc ( #2056 )
...
* fix: auth in grpc
* fix: change to return err
* fix: add grpc test
* fix: add http test
* fix: add mysql and pg test
2023-08-01 15:18:31 +00:00
zyy17
7d76131469
chore: modify the directory of release bucket and remove unused files ( #2059 )
2023-08-01 13:07:13 +00:00
Ruihang Xia
a3fa455f31
docs: rfc of metric engine ( #1925 )
...
* docs: rfc of metric engine
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add drawback section
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sections about physical impl and meta routing
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add chart about region id group
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typos
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-01 11:26:48 +00:00
JeremyHi
fd7eb87a52
refactor: common semantic-type ( #2057 )
2023-08-01 11:18:05 +00:00
Sunray Ley
090b7e61ca
feat: make the gRPC channel between Frontend and Datanode configurable ( #2044 )
...
* feat: expose frontend datanode_client_options
* chore: add configuration options to the configuration file
* refactor(frontend): extract DatanodeOptions to service_config
* refactor(frontend): extract DatanodeOptions to service_config
* style: remove unnecessary suffix in variable name
Co-authored-by: Yingwen <realevenyag@gmail.com >
* feat: use humantime_serde for readable duration
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-08-01 10:49:41 +00:00
Yingwen
c529c8a41b
feat(mito): Implement open and close for mito2 regions ( #2052 )
...
* feat: add close request
* feat: handle close and open request
* feat: Implement open
* test: add TestEnv::new
* feat: close region/engine and test
* style: fix clippy
* style: import log macros
* docs: update docs
* docs: add mermaid for manifest manager
2023-08-01 10:49:07 +00:00
gongzhengyang
0eac56a442
chore: remove unused dependencies ( #2055 )
...
Co-authored-by: gongzhengyang <gongzhengyang@bolean.com.cn >
2023-08-01 07:43:03 +00:00
Ruihang Xia
44f3ed2f74
chore(deps): bump datafusion to the latest commit ( #1967 )
...
* bump deps
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix compile except pyo3 backend
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix promql-parser metric name matcher
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix pyarrow convert
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix pyo3 compiling
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deadcode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update stream adapter display format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix physical optimizer rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-01 02:10:49 +00:00
Ruihang Xia
5bd80a74ab
feat: prepare for implementing considering partition key in the distributed planner ( #2000 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix frontend logic
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* check substrait compatibility before pushdown
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* going to revert some rules
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test and clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix compile error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove println
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-07-31 12:36:23 +00:00
Ruihang Xia
bddaf265a9
chore(ci): run clippy, coverage and sqlness in parallel ( #2050 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-31 10:37:30 +00:00
Yingwen
4d5ecb54c5
feat(mito): Implement open for RegionManifestManager ( #2036 )
...
* feat: file purger trait
* feat: Implement open for RegionManifestManager
* feat: remove RegionVersion
* feat: Use RwLock
* chore: remove AtomicManifestVersion
* feat: Remove unused error
* feat: store meta action
* chore: update comment
2023-07-31 10:04:22 +00:00
shuiyisong
922d826347
chore: make tables() return kv instead of key only ( #2047 )
...
* chore: make tables return kv
* chore: remove comment code
2023-07-31 07:30:47 +00:00
localhost
7681864eb4
chore: add version reporter ( #2007 )
...
* chore: add version reporter
* chore: add uuid for version report
* chore: add file license
* chore: format code
* chore: fix by pr comment
* chore: change version report api url
* chore: change greptimedb opentelemetry crate name
* chore: minor code beautification
* chore: add keys only option when range etcd
* chore: fix by pr comment
* chore: fix by pr comment
* chore: change uuid file location
* chore: only run telemetry in meta leader
* chore: add more test and some minor fix
* chore: make clippy happy
* chore: fix by pr comment
* chore: fix by pr comment
* chore: add debug log for greptimedb telemetry
2023-07-31 06:58:00 +00:00
zyy17
45832475d0
feat: rewrite the release pipeline to make it clean ( #2038 )
...
* refactor: modify cache path of Dockerfile
* feat: rewrite the release pipeline to make it clean
2023-07-31 04:57:04 +00:00
Zou Wei
7727508485
feat: impl interval type ( #1952 )
...
* feat: impl interval type in common time
* feat: impl datatype, vectors, value for interval
pick 0c1d9f297 feat: impl interval type in common time
pick d528c647f feat: impl datatype, vectors, value for interval
pick 1e12dd5c7 comments update
pick 74103e36c add license header
* comments update
* add license header
* cargo clippy
* refactor interval type
* add unit test and case to dummy.sql
* cargo clippy
* chore: add doc comments
* chore: cargo fmt
* feat: add formats, refactor comparison
* add docs comments
* Apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: cr comment
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-07-31 03:54:39 +00:00
zyy17
216f220007
fix: restore 'aarch64/compile-python.sh' to fix the failed release temporarily ( #2046 )
...
fix: add 'aarch64/compile-python.sh' back to fix release failed temporarily
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2023-07-31 03:38:27 +00:00
Niwaka
695398652c
feat: accept influxdb request without timestamp even if table doesn't exist ( #2041 )
...
* feat: accept influxdb request without timestamp even if table doesn't exist
* refactor: InsertRequests::try_from
* feat: check row number
2023-07-31 02:55:09 +00:00
parkma99
fc6ebf58b4
refactor: create_current_timestamp_vector by using VectorOp::cast ( #2042 )
...
* refactor using VectorOp cast
* add test case
2023-07-31 02:51:06 +00:00
Zou Wei
f22b787fd9
chore: return error in arrow array convert function ( #2043 )
...
fix: return error instead of unreachable!()
2023-07-31 02:47:40 +00:00
Lei, HUANG
81ea61ba43
fix: window inferer ( #2033 )
...
* fix: window inferer
* chore: rename
2023-07-26 02:18:19 +00:00
zyy17
662879ff4b
refactor: don't set the build jobs when nproc is not found ( #2034 )
...
refactor: don't set the build jobs when nproc not found
2023-07-25 13:40:44 +00:00
LFC
48996b0646
fix: etcd range pagenation in table metadata migration tool ( #2035 )
2023-07-25 10:02:26 +00:00
fys
0b4ac987cd
refactor: arrange lease kvs randomly in lease_based selector ( #2028 )
...
* refactor: arrange lease kvs randomly in lease_based selector
* fix: cr
2023-07-25 07:32:10 +00:00
shuiyisong
9c1f0234de
refactor: query context ( #2022 )
...
* chore: refactor query_context
* chore: remove use statement
* chore: make query_context build return arc
* fix: sqlness test
* fix: cr issue
* fix: use unwrap or else
2023-07-25 06:11:34 +00:00
Ruihang Xia
f55bff51ac
feat: set and retrieve trace id in log macro ( #2016 )
...
* trace id passed by task local store
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* modify log macro
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove tokio::spawn
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use real trace id
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-25 03:50:27 +00:00
Weny Xu
0fc0f74cd7
fix: fix parking_lot unresolved ( #2025 )
2023-07-25 03:20:12 +00:00
Yingwen
5f65e3ff44
feat(mito): Port parquet writer and reader to mito2 ( #2018 )
...
* feat(mito): Port Batch and BufferedWriter
* feat: encode metadata to parquet
* feat: define BatchReader trait
* chore: ParquetWriter write_all takes `&mut self`
* feat(mito): port ParquetReader
* chore: fix typo
* chore: address CR comment
2023-07-24 09:35:21 +00:00
dennis zhuang
1f371f5e6e
fix: checkpoint metadata file dirty caching ( #2020 )
...
fix: dirty last checkpoint metadata file when enable object store caching, #2013
2023-07-24 08:18:19 +00:00
shuiyisong
632cb26430
feat: trace_id in query context ( #2014 )
...
* chore: unify once_cell version
* chore: update cargo lock
* chore: add gen_trace_id
* chore: add trace_id to query_ctx
* chore: add debug log
* Revert "chore: add debug log"
This reverts commit f52ab3bb300f1d73117cd6ebbd8e0162829b1aba.
* chore: add frontend node id option
* chore: add query ctx to query engine ctx
* chore: set trace_id to logical_plan api
* chore: add trace_id in grpc entrance
* chore: generate trace_id while creating query_ctx
* chore: fix typo
* chore: extract trace_id from grpc header
* chore: extract trace_id from grpc header
* chore: fix clippy
* chore: add `QueryContextBuilder`
* chore: change node_id in fe to string
2023-07-24 07:35:06 +00:00
liyang
39e74dc87e
chore: rename tag github env ( #2019 )
2023-07-24 07:29:24 +00:00
JeremyHi
41139ec11d
feat: region lease improve ( #2004 )
...
* feat: add exists api into KvBackend
* refactor: region lease
* feat: fiter out inactive node in keep-lease
* feat: register&deregister inactive node
* chore: doc
* chore: ut
* chore: minor refactor
* feat: use memory_kv to store inactive node
* fix: use real error in
* chore: make inactive_node_manager's func compact
* chore: more efficiently
* feat: clear inactive status on cadidate node
2023-07-24 03:49:14 +00:00
zyy17
657fcaf9d0
refactor: unify the greptime artifacts building ( #2015 )
...
* refactor: unify the make targets of building images
* refactor: make Dockerfile more clean
1. Add dev-builder image to build greptime binary easily;
2. Add 'docker/ci/Dockerfile-centos' to release centos image;
3. Delete Dockerfile of aarch64 and just need to use one Dockerfile;
Signed-off-by: zyy17 <zyylsxm@gmail.com >
---------
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2023-07-24 03:06:16 +00:00
liyang
f1cd28ffa1
feat: (upload binary s3)add nightly build tag ( #2011 )
...
feat: add nightly build tag
2023-07-21 06:49:57 +00:00
Sunray Ley
86378ad93a
docs: fix incorrect document URL ( #2012 )
2023-07-21 14:55:23 +08:00
Yingwen
792d8dfe33
feat(mito): create region in mito2 engine ( #1999 )
...
* chore: check table existence
* refactor: rename LevelMetaVec
* feat: create request to metadata
* refactor: Share MitoConfig between workers
* feat: impl handle_create_request
* refactor: move tests mod
* feat: validate time index nullable
* feat: test create region
* feat: test create if not exists
* feat: remove option
* style: fix clippy
* chore: address CR comments
2023-07-21 06:41:34 +00:00
gobraves
e3ac3298b1
feat: add orc stream ( #1981 )
...
* add orc stream #1820
* update orc stream
* fix: create orcstreamadapter with opt projection
* fix: license header
* docs: delete comment
2023-07-21 05:54:02 +00:00
LFC
953b8a0132
feat: benchmark table metadata managers ( #2008 )
...
* feat: benchmark table metadata managers
* feat: benchmark table metadata managers
2023-07-21 05:41:06 +00:00
Ning Sun
e0aecc9209
refactor: improve semantics of session and query context ( #2009 )
2023-07-21 03:50:32 +00:00
Ning Sun
a7557b70f1
feat: Add more tags for OTLP metrics protocol ( #2003 )
...
* test: add integration tests for otlp
* feat: add resource and scope attributes as tag
2023-07-21 02:02:43 +00:00
Vanish
51fe074666
feat: truncate table execute ( #2002 )
...
* feat: implement truncate execute in standalone mode
* feat: implement truncate execute in distribute mode
* chore: update greptime-proto
* fix: license header
* chore: CR
* chore: update greptime-proto
2023-07-20 11:04:37 +00:00
Ruihang Xia
6235441577
fix: avoid large vector allocation on large query span ( #2006 )
...
* avoid collect all timestamp at the begining
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplify branch logic
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-20 09:26:53 +00:00
LFC
172febb1af
refactor!: trying to replace TableGlobalValue, part 2 ( #1985 )
...
* refactor!: using the new table metadata values
* fix: resolve PR comments
* fix: resolve PR comments
* fix: resolve PR comments
2023-07-19 12:01:43 +00:00
JeremyHi
2ef0d06cdb
feat: status_code in response header ( #1982 )
...
* feat: status_code in response header
* chore: parese grpc response
* fix: sqlness failed
* chore: fix sqlness
2023-07-19 11:27:49 +00:00
Weny Xu
2e2a82689c
fix: alter procedure table not found issue ( #1993 )
...
* fix: alter procedure table not found issue
* chore: apply suggestions
* chore: apply suggestions from CR
2023-07-19 08:26:13 +00:00
Yingwen
bb8468437e
feat(mito): Define Version and metadata builders for mito2 ( #1989 )
...
* feat: define structs for version
* feat: Build region from metadata and memtable builder
* feat: impl validate for metadata
* feat: add more fields to RegionMetadata
* test: more tests
* test: more check and test
* feat: allow overwriting version
* style: fix clippy
2023-07-19 07:50:20 +00:00
Ben Baoyi
3241de0b85
refactor: Separating statement parse func ( #1975 )
...
* refactor:Separating statement parse func
* refactor:refactor describe,explain and drop
* Update src/sql/src/parser.rs
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-07-19 05:22:36 +00:00
Ning Sun
b227a7637c
feat: add timers for promql query ( #1994 )
...
feat: add timer for promql query
2023-07-19 03:54:49 +00:00
Yingwen
43bde82e28
test(storage): fix schedule_duplicate_tasks test ( #1990 )
...
test: fix schedule_duplicate_tasks test
2023-07-19 03:05:30 +00:00
Ning Sun
62a41d2280
feat: initial implementation for OpenTelemetry otlp/http ( #1974 )
...
* feat: initial implementation for otlp
* feat: implement more opentelemetry data types
* feat: add metrics
* feat: add support for parsing db name from headers
* feat: allow dbname authentication via header
* chore: disable histogram for now
* refactor: correct error name
* test: add tests for otlp encoders
* Update src/servers/src/error.rs
Co-authored-by: Eugene Tolbakov <ev.tolbakov@gmail.com >
* refactor: address review issues
---------
Co-authored-by: Eugene Tolbakov <ev.tolbakov@gmail.com >
2023-07-19 03:03:52 +00:00
Niwaka
3741751c8d
feat: support where in show databases ( #1962 )
2023-07-19 00:01:05 +00:00
Ruihang Xia
8bea853954
refactor(mito2): implement RegionManifestManager ( #1984 )
...
* finilise manager and related API
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl manifest initialize and update
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* more test and utils
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* resolve CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-18 14:03:35 +00:00
Weny Xu
37dad206f4
fix: fix wait procedure watcher bug ( #1987 )
2023-07-18 09:07:31 +00:00
Weny Xu
1783e4c5cb
refactor: move DatanodeAlterTable after InvalidateTableCache ( #1978 )
...
* refactor: move AlterDatanode after InvalidateTableCache
* fix: acquire table key in region failover procedure
2023-07-18 07:03:20 +00:00
dennis zhuang
b81570b99a
feat: impl time type ( #1961 )
...
* chore: remove useless Option type in plugins (#1544 )
Co-authored-by: paomian <qtang@greptime.com >
* chore: remove useless Option type in plugins (#1544 )
Co-authored-by: paomian <qtang@greptime.com >
* chore: remove useless Option type in plugins (#1544 )
Co-authored-by: paomian <qtang@greptime.com >
* chore: remove useless Option type in plugins (#1544 )
Co-authored-by: paomian <qtang@greptime.com >
* feat: first commit for time type
* feat: impl time type
* fix: arrow vectors type conversion
* test: add time test
* test: adds more tests for time type
* chore: style
* fix: sqlness result
* Update src/common/time/src/time.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* chore: CR comments
---------
Co-authored-by: localhost <xpaomian@gmail.com >
Co-authored-by: paomian <qtang@greptime.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-07-18 02:55:28 +00:00
Eugene Tolbakov
6811acb314
fix(status_endpoint): add default value for hostname ( #1972 )
...
* fix(status_endpoint): add default value for hostname
* fix: adjust according to clippy suggestions
* fix: adjust according to CR suggestions
2023-07-17 11:55:11 +00:00
LFC
3e846e27f8
fix: compile error after #1971 is merged ( #1979 )
2023-07-17 10:01:47 +00:00
Ruihang Xia
f152568701
fix(ci): add merge queue trigger ( #1980 )
...
* fix(ci): add merge queue trigger
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update docs.yml also
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-17 18:01:05 +08:00
LFC
dd62f4c407
feat: tool to migrate table metadata values ( #1971 )
...
feat: tool to migrate table metadata values when upgrading to version 0.4
2023-07-17 15:06:32 +08:00
Weny Xu
4fd37d9d4e
test: add ddl idempotent tests of datanode ( #1966 )
2023-07-17 11:58:06 +08:00
LFC
7cf6c2bd5c
refactor: trying to replace TableGlobalValue, part 1 ( #1956 )
...
* refactor: trying to replace TableGlobalValue, part 1
* fix: resolve PR comments
2023-07-17 11:32:46 +08:00
Kree0
8f71ac2172
refactor: move heartbeat configuration into an independent section ( #1976 )
...
refactor: move heartbeat configuration into an independent section in config file
* refactor: move heartbeat configuration into an independent section in config file
* feat: add HeartbeatOptions struct
* test: modify corresponding test case
* chore: modify corresponding example file
2023-07-17 11:29:02 +08:00
Ning Sun
076d44055f
docs: fix playground section ( #1973 )
...
The image link keeps changing after website build, here we remove the broken image and use link temporarily
2023-07-17 10:48:06 +08:00
Weny Xu
d9751268aa
feat: expose metasrv datanode_client_options ( #1965 )
...
* feat: expose meta datanode_client_options
* chore: apply suggestions from CR
2023-07-15 14:26:24 +08:00
ZonaHe
8f1241912c
feat: update dashboard to v0.3.0 ( #1968 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-07-15 14:16:41 +08:00
Lei, HUANG
97cfa3d6c9
feat: support append entries from multiple regions at a time ( #1959 )
...
* feat: support append entries from multiple regions at a time
* chore: add some tests
* fix: false postive mutable_key warning
* fix: append_batch api
* fix: remove unused clippy allows
2023-07-14 09:57:17 +00:00
Yingwen
ef7c5dd311
feat(mito): Implement WorkerGroup to handle requests ( #1950 )
...
* feat: engine worker framework
* feat: worder comments
* feat: divide worker requests by type
* feat: handlers for worker thread
* refactor: rename requests to ddl and dml requests
* feat: methods to stop and submit requests
* refactor: rename request queue to request buffer
* refactor: remove ddl and dml request
* feat: send request to worker
* test: test stop
* docs(mito): worker group docs
* style: fix clippy
* docs: update WorkerGroup comment
* chore: address CR comments
* chore: fix comment issues
* feat: use mpsc::channel
* feat: check is_running flag
* chore: Add stop request to notify a worker
* refactor: add join_dir to join paths
* feat: redefine region requests
* docs: more comments
* refactor: rename worker thread to worker loop
* chore: address CR comments
2023-07-14 08:06:44 +00:00
Ruihang Xia
ce43896a0b
refactor(mito2): implement serialize/deserialize for RegionMetadata ( #1964 )
...
* feat: implement serialize/deserialize for RegionMetadata
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove Raw*
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* render mermaid
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* derive Serialize
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename symbols
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-14 14:44:12 +08:00
JeremyHi
c9cce0225d
feat: ask leader ( #1957 )
...
* feat: ask leader
* fix: license header
* chore: by comment
2023-07-14 11:32:47 +08:00
Ruihang Xia
5bfd0d9857
refactor(mito): define region metadata ( #1960 )
...
* refactor(mito): define region metadata
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unneeded message
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/mito2/src/metadata.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* add primary keys vector
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update mermaid
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-07-13 13:40:41 +00:00
JeremyHi
e4fd5d0fd3
refactor: let metasrv returns ref always ( #1954 )
2023-07-13 17:06:51 +08:00
Weny Xu
132668bcd1
feat: invalidate table cache after altering ( #1951 )
2023-07-13 14:19:26 +08:00
JeremyHi
8b4145b634
feat: simplify the usage of channel_manage ( #1949 )
...
* feat: simplify the usage of channelJ_manager by avoiding the external call of start_channel_recycle
* chore: fix unit test
* Update src/common/grpc/Cargo.toml
Co-authored-by: fys <40801205+Fengys123@users.noreply.github.com >
---------
Co-authored-by: fys <40801205+Fengys123@users.noreply.github.com >
2023-07-13 06:11:11 +00:00
Weny Xu
735c6390ca
feat: implement alter table procedure ( #1878 )
...
* feat: implement alter table procedure
* fix: fix uncaught error
* refactor: move fetch_table/s to table_routes.rs
* refactor: refactor error handling
* chore: apply suggestions from CR
* feat: switch to using alter table procedure
* feat: add table_version
* chore: apply suggestions from CR
* feat: introduce ddl_channel_manager
* chore: update greptime-proto
2023-07-13 10:41:46 +08:00
Ben Baoyi
9ff7670adf
refactor:remove common_error::prelude ( #1946 )
...
* feat:Remove common_error::prelude
* fix merge error
* cr comment
* fix error
2023-07-13 10:36:36 +08:00
Ruihang Xia
16be56a743
refactor(mito): port manifest storage to mito2 ( #1948 )
...
* refactor(mito): port manifest storage to mito2
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deadcode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-12 11:21:11 +00:00
Ben Baoyi
2bfe25157f
feat:add check port before start sqlness test ( #1895 )
...
* feat:add check port before start sqlness test
* cr comment
* feat:remove redundant check_port
* cr comment
* cr comment
* cr comment
2023-07-12 17:44:50 +08:00
LFC
4fdb6d2f21
refactor: remote catalog uses memory ( #1926 )
...
* refactor: remote catalog uses memory
* rebase develop
* fix: resolve PR comments
2023-07-12 09:33:33 +00:00
Vanish
39091421a4
feat: implement truncate table parser ( #1932 )
...
* feat: truncate parser
* chore: keyword TABLE as optional
2023-07-12 14:59:24 +08:00
Eugene Tolbakov
674bfd85c7
chore(prom)!: rename prometheus(remote storage) to prom-store and promql(HTTP server) to prometheus ( #1931 )
...
* chore(prom): rename prometheus(remote storage) to prom-store and promql(HTTP server) to prometheus
* chore: apply clippy suggestions
* chore: adjust format according to rustfmt
2023-07-12 14:47:09 +08:00
Ruihang Xia
4fa8340572
feat: support desc [table] <table_name> ( #1944 )
...
* feat: support desc [table]
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refine style
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-12 06:41:31 +00:00
shuiyisong
5422224530
chore: upgrade toml version ( #1945 )
2023-07-12 14:22:02 +08:00
Ruihang Xia
077785cf1e
refactor(mito): define manifest related API ( #1942 )
...
* refactor: port some manifest struct to mito2
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy and nextest
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* revert lock file and resolve clippy warnings
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-12 03:42:55 +00:00
Weny Xu
a751aa5ba0
feat: switch to using drop table procedure ( #1901 )
...
* feat: switch to using drop table procedure
* chore: remove unused attributes
* feat: register the drop table procedure loader
* fix: fix typo
2023-07-12 10:35:23 +08:00
Weny Xu
264c5ea720
feat: meta procedure options ( #1937 )
...
* feat: meta procedure options
* chore: tune meta procedure options in tests
* Update src/common/procedure/Cargo.toml
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-07-12 02:22:08 +00:00
Weny Xu
fa12392d2c
fix: fix frontend meta client option issue ( #1939 )
2023-07-12 10:13:07 +08:00
Ruihang Xia
421103c336
refactor: remove misdirectional alias "Request as GreptimeRequest" ( #1940 )
...
remove Request as GreptimeRequest
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-12 10:06:05 +08:00
Ning Sun
41e856eb9e
refactor: change logging level for mysql error log ( #1938 )
...
* refactor: change logging level for mysql error log
* Update src/common/telemetry/Cargo.toml
Co-authored-by: LFC <bayinamine@gmail.com >
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-07-11 20:49:05 +08:00
JeremyHi
e1ca454992
chore: grpc-timeput = 10s ( #1934 )
...
* chore: grpc-timeput = 10s
* chore: fix ut
2023-07-11 15:07:18 +08:00
Weny Xu
2d30f4c373
fix: fix broken CI ( #1933 )
2023-07-11 14:48:41 +08:00
Lei, HUANG
a7ea3bbc16
feat: manual compact api ( #1912 )
...
* merge develop
* chore: merge develop
* fix: some cr commentx
* fix: cr comments
2023-07-11 04:00:39 +00:00
Eugene Tolbakov
fc850c9988
feat(config-endpoint): add initial implementation ( #1896 )
...
* feat(config-endpoint): add initial implementation
* feat: add initial handler implementation
* fix: apply clippy suggestions, use axum response instead of string
* feat: address CR suggestions
* fix: minor adjustments in formatting
* fix: add a test
* feat: add to_toml_string method to options
* fix: adjust the assertion for the integration test
* fix: adjust expected indents
* fix: adjust assertion for the integration test
* fix: improve according to clippy
2023-07-11 11:08:32 +08:00
Ning Sun
f293126315
feat: add logical plan based prepare statement for postgresql ( #1813 )
...
* feat: add logical plan based prepare statement for postgresql
* refactor: correct more types
* Update src/servers/src/postgres/types.rs
Co-authored-by: LFC <bayinamine@gmail.com >
* fix: address review issues
* test: add datetime in integration tests
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-07-11 11:07:18 +08:00
Weny Xu
c615fb2a93
fix: fix uncaught error 🥲 ( #1929 )
...
fix: fix uncaught error
2023-07-10 23:41:20 +08:00
Yingwen
65f5349767
feat(mito2): Define basic structs for MitoEngine ( #1928 )
...
* chore: metadata wip
* docs(mito2): Add struct relationships
* feat(mito2): define basic structs
* feat: add version and refactor other metadata
* docs: remove generics param from MitoEngine
* chore: Update src/mito2/Cargo.toml
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* chore: Apply suggestions from code review
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-10 12:25:33 +00:00
Weny Xu
ed756288b3
fix: fix uncaught error ( #1924 )
2023-07-10 17:46:11 +08:00
shuiyisong
04ddeffd2a
chore: add rate limit status code ( #1923 )
2023-07-10 17:41:59 +08:00
Weny Xu
c8ed1bbfae
fix: cast orc data against output schema ( #1922 )
...
fix: cast data against output schema
2023-07-10 08:53:38 +00:00
Lei, HUANG
207d3d23a1
chore: bump latest greptime-proto version ( #1920 )
2023-07-10 16:28:22 +08:00
shuiyisong
63173f63a1
chore: add interceptor for prometheus query ( #1919 )
...
* chore: add prom query interceptor
* chore: add test
* chore: add test
* chore: fix cr issue
2023-07-10 16:28:07 +08:00
Yingwen
4ea8a78817
feat: dedup rows while flushing memtables ( #1916 )
...
* test: enlarge meta client timeout
* feat: dedup on flush
* test: enlarge datanode clients timeout
* chore: fix typo
2023-07-10 15:07:10 +08:00
Lei, HUANG
553530cff4
fix: immediately reschedule a compaction after compaction ( #1882 )
...
* fix: immediately reschedule a compaction after compaction
* refactor: add WriterCompactRequest
* feat: reschedule compaction
* fix: only reschedule compaction when it's triggered by flush
* fix: remove max_files_in_l0
---------
Co-authored-by: evenyag <realevenyag@gmail.com >
2023-07-10 15:05:31 +08:00
Lei, HUANG
c3db99513a
fix: remove useless mirror subsitution and RUN command ( #1918 )
...
fix: remove useless mirror subsitution and RUN command in builder docker file
2023-07-10 14:54:43 +08:00
Ruihang Xia
8e256b317d
test: add unit test for distributed limit pushdown ( #1917 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-10 14:40:18 +08:00
Weny Xu
b31fad5d52
feat: switch to using create table procedure ( #1861 )
...
* feat: switch to using create table procedure
* fix: add missing table_id and fix uncaught error
* refactor: remove unused code and metrics
* chore: apply suggestions from CR
* chore: remove unused attributes
* feat: add info log and metrics
* fix: fix conflicts
2023-07-10 10:08:09 +08:00
Weny Xu
00181885cc
refactor: remove unused code ( #1913 )
2023-07-10 10:06:22 +08:00
Niwaka
195dfdc5d3
feat: add deregister_schema to CatalogManager ( #1911 )
...
* feat: add deregister_schema to CatalogManager
* refactor: MemoryCatalogManager::deregister_schema
* fix: typo
* fix: typo
2023-07-10 09:59:14 +08:00
zyy17
f20b5695b8
ci: use enterprise ACR ( #1908 )
2023-07-07 23:14:34 +08:00
Yingwen
f731193ddc
refactor: Define RegionId as a new type ( #1903 )
...
* refactor: Define RegionId as a new type
* chore: use into
* feat: custom debug print for region id
fix: test_show_create_table
2023-07-07 21:26:03 +08:00
zyy17
963e468286
refactor: add curl binary in docker image ( #1898 )
2023-07-07 12:59:57 +00:00
LFC
f19498f73e
refactor: unify KvBackend and KvStore ( #1890 )
...
* refactor: unify KvBackend and KvStore
2023-07-07 19:53:49 +08:00
Lei, HUANG
4cc42e2ba6
fix: before/after order ( #1907 )
2023-07-07 19:41:21 +08:00
Yingwen
cd5afc8cb7
ci: fix typo and check typo in docs ci ( #1905 )
2023-07-07 17:07:17 +08:00
Weny Xu
6dd24f4dc4
feat!: rename WITH parameter ENDPOINT_URL to ENDPOINT ( #1904 )
...
* feat!: rename WITH parameter ENDPOINT_URL to ENDPOINT
* fix: typo
2023-07-07 17:04:24 +08:00
Yingwen
55500b7711
docs(rfcs): Add table engine refactor RFC ( #1899 )
...
* docs(rfcs): Add table engine refactor RFC
* docs(rfcs): add pics
* refactor: replace svg files with mermaid diagrams
---------
Co-authored-by: Lei, HUANG <mrsatangel@gmail.com >
2023-07-07 16:27:10 +08:00
Weny Xu
64acfd3802
feat: implement drop table procedure ( #1872 )
...
* feat: implement drop table procedure
* fix: fix uncaught error
* refacotr: refactor error handling
* chore: apply suggestions from CR
* refactor: move fetch_table/s to table_routes.rs
* chore: fix clippy
* chore: apply suggestions from CR
* chore: rebase onto develop
* feat: compare the table_route value before deleting
* feat: handle if table already exists on datanode
* Update src/meta-srv/src/procedure/drop_table.rs
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
---------
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-07-07 16:03:40 +08:00
Yingwen
ad165c1c64
ci: fix sqlness action in docs.yml doesn't have same name as develop.yml ( #1902 )
2023-07-07 14:33:47 +08:00
Niwaka
8dcb12e317
feat: support where in show ( #1829 )
...
* feat: support where in show
* fix: lift schema out of match
* fix: rename
* fix: improve error handling
2023-07-07 13:45:54 +08:00
LFC
03e30652c8
refactor: TableNameKey and DatanodeTableKey ( #1868 )
...
* refactor: TableNameKey and DatanodeTableKey
2023-07-07 13:27:43 +08:00
Yingwen
61c793796c
ci: skip sqlness test on docs update ( #1900 )
2023-07-07 11:45:44 +08:00
Weny Xu
dc085442d7
chore: bump orc-rust to 0.2.4 ( #1894 )
...
chore: bump orc-rust to 0.2
2023-07-06 08:18:24 +00:00
Ruihang Xia
9153191819
fix: resolve catalog and schema in dist planner ( #1891 )
...
* try resolve catalog and schema
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* upload sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix information schema case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix unnamed table name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-06 08:08:44 +00:00
Lei, HUANG
979400ac58
refactor: support special characters in table keys ( #1893 )
...
* refactor: support special characters in table keys
* remnove '"()
* Allow `:` as initial character of table names.
2023-07-06 15:17:08 +08:00
Weny Xu
28748edb0d
chore: bump proto to 917ead6 ( #1892 )
...
* feat: add table_id for ddl exprs
* chore: bump proto to 917ead6
2023-07-06 13:29:36 +08:00
Niwaka
66e5ed5483
feat: support gcs storage ( #1781 )
2023-07-05 23:03:51 +08:00
Yingwen
af2fb2acbd
docs: add tsbs benchmark result of v0.3.2 ( #1888 )
...
* docs: add tsbs benchmark result of v0.3.2
* docs: table header
2023-07-05 20:55:36 +08:00
Yingwen
eb2654b89a
ci: allow update release (except release note) if it already exists ( #1887 )
2023-07-05 03:55:28 +00:00
liyang
3d0d082c56
refactor: release push binary ( #1883 )
2023-07-05 11:02:12 +08:00
Weny Xu
4073fceea5
fix: fix broken CI 😢 ( #1884 )
2023-07-05 10:43:53 +08:00
Weny Xu
8a00424468
refactor: implement Display for TableRouteKey ( #1879 )
2023-07-05 09:42:16 +08:00
liyang
4b580f4037
feat: release binary to aws s3 ( #1881 )
2023-07-04 22:33:35 +08:00
Weny Xu
ee16262b45
feat: add create table procedure ( #1845 )
...
* feat: add create table procedure
* feat: change table_info type from vec u8 to RawTableInfo
* feat: return create table status
* fix: fix uncaught error
* refactor: use a notifier to respond to callers
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: add comment
* chore: apply suggestions from CR
* refacotr: make CreateMetadata step after DatanodeCreateTable step
2023-07-04 22:24:43 +08:00
Yingwen
f37b394f1a
fix: check table existence in create table procedure ( #1880 )
...
* fix: check table existence in table procedures
* fix: use correct error variant
* chore: address view comments
* chore: address comments
* test: change error code
2023-07-04 22:01:27 +08:00
Eugene Tolbakov
ccee60f37d
feat(http_body_limit): add initial support for DefaultBodyLimit ( #1860 )
...
* feat(http_body_limit): add initial support for DefaultBodyLimit
* fix: address CR suggestions
* fix: adjust the const for default http body limit
* fix: adjust the toml_str for the test
* fix: address CR suggestions
* fix: body_limit units in example config toml files
* fix: address clippy suggestions
2023-07-04 20:56:56 +08:00
Ruihang Xia
bee8323bae
chore: bump sqlness to 0.5.0 ( #1877 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-04 19:49:12 +08:00
Weny Xu
000df8cf1e
feat: add ddl client ( #1856 )
...
* feat: add ddl client
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2023-07-04 19:32:02 +08:00
Yingwen
884731a2c8
chore: initialize mito2 crate ( #1875 )
2023-07-04 17:55:00 +08:00
shuiyisong
2922c25a16
chore: stop caching None in CachedMetaKvBackend ( #1871 )
...
* chore: dont cache none
* fix: test case
* chore: add comment
* chore: minor rewrite
2023-07-04 17:17:48 +08:00
Lei, HUANG
4dec06ec86
chore: bump version 0.3.2 ( #1876 )
...
bump version 0.3.2
2023-07-04 17:04:27 +08:00
Lei, HUANG
3b6f70cde3
feat: initial twcs impl ( #1851 )
...
* feat: initial twcs impl
* chore: rename SimplePicker to LeveledPicker
* rename some structs
* Remove Compaction strategy
* make compaction picker a trait object
* make compaction picker configurable for every region
* chore: add some test for ttl
* add some tests
* fix: some style issues in cr
* feat: enable twcs when creating tables
* feat: allow config time window when creating tables
* fix: some cr comments
2023-07-04 16:42:27 +08:00
Yingwen
b8e92292d2
feat: Implement a new scan mode using a chain reader ( #1857 )
...
* feat: add log
* feat: print more info
* feat: use chain reader
* fix: panic on getting first range
* fix: prev not updated
* fix: reverse readers and iter backward
* chore: don't print windows in log
* feat: consider memtable range
Also fix the issue that using incorrect comparision method to sort time
ranges.
* fix: merge memtable window with sst's
* feat: add use_chain_reader option
* feat: skip empty memtables
* chore: change log level
* fix: memtable range not ordered
* style: fix clippy
* chore: address review comments
* chore: print region id in log
2023-07-04 16:01:34 +08:00
Ruihang Xia
746fe8b4fe
fix: use mark-deletion for system catalog ( #1874 )
...
* fix: use mark-deletion for system catalog
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix the default value
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean tables
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-07-04 16:00:39 +08:00
JeremyHi
20f2fc4a2a
feat: add leader kv store cache for metadata ( #1853 )
...
* feat: add leader kv store cache for metadata
* refactor: create cache internal
* fix: race condition
* fix: race condition on read
2023-07-04 15:49:42 +08:00
Yingwen
2ef84f64f1
feat(servers): enlarge default body limit to 64M ( #1873 )
2023-07-04 07:13:14 +00:00
fys
451cc02d8d
chore: add feature for metrics-process, default enable ( #1870 )
...
chore: add feature for metrics process, default enable
2023-07-04 13:28:33 +08:00
Lei, HUANG
b466ef6cb6
fix: libz dependency ( #1867 )
2023-07-03 10:08:53 +00:00
LFC
5b42e15105
refactor: add TableInfoKey and TableRegionKey ( #1865 )
...
* refactor: add TableInfoKey and TableRegionKey
* refactor: move KvBackend to common-meta
* fix: resolve PR comments
2023-07-03 18:01:20 +08:00
shuiyisong
e1bb7acfe5
fix: return err msg if use wrong database in MySQL ( #1866 )
2023-07-03 17:31:09 +08:00
Lei, HUANG
2c0c4672b4
feat: support building binary for centos7 ( #1863 )
...
feat:support building binary for centos7
2023-07-03 14:13:55 +08:00
Cao Zhengjia
e54415e723
feat: Make heartbeat intervals configurable in Frontend and Datanode ( #1864 )
...
* update frontend options and config
* fix format
2023-07-03 12:08:47 +08:00
Ruihang Xia
783a794060
fix: break CI again 🥲 ( #1859 )
...
* fix information schema case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* disable -Wunused_result lint
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-30 20:01:14 +08:00
Vanish
563f6e05e2
feat: remove all the manifests in drop_region. ( #1834 )
...
* feat: drop_region delete manifest file
* chore: remove redundant code
* chore: fmt
* chore: clippy
* chore: clippy
* feat: support delete_all in manifest.
* chore:CR
* test: test_drop_basic, test_drop_reopen
* chore: cr
* fix: typo
* chore: cr
2023-06-30 17:42:11 +08:00
Ruihang Xia
25cb667470
fix: sort unstable sqlness result ( #1858 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-30 09:25:24 +00:00
Ruihang Xia
c77b94650c
refactor: remove Table::scan method ( #1855 )
...
* remove scan method
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-06-30 12:13:14 +08:00
Ruihang Xia
605776f49c
feat: support bool operator with other computation ( #1844 )
...
* add some cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl atan2 and power
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix instant manipulator
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-29 19:23:54 +08:00
Ruihang Xia
d45e7b7480
refactor: build parquet file stream from ParquetExec ( #1852 )
...
* refactor: build parquet file stream from ParquetExec
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-29 19:19:31 +08:00
JeremyHi
2b3ca1309a
feat: table_routes util ( #1849 )
2023-06-29 16:47:56 +08:00
Weny Xu
acfa229641
chore: bump orc-rust to 0319acd ( #1847 )
2023-06-29 10:45:05 +08:00
JeremyHi
7e23dd7714
feat: http api for node-lease ( #1843 )
...
* feat: add node-lease http api
* revert: show_create.result
2023-06-29 09:34:54 +08:00
Lei, HUANG
559d1f73a2
feat: push all possible filters down to parquet exec ( #1839 )
...
* feat: push all possible filters down to parquet exec
* fix: project
* test: add ut for DatafusionArrowPredicate
* fix: according to CR comments
2023-06-28 20:14:37 +08:00
JeremyHi
bc33fdc8ef
feat: save node lease into memory ( #1841 )
...
* feat: lease secs = 5
* feat: set lease data into memory of leader
* fix: ignore stale heartbeat
* Update src/meta-srv/src/election.rs
Co-authored-by: LFC <bayinamine@gmail.com >
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-06-28 11:54:06 +08:00
Lei, HUANG
f287d3115b
chore: replace result assertions ( #1840 )
...
* s/assert!\((.*)\.is_ok\(\)\);/\1.unwrap\(\);/g
* s/assert!\((.*)\.is_some\(\)\);/\1.unwrap\(\);/g
2023-06-27 19:14:48 +08:00
Ruihang Xia
b737a240de
fix: add sqlness tests for some promql function ( #1838 )
...
* correct range manipulate exec fmt text
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix partition requirement
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix udf signature
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* finilise
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* ignore unstable ordered result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add nan value test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-27 19:05:26 +08:00
fys
99f0479bd2
feat: improve influxdb v2 api compability ( #1831 )
...
* feat: support influxdb v2 api
* cr
2023-06-27 18:21:51 +08:00
fys
313121f2ae
fix: block when stream insert ( #1835 )
...
* fix: stream insert blocking
* fix: example link
* chore: Increase the default channel size "1024" -> "65536"
2023-06-27 16:57:03 +08:00
LFC
fcff66e039
chore: deny unused results ( #1825 )
...
* chore: deny unused results
* rebase
2023-06-27 15:33:53 +08:00
shuiyisong
03057cab6c
feat: physical plan wrapper ( #1837 )
...
* test: add physical plan wrapper trait
* test: add plugins to datanode initialization
* test: add plugins to datanode initialization
* chore: add metrics method
* chore: update meter-core version
* chore: remove unused code
* chore: impl metrics method on df execution plan adapter
* chore: minor comment fix
* chore: add retry in create table
* chore: shrink keep lease handler buffer
* chore: add etcd batch size warn
* chore: try shrink
* Revert "chore: try shrink"
This reverts commit 0361b51670 .
* chore: add create table backup time
* add metrics in some interfaces
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* calc elapsed time and rows
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: remove timer in scan batch
* chore: add back stream metrics wrapper
* chore: add timer to ready poll
* chore: minor update
* chore: try using df_plan.metrics()
* chore: remove table scan timer
* chore: remove scan timer
* chore: add debug log
* Revert "chore: add debug log"
This reverts commit 672a0138fd .
* chore: use batch size as row count
* chore: use batch size as row count
* chore: tune code for pr
* chore: rename to physical plan wrapper
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-27 14:04:04 +08:00
Weny Xu
dcfce49cff
refactor(datanode): move Instance heartbeat task to Datanode struct ( #1832 )
...
* refactor(datanode): move Instance heartbeat to Datanode struct
* chore: apply suggestions from CR
* fix: start heartbeat task after instance starts
2023-06-27 12:32:20 +08:00
JeremyHi
78b07996b1
feat: txn for meta ( #1828 )
...
* feat: txn for meta kvstore
* feat: txn
* chore: add unit test
* chore: more test
* chore: more test
* Update src/meta-srv/src/service/store/memory.rs
Co-authored-by: LFC <bayinamine@gmail.com >
* chore: by cr
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-06-26 17:12:48 +08:00
dennis zhuang
034564fd27
feat: make blob(binary) type working ( #1818 )
...
* feat: test blob type
* feat: make blob type working
* chore: comment
* Update src/sql/src/statements/insert.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* chore: by CR comments
* fix: comment
* Update src/sql/src/statements/insert.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/sql/src/statements/insert.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* fix: test
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-26 08:49:04 +00:00
Ruihang Xia
a95f8767a8
refactor: merge catalog provider & schema provider into catalog manager ( #1803 )
...
* move to expr_factory
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move configs into service_config
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move GrpcQueryHandler into distributed.rs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix compile and test in catalog sub-crate
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix table-procedure compile and test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix query compile and tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix datanode compile and tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix catalog/query/script/servers compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix frontend compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix nextest except information_schema
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* support information_schema
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix merge errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove other structs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change deregister_table's return type to empty tuple
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-26 15:08:59 +08:00
Eugene Tolbakov
964d26e415
fix: docker build for aarch64 ( #1826 )
2023-06-25 18:29:00 +09:00
Yingwen
fd412b7b07
refactor!: Uses table id to locate tables in table engines ( #1817 )
...
* refactor: add table_id to get_table()/table_exists()
* refactor: Add table_id to alter table request
* refactor: Add table id to DropTableRequest
* refactor: add table id to DropTableRequest
* refactor: Use table id as key for the tables map
* refactor: use table id as file engine's map key
* refactor: Remove table reference from engine's get_table/table_exists
* style: remove unused imports
* feat!: Add table id to TableRegionalValue
* style: fix cilppy
* chore: add comments and logs
2023-06-25 15:05:20 +08:00
Weny Xu
223cf31409
feat: support to copy from orc format ( #1814 )
...
* feat: support to copy from orc format
* test: add copy from orc test
* chore: add license header
* refactor: remove unimplemented macro
* chore: apply suggestions from CR
* chore: bump orc-rust to 0.2.3
2023-06-25 14:07:16 +08:00
Ruihang Xia
62f660e439
feat: implement metrics for Scan plan ( #1812 )
...
* add metrics in some interfaces
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* calc elapsed time and rows
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-25 14:06:50 +08:00
Lei, HUANG
0fb18245b8
fix: docker build ( #1822 )
2023-06-25 11:05:46 +08:00
Weny Xu
caed6879e6
refactor: remove redundant code ( #1821 )
2023-06-25 10:56:31 +08:00
Yingwen
5ab0747092
test(storage): wait task before checking scheduled task num ( #1811 )
2023-06-21 18:04:34 +08:00
Ruihang Xia
b1ccc7ef5d
fix: prevent filter pushdown in distributed planner ( #1806 )
...
* fix: prevent filter pushdown in distributed planner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix metadata
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-21 16:25:50 +08:00
Lei, HUANG
d1b5ce0d35
chore: check catalog deregister result ( #1810 )
...
* chore: check deregister result and return error on failure
* refactor: SystemCatalog::deregister_table returns Result<()>
2023-06-21 08:09:11 +00:00
Lei, HUANG
a314993ab4
chore: change logstore default config ( #1809 )
2023-06-21 07:34:24 +00:00
LFC
fa522bc579
fix: drop region alive countdown tasks when deregistering table ( #1808 )
2023-06-21 14:49:32 +08:00
Lei, HUANG
5335203360
feat: support cross compilation to aarch64 linux ( #1802 )
2023-06-21 14:08:45 +08:00
Ruihang Xia
23bf55a265
fix: __field__ matcher on single value column ( #1805 )
...
* fix error text and field_column_names
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add empty line
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* improve style
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-21 10:59:58 +08:00
Eugene Tolbakov
3b91fc2c64
feat: add initial implementation for status endpoint ( #1789 )
...
* feat: add initial implementation for status endpoint
* feat(status_endpoint): add more data to response
* feat(status_endpoint): use build data env vars
* feat(status_endpoint): add simple test
* fix(status_endpoint): adjust the toml indentation
2023-06-21 10:50:08 +08:00
LFC
6205616301
fix: filter table regional values with the current node id ( #1800 )
2023-06-20 19:17:35 +08:00
JeremyHi
e47ef1f0d2
chore: minor fix ( #1801 )
2023-06-20 11:03:52 +00:00
Lei, HUANG
16c1ee2618
feat: incremental database backup ( #1240 )
...
* feat: incremental database backup
* chore: rebase develop
* chore: move backup to StatementExecutor
* feat: copy database parser
* chore: remove some todos
* chore: use timestamp string instead of i64 string
* fix: typo
2023-06-20 18:26:55 +08:00
JeremyHi
323e2aed07
feat: deal with more than 128 txn ( #1799 )
2023-06-20 17:56:45 +08:00
LFC
cbc2620a59
feat: start region alive keepers ( #1796 )
...
* feat: start region alive keepers
2023-06-20 15:45:29 +08:00
JeremyHi
4fdee5ea3c
feat: deal with node epoch ( #1795 )
...
* feat: deal with node epoch
* feat: dn send node_epoch
* Update src/meta-srv/src/handler/persist_stats_handler.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* Update src/meta-srv/src/service/store/ext.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* chore: by cr
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-06-20 07:07:05 +00:00
dennis zhuang
30472cebae
feat: prepare supports caching logical plan and infering param types ( #1776 )
...
* feat: change do_describe function signature
* feat: infer param type and cache logical plan for msyql prepared statments
* fix: convert_value
* fix: forgot helper
* chore: comments
* fix: typo
* test: add more tests and test date, datatime in mysql
* chore: fix CR comments
* chore: add location
* chore: by CR comments
* Update tests-integration/tests/sql.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* chore: remove the trace
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-20 04:07:28 +00:00
Ruihang Xia
903f02bf10
ci: optimize release progress ( #1794 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-20 11:39:53 +08:00
JeremyHi
1703e93e15
feat: add handler execution timer ( #1791 )
...
* feat: add handler execution timer
* fix: by cr
2023-06-20 11:25:13 +08:00
LFC
2dd86b686f
feat: extend region leases in Metasrv ( #1784 )
...
* feat: extend region leases in Metasrv
* fix: resolve PR comments
2023-06-19 19:55:59 +08:00
LFC
128c6ec98c
feat: region alive keeper in Datanode ( #1780 )
2023-06-19 14:50:33 +08:00
Lei, HUANG
960b84262b
fix: abort parquet writer ( #1785 )
...
* fix: sst file size
* fix: avoid creating file when no row's been written
* chore: rename tests
* fix: some clippy issues
* fix: some cr comments
2023-06-19 03:19:31 +00:00
Lei, HUANG
69854c07c5
fix: wait for compaction task to finish ( #1783 )
2023-06-16 16:45:06 +08:00
JeremyHi
1eeb5b4330
feat: disable_region_failover option for metasrv ( #1777 )
2023-06-15 16:26:27 +08:00
LFC
9b3037fe97
feat: a countdown task for closing region in Datanode ( #1775 )
2023-06-14 15:50:21 +08:00
dennis zhuang
09747ea206
feat: use DataFrame to replace SQL for Prometheus remote read ( #1774 )
...
* feat: debug QueryEngineState
* feat: impl read_table to create DataFrame for a table
* fix: clippy warnings
* feat: use DataFrame to handle prometheus remote read quries
* Update src/frontend/src/instance/prometheus.rs
Co-authored-by: LFC <bayinamine@gmail.com >
* chore: CR comments
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-06-14 07:39:28 +00:00
Lei, HUANG
fb35e09072
chore: fix compaction caused race condition ( #1767 )
...
fix: unit tests. For real, this time.
2023-06-13 21:03:09 +08:00
Weny Xu
803940cfa4
feat: enable azblob tests ( #1765 )
...
* feat: enable azblob tests
* fix: add missing arg
2023-06-13 07:44:57 +00:00
Weny Xu
420ae054b3
chore: add debug log for heartbeat ( #1770 )
2023-06-13 07:43:26 +00:00
Lei, HUANG
0f1e061f24
fix: compile issue on develop and workaround to fix failing tests cau… ( #1771 )
...
* fix: compile issue on develop and workaround to fix failing tests caused by logstore file lock
* Apply suggestions from code review
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
---------
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-06-13 07:30:16 +00:00
Lei, HUANG
7961de25ad
feat: persist compaction time window ( #1757 )
...
* feat: persist compaction time window
* refactor: remove useless compaction window fields
* chore: revert some useless change
* fix: some CR comments
* fix: comment out unstable sqlness test
* revert commented sqlness
2023-06-13 10:15:42 +08:00
Lei, HUANG
f7d98e533b
chore: fix compaction caused race condition ( #1759 )
...
* fix: set max_files_in_l0 in unit tests to avoid compaction
* refactor: pass while EngineConfig
* fix: comment out unstable sqlness test
* revert commented sqlness
2023-06-12 11:19:42 +00:00
Ruihang Xia
b540d640cf
fix: unstable order with union operation ( #1763 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-12 18:16:24 +08:00
Eugene Tolbakov
51a4d660b7
feat(to_unixtime): add timestamp types as arguments ( #1632 )
...
* feat(to_unixtime): add timestamp types as arguments
* feat(to_unixtime): change the return type
* feat(to_unixtime): address code review issues
* feat(to_unixtime): fix fmt issue
2023-06-12 17:21:49 +08:00
Ruihang Xia
1b2381502e
fix: bring EnforceSorting rule forward ( #1754 )
...
* fix: bring EnforceSorting rule forward
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove duplicated rules
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* wrap remove logic into a method
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-12 07:29:08 +00:00
Yingwen
0e937be3f5
fix(storage): Use region_write_buffer_size as default value ( #1760 )
2023-06-12 15:05:17 +08:00
Weny Xu
564c183607
chore: make MetaKvBackend public ( #1761 )
2023-06-12 14:13:26 +08:00
Ruihang Xia
8c78368374
refactor: replace #[snafu(backtrace)] with Location ( #1753 )
...
* remove snafu backtrace
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-06-12 11:55:33 +08:00
Lei, HUANG
67c16dd631
feat: optimize some parquet writer parameter ( #1758 )
2023-06-12 11:46:45 +08:00
Lei, HUANG
ddcee052b2
fix: order by optimization ( #1748 )
...
* add some debug log
* fix: use lazy parquet reader in MitoTable::scan_to_stream to avoid IO in plan stage
* fix: unit tests
* fix: order-by optimization
* add some tests
* fix: move metric names to metrics.rs
* fix: some cr comments
2023-06-12 11:45:43 +08:00
王听正
7efcf868d5
refactor: Remove MySQL related options from Datanode ( #1756 )
...
* refactor: Remove MySQL related options from Datanode
remove mysql_addr and mysql_runtime_size in datanode.rs, remove command line argument mysql_addr in cmd/src/datanode.rs
#1739
* feat: remove --mysql-addr from command line
in pre commit, sqlness can not find --mysql-addrr, because we remove it
issue#1739
* refactor: remove --mysql-addr from command line
in pre commit, sqlness can not find --mysql-addrr, because we remove it
issue#1739
2023-06-12 11:00:24 +08:00
dennis zhuang
f08f726bec
test: s3 manifest ( #1755 )
...
* feat: change default manifest options
* test: s3 manifest
* feat: revert checkpoint_margin to 10
* Update src/object-store/src/test_util.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-06-09 10:28:41 +00:00
Ning Sun
7437820bdc
ci: correct data type for input and event check ( #1752 )
2023-06-09 13:59:56 +08:00
Lei, HUANG
910c950717
fix: jemalloc error does not implement Error ( #1747 )
2023-06-09 04:00:50 +00:00
Zou Wei
f91cd250f8
feat:make version() show greptime info. ( #1749 )
...
* feat:impl get_version() to return greptime info.
* fix: refactor test case.
2023-06-09 11:38:52 +08:00
Yingwen
115d9eea8d
chore: Log version and arguments ( #1744 )
2023-06-09 11:38:08 +08:00
Ning Sun
bc8f236806
ci: fix using env in job.if context ( #1751 )
2023-06-09 11:28:29 +08:00
Yiran
fdbda51c25
chore: update document links in README.md ( #1745 )
2023-06-09 10:05:24 +08:00
Ning Sun
e184826353
ci: allow triggering nightly release manually ( #1746 )
...
ci: allow triggering nightly manually
2023-06-09 10:04:44 +08:00
Yingwen
5b8e54e60e
feat: Add HTTP API for cpu profiling ( #1694 )
...
* chore: print source error in mem-prof
* feat(common-pprof): add pprof crate
* feat(servers): Add pprof handler to router
refactor the mem_prof handler to avoid checking feature while
registering router
* feat(servers): pprof handler support different output type
* docs(common-pprof): Add readme
* feat(common-pprof): Build guard using code in pprof-rs's example
* feat(common-pprof): use prost
* feat: don't add timeout to perf api
* feat: add feature pprof
* feat: update readme
* test: fix tests
* feat: close region in TestBase
* feat(pprof): addres comments
2023-06-07 15:25:16 +08:00
Lei, HUANG
8cda1635cc
feat: make jemalloc the default allocator ( #1733 )
...
* feat: add jemalloc metrics
* fix: dep format
2023-06-06 12:11:22 +00:00
Lei, HUANG
f63ddb57c3
fix: parquet time range predicate panic ( #1735 )
...
fix: parquet reader should use store schema to build time range predicate
2023-06-06 19:11:45 +08:00
fys
d2a8fd9890
feat: add route admin api in metasrv ( #1734 )
...
* feat: add route admin api in metasrv
* fix: add license
2023-06-06 18:00:02 +08:00
LFC
91026a6820
chore: clean up some of my todos ( #1723 )
...
* chore: clean up some of my todos
* fix: ci
2023-06-06 17:25:04 +08:00
Ruihang Xia
7a60bfec2a
fix: empty result type on prom query endpoint ( #1732 )
...
* adjust return type
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add test case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-06 15:40:54 +08:00
Niwaka
a103614fd2
feat: support /api/v1/series for Prometheus ( #1620 )
...
* feat: support /api/v1/series for Prometheus
* chore: error handling
* feat: update tests
2023-06-06 10:29:16 +08:00
Yingwen
1b4976b077
feat: Adds some metrics for write path and flush ( #1726 )
...
* feat: more metrics
* feat: Add preprocess elapsed
* chore(storage): rename metric
* test: fix tests
2023-06-05 21:35:44 +08:00
Lei, HUANG
166fb8871e
chore: bump greptimedb version 0.4.0 ( #1724 )
2023-06-05 18:41:53 +08:00
Yingwen
466f258266
feat(servers): collect samples by metric ( #1706 )
2023-06-03 17:17:52 +08:00
Ruihang Xia
94228285a7
feat: convert values to vector directly ( #1704 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-03 12:41:13 +08:00
JeremyHi
3d7185749d
feat: insert with stream ( #1703 )
...
* feat: insert with stream
* chore: by CR
2023-06-03 03:58:00 +00:00
LFC
5004cf6d9a
feat: make grpc insert requests in a batch ( #1687 )
...
* feat: make Prometheus remote write in a batch
* rebase
* fix: resolve PR comments
* fix: resolve PR comments
* fix: resolve PR comments
2023-06-02 09:06:48 +00:00
Ruihang Xia
8e69aef973
feat: serialize/deserialize support for PromQL plans ( #1684 )
...
* implement serializer
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy and CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix compile error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* register registry
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* enable promql plan for dist planner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-02 16:14:05 +08:00
Ruihang Xia
2615718999
feat: merge scan for distributed execution ( #1660 )
...
* generate exec plan
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move DatanodeClients to client crate
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* wip MergeScanExec::to_stream
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix compile errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix default catalog
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix expand order of new stage
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move sqlness cases contains plan out of common dir
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor information schema to allow duplicated scan call
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: ignore two cases due to substrait
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* reorganise sqlness common cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typos
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* redact round robin partition number
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Apply suggestions from code review
Co-authored-by: Yingwen <realevenyag@gmail.com >
* skip tranforming projection
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* revert common/order
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/query/src/dist_plan/merge_scan.rs
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result again
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* resolve CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* ignore region failover IT
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result again and again
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* unignore some tests about projection
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* enable failover tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-06-02 06:42:54 +00:00
fys
fe6e3daf81
fix: failed to insert data with u8 ( #1701 )
...
* fix: failed to insert data with u8 field
* remove unused code
* fix cr
2023-06-02 06:01:59 +00:00
ZonaHe
b7e1778ada
feat: update dashboard to v0.2.6 ( #1700 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-06-02 13:26:07 +08:00
Lei, HUANG
ccd666aa9b
fix: avoid writing manifest and wal if no files are actually flushed ( #1698 )
...
* fix: avoid writing manifest and wal if no files are actually flushed
* fix: simplify log
2023-06-02 13:16:59 +08:00
JeremyHi
2aa442c86d
feat: exists API for KVStore ( #1695 )
...
* feat: exists API for kv
* chore: add unit test
2023-06-02 12:35:04 +08:00
Weny Xu
f811ae4665
fix: enable region failover test ( #1699 )
...
fix: fix region failover test
2023-06-02 12:05:37 +08:00
Ruihang Xia
e5b6f8654a
feat: optimizer rule to pass expected output ordering hint ( #1675 )
...
* move type convertsion rule into optimizer dir
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement order_hint rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* it works!
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* use column name instead
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* accomplish test case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update lock file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-02 03:43:51 +00:00
Ruihang Xia
ff6d11ddc7
chore: ignore symbol link target file ( #1696 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-02 10:42:44 +08:00
Ruihang Xia
878c6bf75a
fix: do not alias relation before join ( #1693 )
...
* fix: do not alias relation before join
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/promql/src/error.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-06-01 14:24:37 +00:00
LFC
ce440606a9
fix: sqlness failed due to region failover wrongly kicks in for dropp… ( #1690 )
...
fix: sqlness failed due to region failover wrongly kicks in for dropped or renamed table
2023-06-01 21:47:47 +08:00
fys
5fd7250dca
fix: invalidate route cache on renaming table ( #1691 )
...
* fix: sqlness test
* remove unnecessary clone
* fix cr
2023-06-01 20:43:31 +08:00
Ruihang Xia
5a5e88353c
fix: do not change timestamp index column while planning aggr ( #1688 )
...
* fix: do not change timestamp index column while planning aggr
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove println
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-01 20:17:18 +08:00
Ruihang Xia
ef15de5f17
ci: always upload sqlness log ( #1692 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-01 20:01:26 +08:00
fys
86adac1532
chore: reject table creation when partitions exceeds peer number ( #1654 )
...
* chore: table creation is rejected, when partition_num exceeds peer_num
* chore: modify no_active_datanode error msg
* fix: ut
* fix sqlness test and add limit for select peer in region_failover
* upgrade greptime-proto
* self cr
* fix: cargo sqlness
* chore: add table info in select ctx for failover
* fix sqlness
2023-06-01 09:05:17 +00:00
Ning Sun
e7a410573b
test: fix sqlx compatibility and adds integration test for sqlx ( #1686 )
...
* test: fix sqlx compatibility and adds integration test for sqlx
* test: correct insert statements
2023-06-01 15:43:13 +08:00
Yingwen
548f0d1e2a
feat: Add app version metric ( #1685 )
...
* feat: Add app version metric
* chore: use greptimedb instead of greptime
2023-06-01 14:31:08 +08:00
Zheming Li
5467ea496f
feat: Add column supports at first or after the existing columns ( #1621 )
...
* feat: Add column supports at first or after the existing columns
* Update src/common/query/Cargo.toml
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-06-01 02:13:00 +00:00
Yingwen
70e17ead68
fix: Print source error in subprocedure failure message ( #1683 )
...
* fix: print source error in subprocedure failed error
* feat: print source error in subprocedure failure message
2023-06-01 09:51:31 +08:00
dennis zhuang
ae8203fafa
fix: prepare statement doesn't support insert clause ( #1680 )
...
* fix: insert clause doesn't support prepare statement
* fix: manifeste dir
* fix: format
* fix: temp path
2023-05-31 20:14:58 +08:00
Ruihang Xia
ac3666b841
chore(deps): bump arrow/parquet to 40.0, datafuson to the latest HEAD ( #1677 )
...
* fix compile error
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deprecated substrait
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update deps
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* downgrade opendal to 0.33.1
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change finish's impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update test results
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* ignore failing cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-05-31 18:55:02 +08:00
Weny Xu
0460f3ae30
test: add write test for region failover ( #1673 )
...
* test: add write test for region failover
* test: add written data assertion after failover
* test: support more storage types
2023-05-31 15:42:00 +08:00
Yingwen
9d179802b8
feat: Add a global TTL option for all tables ( #1679 )
...
* feat: Add a global TTL option for all tables
* docs: update config examples
* chore: print start command and options when standalone/frontend starts
2023-05-31 15:36:25 +08:00
Lei, HUANG
72b6bd11f7
feat: adapt window reader to order rules ( #1671 )
...
* feat: adapt window reader to order rules
* fix: add asc sort test case
2023-05-31 03:36:17 +00:00
Xuanwo
6b08a5f94e
chore: Bump OpenDAL to v0.36 ( #1678 )
...
* chore: Bump OpenDAL to v0.36
Signed-off-by: Xuanwo <github@xuanwo.io >
* Fix
Signed-off-by: Xuanwo <github@xuanwo.io >
---------
Signed-off-by: Xuanwo <github@xuanwo.io >
2023-05-31 11:12:40 +08:00
dennis zhuang
00104bef76
feat: supports CTE query ( #1674 )
...
* feat: supports CTE query
* test: move cte test to standalone
2023-05-30 12:08:49 +00:00
Zou Wei
ae81c7329d
feat: support azblob storage. ( #1659 )
...
* feat:support azblob storage.
* test:add some tests.
* refactor:use if-let.
2023-05-30 19:59:38 +08:00
Yingwen
c5f6d7c99a
refactor: update proto and rename incorrect region_id fields ( #1670 )
2023-05-30 15:19:04 +09:00
Weny Xu
bb1b71bcf0
feat: acquire table_id from region_id ( #1656 )
...
feat: acquire table_id from region_id
2023-05-30 03:36:47 +00:00
Weny Xu
a4b884406a
feat: add invalidate cache step ( #1658 )
...
* feat: add invalidate cache step
* refactor: refactor TableIdent
* chore: apply suggestions from CR
2023-05-30 11:17:59 +08:00
dennis zhuang
ab5dfd31ec
feat: sql dialect for different protocols ( #1631 )
...
* feat: add SqlDialect to query context
* feat: use session in postgrel handlers
* chore: refactor sql dialect
* feat: use different dialects for different sql protocols
* feat: adds GreptimeDbDialect
* refactor: replace GenericDialect with GreptimeDbDialect
* feat: save user info to session
* fix: compile error
* fix: test
2023-05-30 09:52:35 +08:00
Yingwen
563ce59071
feat: Add request type and result code to grpc metrics ( #1664 )
2023-05-30 09:51:08 +08:00
LFC
51b23664f7
feat: update table metadata in lock ( #1634 )
...
* feat: using distributed lock to guard against the concurrent updating of table metadatas in region failover procedure
* fix: resolve PR comments
* fix: resolve PR comments
2023-05-30 08:59:14 +08:00
Ruihang Xia
9e21632f23
fix: clippy warning ( #1669 )
...
* fix: clippy warning
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* restore the removed common sqlness cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-05-30 08:55:24 +08:00
Ruihang Xia
b27c569ae0
refactor: add scan_to_stream() to Table trait to postpone the stream generation ( #1639 )
...
* add scan_to_stream to Table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl parquet stream
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* reorganise adapters
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement scan_to_stream for mito table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add location info
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: table scan
* UT pass
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl project record batch
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix information schema
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* resolve CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove one todo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix errors generated by merge commit
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add output_ordering method to record batch stream
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix rustfmt
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* enhance error types
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Lei, HUANG <mrsatangel@gmail.com >
2023-05-29 20:03:47 +08:00
Weny Xu
0eaae634fa
fix: invalidate table route cache ( #1663 )
2023-05-29 18:49:23 +08:00
JeremyHi
8b9b5a0d3a
feat: broadcast with mailbox ( #1661 )
...
feat: broad with mailbox
2023-05-29 15:11:50 +08:00
Lei, HUANG
78fab08b51
feat: window inferer ( #1648 )
...
* feat: window inferer
* doc: add some doc
* test: add a long missing unit test case for windowed reader
* add more tests
* fix: some CR comments
2023-05-29 14:41:00 +08:00
Weny Xu
d072947ef2
refactor: move code out of loop ( #1657 )
2023-05-27 13:31:13 +08:00
Weny Xu
4094907c09
fix: fix type casting issue ( #1652 )
...
* fix: fix type casting issue
* chore: apply suggestion from CR
2023-05-27 00:17:56 +08:00
Ruihang Xia
0da94930d5
feat: impl literal only PromQL query ( #1641 )
...
* refactor EmptyMetric to accept expr
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl literal only query
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add empty line
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* support literal on HTTP gateway
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy (again)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-05-26 23:27:03 +08:00
fys
f0a519b71b
chore: reduce the number of requests for meta ( #1647 )
2023-05-26 17:25:18 +08:00
Yingwen
89366ba939
refactor: Holds histogram in the timer to avoid clone labels if possible ( #1653 )
...
* feat: use Histogram struct to impl Timer
* fix: fix compile errors
* feat: downgrade metrics-process
* fix: compiler errors
2023-05-26 17:12:03 +08:00
Yingwen
c042723fc9
feat: Record process metrics ( #1646 )
...
* feat(servers): Export process metrics
* chore: update metrics related deps to get the process-metrics printed
The latest process-metrics crate depends on metrics 0.21, we use metrics
0.20. This cause the process-metrics crate doesn't record the metrics
when use metrics macros
2023-05-26 11:51:01 +08:00
Weny Xu
732784d3f8
feat: support to load missing region ( #1651 )
...
* feat: support to load missing region
* Update src/mito/src/table.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-05-26 03:30:46 +00:00
Ning Sun
332b3677ac
feat: add metrics for ingested row count ( #1645 )
2023-05-26 10:57:27 +08:00
Weny Xu
6cd634b105
fix: fix typo ( #1649 )
2023-05-26 10:24:12 +08:00
Yinnan Yao
cd1ccb110b
fix: install python3-pip in Dockerfile ( #1644 )
...
When I use docker build to build the image, I get an error that pip is missing. Add install python3-pip in Dockerfile.
Fixes : #1643
Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com >
2023-05-25 23:00:39 +08:00
Weny Xu
953793143b
feat: add invalidate table cache handler ( #1633 )
...
* feat: add invalidate table cache handler
* feat: setup invalidate table cache handler for frontend
* test: add test for invalidate table cache handler
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* fix: fix report_interval unit
2023-05-25 17:45:45 +08:00
Yingwen
8a7998cd25
feat(servers): Add metrics based on axum's example ( #1638 )
...
Log on error
2023-05-25 17:31:48 +09:00
LFC
eb24bab5df
refactor: set the filters for testing logs ( #1637 )
...
minor: set the filters for testing logs
2023-05-25 11:07:57 +08:00
fys
8f9e9686fe
chore: add metrics for table route getting ( #1636 )
...
chore: add metrics for getting table_route
2023-05-25 10:02:59 +08:00
shuiyisong
61a32d1b9c
chore: add boxed error for custom error map ( #1635 )
...
* chore: add boxed error for custom error map
* chore: fix typo
* chore: add comment & update display msg
* chore: change name to other error
2023-05-24 12:54:52 +00:00
Weny Xu
74a6517bd0
refactor: move the common part of the heartbeat response handler to common ( #1627 )
...
* refactor: move heartbeat response handler to common
* chore: apply suggestions from CR
2023-05-24 07:55:06 +00:00
fys
fa4a497d75
feat: add cache for catalog kv backend ( #1592 )
...
* feat: add kvbackend cache
* fix: cargo fmt
2023-05-24 15:07:29 +08:00
Ning Sun
ddca0307d1
feat: more configurable logging levels ( #1630 )
...
* feat: make logging level more configurable
* chore: resolve lint warnings
* fix: correct default level for h2
* chore: update text copy
2023-05-24 14:47:41 +08:00
Weny Xu
3dc45f1c13
feat: implement CloseRegionHandler ( #1569 )
...
* feat: implement CloseRegionHandler
* feat: register heartbeat response handlers
* test: add tests for heartbeat response handlers
* fix: drop table does not release regions
* chore: apply suggestion from CR
* fix: fix close region issue
* chore: apply suggestion from CR
* chore: apply suggestion from CR
* chore: apply suggestion from CR
* chore: apply suggestion from CR
* chore: apply suggestion from CR
* chore: apply suggestion from CR
* chore: apply suggestion from CR
* chore: modify method name and add log
* refactor: refactor HeartbeatResponseHandler
* chore: apply suggestion from CR
* refactor: remove close method from Region trait
* chore: apply suggestion from CR
* chore: remove PartialEq from CloseTableResult
* chore: apply suggestion from CR
2023-05-23 15:44:27 +08:00
dennis zhuang
7c55783e53
feat!: reorganize the storage layout ( #1609 )
...
* feat: adds data_home to DataOptions
* refactor: split out object store stuffs from datanode instance
* feat: move data_home into FileConfig
* refactor: object storage layers
* feat: adds datanode path to procedure paths
* feat: temp commit
* refactor: clean code
* fix: forgot files
* fix: forgot files
* Update src/common/test-util/src/ports.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update tests/runner/src/env.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* fix: compile error
* chore: cr comments
* fix: dependencies order in cargo
* fix: data path in test
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-05-23 13:58:26 +08:00
shuiyisong
5b304fa692
chore: add grpc query interceptor ( #1626 )
2023-05-23 13:57:54 +08:00
Weny Xu
9f67ad8bce
fix: fix doesn't release closed regions issue ( #1596 )
...
* fix: fix close region issue
* chore: apply suggestion from CR
* chore: apply suggestion from CR
* chore: apply suggestion from CR
* chore: apply suggestion from CR
* refactor: remove close method from Region trait
* chore: remove PartialEq from CloseTableResult
2023-05-23 11:40:12 +08:00
Weny Xu
e646490d16
chore: fix code styling ( #1623 )
2023-05-23 10:09:34 +08:00
JeremyHi
1225edb065
refactor: move rpc's commons to common-meta ( #1625 )
2023-05-23 10:07:24 +08:00
Lei, HUANG
8e7ec4626b
refactor: remove useless error ( #1624 )
...
* refactor: remove useless
* fix: remove useless error variant
2023-05-22 22:55:27 +08:00
LFC
f64527da22
feat: region failover procedure ( #1558 )
...
* feat: region failover procedure
2023-05-22 19:54:52 +08:00
Yingwen
6dbceb1ad5
feat: Trigger flush based on global write buffer size ( #1585 )
...
* feat(storage): Add AllocTracker
* feat(storage): flush request wip
* feat(storage): support global write buffer size
* fix(storage): Test and fix size based strategy
* test(storage): Test AllocTracker
* test(storage): Test pick_by_write_buffer_full
* docs: Add flush config example
* test(storage): Test schedule_engine_flush
* feat(storage): Add metrics for write buffer size
* chore(flush): Add log when triggering flush by global buffer
* chore(storage): track allocation in update_stats
2023-05-22 19:00:30 +08:00
Ning Sun
067c5ee7ce
feat: time_zone variable for mysql connections ( #1607 )
...
* feat: add timezone info to query context
* feat: parse mysql compatible time zone string
* feat: add method to timestamp for rendering timezone aware string
* feat: use timezone from session for time string rendering
* refactor: use querycontectref
* feat: implement session/timezone variable read/write
* style: resolve toml format
* test: update tests
* Apply suggestions from code review
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* Update src/session/src/context.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* refactor: address review issues
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-05-22 18:30:23 +08:00
Yingwen
32ad358323
fix(table-procedure): Open table in RegisterCatalog state ( #1617 )
...
* fix(table-procedure): on_register_catalog should use open_table
* test: Test recover RegisterCatalog state
* test: Fix subprocedure does not execute in test
* feat(mito): adjust procedure log level
* refactor: rename execute_parent_procedure
execute_parent_procedure -> execute_until_suspended_or_done
2023-05-22 17:54:02 +08:00
Chuanle Chen
77497ca46a
feat: support /api/v1/label/<label_name>/values from Prometheus ( #1604 )
...
* feat: support `/api/v1/label/<label_name>/values` from Prometheus
* chore: apply CR
* chore: apply CR
2023-05-22 07:24:12 +00:00
JeremyHi
e5a215de46
chore: truncate route-table ( #1619 )
2023-05-22 14:54:40 +08:00
Ruihang Xia
e5aad0f607
feat: distributed planner basic ( #1599 )
...
* basic skeleton
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change QueryEngineState's constructor
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* install extension planner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tidy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-05-22 11:48:03 +08:00
QuenKar
edf6c0bf48
refactor: add "table engine" to datanode heartbeat. ( #1616 )
...
refactor:add "table engine" to datanode heartbeat.
2023-05-22 10:09:32 +08:00
Ruihang Xia
c3eeda7d84
refactor(frontend): adjust code structure ( #1615 )
...
* move to expr_factory
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move configs into service_config
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move GrpcQueryHandler into distributed.rs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-05-20 02:09:20 +08:00
Lei, HUANG
82f2b34f4d
fix: wal replay ignore manifest entries ( #1612 )
...
* fix: wal replay ignore manifest entries
* test: add ut
2023-05-19 18:12:44 +08:00
Vanish
8764ce7845
feat: add delete WAL in drop_region ( #1577 )
...
* feat: add delete WAL in drop_region
* chore: fix typo err.
* feat: mark all SSTs deleted and remove the region from StorageEngine's region map.
* test: add test_drop_region for StorageEngine.
* chore: make clippy happy
* fix: fix conflict
* chore: CR.
* chore: CR
* chore: fix clippy
* fix: temp file life time
2023-05-18 18:02:34 +08:00
localhost
d76ddc575f
fix: meta admin API get catalog table name error ( #1603 )
2023-05-18 14:27:40 +08:00
Weny Xu
68dfea0cfd
fix: fix datanode cannot start while failing to open tables ( #1601 )
2023-05-17 20:56:13 +08:00
fys
57c02af55b
feat: change default selector in meta from "LeaseBased" to "LoadBased" ( #1598 )
...
* feat: change default selector from "LeaseBased" to "LoadBased"
* fix: ut
2023-05-17 17:48:13 +08:00
Lei, HUANG
e8c2222a76
feat: add WindowedReader ( #1532 )
...
* feat: add WindowedReader
* fix: some cr comments
* feat: filter memtable by timestamp range
* fix: add source in error variants
* fix: some CR comments
* refactor: filter memtable in MapIterWrapper
* fix: clippy
2023-05-17 17:34:29 +08:00
JeremyHi
eb95a9e78b
fix: sequence out of range ( #1597 )
2023-05-17 14:43:54 +08:00
zyy17
4920836021
refactor: support parsing env list ( #1595 )
...
* refactor: support parse env list
* refactor: set 'multiple = true' for metasrv_addr cli option and remove duplicated parsing
2023-05-17 14:37:08 +08:00
Huaijin
715e1a321f
feat: implement /api/v1/labels for prometheus ( #1580 )
...
* feat: implement /api/v1/labels for prometheus
* fix: only gather match[]
* chore: fix typo
* chore: fix typo
* chore: change style
* fix: suggestion
* fix: suggestion
* chore: typo
* fix: fmt
* fix: add more test
2023-05-17 03:56:22 +00:00
localhost
a6ec79ee30
chore: add a uniform prefix to the metrics using the official recommendation of ( #1590 )
2023-05-17 11:08:49 +08:00
Lei, HUANG
e70d49b9cf
feat: memtable stats ( #1591 )
...
* feat: memtable stats
* chore: add tests for timestamp subtraction
* feat: add `Value:as_timestamp` method
2023-05-17 11:07:07 +08:00
Weny Xu
ca75a7b744
fix: remove region number validation ( #1593 )
...
* fix: remove region number validation
* Update src/mito/src/engine.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-05-17 09:23:56 +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
WU Jingdi
fb1ac0cb9c
feat: support user config manifest compression ( #1579 )
...
* feat: support user config manifest compression
* chore: change style
* chore: enhance test
2023-05-16 11:02:59 +08:00
Niwaka
856ab5bea7
feat: make RepeatedTask invoke remove_outdated_meta method ( #1578 )
...
* feat: make RepeatedTask invoke remove_outdated_meta method
* fix: typo
* chore: improve error message
2023-05-16 10:21:35 +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
Ruihang Xia
2fd1075c4f
fix: uses nextest in the Release CI ( #1582 )
...
* fix: uses nextest in the Release CI
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* install nextest
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update Makefile
Co-authored-by: zyy17 <zyylsxm@gmail.com >
* update workflow yaml
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: zyy17 <zyylsxm@gmail.com >
2023-05-15 21:09:09 +08:00
fys
027707d969
feat: support frontend-meta heartbeat ( #1555 )
...
* feat: support frontend heartbeat
* fix: typo "reponse" -> "response"
* add ut
* enable start heartbeat task
* chore: frontend id is specified by metasrv, not in the frontend startup parameter
* fix typo
* self-cr
* cr
* cr
* cr
* remove unnecessary headers
* use the member id in the header as the node id
2023-05-15 09:54:45 +00:00
Yingwen
8d54d40b21
feat: Add FlushPicker to flush regions periodically ( #1559 )
...
* feat: Add FlushPicker
* feat(storage): Add close to StorageEngine
* style(storage): fix clippy
* feat(storage): Close regions in StorageEngine::close
* chore(storage): Clear requests on scheduler stop
* test(storage): Test flush picker
* feat(storage): Add metrics for auto flush
* feat(storage): Add flush reason and record it in metrics
* feat: Expose flush config
docs(config): Update config example
* refactor(storage): Run auto flush task in FlushScheduler
* refactor(storage): Add FlushItem trait to make FlushPicker easy to test
2023-05-15 17:29:28 +08:00
Ning Sun
497b1f9dc9
feat: metrics for storage engine ( #1574 )
...
* feat: add storage engine region count gauge
* test: remove catalog metrics because we can't get a correct number
* feat: add metrics for log store write and compaction
* fix: address review issues
2023-05-15 15:22:00 +08:00
LFC
4ae0b5e185
test: move instances tests to "tests-integration" ( #1573 )
...
* test: move standalone and distributed instances tests from "frontend" crate to "tests-integration"
* fix: resolve PR comments
2023-05-15 12:00:43 +08:00
Lei, HUANG
cfcfc72681
refactor: remove version column ( #1576 )
2023-05-15 11:03:37 +08:00
Weny Xu
66903d42e1
feat: implement OpenTableHandler ( #1567 )
...
* feat: implement OpenTableHandler
* chore: apply suggestion from CR
* chore: apply suggestion from CR
2023-05-15 10:47:28 +08:00
zyy17
4fc173acf0
refactor: support layered configuration ( #1535 )
...
* refactor: add a layered configuration by using config-rs
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* refactor: add 'env_var_prefix' for 'load_options()' and remove duplicate default construction in frontend
* refactor: add test_config_precedence_order in standalone
* refactor: add 'test_config_precedence_order()' test case in metasrv
* refactor: add 'test_config_precedence_order()' test case in datanode
* refactor: refine the naming '*_env_var_*' -> '*_env_vars_*'
* refactor: fix clippy error
* refactor: refine error naming 'LoadConfig' -> 'LoadLayeredConfig' and add Location
* refactor: move 'env_vars_prefix' to clap options
* fix: use '__' as envrionment variables separator and simplify load_layered_options()
* refactor: derive 'Default' for StartCommand and use default function to simplify the test cases
* fix: clippy error
* chore: update comments
* chore(deps): update deps info
* refactor(naming): 'env_vars_prefix' -> 'env_prefix'
* refactor: simplify the code
* refactor: change some argument type of 'load_layered_options()'
* refactor: simplify the code
* refactor: remove unnecessary 'clone()'
* refactor: add 'GREPTIMEDB_*' prefix for env_prefix
* refactor: modify configuration precedence order: cli > config file > environment variables > default values
---------
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2023-05-13 22:37:47 +08:00
Huaijin
f9a4326461
fix: unwrap() None in NULL value exist multi-field table during prometheus query_range ( #1571 )
...
* fix: NULL value in multi-field table meet error in prometheus query_range
* fix: suggestion
* chore: change style
2023-05-12 17:36:03 +08:00
Ning Sun
4151d7a8ea
fix: allow cross-schema query on information_schema ( #1568 )
2023-05-11 16:54:28 +08:00
LFC
a4e106380b
fix: refreshing Dashboard returns 404 ( #1562 )
...
* fix: refreshing Dashboard returns 404
* fix: refreshing Dashboard returns 404
2023-05-11 15:08:20 +08:00
Ruihang Xia
7a310cb056
docs: rfc of distributed planner ( #1554 )
...
* docs: rfc of distributed planner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update docs/rfcs/2023-05-09-distributed-planner.md
Co-authored-by: LFC <bayinamine@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: LFC <bayinamine@gmail.com >
2023-05-11 14:45:32 +08:00
LFC
8fef32f8ef
feat: enable tokio console in cluster mode ( #1512 )
...
* feat: enable tokio console subscriber
* fix: resolve PR comments
* fix: resolve PR comments
* fix: resolve PR comments
2023-05-11 14:35:06 +08:00
Ning Sun
8c85fdec29
fix: correct schema/table count in catalog metrics ( #1565 )
2023-05-11 14:20:42 +08:00
ZonaHe
84f6b46437
feat: update dashboard to v0.2.5 ( #1563 )
...
Co-authored-by: ZonaHex <ZonaHex@users.noreply.github.com >
2023-05-11 13:55:42 +08:00
Weny Xu
44aef6fcbd
feat(datanode): iImplement the heartbeat response handler ( #1547 )
...
* feat(datanode): implement instruction handler
* chore: apply suggestion from CR
* refactor: refactor heartbeat response handler
2023-05-11 09:27:13 +08:00
JeremyHi
7a9dd5f0c8
feat: ignore mailbox message into stat ( #1560 )
2023-05-10 18:06:04 +08:00
WU Jingdi
486bb2ee8e
feat: Compress manifest and checkpoint ( #1497 )
...
* feat: Compress manifest and checkpoint
* refactor: use file extention infer compression type
* chore: apply suggestions from CR
* Update src/storage/src/manifest/storage.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: CR advices
* chore: Fix bugs, strengthen test
* chore: Fix CR, strengthen test
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-05-10 07:53:06 +00:00
Weny Xu
020c55e260
refactor: change mailbox_messages to mailbox_message ( #1557 )
2023-05-10 07:17:11 +00:00
Yingwen
ee3e1dbdaa
feat: Use LocalScheduler framework to implement FlushScheduler ( #1531 )
...
* test: simplify countdownlatch
* feat: impl Drop for LocalScheduler
* feat(storage): Impl FlushRequest and FlushHandler
* feat(storage): Use scheduler to handle flush job
* chore(storage): remove unused code
* feat(storage): Use new type pattern for RegionMap
* feat(storage): Remove on_success callback
* feat(storage): Address CR comments and add some metrics to flush
2023-05-10 07:16:51 +00:00
dennis zhuang
aa0c5b888c
docs: update readme ( #1549 )
...
* docs: update readme
* Update README.md
Co-authored-by: Ning Sun <classicning@gmail.com >
* chore: cr comments
* chore: cr comments
---------
Co-authored-by: Ning Sun <classicning@gmail.com >
2023-05-10 14:36:07 +08:00