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