Weny Xu
775a9af3b8
feat: add procedure events for Flow DDL ( #8632 )
...
* feat(meta): record Flow DDL procedure events
Signed-off-by: WenyXu <wenymedia@gmail.com >
* fix(meta): remove query schema from Flow events
Signed-off-by: WenyXu <wenymedia@gmail.com >
* fix(tests): fix Flow DDL event test
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2026-07-28 09:02:11 +00:00
Yingwen
7da4f46532
fix: configure datanode client gRPC message limits ( #8642 )
...
Signed-off-by: evenyag <realevenyag@gmail.com >
2026-07-28 08:35:42 +00:00
shuiyisong
046921a72c
feat(common-query): add native histogram runtime model ( #8656 )
...
* feat(common-query): add native histogram runtime model
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: rebase main
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: cr issue
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: cr issue
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
---------
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
2026-07-28 07:50:46 +00:00
Weny Xu
09e1d24365
feat: add database DDL procedure events ( #8623 )
...
* feat(meta): add database DDL procedure events
Signed-off-by: WenyXu <wenymedia@gmail.com >
* test(sqlness): disable event recording
Signed-off-by: WenyXu <wenymedia@gmail.com >
* test: poll database DDL event assertions
Signed-off-by: WenyXu <wenymedia@gmail.com >
* docs(config): list database DDL event types
Signed-off-by: WenyXu <wenymedia@gmail.com >
* fix(test): satisfy clippy
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2026-07-28 05:03:06 +00:00
Lei, HUANG
5ad4e71007
fix(prometheus): make remote write timeout retryable ( #8639 )
...
* fix(prometheus): make remote write timeout retryable
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* fix(prometheus): enforce pending row timeout budget
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* fix(prometheus): skip pending-row timeout fallback when batcher is disabled
PendingRowsBatcher::try_new returns None when max_batch_rows,
max_concurrent_flushes, worker_channel_capacity or max_inflight_requests
is zero, meaning remote writes bypass batching entirely. The timeout
fallback predicate now mirrors these enablement conditions so the HTTP
timeout is not raised when no request can wait for a pending-row flush.
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* fix(prometheus): skip pending-row timeout fallback in async batch mode
With PENDING_ROWS_BATCH_SYNC=false, pending-row submissions return right
after enqueue and no request waits for a flush, so raising the global
HTTP timeout only delays unrelated routes. Export the batch sync mode
predicate from the servers crate and consult it in the frontend's
effective_http_options so the fallback is skipped in asynchronous mode.
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
---------
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
2026-07-27 13:39:09 +00:00
Weny Xu
7344d47756
feat(event-recorder): configure lifecycle event recording ( #8648 )
...
* refactor(event-recorder): centralize event table helpers
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat(procedure): wire lifecycle event recorder
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat(event-recorder): filter events by type
Signed-off-by: WenyXu <wenymedia@gmail.com >
* fix(event-recorder): derive event type filter default
Signed-off-by: WenyXu <wenymedia@gmail.com >
* fix(event-recorder): decouple frontend filtering
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: remove docs
Signed-off-by: WenyXu <wenymedia@gmail.com >
* fix(event-recorder): complete configuration support
Signed-off-by: WenyXu <wenymedia@gmail.com >
* refactor(event-recorder): centralize filter ownership
Signed-off-by: WenyXu <wenymedia@gmail.com >
* test(config): update event recorder snapshot
Signed-off-by: WenyXu <wenymedia@gmail.com >
* fix(frontend): decouple slow query event recorder
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2026-07-27 13:05:56 +00:00
fys
3e67c67607
refactor: simplify scan projection to root column indices ( #8629 )
...
* refactor: simplify scan projection to root column indices
Signed-off-by: fys <fengys1996@gmail.com >
* fix: sqlness test
Signed-off-by: fys <fengys1996@gmail.com >
* chore: code style adjust
Signed-off-by: fys <fengys1996@gmail.com >
* fix: cr
Signed-off-by: fys <fengys1996@gmail.com >
* add comment and test
Signed-off-by: fys <fengys1996@gmail.com >
* minor change
Signed-off-by: fys <fengys1996@gmail.com >
* fix: unit test
Signed-off-by: fys <fengys1996@gmail.com >
---------
Signed-off-by: fys <fengys1996@gmail.com >
2026-07-27 12:04:19 +00:00
discord9
b32a1de2fd
fix(partition): avoid panic on missing route columns ( #8645 )
...
Signed-off-by: discord9 <discord9@163.com >
2026-07-27 11:52:06 +00:00
discord9
054d4046d5
fix(promql): preserve query-aligned range tail ( #8650 )
...
Align the shortened trailing evaluation bound relative to the query start so non-epoch-aligned queries retain their final valid window.
Signed-off-by: discord9 <discord9@163.com >
2026-07-27 11:23:40 +00:00
shuiyisong
b27a97ab2e
fix(servers): validate remote write native histograms ( #8654 )
...
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
2026-07-27 10:30:29 +00:00
shuiyisong
b462d5d19e
fix: honor default prefix for all metric columns ( #8640 )
...
* fix: honor default prefix for metric columns
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: cr issue
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
---------
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
2026-07-27 07:35:28 +00:00
shuiyisong
f5f5d468bb
ci: add OTLP trace ingestion regression testing ( #8631 )
...
* chore: update CI config
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: add CI
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: update CI config
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* ci: report otelgen runner diagnostics
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: add script to draw result diagram
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
---------
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
2026-07-26 15:08:27 +00:00
yimeng
cbabf8a53d
Support unquoted postgres intervalstyle ( #8637 )
...
* Support unquoted postgres intervalstyle
Signed-off-by: yimeng <1982337+yimeng@users.noreply.github.com >
* test: verify unquoted intervalstyle output
Signed-off-by: yimeng <1982337+yimeng@users.noreply.github.com >
---------
Signed-off-by: yimeng <1982337+yimeng@users.noreply.github.com >
2026-07-26 15:02:18 +00:00
shuiyisong
8d5745e66b
fix(datatypes): replicate nested list and struct vectors ( #8638 )
...
* fix(datatypes): replicate nested list and struct vectors
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: fix issues
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
---------
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
2026-07-25 08:33:49 +00:00
Weny Xu
d39f2292fa
feat(procedure): support trigger-aware procedure events ( #8549 )
...
* feat(procedure): add live event hook
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat(procedure): add event trigger metadata
Signed-off-by: WenyXu <wenymedia@gmail.com >
* fix(procedure): distinguish recovery events
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2026-07-24 09:44:33 +00:00
discord9
8afb960dda
fix(metric-engine): validate logical projection indices ( #8535 )
...
* fix(metric-engine): validate logical projection indices
Signed-off-by: discord9 <discord9@163.com >
* perf(metric-engine): avoid cloning projection names
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-07-24 08:25:09 +00:00
jeremyhi
8ab5e68d48
fix: fail closed on malformed password assignments ( #8622 )
...
* fix: fail closed on malformed password assignments
Signed-off-by: jeremyhi <fengjiachun@gmail.com >
* fix: close mixed password redaction bypass
Signed-off-by: jeremyhi <fengjiachun@gmail.com >
---------
Signed-off-by: jeremyhi <fengjiachun@gmail.com >
2026-07-24 07:51:12 +00:00
Lanqing Yang
32a6fc0915
perf(servers): optimize PromQL read conversion ( #8587 )
...
* perf(servers): optimize Prometheus remote read conversion
Signed-off-by: lyang24 <lanqingy93@gmail.com >
* perf(servers): borrow dictionary labels in remote read
Signed-off-by: lyang24 <lanqingy93@gmail.com >
---------
Signed-off-by: lyang24 <lanqingy93@gmail.com >
2026-07-24 07:43:01 +00:00
discord9
a0e6f0b4ca
fix(flow): avoid duplicate incremental planning warnings ( #8611 )
...
fix(flow): reduce duplicate incremental fallback warning
Signed-off-by: discord9 <discord9@163.com >
2026-07-24 07:40:57 +00:00
discord9
f66f99f102
fix: enforce COPY FROM row limit ( #8551 )
...
Signed-off-by: discord9 <discord9@163.com >
2026-07-24 07:02:01 +00:00
Weny Xu
82de463940
fix(meta): configure gRPC message limits ( #8616 )
...
* fix(meta): configure gRPC message limits
Signed-off-by: WenyXu <wenymedia@gmail.com >
* fix(meta): preserve follower range limits
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2026-07-23 14:02:29 +00:00
Lei, HUANG
d1ac9e2da7
fix(mito2): remove stale compaction status when next compaction is throttled ( #8618 )
...
When a compaction finishes with no pending request/DDL, on_compaction_finished
leaves the region's CompactionStatus in the map with no active compaction. If
the worker then skips schedule_next_compaction because min_compaction_interval
has not passed, the stale status is never cleaned up: all subsequent compaction
requests are swallowed by the "status exists" branch (regular waiters hang,
manual StrictWindow requests pend forever) and the region never compacts again
until restart.
Add CompactionScheduler::remove_inactive_status() and call it from
handle_compaction_finished when the interval gate skips scheduling the next
compaction, restoring the invariant that a status in the map always has an
active compaction.
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
2026-07-23 12:03:11 +00:00
Ning Sun
52ba89bb10
feat: invoke gc hook for offline region cleanup ( #8613 )
...
* feat: invoke gc hook for offline cleanup
* chore: doc change according to review request
2026-07-23 11:55:37 +00:00
fys
837b701e68
fix(json2): encode deeply nested values as jsonb ( #8612 )
...
* fix(json2): encode deeply nested values as jsonb
Signed-off-by: fys <fengys1996@gmail.com >
* add more sqlness
Signed-off-by: fys <fengys1996@gmail.com >
* some changes
Signed-off-by: fys <fengys1996@gmail.com >
* fix(json2): limit type hint path depth
Signed-off-by: fys <fengys1996@gmail.com >
---------
Signed-off-by: fys <fengys1996@gmail.com >
2026-07-23 10:29:31 +00:00
Yingwen
bfd7abb0b8
feat(mito): add candidate series scanner ( #8586 )
...
* feat(mito): add candidate series scanner
Signed-off-by: evenyag <realevenyag@gmail.com >
* refactor(mito): exclude other ranges from candidate scan
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat(mito): bench series candidate scan
Signed-off-by: evenyag <realevenyag@gmail.com >
* refactor(mito): clean up series candidate scanner
Signed-off-by: evenyag <realevenyag@gmail.com >
* refactor(mito): improve candidate series scan
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix(mito2): guard primary-key-only SST reads
Signed-off-by: evenyag <realevenyag@gmail.com >
* docs(mito2): clarify candidate scanner invariants
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix(mito2): compat primary-key-only reads
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: evenyag <realevenyag@gmail.com >
2026-07-23 07:08:03 +00:00
raphaelroshan
e19df8960e
fix: prevent credential leaks in sanitize_connection_string ( #8539 )
...
Parse PostgreSQL DSNs (URL or libpq keyword) with tokio_postgres::Config —
the backend's own parser — and log its Debug, which redacts the password.
This matches the backend grammar exactly (multi-host URIs, backslash
escapes, any Unicode whitespace, percent-encoded query keys, and '&'/';'/
'://' inside values) rather than approximating it by hand. Other URLs are
redacted via the url crate; a best-effort keyword fallback covers inputs
neither parser accepts.
Signed-off-by: raphaelroshan <raphaelroshan@gmail.com >
2026-07-23 07:05:34 +00:00
discord9
45fc51ebd2
fix: demote expected remote dynamic filter misses ( #8574 )
...
Signed-off-by: discord9 <discord9@163.com >
2026-07-23 04:39:56 +00:00
Yingwen
9b579c7618
feat: make parquet row group size configurable ( #8446 )
...
* feat: make parquet row group size configurable via max_row_group_row_count region option
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: split inverted index segments across row group boundaries
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: verify max_row_group_row_count region option
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: update row group size sqlness result
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix(mito2): use parquet row group size for index rebuild
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix: update query perf fixture indexer builder
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix(mito2): clamp index selection to parquet rows
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: support altering parquet row group size
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix(mito2): handle idempotent append mode in mixed alters
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix(mito2): stage mixed region option alters atomically
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix(mito2): ignore inverted indexes with mismatched row counts
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: evenyag <realevenyag@gmail.com >
2026-07-23 03:56:10 +00:00
shuiyisong
d9122ece3c
perf: optimize OTLP trace ingestion ( #8604 )
...
perf: optimize trace ingestion
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
2026-07-22 13:16:19 +00:00
Lei, HUANG
c8f65c7b99
feat: update flow windows after metric batch flush ( #8544 )
...
* feat: update flow windows after metric batch flush
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* refactor: move batch rows into flow notifier
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* fix: preserve timestamp index in metric batches
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* fix: avoid blocking flow notification lookups
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* fix: add context to timestamp extraction logs
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* fix: include peer in flow notification errors
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* feat: compact flow notifications with time ranges
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* fix: bound pending flow notification queue
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* refactor: send raw timestamps in flow notifications
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* test: update config API snapshot
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
---------
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
2026-07-22 13:09:30 +00:00
LFC
eddedff769
fix(json2): treat empty object as null when insert ( #8602 )
...
* fix(json2): treat empty object as null when insert
Signed-off-by: luofucong <luofc@foxmail.com >
* fix ci
Signed-off-by: luofucong <luofc@foxmail.com >
---------
Signed-off-by: luofucong <luofc@foxmail.com >
2026-07-22 13:09:02 +00:00
f107f92688
fix(query): harden range time conversion ( #8515 )
...
* fix(query): harden range time conversion
Signed-off-by: discord9 <discord9@163.com >
* Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
---------
Signed-off-by: discord9 <discord9@163.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-07-22 11:57:04 +00:00
discord9
3155d49f84
fix: convert literals in joins and subqueries ( #8501 )
...
* fix: convert literals in joins and subqueries
Signed-off-by: discord9 <discord9@163.com >
* fix: preserve semi joins with duplicate fields
Signed-off-by: discord9 <discord9@163.com >
* test: update limit error after subquery conversion
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-07-22 10:48:26 +00:00
discord9
f65e83fe39
fix(pipeline)!: check integer narrowing ( #8589 )
...
fix(pipeline): check integer narrowing
Signed-off-by: discord9 <discord9@163.com >
2026-07-22 10:43:38 +00:00
discord9
8b47fd53bd
fix: qualify scalar-subquery tables in persisted views ( #8581 )
...
fix(query): traverse scalar subqueries in views
Signed-off-by: discord9 <discord9@163.com >
2026-07-22 10:43:24 +00:00
discord9
4c5be47400
fix(flow): downgrade disabled incremental checkpoint log ( #8572 )
...
Signed-off-by: discord9 <discord9@163.com >
2026-07-22 10:41:09 +00:00
discord9 and Lei, HUANG
0564269426
fix: bind Prom remote read schema per query ( #8591 )
...
Signed-off-by: discord9 <discord9@163.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2026-07-22 10:14:39 +00:00
fys
4d61471cc8
feat(json2): support JSON2 nested path fallback reads ( #8540 )
...
* feat: add nested read strategy for variant parent fallback
Signed-off-by: fys <fengys1996@gmail.com >
* refactor: drop nested fallback metadata from projection plan
Signed-off-by: fys <fengys1996@gmail.com >
* refactor: simplify nested parquet fallback planning
Signed-off-by: fys <fengys1996@gmail.com >
* add docs
Signed-off-by: fys <fengys1996@gmail.com >
* add Json2FallbackPlan
Signed-off-by: fys <fengys1996@gmail.com >
* add Json2FallbackDecoder
Signed-off-by: fys <fengys1996@gmail.com >
* test: add json2 nested fallback sqlness coverage
Signed-off-by: fys <fengys1996@gmail.com >
* add more sqlness test about json2 nested read
Signed-off-by: fys <fengys1996@gmail.com >
* refactor: split parquet reader nested stream helpers
Signed-off-by: fys <fengys1996@gmail.com >
* cache somethins in hot path
Signed-off-by: fys <fengys1996@gmail.com >
* chore: refine code
Signed-off-by: fys <fengys1996@gmail.com >
* minor change
Signed-off-by: fys <fengys1996@gmail.com >
* feat(mito2): align nested JSON2 parquet schemas
Signed-off-by: fys <fengys1996@gmail.com >
* refactor(mito2): default nested JSON reads to fallback
Signed-off-by: fys <fengys1996@gmail.com >
* chore: revert some unnecessary changes
Signed-off-by: fys <fengys1996@gmail.com >
* disallow JSON2 root fallback in parquet projection
Signed-off-by: fys <fengys1996@gmail.com >
* document JSON2 fallback root guard
* fix(json2): support variant-to-struct schema alignment
* refactor: simplify nested JSON schema alignment
* fix: cr
* fix: cr
* chore: add comment for null_on_json_type_mismatch
---------
Signed-off-by: fys <fengys1996@gmail.com >
2026-07-22 09:42:26 +00:00
Lei, HUANG
036db3d1ec
fix: ignore dropping marker during GC ( #8588 )
...
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
2026-07-22 09:17:26 +00:00
discord9
9f5a11e82a
fix(flow): lower routine batching messages to debug ( #8592 )
...
fix(flow): reduce expected batching log noise
Signed-off-by: discord9 <discord9@163.com >
2026-07-22 08:46:42 +00:00
8843dc9104
fix: stabilize remote analyze stage ordering ( #8584 )
...
* fix: stabilize remote analyze stage ordering
Signed-off-by: discord9 <discord9@163.com >
* Update src/query/src/dist_plan/merge_scan.rs
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
---------
Signed-off-by: discord9 <discord9@163.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-07-22 15:57:19 +08:00
discord9
4a0dd8f9bc
fix(query): preserve bare plan names in analyze json ( #8519 )
...
Signed-off-by: discord9 <discord9@163.com >
2026-07-22 03:33:19 +00:00
Ning Sun
d9b58edbb0
feat: add a region hook for gc cleanup ( #8547 )
...
* feat: add a region hook for gc cleanup
* chore: more tests and review fix
* fix: address review comments
* fix: address review comments
2026-07-22 03:27:04 +00:00
fys
598a412fbb
feat: add mysql object store backend ( #8560 )
...
* feat: add mysql object store backend
Signed-off-by: fys <fengys1996@gmail.com >
* fix: code review
Signed-off-by: fys <fengys1996@gmail.com >
* add feature guard
---------
Signed-off-by: fys <fengys1996@gmail.com >
2026-07-21 13:53:27 +00:00
Lei, HUANG
ed8a4990fe
feat(flow): handle time_ranges in DirtyWindowRequest ( #8582 )
...
* feat(flow): handle time_ranges in DirtyWindowRequest
Bump greptime-proto to include the new `time_ranges` field on
DirtyWindowRequest (GreptimeTeam/greptime-proto#330 ) and mark the
corresponding aligned time windows as dirty in the batching engine,
in addition to the existing per-timestamp dirty marking.
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* style(flow): fix doc comment spacing in align_time_window
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* test(flow): cover time_ranges in handle_mark_dirty_time_window
Verify a valid [start_inclusive, end_exclusive) range is aligned to
time window boundaries and stored with an explicit end, and that empty
or reversed ranges are skipped.
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* fix(flow): union merged dirty windows with the larger end
Merging a bounded dirty range with a window contained in it (e.g.
[0s, 15s) with nested [5s, 10s), or an unbounded dirty window inside a
bounded range) previously assigned the contained window's upper bound,
shrinking the merged window and permanently dropping the tail range
from re-computation. Keep max(prev_upper, cur_upper) instead.
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* fix(flow): clip bounded dirty ranges at the expire bound
merge_dirty_time_windows dropped every window whose start is before
expire_lower_bound, so a bounded dirty range crossing the bound (e.g.
[0s, 15s) with expire 10s) lost its still-live suffix [10s, 15s). Now
bounded ranges are dropped only when their end is at/before the expire
bound, and crossing ranges are clipped to the bound (which the caller
aligns to the time window boundary). Unbounded windows keep the
existing start-based behavior.
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* fix(flow): fall back to full dirty on dirty-window alignment failure
An eval/alignment error previously aborted the per-task dirty-marking
closure, losing every dirty timestamp and range accumulated for that
task, while the RPC still returned Ok so the producer would not retry.
On alignment failure now log a warning and mark the whole task dirty
(set_dirty) instead, so the affected data is conservatively
recomputed.
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* style(flow): apply rustfmt to new dirty-window merge tests
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* test(flow): cover time index units in dirty window marking
Document that DirtyWindowRequest timestamps/time_ranges are bare i64s
interpreted in the source table's time index native unit, and add a
test expressing the same [3s, 11s) range in second/millisecond/
microsecond/nanosecond units across four tables, asserting all align
to the same dirty window [0s, 15s).
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* chore: bump greptime-proto to 8127f179
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* fix(flow): return dirty-window alignment errors to callers
Do not acknowledge a DirtyWindowRequest when a time-windowed task cannot
align a timestamp or range. The previous conservative fallback used
set_dirty(), but that marker only represents a single epoch-start window
for time-windowed flows, so it could still lose the affected dirty
range. Propagate task errors through the join loop instead so producers
can retry.
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
* chore: update proto to commits on main
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
---------
Signed-off-by: Lei, HUANG <ratuthomm@gmail.com >
2026-07-21 12:56:01 +00:00
shuiyisong
d4d9e199e7
fix: enforce table-aware permissions across query and ingest protocols ( #8552 )
...
* feat: extend permission req check
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: cr issue
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: cr issue
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: preserve Prometheus query and write semantics
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: cr issue
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: cr issue
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: cr issue
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: cr issue
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: cr issue
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
---------
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
2026-07-21 12:15:53 +00:00
shuiyisong
5065dfcf2f
feat: grant creators access to newly created databases ( #8566 )
...
* feat: implement auto database acl after create database
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: add comments
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: timeout conversion:
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: remove register loaders parameter in ddl_manager initialization
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
---------
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
2026-07-21 11:29:49 +00:00
Yingwen
50bf494578
feat(mito2): expose adaptive batch APIs ( #8578 )
...
* chore: change tag check method
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat(mito2): expose adaptive batch APIs
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix(mito2): guard zero merge batch size
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: evenyag <realevenyag@gmail.com >
2026-07-21 08:53:17 +00:00
Weny Xu
e7c5767d52
fix: preserve leader cache configuration and record cache hits ( #8576 )
...
Signed-off-by: WenyXu <wenymedia@gmail.com >
2026-07-21 08:52:38 +00:00
discord9
56addd0623
fix: stream remote analyze metrics while pending ( #8405 )
...
* fix: stream remote analyze metrics while pending
Signed-off-by: discord9 <discord9@163.com >
* test: verify flight metrics preserve pending batch
Signed-off-by: discord9 <discord9@163.com >
* fix: preserve direct SST perf queries in plans
Signed-off-by: discord9 <discord9@163.com >
* fix: bind flight metrics capability to query
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-07-21 04:17:50 +00:00