ZonaHe
88f7075a2a
feat: update dashboard to v0.7.3 ( #5172 )
...
Co-authored-by: sunchanglong <sunchanglong@users.noreply.github.com >
2024-12-16 10:56:41 +00:00
Ruihang Xia
54698325b6
feat: introduce SKIPPING index (part 1) ( #5155 )
...
* skip index parser
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* wip: sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl show create part
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add empty line
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change keyword to SKIPPING INDEX
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename local variables
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-16 09:21:00 +00:00
Lei, HUANG
5ffda7e971
chore: gauge for flush compaction ( #5156 )
...
* add metrics
* chore/bench-metrics: Add INFLIGHT_FLUSH_COUNT Metric to Flush Process
• Introduced INFLIGHT_FLUSH_COUNT metric to track the number of ongoing flush operations.
• Incremented INFLIGHT_FLUSH_COUNT in FlushScheduler to monitor active flushes.
• Removed redundant increment of INFLIGHT_FLUSH_COUNT in RegionWorkerLoop to prevent double counting.
* chore/bench-metrics: Add Metrics for Compaction and Flush Operations
• Introduced INFLIGHT_COMPACTION_COUNT and INFLIGHT_FLUSH_COUNT metrics to track the number of ongoing compaction and flush operations.
• Incremented INFLIGHT_COMPACTION_COUNT when scheduling remote and local compaction jobs, and decremented it upon completion.
• Added INFLIGHT_FLUSH_COUNT increment and decrement logic around flush tasks to monitor active flush operations.
• Removed redundant metric updates in worker.rs and handle_compaction.rs to streamline metric handling.
* chore: add metrics for remote compaction jobs
* chore: format
* chore: also add dashbaord
2024-12-16 07:08:07 +00:00
Lin Yihai
f82af15eba
feat: Add vector_scalar_mul function. ( #5166 )
2024-12-16 06:46:38 +00:00
shuiyisong
9d7fea902e
chore: remove unused dep ( #5163 )
...
* chore: remove unused dep
* chore: remove more unused dep
2024-12-16 06:17:27 +00:00
Niwaka
358d5e1d63
fix: support alter table ~ add ~ custom_type ( #5165 )
v0.12.0-nightly-20241216
2024-12-15 09:05:29 +00:00
Yingwen
579059d99f
ci: use 4xlarge for nightly build ( #5158 )
2024-12-13 12:53:11 +00:00
localhost
53d55c0b6b
fix: loki write row len error ( #5161 )
2024-12-13 10:10:59 +00:00
Yingwen
bef6896280
docs: Add index panels to standalone grafana dashboard ( #5140 )
...
* docs: Add index panels to standalnoe grafana dashboard
* docs: fix flush/compaction op
2024-12-13 08:17:49 +00:00
Yohan Wal
4b4c6dbb66
refactor: cache inverted index with fixed-size page ( #5114 )
...
* feat: cache inverted index by page instead of file
* fix: add unit test and fix bugs
* chore: typo
* chore: ci
* fix: math
* chore: apply review comments
* chore: renames
* test: add unit test for index key calculation
* refactor: use ReadableSize
* feat: add config for inverted index page size
* chore: update config file
* refactor: handle multiple range read and fix some related bugs
* fix: add config
* test: turn to a fs reader to match behaviors of object store
2024-12-13 07:34:24 +00:00
localhost
e8e9526738
chore: pipeline dryrun api can currently receives pipeline raw content ( #5142 )
...
* chore: pipeline dryrun api can currently receives pipeline raw content
* chore: remove dryrun v1 and add test
* chore: change dryrun pipeline api body schema
* chore: remove useless struct PipelineInfo
* chore: update PipelineDryrunParams doc
* chore: increase code readability
* chore: add some comment for pipeline dryrun test
* Apply suggestions from code review
Co-authored-by: shuiyisong <113876041+shuiyisong@users.noreply.github.com >
* chore: format code
---------
Co-authored-by: shuiyisong <113876041+shuiyisong@users.noreply.github.com >
2024-12-12 11:47:21 +00:00
Yingwen
fee75a1fad
feat: collect reader metrics from prune reader ( #5152 )
2024-12-12 11:27:22 +00:00
localhost
b8a78b7838
chore: decide tag column in log api follow table schema if table exists ( #5138 )
...
* chore: decide tag column in log api follow table schema if table exists
* chore: add more test for greptime_identity pipeline
* chore: change pipeline get_table function signature
* chore: change identity_pipeline_inner tag_column_names type
2024-12-12 09:01:21 +00:00
Weny Xu
2137c53274
feat(index): add file_size_hint for remote blob reader ( #5147 )
...
feat(index): add file_size_hint for remote blob reader
2024-12-12 04:45:40 +00:00
Yohan Wal
03ad6e2a8d
feat(fuzz): add alter table options for alter fuzzer ( #5074 )
...
* feat(fuzz): add set table options to alter fuzzer
* chore: clippy is happy, I'm sad
* chore: happy ci happy
* fix: unit test
* feat(fuzz): add unset table options to alter fuzzer
* fix: unit test
* feat(fuzz): add table option validator
* fix: make clippy happy
* chore: add comments
* chore: apply review comments
* fix: unit test
* feat(fuzz): add more ttl options
* fix : #5108
* chore: add comments
* chore: add comments
2024-12-12 04:21:38 +00:00
Weny Xu
d53fbcb936
feat: introduce PuffinMetadataCache ( #5148 )
...
* feat: introduce `PuffinMetadataCache`
* refactor: remove too_many_arguments
* chore: fmt toml
2024-12-12 04:09:36 +00:00
Weny Xu
8c1959c580
feat: add prefetch support to InvertedIndexFooterReader for reduced I/O time ( #5146 )
...
* feat: add prefetch support to `InvertedIndeFooterReader`
* chore: correct struct name
* chore: apply suggestions from CR
2024-12-12 03:49:54 +00:00
Weny Xu
e2a41ccaec
feat: add prefetch support to PuffinFileFooterReader for reduced I/O time ( #5145 )
...
* feat: introduce `PuffinFileFooterReader`
* refactor: remove `SyncReader` trait and impl
* refactor: replace `FooterParser` with `PuffinFileFooterReader`
* chore: remove unused errors
2024-12-12 03:13:36 +00:00
Niwaka
a8012147ab
feat: support push down IN filter ( #5129 )
...
* feat: support push down IN filter
* chore: move tests to prune.sql
2024-12-11 13:46:23 +00:00
Ruihang Xia
60f8dbf7f0
feat: implement v1/sql/parse endpoint to parse GreptimeDB's SQL dialect ( #5144 )
...
* derive ser/de
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl method
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deserialize
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-11 13:33:54 +00:00
ZonaHe
9da2e17d0e
feat: update dashboard to v0.7.2 ( #5141 )
...
Co-authored-by: sunchanglong <sunchanglong@users.noreply.github.com >
2024-12-11 12:47:59 +00:00
Yohan Wal
1a8e77a480
test: part of parser test migrated from duckdb ( #5125 )
...
* test: update test
* fix: fix test
2024-12-11 09:28:13 +00:00
Zhenchi
e1e39993f7
feat(vector): add scalar add function ( #5119 )
...
* refactor: extract implicit conversion helper functions of vector
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(vector): add scalar add function
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-12-11 09:25:56 +00:00
Lei, HUANG
a30d918df2
perf: avoid cache during compaction ( #5135 )
...
* Revert "refactor: Avoid wrapping Option for CacheManagerRef (#4996 )"
This reverts commit 42bf7e9965 .
* fix: memory usage during log ingestion
* fix: fmt
2024-12-11 08:24:41 +00:00
dennis zhuang
2c4ac76754
feat: adjust WAL purge default configurations ( #5107 )
...
* feat: adjust WAL purge default configurations
* fix: config
* feat: change raft engine file_size default to 128Mib
2024-12-11 08:08:05 +00:00
jeremyhi
a6893aad42
chore: set store_key_prefix for all kvbackend ( #5132 )
2024-12-11 08:04:02 +00:00
discord9
d91517688a
chore: fix aws_lc not in depend tree check in CI ( #5121 )
...
* chore: fix aws_lc check in CI
* chore: update lock file
2024-12-11 07:02:03 +00:00
shuiyisong
3d1b8c4fac
chore: add /ready api for health checking ( #5124 )
...
* chore: add ready endpoint for health checking
* chore: add test
2024-12-11 02:56:48 +00:00
Yingwen
7c69ca0502
chore: bump main branch version to 0.12 ( #5133 )
...
chore: bump version to v0.12.0
2024-12-10 13:10:37 +00:00
dennis zhuang
03a28320d6
feat!: enable read cache and write cache when using remote object stores ( #5093 )
...
* feat: enable read cache and write cache when using remote object stores
* feat: make read cache be aware of remote store names
* chore: docs
* chore: apply review suggestions
* chore: trim write cache path
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
v0.11.0
2024-12-10 04:03:44 +00:00
Lei, HUANG
ce86ba3425
chore: Reduce FETCH_OPTION_TIMEOUT from 10 to 3 seconds in config.rs ( #5117 )
...
Reduce FETCH_OPTION_TIMEOUT from 10 to 3 seconds in config.rs
2024-12-09 13:39:18 +00:00
Yingwen
2fcb95f50a
fix!: fix regression caused by unbalanced partitions and splitting ranges ( #5090 )
...
* feat: assign partition ranges by rows
* feat: balance partition rows
* feat: get uppoer bound for part nums
* feat: only split in non-compaction seq scan
* fix: parallel scan on multiple sources
* fix: can split check
* feat: scanner prepare by request
* feat: remove scan_parallelism
* docs: upate docs
* chore: update comment
* style: fix clippy
* feat: skip merge and dedup if there is only one source
* chore: Revert "feat: skip merge and dedup if there is only one source"
Since memtable won't do dedup jobs
This reverts commit 2fc7a54b11 .
* test: avoid compaction in sqlness window sort test
* chore: do not create semaphore if num partitions is enough
* chore: more assertions
* chore: fix typo
* fix: compaction flag not set
* chore: address review comments
2024-12-09 12:50:57 +00:00
ZonaHe
1b642ea6a9
feat: update dashboard to v0.7.1 ( #5123 )
...
Co-authored-by: sunchanglong <sunchanglong@users.noreply.github.com >
2024-12-09 10:27:35 +00:00
Weny Xu
b35221ccb6
ci: set meta replicas to 1 ( #5111 )
2024-12-09 07:22:47 +00:00
Zhenchi
bac7e7bac9
refactor: extract implicit conversion helper functions of vector type ( #5118 )
...
refactor: extract implicit conversion helper functions of vector
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-12-09 07:19:00 +00:00
dennis zhuang
903da8f4cb
fix: show create table doesn't quote option keys which contains dot ( #5108 )
...
* fix: show create table doesn't quote option keys which contains dot
* fix: compile
2024-12-09 03:27:46 +00:00
Ning Sun
c0f498b00c
feat: update pgwire to 0.28 ( #5113 )
...
* feat: update pgwire to 0.28
* test: update tests
2024-12-09 03:12:11 +00:00
Lin Yihai
19373d806d
chore: Add timeout setting for find_ttl. ( #5088 )
v0.11.0-nightly-20241209
2024-12-06 15:02:15 +00:00
Ning Sun
3133f3fb4e
feat: add cursor statements ( #5094 )
...
* feat: add sql parsers for cursor operations
* feat: cursor operator
* feat: implement RecordBatchStreamCursor
* feat: implement cursor storage and execution
* test: add tests
* chore: update docstring
* feat: add a temporary sql rewrite for cast in limit
this issue is described in #5097
* test: add more sql for cursor integration test
* feat: reject non-select query for cursor statement
* refactor: address review issues
* test: add empty result case
* feat: address review comments
2024-12-06 09:32:22 +00:00
discord9
8b944268da
feat: ttl=0/instant/forever/humantime&ttl refactor ( #5089 )
...
* feat: ttl zero filter
* refactor: use TimeToLive enum
* fix: unit test
* tests: sqlness
* refactor: Option<TTL> None means UNSET
* tests: sqlness
* fix: 10000 years --> forever
* chore: minor refactor from reviews
* chore: rename back TimeToLive
* refactor: split imme request from normal requests
* fix: use correct lifetime
* refactor: rename immediate to instant
* tests: flow sink table default ttl
* refactor: per review
* tests: sqlness
* fix: ttl alter to instant
* tests: sqlness
* refactor: per review
* chore: per review
* feat: add db ttl type&forbid instant for db
* tests: more unit test
2024-12-06 09:20:42 +00:00
Ning Sun
dc83b0aa15
feat: add more transaction related statement for postgres interface ( #5081 )
...
* fix: add match for start and abort transactions
* feat: add commit transaction statement
* feat: add warning on transaction start
* chore: update message
2024-12-06 08:22:25 +00:00
Weny Xu
2b699e735c
chore: correct example config file ( #5105 )
...
* chore: correct example config file
* fix: fix unit test
2024-12-06 03:14:08 +00:00
Yingwen
7a3d6f2bd5
docs: remove lg_prof_interval from env ( #5103 )
2024-12-06 02:59:16 +00:00
Ruihang Xia
f9ebb58a12
fix: put PipelineChecker at the end ( #5092 )
...
fix: put PipelineChecker in the end
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-06 02:10:17 +00:00
ZonaHe
c732016fa0
feat: update dashboard to v0.7.0 ( #5100 )
...
Co-authored-by: sunchanglong <sunchanglong@users.noreply.github.com >
2024-12-05 13:42:36 +00:00
Weny Xu
01a308fe6b
refactor: relocate CLI to a dedicated directory ( #5101 )
...
* refactor: relocate CLI to a dedicated directory
* chore: expose method and const
* refactor: use BoxedError
* chore: expose DatabaseClient
* chore: add clone derive
2024-12-05 12:12:24 +00:00
Ruihang Xia
cf0c84bed1
feat!: remove GET method in /debug path ( #5102 )
...
* featremove GET method in \/debug path
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update how-to document as well
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-05 08:21:55 +00:00
Yingwen
66c0445974
perf: take a new batch to reduce last row cache usage ( #5095 )
...
* feat: take and cache last row to save memory
* style: fix clippy
2024-12-05 03:59:28 +00:00
Ruihang Xia
7d8b256942
refactor: replace LogHandler with PipelineHandler ( #5096 )
...
* refactor: replace LogHandler with PipelineHandler
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change method name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename transform to insert
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-04 11:48:55 +00:00
Ruihang Xia
5092f5f451
feat: define basic structures and implement TimeFilter ( #5086 )
...
* feat: define basic structures and implement TimeFilter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* document column filter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* define context
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change variable name to avoid typo checker
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change error referring style
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refine context definition
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-04 07:39:33 +00:00