v1.7.02026-11-17
本次更新围绕窗口函数展开:实验性支持 PERCENTRANK、CUMEDIST,以及 COUNT、SUM、AVG、MIN、MAX 作为窗口聚合;新增 IGNORE NULLS 对 LAG、LEAD 的支持,并修正了 peer group 边界计算错误。规划器新增 INVALIDWINDOWFUNCTION 错误码,窗口缺 ORDER BY 时给出警告(查询仍可执行),DISTINCT 与窗口 ORDER BY 混用、窗口定义中出现外部引用或子查询则直接报错。
修复方面:OperatorRewriter 此前会跳过 RelWindow、RexMap 等节点,现在会完整遍历,依赖旧行为的重写器需自行覆写;SqlDialect 丢失窗口 PARTITION BY/ORDER BY 的问题已解决;SUM 对静态类型 BIGINT 参数报错、VARIANT 路径索引恒失败(Ion 列表现按数组索引,依赖 MISSING 的查询结果会变)也一并修复。宽松模式下排序键出错不再中断查询,改为 MISSING。
注意:直接实现 Operators 的 Java 类需补上 error(PType, PError) 和 window(...) 方法,Kotlin 实现不受影响。
v1.6.12026-09-04
partiql-lang-kotlin 0.15.0 新增了对非递归 WITH 列表元素(CTE)的支持:现在可以在 CTE 中引用同一层前面已定义的兄弟元素,此前这类引用会被拒绝。相关讨论见 #1868。其余部分无实质变更。
v1.6.02026-09-02
v1.6.0 为 PartiQL 引入了显式的例程注册机制:新增 RoutineProvider、MemRoutineProvider、RoutineBinding 与 RoutineCatalog 等 API,标量与聚合例程可精确注册并按目录本地查找。同时发布独立构件 partiql-function-extensions,内置 contains、dateadd、utcnow、tounixtime、pow、hextobigint 等可执行函数。例程解析也升级为命名空间感知,支持会话路径配置、限定目录名、歧义诊断,并以规范化的 RoutineRef 作为计划标识,便于缓存与比对。
v1.5.12026-08-19
Added
- Added the REPLACE and SPLIT string functions
- Added CHAR and VARCHAR support to the built-in text functions: BITLENGTH, CHARLENGTH, OCTET_LENGTH, POSITION, SUBSTRING, TRIM (and its LEADING/TRAILING/character-set variants), LOWER, UPPER, and ||.
- Added Ion timestamp support to IonDatumReader.
Changed
- VARCHAR(n) values are no longer space-padded to their declared length; a value shorter than n keeps its own length (only CHAR(n) pads). Values longer than n are still truncated.
- The result length of the "shrink-only" text functions (TRIM and its LEADING/TRAILING/character-set variants, SUBSTRING, and SPLIT elements) now preserves the input's declared length, since these functions can only remove characters: CHAR(n)/VARCHAR(n) -> VARCHAR(n), CLOB(n) -> CLOB(n).
- REPLACE now returns an unbounded result type (VARCHAR/CLOB of maximum length), because its result may be longer than the input and its length is not computable at plan time. Previously it defaulted to VARCHAR(255) and silently truncated longer results.
- || (concat) now clamps the result length of the variable-length result types (VARCHAR/CLOB) to the maximum length instead of raising an overflow error when L1 + L2 exceeds it; fixed-length CHAR results still raise. This also lets CLOB || CLOB and concatenation of an unbounded function result (such as REPLACE) resolve rather than fail.
Deprecated
Fixed
- Fixed NullPointerException during AST traversal by guarding nullable child fields in getChildren() for WindowFunctionType.Lead/.Lag, AttributeConstraint, and TableConstraint.Unique.
- Fixed writing CLOB values in the CLI text-pretty output as CAST('<value>' AS CLOB) until CLOB literal is defined.
- Fixed the built-in text functions failing to resolve (returning MISSING, with an Undefined function warning) when an argument is an untyped NULL/MISSING, instead of propagating NULL/MISSING. Affects BITLENGTH, CHARLENGTH, OCTET_LENGTH, POSITION, SUBSTRING, TRIM (and its LEADING/TRAILING/character-set variants), LOWER, UPPER, LIKE, LIKE ... ESCAPE ..., and ||.
- Fixed LIKE and LIKE ... ESCAPE ... rejecting CLOB arguments.
- Fixed || throwing Operation "getString" is not valid for type CLOB(n) when either operand is a CLOB.
- Fixed decimal division precision and scale reduction when computed precision exceeds 38, preventing invalid result types and missing projected fields
Removed
Security
Contributors
Thank you to all who have contributed!
- @xd1313113
- @XuechunHHH
- @Guflly
List of commits: https://github.com/partiql/partiql-lang-kotlin/compare/v1.5.0...v1.5.1
v1.5.02026-07-02
PartiQL Kotlin v1.5.0
We're excited to announce that PartiQL v1.5.0 introduces first-class support for the MAP type. A MAP is an parameterized and unordered collection of entries where each entry associates a key of type K with a value of type V. Unlike Struct, a MAP<K, V> holds key-value pairs with uniformly typed keys and values.
RFC: https://github.com/partiql/partiql-lang/pull/104/changes#diff-b4c85ef02e6da4491d1c40425a39177d6c3dc9e2f4847501a42463dca8365cf8
What's New:
Type System
- MAP<K, V> as a first-class PartiQL type with parameterized key and value types
Construction & Access
-- MAP literal syntax
MAP { 'name': 'Alice', 'age': 30 }
-- Bracket lookup
MAP { 'a': 1, 'b': 2 }['a'] -- 1
MAP { 1: 'one', 2: 'two' }[1] -- 'one'
-- Implicit key casting (integer key looked up with decimal)
MAP { 1: 'one', 2: 'two' }[1.0] -- 'one'
Built-in Functions
- map_keys(m) — returns a bag of all keys
- map_values(m) — returns a bag of all values
- map_entries(m) — returns a bag of key-value pair structs
- mapcontainskey(m, k) — returns true if the key exists
- map_get(m, k) — returns the value for a given key
Operations
- UNPIVOT — iterate over MAP entries
- CAST — convert between MAP and STRUCT
Added
- Added SqlDialect support for MAP expression and type serialization
- Added MAP functions: mapcontainskey, mapget, mapkeys, mapvalues, mapentries, size, exists, cardinality and IS MAP<K, V>
- Added implicit cast for MAP lookup key type if needed for bracket notation, mapcontainskey function and map_get function.
- Added MAP type operation support: CAST and UNPIVOT
- Added MAP` type parsing in DatumIonReader for CLI and Conformance tests
- Added Support for correlated Join.
Changed
Deprecated
Fixed
- Fixed NullPointerException in RelOpUnpivot when UNPIVOT encounters a typed null value
- Fixed SELECT * with UNPIVOT to use named aliases instead of positional names
Removed
Security
Contributors
Thank you to all who have contributed!
- @xd1313113
- @yliuuuu
List of commits: https://github.com/partiql/partiql-lang-kotlin/compare/v1.4.0...v.1.5.0
v1.4.02026-06-06
PartiQL Kotlin v1.4.0
We're excited to announce PartiQL Kotlin v1.4.0, which introduces thread-safe, cacheable execution plans — enabling safe concurrent query execution from a single compiled plan.
Highlights
Thread-Safe Execution Plans
Plans compiled via PartiQLCompiler.compile(plan, mode) now support concurrent execution across threads. The new PartiQLVM.execute() API builds a fresh operator tree per invocation with no shared mutable state — compile once, execute everywhere.
Key additions:
- PartiQLVM and ExecutionPlan for thread-safe query execution
- ExecutionCatalog interface for providing table data at execution time via integer-referenced lookups
- SymbolTable mapping plan-assigned IDs to catalog/table names
- PartiQLPlanner.builder().useRefs() to opt into ref-based table nodes
CLI Formatting (partiql fmt)
A new fmt subcommand pretty-prints PartiQL statements with width-aware formatting — useful for standardizing query style across a codebase.
Experimental MAP Type Support
Initial experimental interfaces to support the MAP data type have been added as an experimental feature. This work is slated to result in full support in a future minor version release.
Migration
The following APIs are now deprecated in favor of the thread-safe alternatives:
- Statement → use PartiQLVM.execute() with ExecutionPlan
- PartiQLCompiler.prepare() → use compile() + PartiQLVM
- RexTable → use RexTableRef with useRefs()
- Strategy.apply() → override applyFactory()
What's Changed
* feat: add partiql fmt subcommand by @XuechunHHH in https://github.com/partiql/partiql-lang-kotlin/pull/1917
* Add MAP type api in PartiQL by @xd1313113 in https://github.com/partiql/partiql-lang-kotlin/pull/1916
* feat: thread-safe cacheable execution plans by @johnedquinn in https://github.com/partiql/partiql-lang-kotlin/pull/1924
Full Changelog: https://github.com/partiql/partiql-lang-kotlin/compare/v1.3.14...v1.4.0
v1.3.142026-05-27
What's Changed
Added
- Re-applied thread interruption support for the V1 evaluation engine, added PError.INTERRUPTED error code for identifying query cancellation via Thread.interrupt()
Changed
Deprecated
Fixed
Removed
Security
Contributors
Thank you to all who have contributed!
- @AugustineFu
List of commits: https://github.com/partiql/partiql-lang-kotlin/compare/v1.3.13...v1.3.14
v1.3.132026-05-09
What's Changed
Added
Changed
- Reverted Add interruption check for V1 due to wrong exception handling
Deprecated
Fixed
Removed
Security
Contributors
Thank you to all who have contributed!
- @xd1313113
Full Changelog: https://github.com/partiql/partiql-lang-kotlin/compare/v1.3.12...v1.3.13
v1.3.122026-05-06
What's Changed
Added
Changed
- Route NULLIF and COALESCE to standard function call when parsing;
this change enables SLL parsing, allowing us to see significant performance improvement when parsing complicated NULLIF/COALESCE call.
- Added thread interruption support to the V1 evaluation engine, planner, and compiler for cooperative query cancellation
Deprecated
Fixed
Removed
Security
Contributors
Thank you to all who have contributed!
- @yliuuuu
- @AugustineFu
Full Changelog: https://github.com/partiql/partiql-lang-kotlin/compare/v1.3.11...v1.3.12
v1.3.112026-04-22
What's Changed
Added
- Implemented --dir CLI option to load a directory of data files (.ion, .json, .csv, .tsv, .pql, .parquet) as tables with lazy loading
Changed
Deprecated
Fixed
- Fixed path expression on missing field causing errors in permissive mode instead of returning MISSING
- Fixed extraneous struct materialization in plan when UNION/INTERSECT/EXCEPT requires type coercion
- Fixed when WITH statement is present, the relproject is omitted in OperatorRewriter
- Fixed path expression on missing field
- Fixed parameter type mismatch for BETWEEN AND statement
Removed
Security
Contributors
Thank you to all who have contributed!
- @austnwil
- @AugustineFu
- @xd1313113
- @johnedquinn
Full Changelog: https://github.com/partiql/partiql-lang-kotlin/compare/v1.3.10...v1.3.11