jeremyhi
d6638374e9
fix: stabilize ssts sqlness datetime redaction ( #8110 )
...
* fix: stabilize ssts sqlness datetime redaction
Signed-off-by: jeremyhi <fengjiachun@gmail.com >
* fix: by AI comments
Signed-off-by: jeremyhi <fengjiachun@gmail.com >
---------
Signed-off-by: jeremyhi <fengjiachun@gmail.com >
2026-05-13 10:21:20 +00:00
QuakeWang
73c267e641
fix(mito): ignore compaction override in enum option validation ( #8094 )
...
* fix(mito): ignore compaction override in enum option validation
Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com >
* test: cover compaction override without compaction type
Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com >
* fix(mito): short-circuit enum option validation
Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com >
---------
Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com >
2026-05-12 14:20:05 +00:00
fys
7d330cc4e6
fix(mito2): schema-safe inverted index pruning ( #8089 )
...
* fix(mito2): skip inverted index on per-SST type mismatch to avoid false negatives
* restore INDEX_APPLY_MEMORY_USAGE
* fix: cr
* fix: cr
2026-05-12 09:37:11 +00:00
Ruihang Xia
9133d0464f
feat: pre-cast constants ( #7926 )
...
* init impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle no cast
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor using common-expr
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* extend matching pattern
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* more tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplification
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix zero timestamp
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: normalize sqlness partition count output
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: normalize remaining sqlness plan output
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: normalize sqlness repartition details in tql explain
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: tighten const normalization casts
* test: normalize standalone tql explain repartition output
* resolve cr comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplify
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-05-12 09:23:43 +00:00
Ruihang Xia
0d90f7407c
fix: infer time index from column meta on derived table ( #8013 )
...
* rough fix
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* reorganize
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplification
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* enhance default by infer
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* supply comments
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-05-12 08:18:46 +00:00
LFC
7a285c2890
feat: concretize json type from query ( #8081 )
...
* feat: concretize json type from query
Signed-off-by: luofucong <luofc@foxmail.com >
* resolve PR comments
Signed-off-by: luofucong <luofc@foxmail.com >
* add more tests
Signed-off-by: luofucong <luofc@foxmail.com >
---------
Signed-off-by: luofucong <luofc@foxmail.com >
2026-05-09 07:27:40 +00:00
d1873ca31d
fix(metric-engine): validate column types and require time index in verify_rows ( #8018 )
...
* fix(metric-engine): validate column types and require time index in verify_rows
The remote-write path into the metric engine previously bypassed schema
validation. When a row's time index column carried a non-timestamp
datatype (e.g. a string), the request reached mito's ValueBuilder::push
for the timestamp builder and panicked instead of surfacing a typed
error.
Cache the (column_id, data_type, semantic_type) tuple for each physical
column on PhysicalRegionState and use it in verify_rows to:
- reject columns whose datatype or semantic type disagrees with the
physical region's schema (mirrors mito's WriteRequest::check_schema)
- reject requests that omit the time index column entirely
Field columns stay optional; tag completeness needs per-logical-region
metadata that verify_rows doesn't have and is left to a follow-up.
Fixes #7990 .
Signed-off-by: BootstrapperSBL <yvanwww01@gmail.com >
* refactor(metric-engine): simplify PhysicalColumnInfo construction
- Add From<ColumnMetadata> and From<&ColumnMetadata> for PhysicalColumnInfo
so call sites can use metadata.into() instead of repeating the field list.
- Replace the four struct-literal constructions in create.rs, open.rs and
alter.rs with the conversion.
- In verify_rows, pass &col.column_name to ColumnNotFoundSnafu instead of
cloning it explicitly (snafu's context handles the conversion).
Signed-off-by: BootstrapperSBL <yvanwww01@gmail.com >
* perf(metric-engine): cache time index column name in PhysicalRegionState
verify_rows previously scanned every physical column on each row batch to
find the timestamp column. Since the time index is fixed at region
creation and never changes, stash its name on PhysicalRegionState when
the region is first registered and read it directly from there.
add_physical_columns carries a debug_assert to document the invariant
that alter never introduces a new time index.
Signed-off-by: BootstrapperSBL <yvanwww01@gmail.com >
* perf(metric-engine): borrow physical column names when building name_to_id
On the row-write path we built a HashMap<String, ColumnId> by cloning
every column name out of the physical region's cached state. The map is
scoped to the block that holds the state's read guard, so there's no
need to own the keys.
Switch the map to HashMap<&str, ColumnId> and widen RowsIter::new /
IterIndex::new to accept any key type that borrows as str. Existing
test helpers that pass HashMap<String, ColumnId> keep working through
the Borrow<str> bound.
Signed-off-by: BootstrapperSBL <yvanwww01@gmail.com >
* fix: validate metric rows against physical schema
Cache physical column metadata in the metric engine state so row validation and row modification can use the same source of truth for column IDs, data types, and semantic types.
Validate incoming metric rows against the physical schema before writes. Put requests now require the time index and the expected field column, while delete requests keep accepting primary-key-plus-timestamp payloads by skipping the field completeness check.
Pass physical column metadata directly into RowsIter instead of rebuilding a name-to-column-id map at each call site, and cover the new validation paths with tests for missing time indexes, missing fields, and duplicate field columns.
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix: do not allow adding a new field
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix: fill default value for fields
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix: fill default for nullable fields
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: BootstrapperSBL <yvanwww01@gmail.com >
Signed-off-by: evenyag <realevenyag@gmail.com >
Co-authored-by: BootstrapperSBL <yvanwww01@gmail.com >
Co-authored-by: evenyag <realevenyag@gmail.com >
2026-05-07 12:41:07 +00:00
Lei, HUANG
796aae3d9f
feat(operator): allow last_row merge mode with append mode ( #8065 )
...
* feat(operator): allow last_row merge_mode when append_mode is enabled
- Update RegionOptions::validate to allow last_row merge_mode with append_mode.
- Update fill_table_options_for_create to automatically set merge_mode to last_row when append_mode is enabled for LastNonNull table type.
- Add unit tests in mito2 and operator to verify options validation and table creation.
- Add integration test for InfluxDB write with append mode hint.
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
* fix(operator): simplify append mode options
Group `LastNonNull` auto-create options in a single append-mode branch.
Files:
- `src/operator/src/insert.rs`
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
* fix: sqlness
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
---------
Signed-off-by: Lei, HUANG <mrsatangel@gmail.com >
2026-05-07 07:21:37 +00:00
LFC
160b7e720b
feat: json expr planner ( #8066 )
...
Signed-off-by: luofucong <luofc@foxmail.com >
2026-05-07 06:44:46 +00:00
discord9
d7310244a5
chore: sqlness redact datetime ( #8058 )
...
chore: as title
Signed-off-by: discord9 <discord9@163.com >
2026-04-30 11:15:30 +00:00
discord9
d2d256909f
feat(flow): parse defer on miss src table ( #7980 )
...
* feat: parse create flow with
Signed-off-by: discord9 <discord9@163.com >
* feat: validate after parse
Signed-off-by: discord9 <discord9@163.com >
* pcr
Signed-off-by: discord9 <discord9@163.com >
* chore: sqlness
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-04-27 03:02:13 +00:00
shuiyisong and evenyag
0effc30778
chore: update the opendal to 0.56 rc2 ( #8003 )
...
* chore: update opendal version
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: update opendal version
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: fix test
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: grpc init
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: dep versions
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: remove aws-lc-rs in reqwest
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: rebase main and fix compile
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: remove unused deps
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* Revert "fix: remove aws-lc-rs in reqwest"
This reverts commit 90bfafca06f877befb36f3e54bb72fcfc4c56778.
* chore: remove aws-lc-sys from blacklist
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: fix sqlness
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: add tls deps
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: idemptent install in rds
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: test
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: use aws-lc-sys as possible
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: lint
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* fix: address comments
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
* chore: address CR issue
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix: sync opendal compat adapter with upstream
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix: address compat clippy warnings
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: shuiyisong <xixing.sys@gmail.com >
Signed-off-by: evenyag <realevenyag@gmail.com >
Co-authored-by: evenyag <realevenyag@gmail.com >
2026-04-26 09:59:48 +00:00
discord9
9fafd879ed
fix: window sort off by one precision TimeRange&better alias track ( #8019 )
...
* fix: window sort track alias&off by one precision TimeRange
Signed-off-by: discord9 <discord9@163.com >
* chore: more test
Signed-off-by: discord9 <discord9@163.com >
* refactor: clear helper
Signed-off-by: discord9 <discord9@163.com >
* dedup a bit
Signed-off-by: discord9 <discord9@163.com >
* feat: even more guard
Signed-off-by: discord9 <discord9@163.com >
* fix: case insensitive
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-04-24 13:56:51 +00:00
LFC
209880b991
feat: json2 flush ( #8011 )
...
Signed-off-by: luofucong <luofc@foxmail.com >
2026-04-23 03:03:37 +00:00
QuakeWang and dennis zhuang
e8a86a4273
feat: expose flownode addrs in information_schema flows ( #7992 )
...
* feat: expose flownode addrs in information_schema flows
Signed-off-by: QuakeWang <1677980708@qq.com >
* fix: always include flownode addrs
Signed-off-by: QuakeWang <1677980708@qq.com >
* test: split flownode_addrs sqlness cases by mode
Signed-off-by: QuakeWang <1677980708@qq.com >
* test: fix flow_tql sqlness snapshots
Signed-off-by: QuakeWang <1677980708@qq.com >
* test: fix sqlness information_schema snapshot
Signed-off-by: QuakeWang <1677980708@qq.com >
---------
Signed-off-by: QuakeWang <1677980708@qq.com >
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2026-04-22 07:06:44 +00:00
discord9
73325acfe4
fix: zh same underscore behavior ( #8002 )
...
* fix: zh same underscore behavior
Signed-off-by: discord9 <discord9@163.com >
* fix: only add token with _ from en analyzer
Signed-off-by: discord9 <discord9@163.com >
* test: neg sqlness case
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-04-22 03:21:36 +00:00
Joe Sluis
e26ce9ca32
fix: allow ipv4_num_to_string to accept valid integers ( #7994 )
...
* fix: allow ipv4_num_to_string to accept valid integers
Signed-off-by: Johannes Sluis <joesluis51@gmail.com >
* test: update sqlness result file
Signed-off-by: Johannes Sluis <joesluis51@gmail.com >
* fix: use coercible integer signature for ipv4_num_to_string
Signed-off-by: Johannes Sluis <joesluis51@gmail.com >
---------
Signed-off-by: Johannes Sluis <joesluis51@gmail.com >
2026-04-21 04:20:14 +00:00
LFC
c7427fa6d2
feat: json2 insert ( #7981 )
...
* feat: json2 insert
Signed-off-by: luofucong <luofc@foxmail.com >
* resolve PR comments
Signed-off-by: luofucong <luofc@foxmail.com >
* use main greptime-proto
Signed-off-by: luofucong <luofc@foxmail.com >
---------
Signed-off-by: luofucong <luofc@foxmail.com >
2026-04-20 09:45:32 +00:00
yxrxy
6c924efc2f
fix: remove redundant error messages in admin functions ( #7953 )
...
Closes #7938
Signed-off-by: yxrxy <yxrxytrigger@gmail.com >
2026-04-17 08:21:22 +00:00
LFC
43225a8eee
feat: introducing "JSON2" type ( #7965 )
...
Signed-off-by: luofucong <luofc@foxmail.com >
2026-04-15 03:38:01 +00:00
Ruihang Xia
3fe8a61fad
perf: join metrics tables on the tsid key whenever possible ( #7927 )
...
* feat: prefilter flat parquet scans by primary key
* perf: skip redundant series divide repartitions
* perf: optimize tsid promql join planning
* perf: preserve tsid distribution through merge scans
* perf: remove redundant tsid join repartitions
* fix multi-field join case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Revert "feat: prefilter flat parquet scans by primary key"
This reverts commit 767c3b44c8 .
* simplification
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* isolate rule into a dedicated mod
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* more sqlness cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix filter join case
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: normalize sqlness repartition input count
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: normalize sqlness partition count in promql regression
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: normalize sqlness hash partition fanout
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* simplification
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2026-04-14 19:43:58 +00:00
Yingwen
60fc455149
fix: always skip field pruning when using merge mode ( #7957 )
...
* test: add prefilter regressions for last_row null filters
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix: skip fields in all merge mode
Signed-off-by: evenyag <realevenyag@gmail.com >
* refactor: simplify pre-filter skip fields handling
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: update test
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: evenyag <realevenyag@gmail.com >
2026-04-14 11:00:52 +00:00
discord9
3750819f93
fix: match term zh ( #7952 )
...
* fix: match term zh
Signed-off-by: discord9 <discord9@163.com >
* chore: per gemini
Signed-off-by: discord9 <discord9@163.com >
* chore: revert accident change
Signed-off-by: discord9 <discord9@163.com >
* feat: unicode script han
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-04-13 13:04:11 +00:00
Yingwen
f3dbf34c74
chore: bump version to 1.0.0 ( #7935 )
...
* chore: bump version to 1.0.0
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: fix sqlness test
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: fix cluster info sqlness
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: reorder regex in cluster_info
Signed-off-by: evenyag <realevenyag@gmail.com >
* chore: fix pg catalog
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: evenyag <realevenyag@gmail.com >
2026-04-08 15:15:27 +00:00
discord9
b623cb1aa2
perf: no longer window sort when limit ( #7912 )
...
* perf: no longer window sort when limit
Signed-off-by: discord9 <discord9@163.com >
* test: confusing vector sqlness
Signed-off-by: discord9 <discord9@163.com >
* chore: redact sqlness
Signed-off-by: discord9 <discord9@163.com >
* chore: redact every thing
Signed-off-by: discord9 <discord9@163.com >
* REDACTED
Signed-off-by: discord9 <discord9@163.com >
* what
Signed-off-by: discord9 <discord9@163.com >
---------
Signed-off-by: discord9 <discord9@163.com >
2026-04-08 02:54:22 +00:00
Yingwen
233e35c0c9
feat!: switch default sst format to flat ( #7909 )
...
* feat: support alter from primary_key to flat
Signed-off-by: evenyag <realevenyag@gmail.com >
* chore: alter flat to primary_key
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: change default_experimental_flat_format to true
Signed-off-by: evenyag <realevenyag@gmail.com >
* feat: compute channel size from splitted batch size
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: add tests for split and channel size
Signed-off-by: evenyag <realevenyag@gmail.com >
* fix: always set sst_format from manifest on region open
sanitize_region_options did not set options.sst_format when the
default (PrimaryKey) matched the manifest value, leaving it as None
after reopen. This caused the alter format change to appear lost.
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: fix tests
Signed-off-by: evenyag <realevenyag@gmail.com >
* test: show create table after alteration
Signed-off-by: evenyag <realevenyag@gmail.com >
* refactor!: rename default_experimental_flat_format to default_flat_format
The flat format is no longer experimental. Remove "experimental" from
the config field name, doc comments, and all references.
Signed-off-by: evenyag <realevenyag@gmail.com >
* chore: fix clippy
Signed-off-by: evenyag <realevenyag@gmail.com >
---------
Signed-off-by: evenyag <realevenyag@gmail.com >
2026-04-03 04:14:02 +00:00
Ning Sun
08ded45c7a
feat: add common_version customization ( #7869 )
...
* feat: add product name customization
* chore: update tests
2026-03-26 10:18:06 +00:00
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 and Ruihang Xia
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
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 and Copilot
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