Ruihang Xia
59dd418629
feat: simplify nested aggr inside count query ( #7859 )
...
* as optimizer rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* dump changes
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* perf: tighten count-count optimizer rewrite
* extend inner op set
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplify and more coverage
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove prom-non-null
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* preserve value column through pruning
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* more sqlness cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* enforce is not null before inner aggr
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* finalize
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update sqlness result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-03-26 00:08:38 +00:00
Boudewijn van Groos
ec9d57cecc
fix: nested views not working ( #7857 )
...
Signed-off-by: Boudewijn van Groos <boudewijn.vangroos@foundationzero.org >
2026-03-25 17:58:45 +00:00
discord9
30e895abbe
fix: prom cast to f64 ( #7840 )
...
* fix: cast to f64
Signed-off-by: discord9 <discord9@163.com >
* test: div case
Signed-off-by: discord9 <discord9@163.com >
* test: int test
Signed-off-by: discord9 <discord9@163.com >
* chore: sqlness update
Signed-off-by: discord9 <discord9@163.com >
* chore: test
Signed-off-by: discord9 <discord9@163.com >
* chore: update test
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-03-24 06:24:52 +00:00
dennis zhuang
223f6cfdf7
feat: supports sst_format for x-greptime-hints and database options ( #7843 )
...
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
2026-03-24 02:05:16 +00:00
Ning Sun
d14817bfa6
fix: resolve optimization issue for extended query ( #7824 )
...
* fix: resolve optimization issue for extended query
* fix: type cast from subquery
* chore: update error information in sqlness
* chore: switch to released pgwire
* refactor: remove optimize function completely
* chore: add more tests
* test: attempt to fix the fuzz issue
* fix: try to resolve the test issue
2026-03-20 03:58:39 +00:00
Ning Sun
306e8398cf
fix: correct unicode representation for jsonb_to_string ( #7810 )
...
* fix: correct unicode representation for jsonb_to_string
* refactor: correct function name and behavior
* fix: fix json_to_string and provide tests
2026-03-16 03:01:02 +00:00
discord9
3beb538aa8
fix: rm useless analyzer ( #7797 )
...
* fix: rm useless analyzer
Signed-off-by: discord9 <discord9@163.com >
* test: rm related test
Signed-off-by: discord9 <discord9@163.com >
* test: flow tql avg
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-03-12 10:53:47 +00:00
discord9
922f9cb3d6
feat: use dyn filter ( #7545 )
...
* parent b2074e3863
author discord9 <discord9@163.com > 1767869295 +0800
committer discord9 <discord9@163.com > 1772529023 +0800
feat: use dyn filter
Signed-off-by: discord9 <discord9@163.com >
not supported
Signed-off-by: discord9 <discord9@163.com >
refactor: use make_mut instead
Signed-off-by: discord9 <discord9@163.com >
refactor: rm need to clone stream ctx
Signed-off-by: discord9 <discord9@163.com >
r
Signed-off-by: discord9 <discord9@163.com >
pcr
Signed-off-by: discord9 <discord9@163.com >
test: wait for datafusion update
Signed-off-by: discord9 <discord9@163.com >
refactor: use arc swap for dyn filters
Signed-off-by: discord9 <discord9@163.com >
* test: update sqlness
Signed-off-by: discord9 <discord9@163.com >
* chore: comment out sqlness
Signed-off-by: discord9 <discord9@163.com >
* test: update sqlness
Signed-off-by: discord9 <discord9@163.com >
* test: sqlness fix
Signed-off-by: discord9 <discord9@163.com >
* refactor: predicate without option
Signed-off-by: discord9 <discord9@163.com >
* feat: print dyn filters& more tests
Signed-off-by: discord9 <discord9@163.com >
* test: sqlness vector result update
Signed-off-by: discord9 <discord9@163.com >
* chore: log
Signed-off-by: discord9 <discord9@163.com >
* test: properly redact
Signed-off-by: discord9 <discord9@163.com >
* test: better data dist for non empty dyn filter
Signed-off-by: discord9 <discord9@163.com >
* test: properly redacted
Signed-off-by: discord9 <discord9@163.com >
* chore: per review
Signed-off-by: discord9 <discord9@163.com >
* properly redact
Signed-off-by: discord9 <discord9@163.com >
* docs: explain why not do it
Signed-off-by: discord9 <discord9@163.com >
* chore: rename update to add as its more proper
Signed-off-by: discord9 <discord9@163.com >
* chore: rm no need clone
Signed-off-by: discord9 <discord9@163.com >
* docs: per review
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-03-11 03:06:24 +00:00
Ning Sun
9b1288f66a
feat: add function rewrite rule for json_get with cast ( #7631 )
...
* feat: initial function rewriter for json_get
* feat: make sure rewrite rule is applied
* feat: keep analyzer's default rules
* feat: implement rewriter for arrow_cast
* test: add unit test for tht rewriter
* chore: format
* refactor: extract some more functions
* Apply suggestion from @waynexia
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2026-03-09 02:39:48 +00:00
discord9
d1151b665b
feat: flow tql cte ( #7702 )
...
* feat: flow tql cte
Signed-off-by: discord9 <discord9@163.com >
* fix: creating flow TQL CTE source tables lose cte part in query
Signed-off-by: discord9 <discord9@163.com >
* test: update sqlness result
Signed-off-by: discord9 <discord9@163.com >
* chore
Signed-off-by: discord9 <discord9@163.com >
* fix: properly canonicalize ident
Signed-off-by: discord9 <discord9@163.com >
* feat: even stricter check
Signed-off-by: discord9 <discord9@163.com >
* chore: sqlness update
Signed-off-by: discord9 <discord9@163.com >
* chore: after rebase fix
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-03-06 03:36:42 +00:00
Ruihang Xia
39140058d0
feat: adapt new name of holt winters fn ( #7700 )
...
* feat: adapt new name of holt winters fn
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update parser
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* alias old fn name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-03-04 23:32:37 +00:00
LFC
b2074e3863
chore: upgrade DataFusion family, again ( #7578 )
...
* chore: upgrade DataFusion family
Signed-off-by: luofucong <luofc@foxmail.com >
* chore: switch to released version of datafusion-pg-catalog
---------
Signed-off-by: luofucong <luofc@foxmail.com >
Co-authored-by: Ning Sun <sunning@greptime.com >
Co-authored-by: Ning Sun <sunng@protonmail.com >
2026-03-03 07:36:39 +00:00
Ning Sun
0f6b8ff815
feat: implement postgres copy to stdout ( #7709 )
...
* feat: update pgwire
* feat: add special parser for copy to stdout
* feat: implement copy to stdout
* fix: improve code
* fix: expect optional with
* fix: lint
* feat: correct encoder using and refactor
* chore: fmt
* refactor: update api
* chore: use released dependencies
* fix: update datafusion-pg-catalog to support schema query
* fix: support for double quoted identifier
* feat: update datafusion-postgres to support schema.table
* refactor: use pgsqlparser container
* refactor: remove unquote which is no longer needed
* fix: correctly handle invalid query
* fix: correct handle null in nano timestamp
* test: add a new test for additional close )
2026-02-26 03:41:33 +00:00
dennis zhuang
6d998c043e
feat: implements anomaly_score_iqr, anomaly_score_mad etc. ( #7681 )
...
* feat: implements anomaly_score_iqr, anomaly_score_mad and anomaly_score_zscore functions
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: forgot result file
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* feat: return NaN and zero for scale=0
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: comment
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: signature, cast and degenerate case
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: tweak comment
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: format
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* feat: update min samples threshold
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: missing closing quote
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: mock engine
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: oudated comment and test name
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: todo
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: apply suggestions
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
---------
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-02-25 07:01:22 +00:00
Yingwen
42ad842434
feat: support changing table's append_mode to true ( #7669 )
...
* feat: support alter append_mode to true
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: add sqlness test
Signed-off-by: evenyag <realevenyag@gmail.com >
* chore: remove comment
Signed-off-by: evenyag <realevenyag@gmail.com >
* chore: fix compiler errors
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix: clear merge mode in mito when setting append mode
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix: sanitize open request and options with both append/merge mode
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: clear merge mode when append mode is true
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: evenyag <realevenyag@gmail.com >
2026-02-25 04:11:23 +00:00
Ning Sun
bcfbd01582
fix: use full DDL of flow in information_schema.flows.flow_definition ( #7704 )
...
* fix: use full DDL of flow in information_schema.flows.flow_definition
* fix: add schema name in sink table
2026-02-12 00:09:40 +00:00
Ruihang Xia
77013d9085
feat: report flow stats from streaming and batching engines ( #7701 )
...
* fix: report flow stats from streaming and batching engines
* handle restart report handler
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename fn name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-02-11 07:38:09 +00:00
Ruihang Xia
db46849f40
feat: track flow source tables for TQL and info schema ( #7697 )
...
* feat: track flow source tables for TQL and info schema
* handle schema matcher
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sqlness tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* cover __name__ case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-02-11 03:19:09 +00:00
fys
1aa80d9363
fix: incorrect-tql-explain result ( #7675 )
2026-02-11 02:30:15 +00:00
LFC
8c23b29725
refactor: remove the RawTableMeta and RawTableInfo to make codes more concise ( #7626 )
...
* refactor: remove the `RawTableMeta` and `RawTableInfo` to make codes more concise
Signed-off-by: luofucong <luofc@foxmail.com >
* fix ci
Signed-off-by: luofucong <luofc@foxmail.com >
* fix ci
Signed-off-by: luofucong <luofc@foxmail.com >
---------
Signed-off-by: luofucong <luofc@foxmail.com >
2026-02-10 07:10:04 +00:00
Ruihang Xia
4ac73a7e9e
feat: adapt prometheus 3.x selector and lookback behavior ( #7688 )
...
* feat: adapt prometheus 3.x selector and lookback behavior
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove commit hash from comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-02-10 04:00:45 +00:00
Ruihang Xia
a10d40e552
feat: adapt prometheus 3.x matrix selector behavior change ( #7671 )
...
feat: adapt prometheus 3.x matrix selector behavior
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-02-06 03:06:33 +00:00
dennis zhuang
8883022742
refactor(vector-index): use protobuf for metadata and align code ( #7648 )
...
* refactor(vector-index): use protobuf for metadata and introduce lifecycle traits
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: minor change
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* refactor: by suggestions
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: format
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: style
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: remove usearch from mito2
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: tweak errors
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* test: update index size in result
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: clippy
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: update proto deps
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
---------
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
2026-02-05 02:41:48 +00:00
Lin Yihai
64ac9b60e9
feat(copy_to_json): add date_format/timestamp_format/time_format for JSON format copy ( #7633 )
...
* feat(copy_to_json): add `date_format`/`timestamp_format`/`time_format` for JSON format.
Signed-off-by: Yihai Lin <yihai-lin@foxmail.com >
* Update src/common/datasource/src/file_format/json.rs
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Yihai Lin <yihai-lin@foxmail.com >
* chore: Use predefined constants as the time format.
Signed-off-by: Yihai Lin <yihai-lin@foxmail.com >
---------
Signed-off-by: Yihai Lin <yihai-lin@foxmail.com >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-02-04 13:30:41 +00:00
Ruihang Xia
26f7c12ffd
fix: drop rhs columns on promql filter join ( #7665 )
...
* fix: drop rhs columns on promql filter join
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* choose instant vector to operate
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-02-04 13:12:20 +00:00
Ruihang Xia
2dc4c294cf
feat: support group by op in promql ( #7663 )
...
* feat: support group by op in promql
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* restrict to single field table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-02-04 09:43:17 +00:00
Ruihang Xia
f9030a84c8
fix: incorrect column statistics of promql plans ( #7662 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-02-04 04:58:38 +00:00
dennis zhuang
c08f3a4472
test: adds sqlness test for vector index ( #7634 )
...
* test: adds sqlness test for vector index
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* fix: CI
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* test: redacted flat map and size
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* test: simplify the replace rules
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
* chore: update comments and tests
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
---------
Signed-off-by: Dennis Zhuang <killme2008@gmail.com >
2026-02-04 03:54:47 +00:00
Weny Xu
969a64d483
fix(copy): treat null inferred columns as Utf8 to preserve later values ( #7658 )
...
Signed-off-by: WenyXu <wenymedia@gmail.com >
2026-02-03 10:20:35 +00:00
Weny Xu
1a594f3d1b
chore: bump version rc.1 ( #7645 )
...
* chore: bump version rc.1
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: update sqlness result
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2026-02-02 02:49:31 +00:00
discord9
a6e69bc180
feat: flow last non null ( #7646 )
...
* feat: flow last non null support
Signed-off-by: discord9 <discord9@163.com >
* clippy
Signed-off-by: discord9 <discord9@163.com >
* test: report error when sink is not last non null
Signed-off-by: discord9 <discord9@163.com >
* fix: error if query column matches nothing if partial
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-01-30 12:34:33 +00:00
Ruihang Xia
65f46b6a2f
feat: ensure datanode plan's dist and ordering for tsid col ( #7614 )
...
* ensure datanode plan's dist and ordering
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add one more comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-01-26 11:36:59 +00:00
Ning Sun
079ee8615f
feat: UDF json_get with user specified return type ( #7554 )
...
* feat: add return_field_from_args
* feat: add JsonGetWithType
* port json_get_float and json_get_bool to new implementation, add
json_get with third argument accepting a scalar value for type.
* fix: lint fix
* chore: add sqlness tests
* chore: update tests
2026-01-26 09:53:45 +00:00
Ruihang Xia
2f82e7525f
fix: correct histogram result ( #7608 )
...
correct result by removing tsid
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-01-23 07:46:46 +00:00
Ruihang Xia
cc1dbd108b
perf: skip unnecessary label columns in promql query ( #7602 )
...
* feat: fully install tsid to promql planner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sqlness tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unused field
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-01-21 13:31:23 +00:00
Ruihang Xia
966ade7565
feat: use tsid on promql planner ( #7590 )
...
* expose tsid on logical table's schema and use it on planner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* detect table type on planner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplification
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* filter out internal columns
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* reset tsid flag
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-01-21 06:25:36 +00:00
discord9
aa3daf7053
fix: read filter's column ( #7579 )
...
* fix: read columns need for filter
Signed-off-by: discord9 <discord9@163.com >
* c
Signed-off-by: discord9 <discord9@163.com >
* feat: add support for explicit read columns in projection mappers
Signed-off-by: discord9 <discord9@163.com >
* test: add compatibility tests for projection mappers
Signed-off-by: discord9 <discord9@163.com >
* c
Signed-off-by: discord9 <discord9@163.com >
* fix: rename variable for clarity and improve column ID retrieval logic
Signed-off-by: discord9 <discord9@163.com >
* fix: update scan input construction to include read column IDs
Signed-off-by: discord9 <discord9@163.com >
* chore: per review
Signed-off-by: discord9 <discord9@163.com >
* test: sqlness for projection filter
Signed-off-by: discord9 <discord9@163.com >
* refactor: per review
Signed-off-by: discord9 <discord9@163.com >
* chore: more redacting
Signed-off-by: discord9 <discord9@163.com >
* chore: more redact
Signed-off-by: discord9 <discord9@163.com >
* c
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-01-20 08:19:50 +00:00
LFC
e64c31e59a
chore: upgrade DataFusion family ( #7558 )
...
* chore: upgrade DataFusion family
Signed-off-by: luofucong <luofc@foxmail.com >
* use main proto
Signed-off-by: luofucong <luofc@foxmail.com >
* fix ci
Signed-off-by: luofucong <luofc@foxmail.com >
---------
Signed-off-by: luofucong <luofc@foxmail.com >
2026-01-14 14:02:31 +00:00
Ruihang Xia
170f94fc08
feat: enable pruning for manipulate plans ( #7565 )
...
* feat: enable pruning for manipulate plans
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* apply to other plans and add sqlness case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix scalar manipulate and histogram fold for missing some columns
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* don't drop every columns
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unrelated part
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-01-14 08:32:51 +00:00
Yingwen
4b3bd7317b
feat: add per-partition convert, result cache metrics ( #7539 )
...
* fix: show convert cost in explain analyze verbose
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix: increase puffin metadata cache metric
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: add result cache hit/miss to filter metrics
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: print flat format in debug
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: update sqlness test
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: make scan cost contains part/reader build cost
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: collect divider cost
Signed-off-by: evenyag <realevenyag@gmail.com >
* refactor: remove unused field in ScannerMetrics
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: collect metadata read bytes
Signed-off-by: evenyag <realevenyag@gmail.com >
* chore: collect read metrics in get_parquet_meta_data
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: evenyag <realevenyag@gmail.com >
2026-01-13 09:17:09 +00:00
Weny Xu
567d3e66e9
feat: integrate repartition procedure into DdlManager ( #7548 )
...
* feat: add repartition procedure factory support to DdlManager
- Introduce RepartitionProcedureFactory trait for creating and registering
repartition procedures
- Implement DefaultRepartitionProcedureFactory for metasrv with full support
- Implement StandaloneRepartitionProcedureFactory for standalone (unsupported)
- Add procedure loader registration for RepartitionProcedure and
RepartitionGroupProcedure
- Add helper methods to TableMetadataAllocator for allocator access
- Add error types for repartition procedure operations
- Update DdlManager to accept and use RepartitionProcedureFactoryRef
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat: integrate repartition procedure into DdlManager
- Add submit_repartition_task() to handle repartition from alter table
- Route Repartition operations in submit_alter_table_task() to repartition factory
- Refactor: rename submit_procedure() to execute_procedure_and_wait()
- Make all DDL operations wait for completion by default
- Add submit_procedure() for fire-and-forget submissions
- Add CreateRepartitionProcedure error type
- Add placeholder Repartition handling in grpc-expr (unsupported)
- Update greptime-proto dependency
Signed-off-by: WenyXu <wenymedia@gmail.com >
* feat: implement ALTER TABLE REPARTITION procedure submission
Signed-off-by: WenyXu <wenymedia@gmail.com >
* refactor(repartition): handle central region in apply staging manifest
- Introduce ApplyStagingManifestInstructions struct to organize instructions
- Add special handling for central region when applying staging manifests
- Transition state from UpdateMetadata to RepartitionEnd after applying staging manifests
- Remove next_state() method in RepartitionStart and inline state transitions
- Improve logging and expression serialization in DDL statement executor
- Move repartition tests from standalone to distributed test suite
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: apply suggestions from CR
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: update proto
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2026-01-09 08:37:21 +00:00
discord9
63284a5081
chore: sqlness fmt ( #7551 )
...
chore
Signed-off-by: discord9 <discord9@163.com >
2026-01-09 07:18:23 +00:00
Weny Xu
aadfcd7821
feat(repartition): implement validation logic for repartition table ( #7538 )
...
* feat(repartition): implement validation logic for repartition_table
Signed-off-by: WenyXu <wenymedia@gmail.com >
* refactor: minor refactor
Signed-off-by: WenyXu <wenymedia@gmail.com >
* test: update sqlness
Signed-off-by: WenyXu <wenymedia@gmail.com >
---------
Signed-off-by: WenyXu <wenymedia@gmail.com >
2026-01-08 12:18:39 +00:00
discord9
06f9a4c80c
chore: sqlness redact time properly ( #7543 )
...
chore
Signed-off-by: discord9 <discord9@163.com >
2026-01-08 08:24:28 +00:00
Ruihang Xia
fce1687fa7
fix: incorrect timestamp index inference ( #7530 )
...
* add sqlness case, but can't reproduce
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* reproduction
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix wildcard rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sort result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-01-07 11:18:25 +00:00
Yingwen
ef6dd5b99f
fix: precise filter time index if not in projection ( #7531 )
...
* fix: precise filter time index if not in projection
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: add sqlness test
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: evenyag <realevenyag@gmail.com >
2026-01-07 11:15:34 +00:00
discord9
ac6d68aa2d
fix: simp expr recursively ( #7523 )
...
* fix: simp expr recursively
Signed-off-by: discord9 <discord9@163.com >
* test: some simple constant folding case
Signed-off-by: discord9 <discord9@163.com >
* fix: literal ts cast to UTC
Signed-off-by: discord9 <discord9@163.com >
* fix: patch merge scan batch col tz instead
Signed-off-by: discord9 <discord9@163.com >
* test: fix
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-01-07 09:22:26 +00:00
Ruihang Xia
9a4b7cbb32
feat: bump promql-parser to v0.7.1 ( #7521 )
...
* feat: bump promql-parser to v0.7.0
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update other sqlness results
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update tests/cases/standalone/common/tql/case_sensitive.result
Co-authored-by: Ning Sun <sunng@protonmail.com >
* remove escape on greptimedb side
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update to v0.7.1
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unused deps
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Ning Sun <sunng@protonmail.com >
2026-01-07 07:23:40 +00:00
Ruihang Xia
5162c1de4d
feat: repartition grammar candy ( #7518 )
...
* feat: repartition grammar candy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* align keyword
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-01-06 04:44:13 +00:00
LFC
522ca99cd6
feat: ingest jsonbench data through pipeline ( #7312 )
...
Signed-off-by: luofucong <luofc@foxmail.com >
2026-01-05 12:12:34 +00:00