Skip to content

Commit

Permalink
[DOP-13855] Add note about new JDBC driver to CHANGELOG
Browse files Browse the repository at this point in the history
Signed-off-by: Мартынов Максим Сергеевич <msmarty5@mts.ru>
  • Loading branch information
dolfinus committed Jun 7, 2024
1 parent 7c9c708 commit c1c22b3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/changelog/0.11.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ most of users will not see any differences.

This brings up several fixes for Spark <-> Clickhouse type compatibility, and also Clickhouse clusters support.

.. warning::

New JDBC driver has a more strict behavior regarding types:

* Old JDBC driver applied ``max(1970-01-01T00:00:00, value)`` for Timestamp values, as this is a minimal supported value of ``DateTime32`` Clickhouse type. New JDBC driver doesn't.
* Old JDBC driver rounded values with higher precision than target column during write. New JDBC driver doesn't.
* Old JDBC driver replaced NULLs as input for non-Nullable columns with column's DEFAULT value. New JDBC driver doesn't. To enable previous behavior, pass ``Clickhouse(extra={"nullsAsDefault": 2})`` (see `documentation <https://clickhouse.com/docs/en/integrations/java#configuration>`_).

- Update other JDBC drivers to latest versions:
* MSSQL ``12.2.0`` → ``12.6.2`` (:github:pull:`254`).
* MySQL ``8.0.33`` → ``8.4.0`` (:github:pull:`253`, :github:pull:`285`).
Expand Down

0 comments on commit c1c22b3

Please sign in to comment.