v5.0.0 (2026-10-05)
<dependency>
<groupId>net.hasor</groupId>
<artifactId>dataql-engine</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>net.hasor</groupId>
<artifactId>dataql-sqlproc</artifactId>
<version>5.0.0</version>
</dependency>
5.0.0 redesigns the engine and extension interfaces and reimplements the SQL executor.
Changes
DataQL engine
- Extracted
dataql-engine, with queries created throughHostConfiguration → QueryManager → QueryBuilder → Query, supporting standalone use and JSR-223. - Reorganized Finder, resource loading, application object imports, function libraries, and external fragments. SPI discovers extensions; host attachments provide shared services.
- Unified UDF arguments as
UdfParams.setHint(String, Object)passes object references, andCustomizeScopeprovides custom scopes. - Moved general function libraries into the engine. The SQL executor supplies the SQL and transaction functions.
- Corrected operator precedence and short-circuit evaluation, comments, negative numbers, scientific notation, string escaping, fragment arguments, and nested function exits.
- Fixed Hint propagation, query cloning, Lambda scope restoration, collection indexing and callbacks, string functions, and HMAC algorithm selection.
- Fixed character, enum, and numeric-to-boolean conversions, missing object fields, and numeric width Hint defaults.
- Added
BinaryModelfor binary data in scripts.
SQL executor
- Introduced the independent
dataql-sqlprocmodule, reimplemented using dbVisitor dynamic SQL, type handling, and dialect capabilities. Supports SQL, XML tags, batch execution, stored procedures, multiple results, and pagination. ConnectionProvidersupplies default or named data source connections.TransactionalProvideradds transaction support, including propagation, isolation, and transaction functions.- Added extension points for SQL execution interceptors, shared fragments, rules, type handlers, and pagination dialects.
- Expanded positional and named parameters, text substitution, rule arguments, and parameter options. Added CASE/WHEN/ELSE and PAIRS rules, and fixed nested expressions, quotes, commas, and parameter marker escaping.
- Added dialects for Hive, ClickHouse, MongoDB, Elasticsearch, and Milvus, and fixed pagination metadata synchronization and repeated queries. Non-relational sources require the corresponding dbVisitor JDBC driver.
- Adapted type handling to the DataQL data model, including list-to-JDBC-array binding and JSON, binary, and vector conversion. Fixed CHAR/NCHAR truncation, result type detection, and time zone offset handling.
- Simplified
TypeHandler, retaining explicit registration and parameter-level configuration while removing inapplicable Java mappings and handlers. Fixed XML trim handling and SQL Hint defaults.
Build, examples, and documentation
The engine and SQL executor ship as separate modules and use Jackson for JSON. The engine uses Cobble 5.0.4 and the SQL executor uses dbVisitor 6.8.2. The SQL executor bundles and relocates OGNL. The DataQL transformation examples and the executable documentation tests cover the engine and SQL guide.
Upgrade notes
- Use the new engine and optional SQL executor modules when migrating from the legacy artifacts.
- Engine extensions: update UDF signatures to
UdfParamsand adapt Finder, fragment, and host configuration APIs. Recompile original scripts instead of reusing previously generated QIL. - SQL extensions:
TypeHandlernow usesObjectarguments and return values;AbstractTypeHandler<T>retains generics. Register handlers throughTypeHandlerRegistry.register(...); mapping annotations and thejavaTypeparameter option are removed.