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 >
v0.8.0-nightly-20240325
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
v0.8.0-nightly-20240318
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
v0.7.1
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