Skip to content

Releases

Release v0.8.0

Choose a tag to compare

@github-actions github-actions released this 02 Feb 12:29

This major release introduces key feature enhancements and critical dependency updates to support multi-tenant MCP server deployments.

  • 💥 BREAKING CHANGES

    • [Core] Promote Stream class from io.github.jdbcx.executor to the parent package, io.github.jdbcx
    • [Server] access token is now signed JWT, so acl.properties is not longer needed
  • ✨ 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
  • 🎨 Misc

    • Bump dependencies

Release v0.7.2

Choose a tag to compare

@github-actions github-actions released this 07 Sep 09:36

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
      {...}
  • 🐛 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

Choose a tag to compare

@github-actions github-actions released this 18 May 07:42
72f8cdf

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

Choose a tag to compare

@github-actions github-actions released this 17 May 22:55
6fdb1fd

This is a feature release, and we recommend upgrading to benefit from enhanced connection management and MCP support.

  • ✨ New Feature

    • [Core] add mcp extension
      {{ 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"]}]}
  • 🎨 Misc

    • Bump dependencies

Release v0.6.0

Choose a tag to compare

@github-actions github-actions released this 15 Apr 12:59

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.error now defaults to throw instead of warn
    • [Core] request.template.file property has been replaced by input.file in web extension
  • ✨ New Feature

    • [Core] supports underscore variable
      -- same as: {{ db.my-db1: select 'db.my-db1' }}
      {{ db.my-db1: select '${_}.${_.id}' }}
    • [Core] db extension now by default no longer set query timeout for ease of use
    • [Core] add overrideable.params property in config to declare parameters that can be overridden in query
    • [Core] add input.file property in all extensions
      {{ db.mydb(input.file=~/1.sql) }} 
    • [Core] add query extension
      {{ 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>, and error/<query id>
    • [Driver] enhance bridge extension to show error from server
  • 🐛 Bug Fix

    • [Core] fix bug in Utils.split method
  • 🎨 Misc

    • Bump dependencies
    • Minor refactoring for consistency

Release v0.5.0

Choose a tag to compare

@github-actions github-actions released this 03 Jun 10:43
0a7804f

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] NDJSON is renamed to JSON_SEQ, and now NDJSON is same as JSONL
    • [Driver] CLI no longer prints rows information along with slightly changed output
  • ✨ New Feature

    • [Core] db extension 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, outputCompression and outputFile
    • [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] /batch endpoint 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, and header etc. are supported
      select * 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  }}
  • 🐛 Bug Fix

    • [Core] bridge extension 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] null ResultSet could be returned in certain cases
    • [Driver] Unable to find suitable driver when there's instantiation failure
  • 🎨 Misc

    • Upgrade JDK from 17 to 21
    • Bump dependencies
    • Slightly increased test coverage

Release v0.4.3

Choose a tag to compare

@github-actions github-actions released this 27 Mar 14:11

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 bridge is changed to table
  • ✨ New Feature

    • [Core] Values data format is added for data loading
    • [Driver] bridge extension is added for custom bridge query
      select * 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] values prefix is added for simplicity
      insert 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 \}} }}
  • 🐛 Bug Fix

    • [Core] Avro serialization error when handling unsigned integers

Release v0.4.2

Choose a tag to compare

@github-actions github-actions released this 09 Mar 14:19
0855641

This minor release introduces serialization support for Arrow, Avro, and Parquet formats, along with additional bug fixes. Upgrading is highly recommended.

  • 💥 BREAKING CHANGES

    • [Core] ConfigManager class has been relocated to io.github.jdbc package. Additionally, FileBasedConfigManager class has been renamed to PropertyFileConfigManager and relocated to io.github.jdbc.config
    • [Core] TimeValue and DateTimeValue conversions to numbers now take precision and scale into count
  • ✨ 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
  • 🐛 Bug Fix

    • [Driver] Stack overflow exception caused by cyclic query
    • [Driver] Extra \n when converting ResultSet to String
  • 🎨 Misc

    • Added more tests and more databases for testing
    • Cleaned up code for consistency and reduced overhead in runtime

Release v0.4.1

Choose a tag to compare

@github-actions github-actions released this 01 Mar 13:21
8f5b4bf

This minor release fixed a few issues in both driver and bridge server. It's highly recommended to ugprade.

  • 💥 BREAKING CHANGES

    • [Core] Field constructor now requires columnType, 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)
  • ✨ New Feature

    • [Server] /metrics endpoint for monitoring
  • 🐛 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

Release v0.4.0

Choose a tag to compare

@github-actions github-actions released this 27 Feb 12:27
582b7a7

This major release primarily introduces bridge server for federated queries.
image

  • 💥 BREAKING CHANGES

    • API changes in Field and Result to better support bridge server
    • API changes mainly in QueryParser to support customizable variable tag
  • ✨ 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]
    • ValueFactory and additional Value classes 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 ResultMapper for mapping Field to 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>'
  • 🐛 Bug Fix

    • delimiter was not working when prefix was specified in var extension
    • Utils.toKeyValuePairs did 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