Repository navigation
Releases
Release v0.8.0
This major release introduces key feature enhancements and critical dependency updates to support multi-tenant MCP server deployments.
-
💥 BREAKING CHANGES
- [Core] Promote
Streamclass from io.github.jdbcx.executor to the parent package, io.github.jdbcx - [Server] access token is now signed JWT, so
acl.propertiesis not longer needed
- [Core] Promote
-
✨ New Feature
- [Core] support binary result
{{ shell(result.type=binary): echo 123 }} select * from {{ table.shell(result.type=binary): echo 123 }} - [Server] multi-tenant support
- [Core] support binary result
-
🎨 Misc
- Bump dependencies
Release v0.7.2
This is a minor release that's highly recommended for an upgrade, as it includes small enhancements and bug fixes.
-
✨ New Feature
- [Core] basic encryption support to protect sensitive information like passwords and access tokens
# Generate secret key $ docker run --rm -it jdbcx/jdbcx keygen > secret.key # Use the secret key to encrypt password for specific datasource $ docker run --rm -it -v `pwd`/secret.key:/app/.jdbcx/secret.key jdbcx/jdbcx encrypt '<password>' 'mysql1' Gm7+r5vldBu+irReosAWUosbWhNWpiYaocmspi5oeRK/tLsNH0U/zUp7jDmAqGQ= # Verify the encrypted password $ docker run --rm -it -v `pwd`/secret.key:/app/.jdbcx/secret.key jdbcx/jdbcx decrypt 'Gm7+r5vldBu+irReosAWUosbWhNWpiYaocmspi5oeRK/tLsNH0U/zUp7jDmAqGQ=' 'mysql1' <password> # Update datasource configuration to use encrypted password $ sed -i .bak 's|^\(password\)=.*|\1.encrypted=Gm7+r5vldBu+irReosAWUosbWhNWpiYaocmspi5oeRK/tLsNH0U/zUp7jDmAqGQ=|' mysql1.properties $ cat mysql1.properties ... password.encrypted=Gm7+r5vldBu+irReosAWUosbWhNWpiYaocmspi5oeRK/tLsNH0U/zUp7jDmAqGQ=
- [Server] new endpoint for inspecting database table
# inspect mytable in current database curl -v http://localhost:8080/config/mysql1/test.mytable {...} # inspect mytable in test database curl -v http://localhost:8080/config/mysql1/test.mytable {...}
- [Core] basic encryption support to protect sensitive information like passwords and access tokens
-
🐛 Bug Fix
- [Core] Fixed bug in Utils.split()
- [Driver] Fixed failure when connecting to MCP server with custom path
- [Server] Fixed issue where the driver was missing key properties (bridge server URL and token) when initiated by the bridge server
-
🎨 Misc
- Bump dependencies
Release v0.7.1
This is a patch release, and upgrading is highly recommended.
- 🐛 Bug Fix
- [Core] Fixed FileNotFound exception while writing output file
- [Server] Fixed connection leaks on query failure
Release v0.7.0
This is a feature release, and we recommend upgrading to benefit from enhanced connection management and MCP support.
-
✨ New Feature
- [Core] add
mcpextension{{ mcp(cmd=/opt/homebrew/bin/npx, args=-y @modelcontextprotocol/server-everything, target=tool) }} {{ mcp.everything(prompt=complex_prompt): {"temperature": "0.3", "style":"cool"} }} -- docker run --rm -d --name jdbcx-bridge -p8080:8080 jdbcx/jdbcx server -- JDBCX_SERVER_URL=http://localhost:8080/ DEFAULT_QUERY_TIMEOUT_SECONDS=30 uvx pydbcx-mcp --transport sse {{ mcp(url=http://localhost:8000, target=tool) }} - [Core] support glob pattern in dot notation for convenience
-- return consolidated results from ch-play and ch-altinity {{ db.ch-[ap]*: select '${_.id}' db, version() ver }} db ver ch-play 25.5.1.664 ch-altinity 25.3.3.42
- [Core] support output file
{{ db.ch-play(output.file=/tmp/a.jsonl.gz, output.file.overwritable=false): show databases }} - [Server] database server inspection now provides more information
$ docker run --rm -d --name jdbcx-bridge -p8080:8080 jdbcx/jdbcx server $ curl -v http://localhost:8080/config/db/ch-play {"type":"db","id":"ch-play","description":"The official, up-to-date ClickHouse server, provided and maintained by ClickHouse, Inc.","product":"ClickHouse 25.5.1.664","databases":[{"name":"blogs","tables":[".inner_id.f17c7b66-07a3-4775-bff4-05f7cf472fa4","click_events","countries","country_codes","events","forex","forex_2020s","forex_usd","hackernews_json","hackernews_json_v2","http_logs","metrics","noaa","noaa_codec_optimal","noaa_codec_v1","noaa_codec_v2","noaa_codec_v3","noaa_codec_v4","noaa_v2","optimized_wikistat","purchases","resorts","stations","stop_words","uk_codes","uk_price_paid_oby_town_price","uk_price_paid_with_projections","wikistat","wikistat_top"]},{"name":"default","tables":["actors","benchmark_results","benchmark_runs","cell_towers","checks","cisco_umbrella","covid","dish","dns","dns2","food_facts","github_events","hackernews","hackernews_changes_items","hackernews_changes_profiles","hackernews_history","hackernews_top","hits","lineorder","loc_stats","menu","menu_item","menu_item_denorm","menu_page","minicrawl","newswire","ontime","opensky","pypi","query_metrics_v2","rdns","recipes","repos","repos_raw","run_attributes_v1","search_clickhouse_stackoverflow","search_stackoverflow","stackoverflow","stock","tranco","trips","uk_price_paid","uk_price_paid_updater","version_history","wikistat","workflow_jobs"]},{"name":"git_clickhouse","tables":["commits","file_changes","line_changes"]},{"name":"mgbench","tables":["logs1","logs2","logs3"]},{"name":"system","tables":["asynchronous_metric_log","metric_log"]}]}
- [Core] add
-
🎨 Misc
- Bump dependencies
Release v0.6.0
This release includes new features and bug fixes. It is recommended to upgrade especially when you want to use pydbcx-mcp, a Python implementation MCP server for JDBCX.
-
💥 BREAKING CHANGES
- [Core]
exec.errornow defaults tothrowinstead ofwarn - [Core]
request.template.fileproperty has been replaced byinput.fileinwebextension
- [Core]
-
✨ New Feature
- [Core] supports underscore variable
-- same as: {{ db.my-db1: select 'db.my-db1' }} {{ db.my-db1: select '${_}.${_.id}' }}
- [Core]
dbextension now by default no longer set query timeout for ease of use - [Core] add
overrideable.paramsproperty in config to declare parameters that can be overridden in query - [Core] add
input.fileproperty in all extensions{{ db.mydb(input.file=~/1.sql) }} - [Core] add
queryextension{{ query(path=target/test-classes/test-queries/sequential/*ddl.*,input.file=omitted): omitted }} - [Core] add new data format
markdown - [Server] add new endpoints
config/<extension>,config/<extension>/<name>, anderror/<query id> - [Driver] enhance
bridgeextension to show error from server
- [Core] supports underscore variable
-
🐛 Bug Fix
- [Core] fix bug in
Utils.splitmethod
- [Core] fix bug in
-
🎨 Misc
- Bump dependencies
- Minor refactoring for consistency
Release v0.5.0
This release includes new features and bug fixes. It is recommended to upgrade if you encountered issues with previous versions or require executing complex SQL scripts for data processing.
-
💥 BREAKING CHANGES
- [Core]
NDJSONis renamed toJSON_SEQ, and nowNDJSONis same asJSONL - [Driver] CLI no longer prints rows information along with slightly changed output
- [Core]
-
✨ New Feature
- [Core]
dbextension now supports selecting preferred result-- return 1 {{ db(url=jdbc:mysql://root@localhost?allowMultiQueries=true): select 1;select 2 }} -- return 2 {{ db(url=jdbc:mysql://root@localhost?allowMultiQueries=true, result=last): select 1;select 2 }} -- return summary {{ db(url=jdbc:mysql://root@localhost?allowMultiQueries=true, result=summary): select 1;select 2 }}
- [Core] Basic support of
BSON- not fully working with ClickHouse due to custom subtype flags - [Core] Variable expression now supports default value (e.g.
${x:1}) - [Driver] CLI now supports
outputFormat,outputCompressionandoutputFile - [Driver] CLI now supports multiple queries
docker run --rm -it -e DRIVER_OPTS='-DnoProperties=true' \ jdbcx/jdbcx 'jdbcx:duckdb:' @init.sql '@script?.sql' 'select 1' 'select 2'
- [Server]
/batchendpoint is added for executing mutliple queries grouped by^--;; .*$cat << EOF > my.sql --;; group 1 select 1 --;; group 2 select 2 EOF curl --data-binary @mysql http://localhost:8080/batch
- [Server] Custom URL parameters like
codec,level, andheaderetc. are supportedselect * from {{ bridge(path=async/unique-id.parquet?codec=zstd&level=9): select * from table1 }} select * from {{ bridge(path=async/unique-id.csv?header=false): select * from table1 }}
- [Core]
-
🐛 Bug Fix
- [Core]
bridgeextension did not work properly when using dot notion - [Core] Inconsistent string operations(e.g. JSON extract, escape, replace, split, trim etc.) in all interpreters
- [Core]
nullResultSet could be returned in certain cases - [Driver] Unable to find suitable driver when there's instantiation failure
- [Core]
-
🎨 Misc
- Upgrade JDK from 17 to 21
- Bump dependencies
- Slightly increased test coverage
Release v0.4.3
This is the last 0.4 series release for improved bridge server functionality, additional data format support, and fixes for minor issues. Upgrading is highly recommended.
-
💥 BREAKING CHANGES
- [Driver] prefix
bridgeis changed totable
- [Driver] prefix
-
✨ New Feature
- [Core]
Valuesdata format is added for data loading - [Driver]
bridgeextension is added for custom bridge queryselect * from {{ bridge(path=async/unique-id.parquet?codec=zstd): select * from table1 }} -- with nested dynamic query select * from {{ bridge(path=query/unique-id.parquet?codec=zstd): {{ db.mysql2: select * from table1 \}} }}
- [Driver]
valuesprefix is added for simplicityinsert into table1 {{ values.db.mysql1: select * from mytable }} -- same as above insert into table1 {{ bridge(path=query/unique-id.values): {{ db.mysql1: select * from mytable \}} }}
- [Core]
-
🐛 Bug Fix
- [Core] Avro serialization error when handling unsigned integers
Release v0.4.2
This minor release introduces serialization support for Arrow, Avro, and Parquet formats, along with additional bug fixes. Upgrading is highly recommended.
-
💥 BREAKING CHANGES
- [Core]
ConfigManagerclass has been relocated toio.github.jdbcpackage. Additionally,FileBasedConfigManagerclass has been renamed toPropertyFileConfigManagerand relocated toio.github.jdbc.config - [Core]
TimeValueandDateTimeValueconversions to numbers now take precision and scale into count
- [Core]
-
✨ New Feature
- [Core] Serialization support for the following new data formats - minimized dependencies are packed in docker image
- Arrow (File and Stream)
- Avro (with or without Binary/Json encoder)
- Parquet
- [Driver] Customized format and compression for DuckDB and ClickHouse
- [Core] Serialization support for the following new data formats - minimized dependencies are packed in docker image
-
🐛 Bug Fix
- [Driver] Stack overflow exception caused by cyclic query
- [Driver] Extra
\nwhen convertingResultSettoString
-
🎨 Misc
- Added more tests and more databases for testing
- Cleaned up code for consistency and reduced overhead in runtime
Release v0.4.1
This minor release fixed a few issues in both driver and bridge server. It's highly recommended to ugprade.
-
💥 BREAKING CHANGES
- [Core]
Fieldconstructor now requirescolumnType, which is native data type defined in database - [Core] Mappings from native database type to JDBC type are changed (mostly related to precision and scale)
- [Core]
-
✨ New Feature
- [Server]
/metricsendpoint for monitoring
- [Server]
-
🐛 Bug Fix
- [Driver] ResultSet closed error when issue
select {{ script: [1,2] }}- #42 - [Driver] Stack overflow error when issue query against
jdbcx:shell - [Driver] Error when use named connection to access DuckDB
- [Server] DB connection may not be evicted in async query mode
- [Driver] ResultSet closed error when issue
Release v0.4.0
This major release primarily introduces bridge server for federated queries.

-
💥 BREAKING CHANGES
- API changes in
FieldandResultto better support bridge server - API changes mainly in
QueryParserto support customizable variable tag
- API changes in
-
✨ New Feature
- Customizable variable tags
-- default: jdbcx.tag=BRACE {%var:a=1%}select {{script:1+1}} as ${a} -- jdbcx.tag=ANGLE_BRACKET <%var:a=1%>select <<script:1+1>> as $<a> -- jdbcx.tag=SQUARE_BRACKET [%var:a=1%]select [[script:1+1]] as $[a]
ValueFactoryand additionalValueclasses are implemented to manage values and handle type conversion- Compression support added for brotli, bzip2, deflate, gzip, lz4, snappy, xz, and zstd
- Serialization support added for CSV, TSV, JSONL, and NDJSON
- Added
ResultMapperfor mappingFieldto native database types and generating remote table expressions - Added bridge server with basic authentication and asynchronous query support
-- on DuckDB, the following query will be rewritten to: -- select * from read_csv_auto( -- 'http://<bridge-server>:8080/<query-id>.<format>.<compression>', -- header=true, columns={"col1":'UINTEGER',"col2":'VARCHAR NOT NULL'}) select * from {{ bridge.db.mysql1: select * from mytable }} -- on ClickHouse, the query will be: -- select * from url( -- 'http://<bridge-server>:8080/<query-id>.<format>.<compression>', -- CSVWithNames, 'col1 Nullable(UInt32),col2 String', -- headers=('accept'='<mime type>','accept-encoding'='<compression>')) -- on a database without custom dialect and mapper, it will be: -- select * from 'http://<bridge-server>:8080/<query-id>.<format>.<compression>'
- Customizable variable tags
-
🐛 Bug Fix
delimiterwas not working whenprefixwas specified invarextensionUtils.toKeyValuePairsdid not fully decode URL encoded input
-
🎨 Misc
- Add more dependencies to support more data formats
- Bump dependencies to fix security warnings
- New CI step to test docker image