Skip to content

Releases: crobox/clickhouse-scala-client

v0.9.6

03 Apr 10:55
Compare
Choose a tag to compare
  • IMPORTANT This release contains some important fixes concerning brackets ( ) in combination with AND and OR logical operators. We highly recommended to update to this version so that conditions are executed correctly!
  • BREAKING Removed the TableColumn.AnyTableColumn type alias; Use the Column trait instead.
  • Scala 2.13 support
  • Adding has, hasAny and hasAll array operators.

v0.9.0

07 Jan 09:01
Compare
Choose a tag to compare

BREAKING API CHANGES

  • database argument in constructor of ClickhouseClient is moved to the Table trait. This means you need to add the val database to every Table definition
  • The actor system is no longer implicit injected from the outside but an internal one is used. Optinally configure it using the crobox.clickhouse.client.akka.* configuration
  • CreateTable database argument has been dropped
  • Removed com.crobox.clickhouse.dsl.language.TokenizerModule.Database type
  • Removed the ClickhouseClient.database field
  • Removed the ClickhouseClient.table() method

v0.8.13

14 Jan 13:58
Compare
Choose a tag to compare
v0.8.13 Pre-release
Pre-release

No longer retrying queries which failed due to TooManyQueries exception

v0.8.12

08 Jan 08:45
Compare
Choose a tag to compare
  • Adding support for WITH ROLLUP and WITH CUBE
  • Bugfix in arrayElement type
  • BREAKING Renamed SimpleDuration to `TotalDuration
  • Bugfix in DateTime parsing with value 0
  • JSON parsing switched to spray.json instead of scala (deprecated) json
  • BREAKING Proper escaping of Column names; this means that no SQL injection can happen anymore in the ref column. Use the raw column if you really need to have unescaped SQL.

Bug fix

30 Nov 22:55
Compare
Choose a tag to compare
Bug fix Pre-release
Pre-release

[dsl] - Multi interval now calculates subintervals using excluding end time (follows the same contract as joda time interval)

Bug fix

30 Nov 22:54
Compare
Choose a tag to compare
Bug fix Pre-release
Pre-release

[dsl] - Fix bug concerning quarter calculations in timeseries

Retry idempotent queries

26 Nov 08:12
Compare
Choose a tag to compare
Pre-release

Added the ability to retry queries marked as idempotent.

Distributed table engine

05 Nov 09:22
Compare
Choose a tag to compare
Pre-release
  • Added the distributed table engine
  • Increased timeout for the healthcheck connection to ensure the connection is not reset prematurely
  • Ensure cluster connection provider runs a maximum of one query at a time

Advanced logical functions

30 Oct 08:40
Compare
Choose a tag to compare

Reduction of constant results on logical operators now happens during declaration of a statement, and will not even happen at the tokenisation.

Options can be used and act as a NoOp on all the logical operators.

DSL major update - Breaking Changes

29 Oct 15:24
Compare
Choose a tag to compare
Pre-release

This introduces coverage for (almost) all clickhouse column functions, as well as most operators, and a new mechanism that introduces an advanced type safety check on columns, column functions and their results.

For the coverage of the DSL, please refer to the WIKI page 'DSL Coverage'.

The type-safety mechanism relies on the magnet pattern, using implicit conversion to interpret the type of any constant or DSL function, for continued use in the DSL there-after at compile time.

Breaking changes

  • Some existing functions now only accept the actual type
  • Most functions now correctly propagate/represent their return type. When you do not explicitly convert the type to what was expected onwards, this will cause compile errors. (use toTypeName(col), to explicitly convert columns in queries)
  • isIn, isNotIn were renamed to in and notIn
  • splitBy was renamed to splitByChar and splitByString