- fix: #99 update value containing "where" cause exception.
- fix: #97 JSONField error in ClickHouse 24.8.
- fix: tuple function error in ClickHouse 24.8.
- fix #92 last_executed_query() when params is a mappinglast_executed_query() when params is a mapping.
- support Django 5.0, update clickhouse-driver to 0.2.8, drop clickhouse-pool dependency.
- feat: #72 support window functions.
- feat: #80 support prewhere clause.
- fix: #76
AttributeError: 'ReplicatedReplacingMergeTree' object has no attribute 'expressions'
. - fix: migrate ReplacingMergeTree with
ver
raisingAttributeError: 'F' object has no attribute 'get_source_expressions'
. - fix: unable to omit
zoo_path
andreplica_name
in replicated engines other thanReplicatedMergeTree
.
- add
CLICKHOUSE_ENABLE_UPDATE_ROWCOUNT
django setting.
- refactor: refactor uniq aggregate function.
- feat: add some ClickHouse tuple and hash functions.
- fix: test and fix ClickHouse functions.
- ci: remove deploy of testpypi.
- docs: update DatabaseOperations.max_in_list_size docstring.
- docs: fix readme error word.
- chore: clickhouse_backend.models.functions turn module to package.
- fix #57.
- Implemente an improved version of inspectdb command.
- Fix update compiler.
- Fix #50 partition by single expression raise TypeError.
- Fix #51 .
- Fix #53 .
- Use flake8 to lint code.
- Add GitHub action which runs tests.
- Add test coverage to ci and send data to coveralls, add coverage badge.
- Fix distributed and replicated table engine tests, add test guide to README.md.
- Black code style.
- Support MergeTree settings in creating table.
- Support distributed DDL and distributed table.
- Support create migration table and run migrating on cluster.
- Fix bug: exception is raised when insert data with expression values.
- Fix bug: exception is raised when alter field from not null to null.
- Support escaping dict data.
- Change
AutoFiled
andSmallAutoField
to clickhouseInt64
, so that id worker can generate value for them. This allows more compatibilities with existing apps such asdjango.contrib.auth
. DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
is no longer a required configuration item.
- Fix reading settings in explain, pull request #13 by mahdi-jfri.
- Add toYYYYMM[DD[hhmmss]] functions.
- Fix str(queryset.query) when default database is not clickhouse.
- Fix bug when save django model instance.
- Support clickhouse-driver 0.2.6, drop support for python3.6.
- Support Django 4.2.
- Support clickhouse JSON type.
- Fix test db name when NAME not provided in DATABASES setting.
- Fix Enum error when provided an IntegerChoices value.
- Add document about multiple db settings.
- Add
return_int
parameter toEnum[8|16]Field
to control whether to get an int or str value when querying from the database. - Fix TupleField container_class.
- Add fields documentation.
- Add tests for migrations.
- Fix bytes escaping.
- Fix date and datetime lookup.
- Add documentations.
- Add lots of new field types:
- Float32/64
- [U]Int8/16/32/64/128/256
- Date/Date32/DateTime('timezone')/DateTime64('timezone')
- String/FixedString(N)
- Enum8/16
- Array(T)
- Bool
- UUID
- Decimal
- IPv4/IPv6
- LowCardinality(T)
- Tuple(T1, T2, ...)
- Map(key, value)
- Add tests for backends.
- Remove redundant code.
- Correct database features.
- Fix bugs that find by new tests.
- Adopt some testcase from django project.
- Fix bugs such as datetime escaping and update field use F expression.
- ID worker interface changes and configuration item adjustments.
- Support database connection pool.
- Refactored the implementation of Engine to be more concise and stable.
- Database related features are concentrated in the SQLCompiler implementation.
- Ignore unsupported field-level db_index attribute, and AlterUniqueTogether migration operation in favor of django built-in model or 3rd party model migration.
- matches Django 4.x.
- Fixed searching for GenericIPAddressField field.
- Fixed an issue where multiple order by fields were wrong when creating a table.
- Fixed AlterField migration to support Nullable to non-Nullable type changes, update old
NULL
values with provided defaults.
- Support field type change migration
- Fixed the problem that deleting and updating model objects could not be executed synchronously
- QuerySet supports setting query, you can pass in Clickhouse setting items, refer to SETTINGS in SELECT Query
- Fixed that the correct object id cannot be set when inserting data, bulk_create and create and save can display the correct id
- The fake_transaction attribute is added to the database connection. Setting this attribute during testing can prevent other database data that supports transactions such as postgresql from being emptied between transaction testcase.
- Added AutoField type, mapped to Int32
- Improve documentation about testing/migration/primary keys
- When the GenericIPAddressField type field is optimized to store ipv4 addresses, the default output type is Ipv6 format, and it is converted to the corresponding Ipv4 type
- Fixed the issue that the time zone is lost after the clickhouse driver escapes the datetime type value
-
Added PositiveSmallIntegerField, PositiveIntegerField, PositiveBigIntegerField field types, corresponding to the correct clickhouse uint type range.
-
Modified the README and corrected the description about unit testing.
-
Solved the problem that the options.DEFAULT_NAMES monkey patch in clickhouse.models did not take effect when there were multiple apps.
-
Improve the README, add the description of the auto-increment primary key, and adjust the format.