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
v0.4.0-nightly-20230613
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 >
v0.4.0-nightly-20230612
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 )
v0.4.0-nightly-20230609
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 )
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