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 )
v0.3.0-nightly-20230605
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
v0.3.0-nightly-20230530
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