id stringlengths 36 36 | document stringlengths 3 3k | metadata stringlengths 23 69 | embeddings listlengths 384 384 |
|---|---|---|---|
0fb9801d-7055-44a5-891c-eb0bae6054d5 | slug: /whats-new/changelog/2019
sidebar_position: 8
sidebar_label: '2019'
title: '2019 Changelog'
description: 'Changelog for 2019'
doc_type: 'changelog'
keywords: ['ClickHouse 2019', 'changelog 2019', 'release notes', 'version history', 'legacy releases']
ClickHouse Release 19.17 {#clickhouse-release-v19-17}
ClickHouse Release 19.17.6.36, 2019-12-27 {#clickhouse-release-v19-17-6-36-2019-12-27}
Bug Fix {#bug-fix}
Fixed potential buffer overflow in decompress. Malicious user can pass fabricated compressed data that could cause read after buffer. This issue was found by Eldar Zaitov from Yandex information security team.
#8404
(
alexey-milovidov
)
Fixed possible server crash (
std::terminate
) when the server cannot send or write data in JSON or XML format with values of String data type (that require UTF-8 validation) or when compressing result data with Brotli algorithm or in some other rare cases.
#8384
(
alexey-milovidov
)
Fixed dictionaries with source from a clickhouse
VIEW
, now reading such dictionaries does not cause the error
There is no query
.
#8351
(
Nikolai Kochetov
)
Fixed checking if a client host is allowed by host_regexp specified in users.xml.
#8241
,
#8342
(
Vitaly Baranov
)
RENAME TABLE
for a distributed table now renames the folder containing inserted data before sending to shards. This fixes an issue with successive renames
tableA->tableB
,
tableC->tableA
.
#8306
(
tavplubix
)
range_hashed
external dictionaries created by DDL queries now allow ranges of arbitrary numeric types.
#8275
(
alesapin
)
Fixed
INSERT INTO table SELECT ... FROM mysql(...)
table function.
#8234
(
tavplubix
)
Fixed segfault in
INSERT INTO TABLE FUNCTION file()
while inserting into a file which does not exist. Now in this case file would be created and then insert would be processed.
#8177
(
Olga Khvostikova
)
Fixed bitmapAnd error when intersecting an aggregated bitmap and a scalar bitmap.
#8082
(
Yue Huang
)
Fixed segfault when
EXISTS
query was used without
TABLE
or
DICTIONARY
qualifier, just like
EXISTS t
.
#8213
(
alexey-milovidov
)
Fixed return type for functions
rand
and
randConstant
in case of nullable argument. Now functions always return
UInt32
and never
Nullable(UInt32)
.
#8204
(
Nikolai Kochetov
)
Fixed
DROP DICTIONARY IF EXISTS db.dict
, now it does not throw exception if
db
does not exist.
#8185
(
Vitaly Baranov
)
If a table wasn't completely dropped because of server crash, the server will try to restore and load it
#8176
(
tavplubix
)
Fixed a trivial count query for a distributed table if there are more than two shard local table.
#8164
(
小路
)
Fixed bug that lead to a data race in DB::BlockStreamProfileInfo::calculateRowsBeforeLimit()
#8143
(
Alexander Kazakov
) | {"source_file": "2019.md"} | [
-0.03357929363846779,
0.010729949921369553,
0.05944132059812546,
-0.01562268752604723,
0.03266909718513489,
-0.06596789509057999,
-0.0263560451567173,
-0.013003824278712273,
-0.014194903895258904,
0.04249750077724457,
0.04869237169623375,
0.050329066812992096,
0.00040419213473796844,
-0.00... |
00ad0dd1-8597-447b-a69f-28767471c0c0 | Fixed bug that lead to a data race in DB::BlockStreamProfileInfo::calculateRowsBeforeLimit()
#8143
(
Alexander Kazakov
)
Fixed
ALTER table MOVE part
executed immediately after merging the specified part, which could cause moving a part which the specified part merged into. Now it correctly moves the specified part.
#8104
(
Vladimir Chebotarev
)
Expressions for dictionaries can be specified as strings now. This is useful for calculation of attributes while extracting data from non-ClickHouse sources because it allows to use non-ClickHouse syntax for those expressions.
#8098
(
alesapin
)
Fixed a very rare race in
clickhouse-copier
because of an overflow in ZXid.
#8088
(
Ding Xiang Fei
)
Fixed the bug when after the query failed (due to "Too many simultaneous queries" for example) it would not read external tables info, and the
next request would interpret this info as the beginning of the next query causing an error like
Unknown packet from client
.
#8084
(
Azat Khuzhin
)
Avoid null dereference after "Unknown packet X from server"
#8071
(
Azat Khuzhin
)
Restore support of all ICU locales, add the ability to apply collations for constant expressions and add language name to system.collations table.
#8051
(
alesapin
)
Number of streams for read from
StorageFile
and
StorageHDFS
is now limited, to avoid exceeding the memory limit.
#7981
(
alesapin
)
Fixed
CHECK TABLE
query for
*MergeTree
tables without key.
#7979
(
alesapin
)
Removed the mutation number from a part name in case there were no mutations. This removing improved the compatibility with older versions.
#8250
(
alesapin
)
Fixed the bug that mutations are skipped for some attached parts due to their data_version are larger than the table mutation version.
#7812
(
Zhichang Yu
)
Allow starting the server with redundant copies of parts after moving them to another device.
#7810
(
Vladimir Chebotarev
)
Fixed the error "Sizes of columns does not match" that might appear when using aggregate function columns.
#7790
(
Boris Granveaud
)
Now an exception will be thrown in case of using WITH TIES alongside LIMIT BY. And now it's possible to use TOP with LIMIT BY.
#7637
(
Nikita Mikhaylov
)
Fix dictionary reload if it has
invalidate_query
, which stopped updates and some exception on previous update tries.
#8029
(
alesapin
)
ClickHouse Release 19.17.4.11, 2019-11-22 {#clickhouse-release-v19-17-4-11-2019-11-22}
Backward Incompatible Change {#backward-incompatible-change}
Using column instead of AST to store scalar subquery results for better performance. Setting
enable_scalar_subquery_optimization
was added in 19.17 and it was enabled by default. It leads to errors like
this
during upgrade to 19.17.2 or 19.17.3 from previous versions. This setting was disabled by default in 19.17.4, to make possible upgrading from 19.16 and older versions without errors.
#7392
(
Amos Bird
)
New Feature {#new-feature} | {"source_file": "2019.md"} | [
-0.06079868599772453,
0.013846131972968578,
0.023518608883023262,
-0.002183985197916627,
-0.03261422738432884,
-0.13075028359889984,
0.02524455636739731,
-0.04344989359378815,
-0.012933434918522835,
0.028505919501185417,
0.06430318206548691,
-0.006010390818119049,
0.08223424106836319,
-0.0... |
682cfbe9-085d-4d59-aa63-905e212e5435 | New Feature {#new-feature}
Add the ability to create dictionaries with DDL queries.
#7360
(
alesapin
)
Make
bloom_filter
type of index supporting
LowCardinality
and
Nullable
#7363
#7561
(
Nikolai Kochetov
)
Add function
isValidJSON
to check that passed string is a valid json.
#5910
#7293
(
Vdimir
)
Implement
arrayCompact
function
#7328
(
Memo
)
Created function
hex
for Decimal numbers. It works like
hex(reinterpretAsString())
, but does not delete last zero bytes.
#7355
(
Mikhail Korotov
)
Add
arrayFill
and
arrayReverseFill
functions, which replace elements by other elements in front/back of them in the array.
#7380
(
hcz
)
Add
CRC32IEEE()
/
CRC64()
support
#7480
(
Azat Khuzhin
)
Implement
char
function similar to one in
mysql
#7486
(
sundyli
)
Add
bitmapTransform
function. It transforms an array of values in a bitmap to another array of values, the result is a new bitmap
#7598
(
Zhichang Yu
)
Implemented
javaHashUTF16LE()
function
#7651
(
achimbab
)
Add
_shard_num
virtual column for the Distributed engine
#7624
(
Azat Khuzhin
)
Experimental Feature {#experimental-feature}
Support for processors (new query execution pipeline) in
MergeTree
.
#7181
(
Nikolai Kochetov
)
Bug Fix {#bug-fix-1}
Fix incorrect float parsing in
Values
#7817
#7870
(
tavplubix
)
Fix rare deadlock which can happen when trace_log is enabled.
#7838
(
filimonov
)
Prevent message duplication when producing Kafka table has any MVs selecting from it
#7265
(
Ivan
)
Support for
Array(LowCardinality(Nullable(String)))
in
IN
. Resolves
#7364
#7366
(
achimbab
)
Add handling of
SQL_TINYINT
and
SQL_BIGINT
, and fix handling of
SQL_FLOAT
data source types in ODBC Bridge.
#7491
(
Denis Glazachev
)
Fix aggregation (
avg
and quantiles) over empty decimal columns
#7431
(
Andrey Konyaev
)
Fix
INSERT
into Distributed with
MATERIALIZED
columns
#7377
(
Azat Khuzhin
)
Make
MOVE PARTITION
work if some parts of partition are already on destination disk or volume
#7434
(
Vladimir Chebotarev
)
Fixed bug with hardlinks failing to be created during mutations in
ReplicatedMergeTree
in multi-disk configurations.
#7558
(
Vladimir Chebotarev
)
Fixed a bug with a mutation on a MergeTree when whole part remains unchanged and best space is being found on another disk
#7602
(
Vladimir Chebotarev
)
Fixed bug with
keep_free_space_ratio
not being read from disks configuration
#7645
(
Vladimir Chebotarev
)
Fix bug with table contains only
Tuple
columns or columns with complex paths. Fixes
7541
.
#7545
(
alesapin
)
Do not account memory for Buffer engine in max_memory_usage limit
#7552
(
Azat Khuzhin
)
Fix final mark usage in
MergeTree
tables ordered by
tuple()
. In rare cases it could lead to
Can't adjust last granule
error while select.
#7639
(
Anton Popov
) | {"source_file": "2019.md"} | [
-0.004282895941287279,
0.0946628749370575,
-0.08558190613985062,
-0.03259408101439476,
-0.13800744712352753,
-0.06335392594337463,
0.02657502144575119,
-0.019582530483603477,
-0.08098758012056351,
-0.037630561739206314,
-0.05673962086439133,
-0.0053672268986701965,
0.04371565952897072,
0.0... |
481aca19-5e75-40bb-929e-9d680633fb8b | Fix final mark usage in
MergeTree
tables ordered by
tuple()
. In rare cases it could lead to
Can't adjust last granule
error while select.
#7639
(
Anton Popov
)
Fix bug in mutations that have predicate with actions that require context (for example functions for json), which may lead to crashes or strange exceptions.
#7664
(
alesapin
)
Fix mismatch of database and table names escaping in
data/
and
shadow/
directories
#7575
(
Alexander Burmak
)
Support duplicated keys in RIGHT\|FULL JOINs, e.g.
ON t.x = u.x AND t.x = u.y
. Fix crash in this case.
#7586
(
Artem Zuikov
)
Fix
Not found column <expression> in block
when joining on expression with RIGHT or FULL JOIN.
#7641
(
Artem Zuikov
)
One more attempt to fix infinite loop in
PrettySpace
format
#7591
(
Olga Khvostikova
)
Fix bug in
concat
function when all arguments were
FixedString
of the same size.
#7635
(
alesapin
)
Fixed exception in case of using 1 argument while defining S3, URL and HDFS storages.
#7618
(
Vladimir Chebotarev
)
Fix scope of the InterpreterSelectQuery for views with query
#7601
(
Azat Khuzhin
)
Improvement {#improvement}
Nullable
columns recognized and NULL-values handled correctly by ODBC-bridge
#7402
(
Vasily Nemkov
)
Write current batch for distributed send atomically
#7600
(
Azat Khuzhin
)
Throw an exception if we cannot detect table for column name in query.
#7358
(
Artem Zuikov
)
Add
merge_max_block_size
setting to
MergeTreeSettings
#7412
(
Artem Zuikov
)
Queries with
HAVING
and without
GROUP BY
assume group by constant. So,
SELECT 1 HAVING 1
now returns a result.
#7496
(
Amos Bird
)
Support parsing
(X,)
as tuple similar to python.
#7501
,
#7562
(
Amos Bird
)
Make
range
function behaviors almost like pythonic one.
#7518
(
sundyli
)
Add
constraints
columns to table
system.settings
#7553
(
Vitaly Baranov
)
Better Null format for tcp handler, so that it's possible to use
select ignore(<expression>) from table format Null
for perf measure via clickhouse-client
#7606
(
Amos Bird
)
Queries like
CREATE TABLE ... AS (SELECT (1, 2))
are parsed correctly
#7542
(
hcz
)
Performance Improvement {#performance-improvement}
The performance of aggregation over short string keys is improved.
#6243
(
Alexander Kuzmenkov
,
Amos Bird
)
Run another pass of syntax/expression analysis to get potential optimizations after constant predicates are folded.
#7497
(
Amos Bird
)
Use storage meta info to evaluate trivial
SELECT count() FROM table;
#7510
(
Amos Bird
,
alexey-milovidov
)
Vectorize processing
arrayReduce
similar to Aggregator
addBatch
.
#7608
(
Amos Bird
)
Minor improvements in performance of
Kafka
consumption
#7475
(
Ivan
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement}
Add support for cross-compiling to the CPU architecture AARCH64. Refactor packager script.
#7370
#7539
(
Ivan
) | {"source_file": "2019.md"} | [
-0.017581725493073463,
0.005101151764392853,
0.07731545716524124,
-0.005396475549787283,
0.008376453071832657,
-0.057600848376750946,
0.014530008658766747,
0.055428773164749146,
-0.0270784143358469,
0.02916700206696987,
0.03972192853689194,
0.023073485121130943,
0.023168010637164116,
-0.04... |
e5f71abe-580a-42e5-bbec-fe4130ddc2da | Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement}
Add support for cross-compiling to the CPU architecture AARCH64. Refactor packager script.
#7370
#7539
(
Ivan
)
Unpack darwin-x86_64 and linux-aarch64 toolchains into mounted Docker volume when building packages
#7534
(
Ivan
)
Update Docker Image for Binary Packager
#7474
(
Ivan
)
Fixed compile errors on macOS Catalina
#7585
(
Ernest Poletaev
)
Some refactoring in query analysis logic: split complex class into several simple ones.
#7454
(
Artem Zuikov
)
Fix build without submodules
#7295
(
proller
)
Better
add_globs
in CMake files
#7418
(
Amos Bird
)
Remove hardcoded paths in
unwind
target
#7460
(
Konstantin Podshumok
)
Allow to use mysql format without ssl
#7524
(
proller
)
Other {#other}
Added ANTLR4 grammar for ClickHouse SQL dialect
#7595
#7596
(
alexey-milovidov
)
ClickHouse Release 19.16 {#clickhouse-release-v19-16}
ClickHouse Release 19.16.14.65, 2020-03-25 {#clickhouse-release-v19-16-14-65-2020-03-25}
Fixed up a bug in batched calculations of ternary logical OPs on multiple arguments (more than 10).
#8718
(
Alexander Kazakov
) This bugfix was backported to version 19.16 by a special request from Altinity.
ClickHouse Release 19.16.14.65, 2020-03-05 {#clickhouse-release-v19-16-14-65-2020-03-05}
Fix distributed subqueries incompatibility with older CH versions. Fixes
#7851
(tabplubix)
When executing
CREATE
query, fold constant expressions in storage engine arguments. Replace empty database name with current database. Fixes
#6508
,
#3492
. Also fix check for local address in
ClickHouseDictionarySource
.
#9262
(tabplubix)
Now background merges in
*MergeTree
table engines family preserve storage policy volume order more accurately.
#8549
(
Vladimir Chebotarev
)
Prevent losing data in
Kafka
in rare cases when exception happens after reading suffix but before commit. Fixes
#9378
. Related:
#7175
#9507
(filimonov)
Fix bug leading to server termination when trying to use / drop
Kafka
table created with wrong parameters. Fixes
#9494
. Incorporates
#9507
.
#9513
(filimonov)
Allow using
MaterializedView
with subqueries above
Kafka
tables.
#8197
(
filimonov
)
New Feature {#new-feature-1}
Add
deduplicate_blocks_in_dependent_materialized_views
option to control the behaviour of idempotent inserts into tables with materialized views. This new feature was added to the bugfix release by a special request from Altinity.
#9070
(urykhy)
ClickHouse Release 19.16.2.2, 2019-10-30 {#clickhouse-release-v19-16-2-2-2019-10-30}
Backward Incompatible Change {#backward-incompatible-change-1}
Add missing arity validation for count/counIf.
#7095
#7298
(
Vdimir
)
Remove legacy
asterisk_left_columns_only
setting (it was disabled by default).
#7335
(
Artem
Zuikov
) | {"source_file": "2019.md"} | [
-0.02859042026102543,
0.07106170058250427,
0.012568031437695026,
-0.041688963770866394,
0.015632852911949158,
-0.101603664457798,
-0.05894338712096214,
0.022571902722120285,
-0.10879755020141602,
0.031032655388116837,
-0.017796246334910393,
-0.09883219003677368,
-0.012258471921086311,
0.00... |
bb6d233e-635a-4ba0-9eeb-1fd9ac96b69e | Add missing arity validation for count/counIf.
#7095
#7298
(
Vdimir
)
Remove legacy
asterisk_left_columns_only
setting (it was disabled by default).
#7335
(
Artem
Zuikov
)
Format strings for Template data format are now specified in files.
#7118
(
tavplubix
)
New Feature {#new-feature-2}
Introduce uniqCombined64() to calculate cardinality greater than UINT_MAX.
#7213
,
#7222
(
Azat
Khuzhin
)
Support Bloom filter indexes on Array columns.
#6984
(
achimbab
)
Add a function
getMacro(name)
that returns String with the value of corresponding
<macros>
from server configuration.
#7240
(
alexey-milovidov
)
Set two configuration options for a dictionary based on an HTTP source:
credentials
and
http-headers
.
#7092
(
Guillaume
Tassery
)
Add a new ProfileEvent
Merge
that counts the number of launched background merges.
#7093
(
Mikhail
Korotov
)
Add fullHostName function that returns a fully qualified domain name.
#7263
#7291
(
sundyli
)
Add function
arraySplit
and
arrayReverseSplit
which split an array by "cut off"
conditions. They are useful in time sequence handling.
#7294
(
hcz
)
Add new functions that return the Array of all matched indices in multiMatch family of functions.
#7299
(
Danila
Kutenin
)
Add a new database engine
Lazy
that is optimized for storing a large number of small -Log
tables.
#7171
(
Nikita
Vasilev
)
Add aggregate functions groupBitmapAnd, -Or, -Xor for bitmap columns.
#7109
(
Zhichang
Yu
)
Add aggregate function combinators -OrNull and -OrDefault, which return null
or default values when there is nothing to aggregate.
#7331
(
hcz
)
Introduce CustomSeparated data format that supports custom escaping and
delimiter rules.
#7118
(
tavplubix
)
Support Redis as source of external dictionary.
#4361
#6962
(
comunodi
,
Anton
Popov
)
Bug Fix {#bug-fix-2}
Fix wrong query result if it has
WHERE IN (SELECT ...)
section and
optimize_read_in_order
is
used.
#7371
(
Anton
Popov
)
Disabled MariaDB authentication plugin, which depends on files outside of project.
#7140
(
Yuriy
Baranov
)
Fix exception
Cannot convert column ... because it is constant but values of constants are different in source and result
which could rarely happen when functions
now()
,
today()
,
yesterday()
,
randConstant()
are used.
#7156
(
Nikolai
Kochetov
)
Fixed issue of using HTTP keep alive timeout instead of TCP keep alive timeout.
#7351
(
Vasily
Nemkov
)
Fixed a segmentation fault in groupBitmapOr (issue
#7109
).
#7289
(
Zhichang
Yu
)
For materialized views the commit for Kafka is called after all data were written.
#7175
(
Ivan
)
Fixed wrong
duration_ms
value in
system.part_log
table. It was ten times off.
#7172
(
Vladimir
Chebotarev
) | {"source_file": "2019.md"} | [
0.02981405518949032,
0.0018643084913492203,
-0.1555849015712738,
-0.03778225556015968,
-0.06264948099851608,
0.002319000195711851,
-0.030942024663090706,
-0.017343902960419655,
0.010289554484188557,
-0.018375715240836143,
0.007838780991733074,
-0.04679529368877411,
0.014950943179428577,
-0... |
2e19e319-5bcd-409f-abe5-8b6d933c526b | Fixed wrong
duration_ms
value in
system.part_log
table. It was ten times off.
#7172
(
Vladimir
Chebotarev
)
A quick fix to resolve crash in LIVE VIEW table and re-enabling all LIVE VIEW tests.
#7201
(
vzakaznikov
)
Serialize NULL values correctly in min/max indexes of MergeTree parts.
#7234
(
Alexander
Kuzmenkov
)
Don't put virtual columns to .sql metadata when table is created as
CREATE TABLE AS
.
#7183
(
Ivan
)
Fix segmentation fault in
ATTACH PART
query.
#7185
(
alesapin
)
Fix wrong result for some queries given by the optimization of empty IN subqueries and empty
INNER/RIGHT JOIN.
#7284
(
Nikolai
Kochetov
)
Fixing AddressSanitizer error in the LIVE VIEW getHeader() method.
#7271
(
vzakaznikov
)
Improvement {#improvement-1}
Add a message in case of queue_wait_max_ms wait takes place.
#7390
(
Azat
Khuzhin
)
Made setting
s3_min_upload_part_size
table-level.
#7059
(
Vladimir
Chebotarev
)
Check TTL in StorageFactory.
#7304
(
sundyli
)
Squash left-hand blocks in partial merge join (optimization).
#7122
(
Artem
Zuikov
)
Do not allow non-deterministic functions in mutations of Replicated table engines, because this
can introduce inconsistencies between replicas.
#7247
(
Alexander
Kazakov
)
Disable memory tracker while converting exception stack trace to string. It can prevent the loss
of error messages of type
Memory limit exceeded
on server, which caused the
Attempt to read after eof
exception on client.
#7264
(
Nikolai Kochetov
)
Miscellaneous format improvements. Resolves
#6033
,
#2633
,
#6611
,
#6742
#7215
(
tavplubix
)
ClickHouse ignores values on the right side of IN operator that are not convertible to the left
side type. Make it work properly for compound types – Array and Tuple.
#7283
(
Alexander
Kuzmenkov
)
Support missing inequalities for ASOF JOIN. It's possible to join less-or-equal variant and strict
greater and less variants for ASOF column in ON syntax.
#7282
(
Artem
Zuikov
)
Optimize partial merge join.
#7070
(
Artem Zuikov
)
Do not use more than 98K of memory in uniqCombined functions.
#7236
,
#7270
(
Azat
Khuzhin
)
Flush parts of right-hand joining table on disk in PartialMergeJoin (if there is not enough
memory). Load data back when needed.
#7186
(
Artem Zuikov
)
Performance Improvement {#performance-improvement-1}
Speed up joinGet with const arguments by avoiding data duplication.
#7359
(
Amos
Bird
)
Return early if the subquery is empty.
#7007
(
小路
)
Optimize parsing of SQL expression in Values.
#6781
(
tavplubix
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-1}
Disable some contribs for cross-compilation to Mac OS.
#7101
(
Ivan
) | {"source_file": "2019.md"} | [
0.03452227637171745,
-0.003762742504477501,
0.0018424552399665117,
0.00801084190607071,
0.0028026881627738476,
-0.07223497331142426,
-0.011738008819520473,
0.039892662316560745,
-0.01935361884534359,
0.024272987619042397,
0.03769461810588837,
-0.030381876975297928,
-0.009348256513476372,
-... |
50f86049-3258-4a67-9306-53f9ea6ef2cd | (
tavplubix
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-1}
Disable some contribs for cross-compilation to Mac OS.
#7101
(
Ivan
)
Add missing linking with PocoXML for clickhouse_common_io.
#7200
(
Azat
Khuzhin
)
Accept multiple test filter arguments in clickhouse-test.
#7226
(
Alexander
Kuzmenkov
)
Enable musl and jemalloc for ARM.
#7300
(
Amos Bird
)
Added
--client-option
parameter to
clickhouse-test
to pass additional parameters to client.
#7277
(
Nikolai
Kochetov
)
Preserve existing configs on rpm package upgrade.
#7103
(
filimonov
)
Fix errors detected by PVS.
#7153
(
Artem
Zuikov
)
Fix build for Darwin.
#7149
(
Ivan
)
glibc 2.29 compatibility.
#7142
(
Amos
Bird
)
Make sure dh_clean does not touch potential source files.
#7205
(
Amos
Bird
)
Attempt to avoid conflict when updating from altinity rpm - it has config file packaged separately
in clickhouse-server-common.
#7073
(
filimonov
)
Optimize some header files for faster rebuilds.
#7212
,
#7231
(
Alexander
Kuzmenkov
)
Add performance tests for Date and DateTime.
#7332
(
Vasily
Nemkov
)
Fix some tests that contained non-deterministic mutations.
#7132
(
Alexander
Kazakov
)
Add build with MemorySanitizer to CI.
#7066
(
Alexander Kuzmenkov
)
Avoid use of uninitialized values in MetricsTransmitter.
#7158
(
Azat
Khuzhin
)
Fix some issues in Fields found by MemorySanitizer.
#7135
,
#7179
(
Alexander
Kuzmenkov
),
#7376
(
Amos Bird
)
Fix undefined behavior in murmurhash32.
#7388
(
Amos
Bird
)
Fix undefined behavior in StoragesInfoStream.
#7384
(
tavplubix
)
Fixed constant expressions folding for external database engines (MySQL, ODBC, JDBC). In previous
versions it wasn't working for multiple constant expressions and was not working at all for Date,
DateTime and UUID. This fixes
#7245
#7252
(
alexey-milovidov
)
Fixing ThreadSanitizer data race error in the LIVE VIEW when accessing no_users_thread variable.
#7353
(
vzakaznikov
)
Get rid of malloc symbols in libcommon
#7134
,
#7065
(
Amos
Bird
)
Add global flag ENABLE_LIBRARIES for disabling all libraries.
#7063
(
proller
)
Code Cleanup {#code-cleanup}
Generalize configuration repository to prepare for DDL for Dictionaries.
#7155
(
alesapin
)
Parser for dictionaries DDL without any semantic.
#7209
(
alesapin
)
Split ParserCreateQuery into different smaller parsers.
#7253
(
alesapin
)
Small refactoring and renaming near external dictionaries.
#7111
(
alesapin
)
Refactor some code to prepare for role-based access control.
#7235
(
Vitaly
Baranov
)
Some improvements in DatabaseOrdinary code.
#7086
(
Nikita
Vasilev
) | {"source_file": "2019.md"} | [
-0.07313086837530136,
-0.02910522185266018,
0.004362975247204304,
-0.06100782752037048,
0.04614784196019173,
-0.10917801409959793,
-0.03158745542168617,
-0.04586658999323845,
-0.08536314219236374,
-0.019399315118789673,
0.07204334437847137,
-0.05161237716674805,
-0.027032146230340004,
-0.0... |
beb5dc41-60cd-429d-9a7a-97a019df7287 | (
alesapin
)
Refactor some code to prepare for role-based access control.
#7235
(
Vitaly
Baranov
)
Some improvements in DatabaseOrdinary code.
#7086
(
Nikita
Vasilev
)
Do not use iterators in find() and emplace() methods of hash tables.
#7026
(
Alexander
Kuzmenkov
)
Fix getMultipleValuesFromConfig in case when parameter root is not empty.
#7374
(
Mikhail Korotov
)
Remove some copy-paste (TemporaryFile and TemporaryFileStream)
#7166
(
Artem
Zuikov
)
Improved code readability a little bit (
MergeTreeData::getActiveContainingPart
).
#7361
(
Vladimir
Chebotarev
)
Wait for all scheduled jobs, which are using local objects, if
ThreadPool::schedule(...)
throws
an exception. Rename
ThreadPool::schedule(...)
to
ThreadPool::scheduleOrThrowOnError(...)
and
fix comments to make obvious that it may throw.
#7350
(
tavplubix
)
ClickHouse Release 19.15 {#clickhouse-release-19-15}
ClickHouse Release 19.15.4.10, 2019-10-31 {#clickhouse-release-19-15-4-10-2019-10-31}
Bug Fix {#bug-fix-3}
Added handling of SQL_TINYINT and SQL_BIGINT, and fix handling of SQL_FLOAT data source types in ODBC Bridge.
#7491
(
Denis Glazachev
)
Allowed to have some parts on destination disk or volume in MOVE PARTITION.
#7434
(
Vladimir Chebotarev
)
Fixed NULL-values in nullable columns through ODBC-bridge.
#7402
(
Vasily Nemkov
)
Fixed INSERT into Distributed non local node with MATERIALIZED columns.
#7377
(
Azat Khuzhin
)
Fixed function getMultipleValuesFromConfig.
#7374
(
Mikhail Korotov
)
Fixed issue of using HTTP keep alive timeout instead of TCP keep alive timeout.
#7351
(
Vasily Nemkov
)
Wait for all jobs to finish on exception (fixes rare segfaults).
#7350
(
tavplubix
)
Don't push to MVs when inserting into Kafka table.
#7265
(
Ivan
)
Disable memory tracker for exception stack.
#7264
(
Nikolai Kochetov
)
Fixed bad code in transforming query for external database.
#7252
(
alexey-milovidov
)
Avoid use of uninitialized values in MetricsTransmitter.
#7158
(
Azat Khuzhin
)
Added example config with macros for tests (
alexey-milovidov
)
ClickHouse Release 19.15.3.6, 2019-10-09 {#clickhouse-release-19-15-3-6-2019-10-09}
Bug Fix {#bug-fix-4}
Fixed bad_variant in hashed dictionary.
(
alesapin
)
Fixed up bug with segmentation fault in ATTACH PART query.
(
alesapin
)
Fixed time calculation in
MergeTreeData
.
(
Vladimir Chebotarev
)
Commit to Kafka explicitly after the writing is finalized.
#7175
(
Ivan
)
Serialize NULL values correctly in min/max indexes of MergeTree parts.
#7234
(
Alexander Kuzmenkov
)
ClickHouse Release 19.15.2.2, 2019-10-01 {#clickhouse-release-19-15-2-2-2019-10-01}
New Feature {#new-feature-3} | {"source_file": "2019.md"} | [
-0.02214120887219906,
0.00146309076808393,
-0.037888649851083755,
-0.007814211770892143,
-0.0077846720814704895,
-0.024053893983364105,
0.03810228407382965,
-0.012653615325689316,
-0.05886799469590187,
0.02063683420419693,
0.049269381910562515,
0.017246535047888756,
0.045276857912540436,
-... |
486d0a4c-56c2-4560-adc1-1e7082d7c24c | ClickHouse Release 19.15.2.2, 2019-10-01 {#clickhouse-release-19-15-2-2-2019-10-01}
New Feature {#new-feature-3}
Tiered storage: support to use multiple storage volumes for tables with MergeTree engine. It's possible to store fresh data on SSD and automatically move old data to HDD. (
example
).
#4918
(
Igr
)
#6489
(
alesapin
)
Add table function
input
for reading incoming data in
INSERT SELECT
query.
#5450
(
palasonic1
)
#6832
(
Anton Popov
)
Add a
sparse_hashed
dictionary layout, that is functionally equivalent to the
hashed
layout, but is more memory efficient. It uses about twice as less memory at the cost of slower value retrieval.
#6894
(
Azat Khuzhin
)
Implement ability to define list of users for access to dictionaries. Only current connected database using.
#6907
(
Guillaume Tassery
)
Add
LIMIT
option to
SHOW
query.
#6944
(
Philipp Malkovsky
)
Add
bitmapSubsetLimit(bitmap, range_start, limit)
function, that returns subset of the smallest
limit
values in set that is no smaller than
range_start
.
#6957
(
Zhichang Yu
)
Add
bitmapMin
and
bitmapMax
functions.
#6970
(
Zhichang Yu
)
Add function
repeat
related to
issue-6648
#6999
(
flynn
)
Experimental Feature {#experimental-feature-1}
Implement (in memory) Merge Join variant that does not change current pipeline. Result is partially sorted by merge key. Set
partial_merge_join = 1
to use this feature. The Merge Join is still in development.
#6940
(
Artem Zuikov
)
Add
S3
engine and table function. It is still in development (no authentication support yet).
#5596
(
Vladimir Chebotarev
)
Improvement {#improvement-2}
Every message read from Kafka is inserted atomically. This resolves almost all known issues with Kafka engine.
#6950
(
Ivan
)
Improvements for failover of Distributed queries. Shorten recovery time, also it is now configurable and can be seen in
system.clusters
.
#6399
(
Vasily Nemkov
)
Support numeric values for Enums directly in
IN
section. #6766
#6941
(
dimarub2000
)
Support (optional, disabled by default) redirects on URL storage.
#6914
(
maqroll
)
Add information message when client with an older version connects to a server.
#6893
(
Philipp Malkovsky
)
Remove maximum backoff sleep time limit for sending data in Distributed tables
#6895
(
Azat Khuzhin
)
Add ability to send profile events (counters) with cumulative values to graphite. It can be enabled under
<events_cumulative>
in server
config.xml
.
#6969
(
Azat Khuzhin
)
Add automatically cast type
T
to
LowCardinality(T)
while inserting data in column of type
LowCardinality(T)
in Native format via HTTP.
#6891
(
Nikolai Kochetov
)
Add ability to use function
hex
without using
reinterpretAsString
for
Float32
,
Float64
.
#7024
(
Mikhail Korotov
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-2} | {"source_file": "2019.md"} | [
-0.031631238758563995,
-0.03723355010151863,
-0.08219125121831894,
0.004776294808834791,
-0.09735570847988129,
-0.040196727961301804,
-0.014888321049511433,
0.04079439118504524,
-0.03711072728037834,
0.02414822019636631,
0.03607400506734848,
0.09164430946111679,
0.06577395647764206,
-0.014... |
eb90340f-77c0-40dd-b6cc-eab00f45df23 | Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-2}
Add gdb-index to clickhouse binary with debug info. It will speed up startup time of
gdb
.
#6947
(
alesapin
)
Speed up deb packaging with patched dpkg-deb which uses
pigz
.
#6960
(
alesapin
)
Set
enable_fuzzing = 1
to enable libfuzzer instrumentation of all the project code.
#7042
(
kyprizel
)
Add split build smoke test in CI.
#7061
(
alesapin
)
Add build with MemorySanitizer to CI.
#7066
(
Alexander Kuzmenkov
)
Replace
libsparsehash
with
sparsehash-c11
#6965
(
Azat Khuzhin
)
Bug Fix {#bug-fix-5}
Fixed performance degradation of index analysis on complex keys on large tables. This fixes #6924.
#7075
(
alexey-milovidov
)
Fix logical error causing segfaults when selecting from Kafka empty topic.
#6909
(
Ivan
)
Fix too early MySQL connection close in
MySQLBlockInputStream.cpp
.
#6882
(
Clément Rodriguez
)
Returned support for very old Linux kernels (fix
#6841
)
#6853
(
alexey-milovidov
)
Fix possible data loss in
insert select
query in case of empty block in input stream. #6834 #6862
#6911
(
Nikolai Kochetov
)
Fix for function
АrrayEnumerateUniqRanked
with empty arrays in params
#6928
(
proller
)
Fix complex queries with array joins and global subqueries.
#6934
(
Ivan
)
Fix
Unknown identifier
error in ORDER BY and GROUP BY with multiple JOINs
#7022
(
Artem Zuikov
)
Fixed
MSan
warning while executing function with
LowCardinality
argument.
#7062
(
Nikolai Kochetov
)
Backward Incompatible Change {#backward-incompatible-change-2}
Changed serialization format of bitmap* aggregate function states to improve performance. Serialized states of bitmap* from previous versions cannot be read.
#6908
(
Zhichang Yu
)
ClickHouse Release 19.14 {#clickhouse-release-19-14}
ClickHouse Release 19.14.7.15, 2019-10-02 {#clickhouse-release-19-14-7-15-2019-10-02}
Bug Fix {#bug-fix-6}
This release also contains all bug fixes from 19.11.12.69.
Fixed compatibility for distributed queries between 19.14 and earlier versions. This fixes
#7068
.
#7069
(
alexey-milovidov
)
ClickHouse Release 19.14.6.12, 2019-09-19 {#clickhouse-release-19-14-6-12-2019-09-19}
Bug Fix {#bug-fix-7}
Fix for function
АrrayEnumerateUniqRanked
with empty arrays in params.
#6928
(
proller
)
Fixed subquery name in queries with
ARRAY JOIN
and
GLOBAL IN subquery
with alias. Use subquery alias for external table name if it is specified.
#6934
(
Ivan
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-3}
Fix
flapping
test
00715_fetch_merged_or_mutated_part_zookeeper
by rewriting it to a shell scripts because it needs to wait for mutations to apply.
#6977
(
Alexander Kazakov
) | {"source_file": "2019.md"} | [
-0.008491674438118935,
-0.02548379637300968,
-0.027394311502575874,
-0.03847197815775871,
-0.02463499642908573,
-0.11099722236394882,
-0.042785193771123886,
0.030379170551896095,
-0.12729382514953613,
0.053440116345882416,
-0.005905588623136282,
-0.023694757372140884,
-0.004456454422324896,
... |
bfe4d6e8-388d-4a59-a299-32e183dc95fb | Fix
flapping
test
00715_fetch_merged_or_mutated_part_zookeeper
by rewriting it to a shell scripts because it needs to wait for mutations to apply.
#6977
(
Alexander Kazakov
)
Fixed UBSan and MemSan failure in function
groupUniqArray
with emtpy array argument. It was caused by placing of empty
PaddedPODArray
into hash table zero cell because constructor for zero cell value was not called.
#6937
(
Amos Bird
)
ClickHouse Release 19.14.3.3, 2019-09-10 {#clickhouse-release-19-14-3-3-2019-09-10}
New Feature {#new-feature-4}
WITH FILL
modifier for
ORDER BY
. (continuation of
#5069
)
#6610
(
Anton Popov
)
WITH TIES
modifier for
LIMIT
. (continuation of
#5069
)
#6610
(
Anton Popov
)
Parse unquoted
NULL
literal as NULL (if setting
format_csv_unquoted_null_literal_as_null=1
). Initialize null fields with default values if data type of this field is not nullable (if setting
input_format_null_as_default=1
).
#5990
#6055
(
tavplubix
)
Support for wildcards in paths of table functions
file
and
hdfs
. If the path contains wildcards, the table will be readonly. Example of usage:
select * from hdfs('hdfs://hdfs1:9000/some_dir/another_dir/*/file{0..9}{0..9}')
and
select * from file('some_dir/{some_file,another_file,yet_another}.tsv', 'TSV', 'value UInt32')
.
#6092
(
Olga Khvostikova
)
New
system.metric_log
table which stores values of
system.events
and
system.metrics
with specified time interval.
#6363
#6467
(
Nikita Mikhaylov
)
#6530
(
alexey-milovidov
)
Allow to write ClickHouse text logs to
system.text_log
table.
#6037
#6103
(
Nikita Mikhaylov
)
#6164
(
alexey-milovidov
)
Show private symbols in stack traces (this is done via parsing symbol tables of ELF files). Added information about file and line number in stack traces if debug info is present. Speedup symbol name lookup with indexing symbols present in program. Added new SQL functions for introspection:
demangle
and
addressToLine
. Renamed function
symbolizeAddress
to
addressToSymbol
for consistency. Function
addressToSymbol
will return mangled name for performance reasons and you have to apply
demangle
. Added setting
allow_introspection_functions
which is turned off by default.
#6201
(
alexey-milovidov
)
Table function
values
(the name is case-insensitive). It allows to read from
VALUES
list proposed in
#5984
. Example:
SELECT * FROM VALUES('a UInt64, s String', (1, 'one'), (2, 'two'), (3, 'three'))
.
#6217
.
#6209
(
dimarub2000
)
Added an ability to alter storage settings. Syntax:
ALTER TABLE <table> MODIFY SETTING <setting> = <value>
.
#6366
#6669
#6685
(
alesapin
)
Support for removing of detached parts. Syntax:
ALTER TABLE <table_name> DROP DETACHED PART '<part_id>'
.
#6158
(
tavplubix
)
Table constraints. Allows to add constraint to table definition which will be checked at insert.
#5273
(
Gleb Novikov
)
#6652
(
alexey-milovidov
) | {"source_file": "2019.md"} | [
-0.01054096408188343,
0.06600137054920197,
-0.02733820118010044,
-0.0030555815901607275,
-0.02631358988583088,
-0.08602706342935562,
0.029454190284013748,
-0.05184134095907211,
-0.04994267225265503,
0.027336912229657173,
0.045645397156476974,
-0.017458833754062653,
0.02460930310189724,
0.0... |
a9fa0195-145b-46f8-93b7-f7be87199887 | Table constraints. Allows to add constraint to table definition which will be checked at insert.
#5273
(
Gleb Novikov
)
#6652
(
alexey-milovidov
)
Suppport for cascaded materialized views.
#6324
(
Amos Bird
)
Turn on query profiler by default to sample every query execution thread once a second.
#6283
(
alexey-milovidov
)
Input format
ORC
.
#6454
#6703
(
akonyaev90
)
Added two new functions:
sigmoid
and
tanh
(that are useful for machine learning applications).
#6254
(
alexey-milovidov
)
Function
hasToken(haystack, token)
,
hasTokenCaseInsensitive(haystack, token)
to check if given token is in haystack. Token is a maximal length substring between two non alphanumeric ASCII characters (or boundaries of haystack). Token must be a constant string. Supported by tokenbf_v1 index specialization.
#6596
,
#6662
(
Vasily Nemkov
)
New function
neighbor(value, offset[, default_value])
. Allows to reach prev/next value within column in a block of data.
#5925
(
Alex Krash
)
6685365ab8c5b74f9650492c88a012596eb1b0c6
341e2e4587a18065c2da1ca888c73389f48ce36c
Alexey Milovidov
Created a function
currentUser()
, returning login of authorized user. Added alias
user()
for compatibility with MySQL.
#6470
(
Alex Krash
)
New aggregate functions
quantilesExactInclusive
and
quantilesExactExclusive
which were proposed in
#5885
.
#6477
(
dimarub2000
)
Function
bitmapRange(bitmap, range_begin, range_end)
which returns new set with specified range (not include the
range_end
).
#6314
(
Zhichang Yu
)
Function
geohashesInBox(longitude_min, latitude_min, longitude_max, latitude_max, precision)
which creates array of precision-long strings of geohash-boxes covering provided area.
#6127
(
Vasily Nemkov
)
Implement support for INSERT query with
Kafka
tables.
#6012
(
Ivan
)
Added support for
_partition
and
_timestamp
virtual columns to Kafka engine.
#6400
(
Ivan
)
Possibility to remove sensitive data from
query_log
, server logs, process list with regexp-based rules.
#5710
(
filimonov
)
Experimental Feature {#experimental-feature-2}
Input and output data format
Template
. It allows to specify custom format string for input and output.
#4354
#6727
(
tavplubix
)
Implementation of
LIVE VIEW
tables that were originally proposed in
#2898
, prepared in
#3925
, and then updated in
#5541
. See
#5541
for detailed description.
#5541
(
vzakaznikov
)
#6425
(
Nikolai Kochetov
)
#6656
(
vzakaznikov
) Note that
LIVE VIEW
feature may be removed in next versions.
Bug Fix {#bug-fix-8}
This release also contains all bug fixes from 19.13 and 19.11.
Fix segmentation fault when the table has skip indices and vertical merge happens.
#6723
(
alesapin
) | {"source_file": "2019.md"} | [
-0.03251086547970772,
-0.06934735924005508,
-0.03628181666135788,
0.006038845982402563,
0.0033773246686905622,
0.008202371187508106,
0.031691186130046844,
-0.003205052576959133,
-0.07680977880954742,
0.0048071336932480335,
-0.03471047058701515,
-0.05891552194952965,
0.07294993102550507,
-0... |
fade7280-e1e4-4262-b943-426640f77080 | Bug Fix {#bug-fix-8}
This release also contains all bug fixes from 19.13 and 19.11.
Fix segmentation fault when the table has skip indices and vertical merge happens.
#6723
(
alesapin
)
Fix per-column TTL with non-trivial column defaults. Previously in case of force TTL merge with
OPTIMIZE ... FINAL
query, expired values was replaced by type defaults instead of user-specified column defaults.
#6796
(
Anton Popov
)
Fix Kafka messages duplication problem on normal server restart.
#6597
(
Ivan
)
Fixed infinite loop when reading Kafka messages. Do not pause/resume consumer on subscription at all - otherwise it may get paused indefinitely in some scenarios.
#6354
(
Ivan
)
Fix
Key expression contains comparison between inconvertible types
exception in
bitmapContains
function.
#6136
#6146
#6156
(
dimarub2000
)
Fix segfault with enabled
optimize_skip_unused_shards
and missing sharding key.
#6384
(
Anton Popov
)
Fixed wrong code in mutations that may lead to memory corruption. Fixed segfault with read of address
0x14c0
that may happed due to concurrent
DROP TABLE
and
SELECT
from
system.parts
or
system.parts_columns
. Fixed race condition in preparation of mutation queries. Fixed deadlock caused by
OPTIMIZE
of Replicated tables and concurrent modification operations like ALTERs.
#6514
(
alexey-milovidov
)
Removed extra verbose logging in MySQL interface
#6389
(
alexey-milovidov
)
Return the ability to parse boolean settings from 'true' and 'false' in the configuration file.
#6278
(
alesapin
)
Fix crash in
quantile
and
median
function over
Nullable(Decimal128)
.
#6378
(
Artem Zuikov
)
Fixed possible incomplete result returned by
SELECT
query with
WHERE
condition on primary key contained conversion to Float type. It was caused by incorrect checking of monotonicity in
toFloat
function.
#6248
#6374
(
dimarub2000
)
Check
max_expanded_ast_elements
setting for mutations. Clear mutations after
TRUNCATE TABLE
.
#6205
(
Winter Zhang
)
Fix JOIN results for key columns when used with
join_use_nulls
. Attach Nulls instead of columns defaults.
#6249
(
Artem Zuikov
)
Fix for skip indices with vertical merge and alter. Fix for
Bad size of marks file
exception.
#6594
#6713
(
alesapin
)
Fix rare crash in
ALTER MODIFY COLUMN
and vertical merge when one of merged/altered parts is empty (0 rows)
#6746
#6780
(
alesapin
)
Fixed bug in conversion of
LowCardinality
types in
AggregateFunctionFactory
. This fixes
#6257
.
#6281
(
Nikolai Kochetov
)
Fix wrong behavior and possible segfaults in
topK
and
topKWeighted
aggregated functions.
#6404
(
Anton Popov
)
Fixed unsafe code around
getIdentifier
function.
#6401
#6409
(
alexey-milovidov
)
Fixed bug in MySQL wire protocol (is used while connecting to ClickHouse form MySQL client). Caused by heap buffer overflow in
PacketPayloadWriteBuffer
.
#6212
(
Yuriy Baranov
) | {"source_file": "2019.md"} | [
-0.05764971673488617,
-0.041548021137714386,
-0.030587565153837204,
0.014139791950583458,
-0.0527106337249279,
-0.014317004010081291,
-0.04144765064120293,
0.003530997782945633,
-0.017097828909754753,
0.012765449471771717,
0.08052117377519608,
0.03832189738750458,
-0.06621697545051575,
-0.... |
bddb0d49-988f-4ae5-b899-6febf3685a72 | Fixed bug in MySQL wire protocol (is used while connecting to ClickHouse form MySQL client). Caused by heap buffer overflow in
PacketPayloadWriteBuffer
.
#6212
(
Yuriy Baranov
)
Fixed memory leak in
bitmapSubsetInRange
function.
#6819
(
Zhichang Yu
)
Fix rare bug when mutation executed after granularity change.
#6816
(
alesapin
)
Allow protobuf message with all fields by default.
#6132
(
Vitaly Baranov
)
Resolve a bug with
nullIf
function when we send a
NULL
argument on the second argument.
#6446
(
Guillaume Tassery
)
Fix rare bug with wrong memory allocation/deallocation in complex key cache dictionaries with string fields which leads to infinite memory consumption (looks like memory leak). Bug reproduces when string size was a power of two starting from eight (8, 16, 32, etc).
#6447
(
alesapin
)
Fixed Gorilla encoding on small sequences which caused exception
Cannot write after end of buffer
.
#6398
#6444
(
Vasily Nemkov
)
Allow to use not nullable types in JOINs with
join_use_nulls
enabled.
#6705
(
Artem Zuikov
)
Disable
Poco::AbstractConfiguration
substitutions in query in
clickhouse-client
.
#6706
(
alexey-milovidov
)
Avoid deadlock in
REPLACE PARTITION
.
#6677
(
alexey-milovidov
)
Using
arrayReduce
for constant arguments may lead to segfault.
#6242
#6326
(
alexey-milovidov
)
Fix inconsistent parts which can appear if replica was restored after
DROP PARTITION
.
#6522
#6523
(
tavplubix
)
Fixed hang in
JSONExtractRaw
function.
#6195
#6198
(
alexey-milovidov
)
Fix bug with incorrect skip indices serialization and aggregation with adaptive granularity.
#6594
.
#6748
(
alesapin
)
Fix
WITH ROLLUP
and
WITH CUBE
modifiers of
GROUP BY
with two-level aggregation.
#6225
(
Anton Popov
)
Fix bug with writing secondary indices marks with adaptive granularity.
#6126
(
alesapin
)
Fix initialization order while server startup. Since
StorageMergeTree::background_task_handle
is initialized in
startup()
the
MergeTreeBlockOutputStream::write()
may try to use it before initialization. Just check if it is initialized.
#6080
(
Ivan
)
Clearing the data buffer from the previous read operation that was completed with an error.
#6026
(
Nikolay
)
Fix bug with enabling adaptive granularity when creating a new replica for Replicated*MergeTree table.
#6394
#6452
(
alesapin
)
Fixed possible crash during server startup in case of exception happened in
libunwind
during exception at access to uninitialized
ThreadStatus
structure.
#6456
(
Nikita Mikhaylov
)
Fix crash in
yandexConsistentHash
function. Found by fuzz test.
#6304
#6305
(
alexey-milovidov
) | {"source_file": "2019.md"} | [
-0.027775470167398453,
0.056366488337516785,
-0.020249128341674805,
0.014044090174138546,
-0.07252878695726395,
-0.048967596143484116,
0.031037358567118645,
0.05191805213689804,
-0.05866537243127823,
0.02134823054075241,
0.01993955299258232,
-0.012448507361114025,
0.04807259514927864,
-0.0... |
60046de6-dd0b-4dcb-947c-1d003daade02 | Fix crash in
yandexConsistentHash
function. Found by fuzz test.
#6304
#6305
(
alexey-milovidov
)
Fixed the possibility of hanging queries when server is overloaded and global thread pool becomes near full. This have higher chance to happen on clusters with large number of shards (hundreds), because distributed queries allocate a thread per connection to each shard. For example, this issue may reproduce if a cluster of 330 shards is processing 30 concurrent distributed queries. This issue affects all versions starting from 19.2.
#6301
(
alexey-milovidov
)
Fixed logic of
arrayEnumerateUniqRanked
function.
#6423
(
alexey-milovidov
)
Fix segfault when decoding symbol table.
#6603
(
Amos Bird
)
Fixed irrelevant exception in cast of
LowCardinality(Nullable)
to not-Nullable column in case if it does not contain Nulls (e.g. in query like
SELECT CAST(CAST('Hello' AS LowCardinality(Nullable(String))) AS String)
.
#6094
#6119
(
Nikolai Kochetov
)
Removed extra quoting of description in
system.settings
table.
#6696
#6699
(
alexey-milovidov
)
Avoid possible deadlock in
TRUNCATE
of Replicated table.
#6695
(
alexey-milovidov
)
Fix reading in order of sorting key.
#6189
(
Anton Popov
)
Fix
ALTER TABLE ... UPDATE
query for tables with
enable_mixed_granularity_parts=1
.
#6543
(
alesapin
)
Fix bug opened by
#4405
(since 19.4.0). Reproduces in queries to Distributed tables over MergeTree tables when we does not query any columns (
SELECT 1
).
#6236
(
alesapin
)
Fixed overflow in integer division of signed type to unsigned type. The behaviour was exactly as in C or C++ language (integer promotion rules) that may be surprising. Please note that the overflow is still possible when dividing large signed number to large unsigned number or vice-versa (but that case is less usual). The issue existed in all server versions.
#6214
#6233
(
alexey-milovidov
)
Limit maximum sleep time for throttling when
max_execution_speed
or
max_execution_speed_bytes
is set. Fixed false errors like
Estimated query execution time (inf seconds) is too long
.
#5547
#6232
(
alexey-milovidov
)
Fixed issues about using
MATERIALIZED
columns and aliases in
MaterializedView
.
#448
#3484
#3450
#2878
#2285
#3796
(
Amos Bird
)
#6316
(
alexey-milovidov
)
Fix
FormatFactory
behaviour for input streams which are not implemented as processor.
#6495
(
Nikolai Kochetov
)
Fixed typo.
#6631
(
Alex Ryndin
)
Typo in the error message ( is -> are ).
#6839
(
Denis Zhuravlev
)
Fixed error while parsing of columns list from string if type contained a comma (this issue was relevant for
File
,
URL
,
HDFS
storages)
#6217
.
#6209
(
dimarub2000
)
Security Fix {#security-fix}
This release also contains all bug security fixes from 19.13 and 19.11. | {"source_file": "2019.md"} | [
0.0681874006986618,
-0.06908939778804779,
0.01576915569603443,
0.05388801544904709,
-0.049799006432294846,
-0.015651831403374672,
0.02531338855624199,
-0.017239220440387726,
0.025670623406767845,
-0.001589462161064148,
-0.011169658973813057,
0.029187124222517014,
0.026298990473151207,
-0.0... |
b597157d-f3ca-415b-a5cb-86dc34d6668f | Security Fix {#security-fix}
This release also contains all bug security fixes from 19.13 and 19.11.
Fixed the possibility of a fabricated query to cause server crash due to stack overflow in SQL parser. Fixed the possibility of stack overflow in Merge and Distributed tables, materialized views and conditions for row-level security that involve subqueries.
#6433
(
alexey-milovidov
)
Improvement {#improvement-3}
Correct implementation of ternary logic for
AND/OR
.
#6048
(
Alexander Kazakov
)
Now values and rows with expired TTL will be removed after
OPTIMIZE ... FINAL
query from old parts without TTL infos or with outdated TTL infos, e.g. after
ALTER ... MODIFY TTL
query. Added queries
SYSTEM STOP/START TTL MERGES
to disallow/allow assign merges with TTL and filter expired values in all merges.
#6274
(
Anton Popov
)
Possibility to change the location of ClickHouse history file for client using
CLICKHOUSE_HISTORY_FILE
env.
#6840
(
filimonov
)
Remove
dry_run
flag from
InterpreterSelectQuery
. ...
#6375
(
Nikolai Kochetov
)
Support
ASOF JOIN
with
ON
section.
#6211
(
Artem Zuikov
)
Better support of skip indexes for mutations and replication. Support for
MATERIALIZE/CLEAR INDEX ... IN PARTITION
query.
UPDATE x = x
recalculates all indices that use column
x
.
#5053
(
Nikita Vasilev
)
Allow to
ATTACH
live views (for example, at the server startup) regardless to
allow_experimental_live_view
setting.
#6754
(
alexey-milovidov
)
For stack traces gathered by query profiler, do not include stack frames generated by the query profiler itself.
#6250
(
alexey-milovidov
)
Now table functions
values
,
file
,
url
,
hdfs
have support for ALIAS columns.
#6255
(
alexey-milovidov
)
Throw an exception if
config.d
file does not have the corresponding root element as the config file.
#6123
(
dimarub2000
)
Print extra info in exception message for
no space left on device
.
#6182
,
#6252
#6352
(
tavplubix
)
When determining shards of a
Distributed
table to be covered by a read query (for
optimize_skip_unused_shards
= 1) ClickHouse now checks conditions from both
prewhere
and
where
clauses of select statement.
#6521
(
Alexander Kazakov
)
Enabled
SIMDJSON
for machines without AVX2 but with SSE 4.2 and PCLMUL instruction set.
#6285
#6320
(
alexey-milovidov
)
ClickHouse can work on filesystems without
O_DIRECT
support (such as ZFS and BtrFS) without additional tuning.
#4449
#6730
(
alexey-milovidov
)
Support push down predicate for final subquery.
#6120
(
TCeason
)
#6162
(
alexey-milovidov
)
Better
JOIN ON
keys extraction
#6131
(
Artem Zuikov
)
Upated
SIMDJSON
.
#6285
.
#6306
(
alexey-milovidov
)
Optimize selecting of smallest column for
SELECT count()
query.
#6344
(
Amos Bird
) | {"source_file": "2019.md"} | [
-0.04902911186218262,
0.009597543627023697,
0.00540118757635355,
-0.04920124262571335,
-0.08547072857618332,
-0.0005888646701350808,
-0.0321316197514534,
-0.02133813314139843,
0.00022446173534262925,
-0.004671692382544279,
0.07031933963298798,
0.060395292937755585,
0.013376072980463505,
-0... |
e7923c7a-a8ca-484c-90e6-3b4587aedbb4 | Upated
SIMDJSON
.
#6285
.
#6306
(
alexey-milovidov
)
Optimize selecting of smallest column for
SELECT count()
query.
#6344
(
Amos Bird
)
Added
strict
parameter in
windowFunnel()
. When the
strict
is set, the
windowFunnel()
applies conditions only for the unique values.
#6548
(
achimbab
)
Safer interface of
mysqlxx::Pool
.
#6150
(
avasiliev
)
Options line size when executing with
--help
option now corresponds with terminal size.
#6590
(
dimarub2000
)
Disable "read in order" optimization for aggregation without keys.
#6599
(
Anton Popov
)
HTTP status code for
INCORRECT_DATA
and
TYPE_MISMATCH
error codes was changed from default
500 Internal Server Error
to
400 Bad Request
.
#6271
(
Alexander Rodin
)
Move Join object from
ExpressionAction
into
AnalyzedJoin
.
ExpressionAnalyzer
and
ExpressionAction
do not know about
Join
class anymore. Its logic is hidden by
AnalyzedJoin
iface.
#6801
(
Artem Zuikov
)
Fixed possible deadlock of distributed queries when one of shards is localhost but the query is sent via network connection.
#6759
(
alexey-milovidov
)
Changed semantic of multiple tables
RENAME
to avoid possible deadlocks.
#6757
.
#6756
(
alexey-milovidov
)
Rewritten MySQL compatibility server to prevent loading full packet payload in memory. Decreased memory consumption for each connection to approximately
2 * DBMS_DEFAULT_BUFFER_SIZE
(read/write buffers).
#5811
(
Yuriy Baranov
)
Move AST alias interpreting logic out of parser that does not have to know anything about query semantics.
#6108
(
Artem Zuikov
)
Slightly more safe parsing of
NamesAndTypesList
.
#6408
.
#6410
(
alexey-milovidov
)
clickhouse-copier
: Allow use
where_condition
from config with
partition_key
alias in query for checking partition existence (Earlier it was used only in reading data queries).
#6577
(
proller
)
Added optional message argument in
throwIf
. (
#5772
)
#6329
(
Vdimir
)
Server exception got while sending insertion data is now being processed in client as well.
#5891
#6711
(
dimarub2000
)
Added a metric
DistributedFilesToInsert
that shows the total number of files in filesystem that are selected to send to remote servers by Distributed tables. The number is summed across all shards.
#6600
(
alexey-milovidov
)
Move most of JOINs prepare logic from
ExpressionAction/ExpressionAnalyzer
to
AnalyzedJoin
.
#6785
(
Artem Zuikov
)
Fix TSan
warning
'lock-order-inversion'.
#6740
(
Vasily Nemkov
)
Better information messages about lack of Linux capabilities. Logging fatal errors with "fatal" level, that will make it easier to find in
system.text_log
.
#6441
(
alexey-milovidov
) | {"source_file": "2019.md"} | [
-0.010602910071611404,
0.03989381715655327,
-0.052026476711034775,
0.09294691681861877,
-0.06225588172674179,
-0.007143635302782059,
0.020465116947889328,
0.06265239417552948,
0.032569438219070435,
0.06602910161018372,
-0.02251570113003254,
-0.005516055505722761,
0.0019067510729655623,
-0.... |
74e2b647-fb39-427f-a40a-b6eacbd36b38 | Better information messages about lack of Linux capabilities. Logging fatal errors with "fatal" level, that will make it easier to find in
system.text_log
.
#6441
(
alexey-milovidov
)
When enable dumping temporary data to the disk to restrict memory usage during
GROUP BY
,
ORDER BY
, it didn't check the free disk space. The fix add a new setting
min_free_disk_space
, when the free disk space it smaller then the threshold, the query will stop and throw
ErrorCodes::NOT_ENOUGH_SPACE
.
#6678
(
Weiqing Xu
)
#6691
(
alexey-milovidov
)
Removed recursive rwlock by thread. It makes no sense, because threads are reused between queries.
SELECT
query may acquire a lock in one thread, hold a lock from another thread and exit from first thread. In the same time, first thread can be reused by
DROP
query. This will lead to false "Attempt to acquire exclusive lock recursively" messages.
#6771
(
alexey-milovidov
)
Split
ExpressionAnalyzer.appendJoin()
. Prepare a place in
ExpressionAnalyzer
for
MergeJoin
.
#6524
(
Artem Zuikov
)
Added
mysql_native_password
authentication plugin to MySQL compatibility server.
#6194
(
Yuriy Baranov
)
Less number of
clock_gettime
calls; fixed ABI compatibility between debug/release in
Allocator
(insignificant issue).
#6197
(
alexey-milovidov
)
Move
collectUsedColumns
from
ExpressionAnalyzer
to
SyntaxAnalyzer
.
SyntaxAnalyzer
makes
required_source_columns
itself now.
#6416
(
Artem Zuikov
)
Add setting
joined_subquery_requires_alias
to require aliases for subselects and table functions in
FROM
that more than one table is present (i.e. queries with JOINs).
#6733
(
Artem Zuikov
)
Extract
GetAggregatesVisitor
class from
ExpressionAnalyzer
.
#6458
(
Artem Zuikov
)
system.query_log
: change data type of
type
column to
Enum
.
#6265
(
Nikita Mikhaylov
)
Static linking of
sha256_password
authentication plugin.
#6512
(
Yuriy Baranov
)
Avoid extra dependency for the setting
compile
to work. In previous versions, the user may get error like
cannot open crti.o
,
unable to find library -lc
etc.
#6309
(
alexey-milovidov
)
More validation of the input that may come from malicious replica.
#6303
(
alexey-milovidov
)
Now
clickhouse-obfuscator
file is available in
clickhouse-client
package. In previous versions it was available as
clickhouse obfuscator
(with whitespace).
#5816
#6609
(
dimarub2000
)
Fixed deadlock when we have at least two queries that read at least two tables in different order and another query that performs DDL operation on one of tables. Fixed another very rare deadlock.
#6764
(
alexey-milovidov
)
Added
os_thread_ids
column to
system.processes
and
system.query_log
for better debugging possibilities.
#6763
(
alexey-milovidov
)
A workaround for PHP mysqlnd extension bugs which occur when
sha256_password
is used as a default authentication plugin (described in
#6031
).
#6113
(
Yuriy Baranov
) | {"source_file": "2019.md"} | [
-0.04636166989803314,
-0.0766509622335434,
-0.03366474807262421,
0.08545663952827454,
0.013738863170146942,
-0.048533499240875244,
0.0480412133038044,
0.058245949447155,
0.018688952550292015,
0.04455811157822609,
0.05745759978890419,
0.025674788281321526,
-0.03789076209068298,
-0.056891337... |
82325042-63dd-4168-ba9e-baea925ab174 | A workaround for PHP mysqlnd extension bugs which occur when
sha256_password
is used as a default authentication plugin (described in
#6031
).
#6113
(
Yuriy Baranov
)
Remove unneeded place with changed nullability columns.
#6693
(
Artem Zuikov
)
Set default value of
queue_max_wait_ms
to zero, because current value (five seconds) makes no sense. There are rare circumstances when this settings has any use. Added settings
replace_running_query_max_wait_ms
,
kafka_max_wait_ms
and
connection_pool_max_wait_ms
for disambiguation.
#6692
(
alexey-milovidov
)
Extract
SelectQueryExpressionAnalyzer
from
ExpressionAnalyzer
. Keep the last one for non-select queries.
#6499
(
Artem Zuikov
)
Removed duplicating input and output formats.
#6239
(
Nikolai Kochetov
)
Allow user to override
poll_interval
and
idle_connection_timeout
settings on connection.
#6230
(
alexey-milovidov
)
MergeTree
now has an additional option
ttl_only_drop_parts
(disabled by default) to avoid partial pruning of parts, so that they dropped completely when all the rows in a part are expired.
#6191
(
Sergi Vladykin
)
Type checks for set index functions. Throw exception if function got a wrong type. This fixes fuzz test with UBSan.
#6511
(
Nikita Vasilev
)
Performance Improvement {#performance-improvement-2}
Optimize queries with
ORDER BY expressions
clause, where
expressions
have coinciding prefix with sorting key in
MergeTree
tables. This optimization is controlled by
optimize_read_in_order
setting.
#6054
#6629
(
Anton Popov
)
Allow to use multiple threads during parts loading and removal.
#6372
#6074
#6438
(
alexey-milovidov
)
Implemented batch variant of updating aggregate function states. It may lead to performance benefits.
#6435
(
alexey-milovidov
)
Using
FastOps
library for functions
exp
,
log
,
sigmoid
,
tanh
. FastOps is a fast vector math library from Michael Parakhin (Yandex CTO). Improved performance of
exp
and
log
functions more than 6 times. The functions
exp
and
log
from
Float32
argument will return
Float32
(in previous versions they always return
Float64
). Now
exp(nan)
may return
inf
. The result of
exp
and
log
functions may be not the nearest machine representable number to the true answer.
#6254
(
alexey-milovidov
) Using Danila Kutenin variant to make fastops working
#6317
(
alexey-milovidov
)
Disable consecutive key optimization for
UInt8/16
.
#6298
#6701
(
akuzm
)
Improved performance of
simdjson
library by getting rid of dynamic allocation in
ParsedJson::Iterator
.
#6479
(
Vitaly Baranov
)
Pre-fault pages when allocating memory with
mmap()
.
#6667
(
akuzm
)
Fix performance bug in
Decimal
comparison.
#6380
(
Artem Zuikov
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-4}
Remove Compiler (runtime template instantiation) because we've win over it's performance.
#6646
(
alexey-milovidov
) | {"source_file": "2019.md"} | [
-0.027685310691595078,
-0.02326176129281521,
-0.088117815554142,
0.0036072852090001106,
-0.06221320852637291,
-0.01860649324953556,
0.012179097160696983,
-0.07104480266571045,
0.06880306452512741,
0.019327500835061073,
0.027371518313884735,
-0.03053741343319416,
0.018388647586107254,
-0.01... |
fb851f06-1496-44fe-ab4b-666083fe89a6 | Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-4}
Remove Compiler (runtime template instantiation) because we've win over it's performance.
#6646
(
alexey-milovidov
)
Added performance test to show degradation of performance in gcc-9 in more isolated way.
#6302
(
alexey-milovidov
)
Added table function
numbers_mt
, which is multi-threaded version of
numbers
. Updated performance tests with hash functions.
#6554
(
Nikolai Kochetov
)
Comparison mode in
clickhouse-benchmark
#6220
#6343
(
dimarub2000
)
Best effort for printing stack traces. Also added
SIGPROF
as a debugging signal to print stack trace of a running thread.
#6529
(
alexey-milovidov
)
Every function in its own file, part 10.
#6321
(
alexey-milovidov
)
Remove doubled const
TABLE_IS_READ_ONLY
.
#6566
(
filimonov
)
Formatting changes for
StringHashMap
PR
#5417
.
#6700
(
akuzm
)
Better subquery for join creation in
ExpressionAnalyzer
.
#6824
(
Artem Zuikov
)
Remove a redundant condition (found by PVS Studio).
#6775
(
akuzm
)
Separate the hash table interface for
ReverseIndex
.
#6672
(
akuzm
)
Refactoring of settings.
#6689
(
alesapin
)
Add comments for
set
index functions.
#6319
(
Nikita Vasilev
)
Increase OOM score in debug version on Linux.
#6152
(
akuzm
)
HDFS HA now work in debug build.
#6650
(
Weiqing Xu
)
Added a test to
transform_query_for_external_database
.
#6388
(
alexey-milovidov
)
Add test for multiple materialized views for Kafka table.
#6509
(
Ivan
)
Make a better build scheme.
#6500
(
Ivan
)
Fixed
test_external_dictionaries
integration in case it was executed under non root user.
#6507
(
Nikolai Kochetov
)
The bug reproduces when total size of written packets exceeds
DBMS_DEFAULT_BUFFER_SIZE
.
#6204
(
Yuriy Baranov
)
Added a test for
RENAME
table race condition
#6752
(
alexey-milovidov
)
Avoid data race on Settings in
KILL QUERY
.
#6753
(
alexey-milovidov
)
Add integration test for handling errors by a cache dictionary.
#6755
(
Vitaly Baranov
)
Disable parsing of ELF object files on Mac OS, because it makes no sense.
#6578
(
alexey-milovidov
)
Attempt to make changelog generator better.
#6327
(
alexey-milovidov
)
Adding
-Wshadow
switch to the GCC.
#6325
(
kreuzerkrieg
)
Removed obsolete code for
mimalloc
support.
#6715
(
alexey-milovidov
)
zlib-ng
determines x86 capabilities and saves this info to global variables. This is done in defalteInit call, which may be made by different threads simultaneously. To avoid multi-threaded writes, do it on library startup.
#6141
(
akuzm
)
Regression test for a bug which in join which was fixed in
#5192
.
#6147
(
Bakhtiyor Ruziev
)
Fixed MSan report.
#6144
(
alexey-milovidov
)
Fix flapping TTL test.
#6782
(
Anton Popov
)
Fixed false data race in
MergeTreeDataPart::is_frozen
field.
#6583
(
alexey-milovidov
) | {"source_file": "2019.md"} | [
-0.035136349499225616,
-0.02784620225429535,
-0.01868516393005848,
0.010352333076298237,
0.01869102194905281,
-0.07995231449604034,
-0.022074615582823753,
0.07258179038763046,
-0.07052101939916611,
-0.01721549965441227,
-0.01791992597281933,
-0.013791398145258427,
-0.04825187474489212,
-0.... |
8f3fe388-3b0f-4715-a784-4176f81b6b00 | Fixed MSan report.
#6144
(
alexey-milovidov
)
Fix flapping TTL test.
#6782
(
Anton Popov
)
Fixed false data race in
MergeTreeDataPart::is_frozen
field.
#6583
(
alexey-milovidov
)
Fixed timeouts in fuzz test. In previous version, it managed to find false hangup in query
SELECT * FROM numbers_mt(gccMurmurHash(''))
.
#6582
(
alexey-milovidov
)
Added debug checks to
static_cast
of columns.
#6581
(
alexey-milovidov
)
Support for Oracle Linux in official RPM packages.
#6356
#6585
(
alexey-milovidov
)
Changed json perftests from
once
to
loop
type.
#6536
(
Nikolai Kochetov
)
odbc-bridge.cpp
defines
main()
so it should not be included in
clickhouse-lib
.
#6538
(
Orivej Desh
)
Test for crash in
FULL|RIGHT JOIN
with nulls in right table's keys.
#6362
(
Artem Zuikov
)
Added a test for the limit on expansion of aliases just in case.
#6442
(
alexey-milovidov
)
Switched from
boost::filesystem
to
std::filesystem
where appropriate.
#6253
#6385
(
alexey-milovidov
)
Added RPM packages to website.
#6251
(
alexey-milovidov
)
Add a test for fixed
Unknown identifier
exception in
IN
section.
#6708
(
Artem Zuikov
)
Simplify
shared_ptr_helper
because people facing difficulties understanding it.
#6675
(
alexey-milovidov
)
Added performance tests for fixed Gorilla and DoubleDelta codec.
#6179
(
Vasily Nemkov
)
Split the integration test
test_dictionaries
into 4 separate tests.
#6776
(
Vitaly Baranov
)
Fix PVS-Studio warning in
PipelineExecutor
.
#6777
(
Nikolai Kochetov
)
Allow to use
library
dictionary source with ASan.
#6482
(
alexey-milovidov
)
Added option to generate changelog from a list of PRs.
#6350
(
alexey-milovidov
)
Lock the
TinyLog
storage when reading.
#6226
(
akuzm
)
Check for broken symlinks in CI.
#6634
(
alexey-milovidov
)
Increase timeout for "stack overflow" test because it may take a long time in debug build.
#6637
(
alexey-milovidov
)
Added a check for double whitespaces.
#6643
(
alexey-milovidov
)
Fix
new/delete
memory tracking when build with sanitizers. Tracking is not clear. It only prevents memory limit exceptions in tests.
#6450
(
Artem Zuikov
)
Enable back the check of undefined symbols while linking.
#6453
(
Ivan
)
Avoid rebuilding
hyperscan
every day.
#6307
(
alexey-milovidov
)
Fixed UBSan report in
ProtobufWriter
.
#6163
(
alexey-milovidov
)
Don't allow to use query profiler with sanitizers because it is not compatible.
#6769
(
alexey-milovidov
)
Add test for reloading a dictionary after fail by timer.
#6114
(
Vitaly Baranov
)
Fix inconsistency in
PipelineExecutor::prepareProcessor
argument type.
#6494
(
Nikolai Kochetov
)
Added a test for bad URIs.
#6493
(
alexey-milovidov
)
Added more checks to
CAST
function. This should get more information about segmentation fault in fuzzy test.
#6346
(
Nikolai Kochetov
) | {"source_file": "2019.md"} | [
0.01928725652396679,
-0.024332206696271896,
-0.021381132304668427,
-0.023929722607135773,
0.008065027184784412,
-0.07693593204021454,
-0.03723663091659546,
0.049760326743125916,
-0.07035910338163376,
-0.009017660282552242,
0.0532621406018734,
0.009334220550954342,
-0.04429791867733002,
-0.... |
923aeadb-9dcb-49b4-8151-daf6cf5090bf | Added a test for bad URIs.
#6493
(
alexey-milovidov
)
Added more checks to
CAST
function. This should get more information about segmentation fault in fuzzy test.
#6346
(
Nikolai Kochetov
)
Added
gcc-9
support to
docker/builder
container that builds image locally.
#6333
(
Gleb Novikov
)
Test for primary key with
LowCardinality(String)
.
#5044
#6219
(
dimarub2000
)
Fixed tests affected by slow stack traces printing.
#6315
(
alexey-milovidov
)
Add a test case for crash in
groupUniqArray
fixed in
#6029
.
#4402
#6129
(
akuzm
)
Fixed indices mutations tests.
#6645
(
Nikita Vasilev
)
In performance test, do not read query log for queries we didn't run.
#6427
(
akuzm
)
Materialized view now could be created with any low cardinality types regardless to the setting about suspicious low cardinality types.
#6428
(
Olga Khvostikova
)
Updated tests for
send_logs_level
setting.
#6207
(
Nikolai Kochetov
)
Fix build under gcc-8.2.
#6196
(
Max Akhmedov
)
Fix build with internal libc++.
#6724
(
Ivan
)
Fix shared build with
rdkafka
library
#6101
(
Ivan
)
Fixes for Mac OS build (incomplete).
#6390
(
alexey-milovidov
)
#6429
(
alex-zaitsev
)
Fix "splitted" build.
#6618
(
alexey-milovidov
)
Other build fixes:
#6186
(
Amos Bird
)
#6486
#6348
(
vxider
)
#6744
(
Ivan
)
#6016
#6421
#6491
(
proller
)
Backward Incompatible Change {#backward-incompatible-change-3}
Removed rarely used table function
catBoostPool
and storage
CatBoostPool
. If you have used this table function, please write email to
feedback@clickhouse.com
. Note that CatBoost integration remains and will be supported.
#6279
(
alexey-milovidov
)
Disable
ANY RIGHT JOIN
and
ANY FULL JOIN
by default. Set
any_join_distinct_right_table_keys
setting to enable them.
#5126
#6351
(
Artem Zuikov
)
ClickHouse Release 19.13 {#clickhouse-release-19-13}
ClickHouse Release 19.13.6.51, 2019-10-02 {#clickhouse-release-19-13-6-51-2019-10-02}
Bug Fix {#bug-fix-9}
This release also contains all bug fixes from 19.11.12.69.
ClickHouse Release 19.13.5.44, 2019-09-20 {#clickhouse-release-19-13-5-44-2019-09-20}
Bug Fix {#bug-fix-10}
This release also contains all bug fixes from 19.14.6.12.
Fixed possible inconsistent state of table while executing
DROP
query for replicated table while zookeeper is not accessible.
#6045
#6413
(
Nikita Mikhaylov
)
Fix for data race in StorageMerge
#6717
(
alexey-milovidov
)
Fix bug introduced in query profiler which leads to endless recv from socket.
#6386
(
alesapin
)
Fix excessive CPU usage while executing
JSONExtractRaw
function over a boolean value.
#6208
(
Vitaly Baranov
)
Fixes the regression while pushing to materialized view.
#6415
(
Ivan
)
Table function
url
had the vulnerability allowed the attacker to inject arbitrary HTTP headers in the request. This issue was found by
Nikita Tikhomirov
.
#6466
(
alexey-milovidov
) | {"source_file": "2019.md"} | [
0.002122573321685195,
-0.04024853557348251,
0.02215268276631832,
0.02938108518719673,
-0.016790689900517464,
-0.0937093198299408,
-0.023775093257427216,
0.0158883985131979,
-0.06337152421474457,
-0.007000347599387169,
-0.021915996447205544,
-0.02708323858678341,
-0.027263231575489044,
0.00... |
ea4faa28-095c-4a76-92d2-f9fb6507e48e | Table function
url
had the vulnerability allowed the attacker to inject arbitrary HTTP headers in the request. This issue was found by
Nikita Tikhomirov
.
#6466
(
alexey-milovidov
)
Fix useless
AST
check in Set index.
#6510
#6651
(
Nikita Vasilev
)
Fixed parsing of
AggregateFunction
values embedded in query.
#6575
#6773
(
Zhichang Yu
)
Fixed wrong behaviour of
trim
functions family.
#6647
(
alexey-milovidov
)
ClickHouse Release 19.13.4.32, 2019-09-10 {#clickhouse-release-19-13-4-32-2019-09-10}
Bug Fix {#bug-fix-11}
This release also contains all bug security fixes from 19.11.9.52 and 19.11.10.54.
Fixed data race in
system.parts
table and
ALTER
query.
#6245
#6513
(
alexey-milovidov
)
Fixed mismatched header in streams happened in case of reading from empty distributed table with sample and prewhere.
#6167
(
Lixiang Qian
)
#6823
(
Nikolai Kochetov
)
Fixed crash when using
IN
clause with a subquery with a tuple.
#6125
#6550
(
tavplubix
)
Fix case with same column names in
GLOBAL JOIN ON
section.
#6181
(
Artem Zuikov
)
Fix crash when casting types to
Decimal
that do not support it. Throw exception instead.
#6297
(
Artem Zuikov
)
Fixed crash in
extractAll()
function.
#6644
(
Artem Zuikov
)
Query transformation for
MySQL
,
ODBC
,
JDBC
table functions now works properly for
SELECT WHERE
queries with multiple
AND
expressions.
#6381
#6676
(
dimarub2000
)
Added previous declaration checks for MySQL 8 integration.
#6569
(
Rafael David Tinoco
)
Security Fix {#security-fix-1}
Fix two vulnerabilities in codecs in decompression phase (malicious user can fabricate compressed data that will lead to buffer overflow in decompression).
#6670
(
Artem Zuikov
)
ClickHouse Release 19.13.3.26, 2019-08-22 {#clickhouse-release-19-13-3-26-2019-08-22}
Bug Fix {#bug-fix-12}
Fix
ALTER TABLE ... UPDATE
query for tables with
enable_mixed_granularity_parts=1
.
#6543
(
alesapin
)
Fix NPE when using IN clause with a subquery with a tuple.
#6125
#6550
(
tavplubix
)
Fixed an issue that if a stale replica becomes alive, it may still have data parts that were removed by DROP PARTITION.
#6522
#6523
(
tavplubix
)
Fixed issue with parsing CSV
#6426
#6559
(
tavplubix
)
Fixed data race in system.parts table and ALTER query. This fixes
#6245
.
#6513
(
alexey-milovidov
)
Fixed wrong code in mutations that may lead to memory corruption. Fixed segfault with read of address
0x14c0
that may happed due to concurrent
DROP TABLE
and
SELECT
from
system.parts
or
system.parts_columns
. Fixed race condition in preparation of mutation queries. Fixed deadlock caused by
OPTIMIZE
of Replicated tables and concurrent modification operations like ALTERs.
#6514
(
alexey-milovidov
)
Fixed possible data loss after
ALTER DELETE
query on table with skipping index.
#6224
#6282
(
Nikita Vasilev
)
Security Fix {#security-fix-2} | {"source_file": "2019.md"} | [
-0.05983908474445343,
0.0458727590739727,
0.01736803911626339,
0.019109778106212616,
0.00825782585889101,
-0.04795949533581734,
-0.011262391693890095,
0.03248369321227074,
0.0013131635496392846,
0.029041294008493423,
0.023427141830325127,
-0.04615544155240059,
0.04766598716378212,
-0.04106... |
3c686d65-15d6-4409-b952-590c3f10a3a2 | Fixed possible data loss after
ALTER DELETE
query on table with skipping index.
#6224
#6282
(
Nikita Vasilev
)
Security Fix {#security-fix-2}
If the attacker has write access to ZooKeeper and is able to run custom server available from the network where ClickHouse run, it can create custom-built malicious server that will act as ClickHouse replica and register it in ZooKeeper. When another replica will fetch data part from malicious replica, it can force clickhouse-server to write to arbitrary path on filesystem. Found by Eldar Zaitov, information security team at Yandex.
#6247
(
alexey-milovidov
)
ClickHouse Release 19.13.2.19, 2019-08-14 {#clickhouse-release-19-13-2-19-2019-08-14}
New Feature {#new-feature-5}
Sampling profiler on query level.
Example
.
#4247
(
laplab
)
#6124
(
alexey-milovidov
)
#6250
#6283
#6386
Allow to specify a list of columns with
COLUMNS('regexp')
expression that works like a more sophisticated variant of
*
asterisk.
#5951
(
mfridental
), (
alexey-milovidov
)
CREATE TABLE AS table_function()
is now possible
#6057
(
dimarub2000
)
Adam optimizer for stochastic gradient descent is used by default in
stochasticLinearRegression()
and
stochasticLogisticRegression()
aggregate functions, because it shows good quality without almost any tuning.
#6000
(
Quid37
)
Added functions for working with the сustom week number
#5212
(
Andy Yang
)
RENAME
queries now work with all storages.
#5953
(
Ivan
)
Now client receive logs from server with any desired level by setting
send_logs_level
regardless to the log level specified in server settings.
#5964
(
Nikita Mikhaylov
)
Backward Incompatible Change {#backward-incompatible-change-4}
The setting
input_format_defaults_for_omitted_fields
is enabled by default. Inserts in Distributed tables need this setting to be the same on cluster (you need to set it before rolling update). It enables calculation of complex default expressions for omitted fields in
JSONEachRow
and
CSV*
formats. It should be the expected behavior but may lead to negligible performance difference.
#6043
(
Artem Zuikov
),
#5625
(
akuzm
)
Experimental Features {#experimental-features}
New query processing pipeline. Use
experimental_use_processors=1
option to enable it. Use for your own trouble.
#4914
(
Nikolai Kochetov
)
Bug Fix {#bug-fix-13}
Kafka integration has been fixed in this version.
Fixed
DoubleDelta
encoding of
Int64
for large
DoubleDelta
values, improved
DoubleDelta
encoding for random data for
Int32
.
#5998
(
Vasily Nemkov
)
Fixed overestimation of
max_rows_to_read
if the setting
merge_tree_uniform_read_distribution
is set to 0.
#6019
(
alexey-milovidov
)
Improvement {#improvement-4}
Throws an exception if
config.d
file does not have the corresponding root element as the config file
#6123
(
dimarub2000
)
Performance Improvement {#performance-improvement-3} | {"source_file": "2019.md"} | [
-0.06444310396909714,
-0.01794220320880413,
-0.0150823462754488,
0.06917791813611984,
0.06615559011697769,
-0.06855561584234238,
0.0520850270986557,
-0.021857906132936478,
0.03338861092925072,
0.049628518521785736,
0.027033105492591858,
0.009520722553133965,
0.10282766073942184,
-0.0380473... |
de4ac99f-7d86-415d-89a1-9dff39031a86 | Throws an exception if
config.d
file does not have the corresponding root element as the config file
#6123
(
dimarub2000
)
Performance Improvement {#performance-improvement-3}
Optimize
count()
. Now it uses the smallest column (if possible).
#6028
(
Amos Bird
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-5}
Report memory usage in performance tests.
#5899
(
akuzm
)
Fix build with external
libcxx
#6010
(
Ivan
)
Fix shared build with
rdkafka
library
#6101
(
Ivan
)
ClickHouse Release 19.11 {#clickhouse-release-19-11}
ClickHouse Release 19.11.13.74, 2019-11-01 {#clickhouse-release-19-11-13-74-2019-11-01}
Bug Fix {#bug-fix-14}
Fixed rare crash in
ALTER MODIFY COLUMN
and vertical merge when one of merged/altered parts is empty (0 rows).
#6780
(
alesapin
)
Manual update of
SIMDJSON
. This fixes possible flooding of stderr files with bogus json diagnostic messages.
#7548
(
Alexander Kazakov
)
Fixed bug with
mrk
file extension for mutations (
alesapin
)
ClickHouse Release 19.11.12.69, 2019-10-02 {#clickhouse-release-19-11-12-69-2019-10-02}
Bug Fix {#bug-fix-15}
Fixed performance degradation of index analysis on complex keys on large tables. This fixes
#6924
.
#7075
(
alexey-milovidov
)
Avoid rare SIGSEGV while sending data in tables with Distributed engine (
Failed to send batch: file with index XXXXX is absent
).
#7032
(
Azat Khuzhin
)
Fix
Unknown identifier
with multiple joins. This fixes
#5254
.
#7022
(
Artem Zuikov
)
ClickHouse Release 19.11.11.57, 2019-09-13 {#clickhouse-release-19-11-11-57-2019-09-13}
Fix logical error causing segfaults when selecting from Kafka empty topic.
#6902
#6909
(
Ivan
)
Fix for function
АrrayEnumerateUniqRanked
with empty arrays in params.
#6928
(
proller
)
ClickHouse Release 19.11.10.54, 2019-09-10 {#clickhouse-release-19-11-10-54-2019-09-10}
Bug Fix {#bug-fix-16}
Do store offsets for Kafka messages manually to be able to commit them all at once for all partitions. Fixes potential duplication in "one consumer - many partitions" scenario.
#6872
(
Ivan
)
ClickHouse Release 19.11.9.52, 2019-09-6 {#clickhouse-release-19-11-9-52-2019-09-6}
Improve error handling in cache dictionaries.
#6737
(
Vitaly Baranov
)
Fixed bug in function
arrayEnumerateUniqRanked
.
#6779
(
proller
)
Fix
JSONExtract
function while extracting a
Tuple
from JSON.
#6718
(
Vitaly Baranov
)
Fixed possible data loss after
ALTER DELETE
query on table with skipping index.
#6224
#6282
(
Nikita Vasilev
)
Fixed performance test.
#6392
(
alexey-milovidov
)
Parquet: Fix reading boolean columns.
#6579
(
alexey-milovidov
)
Fixed wrong behaviour of
nullIf
function for constant arguments.
#6518
(
Guillaume Tassery
)
#6580
(
alexey-milovidov
)
Fix Kafka messages duplication problem on normal server restart.
#6597
(
Ivan
) | {"source_file": "2019.md"} | [
-0.006558326538652182,
0.03565452620387077,
-0.08421008288860321,
-0.0035954960621893406,
0.042286764830350876,
-0.059130363166332245,
-0.09741271287202835,
0.05951357260346413,
-0.01724047027528286,
0.03843304142355919,
0.06414241343736649,
0.021104350686073303,
-0.10578741133213043,
-0.0... |
6f2bfb31-6c23-4cf1-91c8-18e16079df66 | Fix Kafka messages duplication problem on normal server restart.
#6597
(
Ivan
)
Fixed an issue when long
ALTER UPDATE
or
ALTER DELETE
may prevent regular merges to run. Prevent mutations from executing if there is no enough free threads available.
#6502
#6617
(
tavplubix
)
Fixed error with processing "timezone" in server configuration file.
#6709
(
alexey-milovidov
)
Fix kafka tests.
#6805
(
Ivan
)
Security Fix {#security-fix-3}
If the attacker has write access to ZooKeeper and is able to run custom server available from the network where ClickHouse runs, it can create custom-built malicious server that will act as ClickHouse replica and register it in ZooKeeper. When another replica will fetch data part from malicious replica, it can force clickhouse-server to write to arbitrary path on filesystem. Found by Eldar Zaitov, information security team at Yandex.
#6247
(
alexey-milovidov
)
ClickHouse Release 19.11.8.46, 2019-08-22 {#clickhouse-release-19-11-8-46-2019-08-22}
Bug Fix {#bug-fix-17}
Fix
ALTER TABLE ... UPDATE
query for tables with
enable_mixed_granularity_parts=1
.
#6543
(
alesapin
)
Fix NPE when using IN clause with a subquery with a tuple.
#6125
#6550
(
tavplubix
)
Fixed an issue that if a stale replica becomes alive, it may still have data parts that were removed by DROP PARTITION.
#6522
#6523
(
tavplubix
)
Fixed issue with parsing CSV
#6426
#6559
(
tavplubix
)
Fixed data race in system.parts table and ALTER query. This fixes
#6245
.
#6513
(
alexey-milovidov
)
Fixed wrong code in mutations that may lead to memory corruption. Fixed segfault with read of address
0x14c0
that may happed due to concurrent
DROP TABLE
and
SELECT
from
system.parts
or
system.parts_columns
. Fixed race condition in preparation of mutation queries. Fixed deadlock caused by
OPTIMIZE
of Replicated tables and concurrent modification operations like ALTERs.
#6514
(
alexey-milovidov
)
ClickHouse Release 19.11.7.40, 2019-08-14 {#clickhouse-release-19-11-7-40-2019-08-14}
Bug Fix {#bug-fix-18}
Kafka integration has been fixed in this version.
Fix segfault when using
arrayReduce
for constant arguments.
#6326
(
alexey-milovidov
)
Fixed
toFloat()
monotonicity.
#6374
(
dimarub2000
)
Fix segfault with enabled
optimize_skip_unused_shards
and missing sharding key.
#6384
(
CurtizJ
)
Fixed logic of
arrayEnumerateUniqRanked
function.
#6423
(
alexey-milovidov
)
Removed extra verbose logging from MySQL handler.
#6389
(
alexey-milovidov
)
Fix wrong behavior and possible segfaults in
topK
and
topKWeighted
aggregated functions.
#6404
(
CurtizJ
)
Do not expose virtual columns in
system.columns
table. This is required for backward compatibility.
#6406
(
alexey-milovidov
)
Fix bug with memory allocation for string fields in complex key cache dictionary.
#6447
(
alesapin
) | {"source_file": "2019.md"} | [
-0.09266507625579834,
-0.03303108364343643,
-0.03580055013298988,
-0.028570188209414482,
0.008604577742516994,
-0.06852797418832779,
-0.0455779954791069,
-0.047156743705272675,
0.08487072587013245,
0.032449644058942795,
0.007959319278597832,
0.020937642082571983,
-0.012507004663348198,
0.0... |
8042b9b9-4ab7-4109-aa55-65db725de472 | Fix bug with memory allocation for string fields in complex key cache dictionary.
#6447
(
alesapin
)
Fix bug with enabling adaptive granularity when creating new replica for
Replicated*MergeTree
table.
#6452
(
alesapin
)
Fix infinite loop when reading Kafka messages.
#6354
(
abyss7
)
Fixed the possibility of a fabricated query to cause server crash due to stack overflow in SQL parser and possibility of stack overflow in
Merge
and
Distributed
tables
#6433
(
alexey-milovidov
)
Fixed Gorilla encoding error on small sequences.
#6444
(
Enmk
)
Improvement {#improvement-5}
Allow user to override
poll_interval
and
idle_connection_timeout
settings on connection.
#6230
(
alexey-milovidov
)
ClickHouse Release 19.11.5.28, 2019-08-05 {#clickhouse-release-19-11-5-28-2019-08-05}
Bug Fix {#bug-fix-19}
Fixed the possibility of hanging queries when server is overloaded.
#6301
(
alexey-milovidov
)
Fix FPE in yandexConsistentHash function. This fixes
#6304
.
#6126
(
alexey-milovidov
)
Fixed bug in conversion of
LowCardinality
types in
AggregateFunctionFactory
. This fixes
#6257
.
#6281
(
Nikolai Kochetov
)
Fix parsing of
bool
settings from
true
and
false
strings in configuration files.
#6278
(
alesapin
)
Fix rare bug with incompatible stream headers in queries to
Distributed
table over
MergeTree
table when part of
WHERE
moves to
PREWHERE
.
#6236
(
alesapin
)
Fixed overflow in integer division of signed type to unsigned type. This fixes
#6214
.
#6233
(
alexey-milovidov
)
Backward Incompatible Change {#backward-incompatible-change-5}
Kafka
still broken.
ClickHouse Release 19.11.4.24, 2019-08-01 {#clickhouse-release-19-11-4-24-2019-08-01}
Bug Fix {#bug-fix-20}
Fix bug with writing secondary indices marks with adaptive granularity.
#6126
(
alesapin
)
Fix
WITH ROLLUP
and
WITH CUBE
modifiers of
GROUP BY
with two-level aggregation.
#6225
(
Anton Popov
)
Fixed hang in
JSONExtractRaw
function. Fixed
#6195
#6198
(
alexey-milovidov
)
Fix segfault in ExternalLoader::reloadOutdated().
#6082
(
Vitaly Baranov
)
Fixed the case when server may close listening sockets but not shutdown and continue serving remaining queries. You may end up with two running clickhouse-server processes. Sometimes, the server may return an error
bad_function_call
for remaining queries.
#6231
(
alexey-milovidov
)
Fixed useless and incorrect condition on update field for initial loading of external dictionaries via ODBC, MySQL, ClickHouse and HTTP. This fixes
#6069
#6083
(
alexey-milovidov
)
Fixed irrelevant exception in cast of
LowCardinality(Nullable)
to not-Nullable column in case if it does not contain Nulls (e.g. in query like
SELECT CAST(CAST('Hello' AS LowCardinality(Nullable(String))) AS String)
.
#6094
#6119
(
Nikolai Kochetov
) | {"source_file": "2019.md"} | [
-0.023780839517712593,
-0.0709163248538971,
-0.04264012351632118,
0.05267041549086571,
-0.09327413141727448,
-0.06247418373823166,
0.030565565451979637,
0.0002624310727696866,
-0.012914792634546757,
0.02565319463610649,
0.02101842127740383,
0.022957876324653625,
-0.015290415845811367,
-0.0... |
0e41cb96-b689-4066-8e48-c32bdc72cd10 | Fix non-deterministic result of "uniq" aggregate function in extreme rare cases. The bug was present in all ClickHouse versions.
#6058
(
alexey-milovidov
)
Segfault when we set a little bit too high CIDR on the function
IPv6CIDRToRange
.
#6068
(
Guillaume Tassery
)
Fixed small memory leak when server throw many exceptions from many different contexts.
#6144
(
alexey-milovidov
)
Fix the situation when consumer got paused before subscription and not resumed afterwards.
#6075
(
Ivan
) Note that Kafka is broken in this version.
Clearing the Kafka data buffer from the previous read operation that was completed with an error
#6026
(
Nikolay
) Note that Kafka is broken in this version.
Since
StorageMergeTree::background_task_handle
is initialized in
startup()
the
MergeTreeBlockOutputStream::write()
may try to use it before initialization. Just check if it is initialized.
#6080
(
Ivan
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-6}
Added official
rpm
packages.
#5740
(
proller
) (
alesapin
)
Add an ability to build
.rpm
and
.tgz
packages with
packager
script.
#5769
(
alesapin
)
Fixes for "Arcadia" build system.
#6223
(
proller
)
Backward Incompatible Change {#backward-incompatible-change-6}
Kafka
is broken in this version.
ClickHouse Release 19.11.3.11, 2019-07-18 {#clickhouse-release-19-11-3-11-2019-07-18}
New Feature {#new-feature-6}
Added support for prepared statements.
#5331
(
Alexander
)
#5630
(
alexey-milovidov
)
DoubleDelta
and
Gorilla
column codecs
#5600
(
Vasily Nemkov
)
Added
os_thread_priority
setting that allows to control the "nice" value of query processing threads that is used by OS to adjust dynamic scheduling priority. It requires
CAP_SYS_NICE
capabilities to work. This implements
#5858
#5909
(
alexey-milovidov
)
Implement
_topic
,
_offset
,
_key
columns for Kafka engine
#5382
(
Ivan
) Note that Kafka is broken in this version.
Add aggregate function combinator
-Resample
#5590
(
hcz
)
Aggregate functions
groupArrayMovingSum(win_size)(x)
and
groupArrayMovingAvg(win_size)(x)
, which calculate moving sum/avg with or without window-size limitation.
#5595
(
inv2004
)
Add synonim
arrayFlatten
\<->
flatten
#5764
(
hcz
)
Intergate H3 function
geoToH3
from Uber.
#4724
(
Remen Ivan
)
#5805
(
alexey-milovidov
)
Bug Fix {#bug-fix-21}
Implement DNS cache with asynchronous update. Separate thread resolves all hosts and updates DNS cache with period (setting
dns_cache_update_period
). It should help, when ip of hosts changes frequently.
#5857
(
Anton Popov
)
Fix segfault in
Delta
codec which affects columns with values less than 32 bits size. The bug led to random memory corruption.
#5786
(
alesapin
)
Fix segfault in TTL merge with non-physical columns in block.
#5819
(
Anton Popov
) | {"source_file": "2019.md"} | [
-0.04798823967576027,
-0.0225314162671566,
-0.036496154963970184,
0.017179369926452637,
-0.0027646387461572886,
-0.035966936498880386,
-0.022650035098195076,
0.0015843496657907963,
0.019222384318709373,
0.05486784502863884,
0.017221447080373764,
-0.010048557072877884,
-0.022509781643748283,
... |
87b48065-9616-49d5-9df1-ac6007653817 | Fix segfault in TTL merge with non-physical columns in block.
#5819
(
Anton Popov
)
Fix rare bug in checking of part with
LowCardinality
column. Previously
checkDataPart
always fails for part with
LowCardinality
column.
#5832
(
alesapin
)
Avoid hanging connections when server thread pool is full. It is important for connections from
remote
table function or connections to a shard without replicas when there is long connection timeout. This fixes
#5878
#5881
(
alexey-milovidov
)
Support for constant arguments to
evalMLModel
function. This fixes
#5817
#5820
(
alexey-milovidov
)
Fixed the issue when ClickHouse determines default time zone as
UCT
instead of
UTC
. This fixes
#5804
.
#5828
(
alexey-milovidov
)
Fixed buffer underflow in
visitParamExtractRaw
. This fixes
#5901
#5902
(
alexey-milovidov
)
Now distributed
DROP/ALTER/TRUNCATE/OPTIMIZE ON CLUSTER
queries will be executed directly on leader replica.
#5757
(
alesapin
)
Fix
coalesce
for
ColumnConst
with
ColumnNullable
+ related changes.
#5755
(
Artem Zuikov
)
Fix the
ReadBufferFromKafkaConsumer
so that it keeps reading new messages after
commit()
even if it was stalled before
#5852
(
Ivan
)
Fix
FULL
and
RIGHT
JOIN results when joining on
Nullable
keys in right table.
#5859
(
Artem Zuikov
)
Possible fix of infinite sleeping of low-priority queries.
#5842
(
alexey-milovidov
)
Fix race condition, which cause that some queries may not appear in query_log after
SYSTEM FLUSH LOGS
query.
#5456
#5685
(
Anton Popov
)
Fixed
heap-use-after-free
ASan warning in ClusterCopier caused by watch which try to use already removed copier object.
#5871
(
Nikolai Kochetov
)
Fixed wrong
StringRef
pointer returned by some implementations of
IColumn::deserializeAndInsertFromArena
. This bug affected only unit-tests.
#5973
(
Nikolai Kochetov
)
Prevent source and intermediate array join columns of masking same name columns.
#5941
(
Artem Zuikov
)
Fix insert and select query to MySQL engine with MySQL style identifier quoting.
#5704
(
Winter Zhang
)
Now
CHECK TABLE
query can work with MergeTree engine family. It returns check status and message if any for each part (or file in case of simplier engines). Also, fix bug in fetch of a broken part.
#5865
(
alesapin
)
Fix SPLIT_SHARED_LIBRARIES runtime
#5793
(
Danila Kutenin
)
Fixed time zone initialization when
/etc/localtime
is a relative symlink like
../usr/share/zoneinfo/Asia/Istanbul
#5922
(
alexey-milovidov
)
clickhouse-copier: Fix use-after free on shutdown
#5752
(
proller
)
Updated
simdjson
. Fixed the issue that some invalid JSONs with zero bytes successfully parse.
#5938
(
alexey-milovidov
)
Fix shutdown of SystemLogs
#5802
(
Anton Popov
)
Fix hanging when condition in invalidate_query depends on a dictionary.
#6011
(
Vitaly Baranov
)
Improvement {#improvement-6} | {"source_file": "2019.md"} | [
0.013056116178631783,
-0.027172693982720375,
-0.02529292181134224,
0.004109044559299946,
-0.011509522795677185,
-0.07028859108686447,
-0.035252880305051804,
0.006919584237039089,
-0.007987242192029953,
-0.017771422863006592,
0.011271871626377106,
-0.02167653478682041,
-0.05414937436580658,
... |
ee883733-16bb-4975-8d30-2ee28e446506 | Fix shutdown of SystemLogs
#5802
(
Anton Popov
)
Fix hanging when condition in invalidate_query depends on a dictionary.
#6011
(
Vitaly Baranov
)
Improvement {#improvement-6}
Allow unresolvable addresses in cluster configuration. They will be considered unavailable and tried to resolve at every connection attempt. This is especially useful for Kubernetes. This fixes
#5714
#5924
(
alexey-milovidov
)
Close idle TCP connections (with one hour timeout by default). This is especially important for large clusters with multiple distributed tables on every server, because every server can possibly keep a connection pool to every other server, and after peak query concurrency, connections will stall. This fixes
#5879
#5880
(
alexey-milovidov
)
Better quality of
topK
function. Changed the SavingSpace set behavior to remove the last element if the new element have a bigger weight.
#5833
#5850
(
Guillaume Tassery
)
URL functions to work with domains now can work for incomplete URLs without scheme
#5725
(
alesapin
)
Checksums added to the
system.parts_columns
table.
#5874
(
Nikita Mikhaylov
)
Added
Enum
data type as a synonim for
Enum8
or
Enum16
.
#5886
(
dimarub2000
)
Full bit transpose variant for
T64
codec. Could lead to better compression with
zstd
.
#5742
(
Artem Zuikov
)
Condition on
startsWith
function now can uses primary key. This fixes
#5310
and
#5882
#5919
(
dimarub2000
)
Allow to use
clickhouse-copier
with cross-replication cluster topology by permitting empty database name.
#5745
(
nvartolomei
)
Use
UTC
as default timezone on a system without
tzdata
(e.g. bare Docker container). Before this patch, error message
Could not determine local time zone
was printed and server or client refused to start.
#5827
(
alexey-milovidov
)
Returned back support for floating point argument in function
quantileTiming
for backward compatibility.
#5911
(
alexey-milovidov
)
Show which table is missing column in error messages.
#5768
(
Ivan
)
Disallow run query with same query_id by various users
#5430
(
proller
)
More robust code for sending metrics to Graphite. It will work even during long multiple
RENAME TABLE
operation.
#5875
(
alexey-milovidov
)
More informative error messages will be displayed when ThreadPool cannot schedule a task for execution. This fixes
#5305
#5801
(
alexey-milovidov
)
Inverting ngramSearch to be more intuitive
#5807
(
Danila Kutenin
)
Add user parsing in HDFS engine builder
#5946
(
akonyaev90
)
Update default value of
max_ast_elements parameter
#5933
(
Artem Konovalov
)
Added a notion of obsolete settings. The obsolete setting
allow_experimental_low_cardinality_type
can be used with no effect.
0f15c01c6802f7ce1a1494c12c846be8c98944cd
Alexey Milovidov
Performance Improvement {#performance-improvement-4} | {"source_file": "2019.md"} | [
-0.002589931944385171,
0.01992553472518921,
0.02207842282950878,
-0.0028101648204028606,
-0.05269400775432587,
-0.06559627503156662,
-0.019160956144332886,
-0.045090194791555405,
0.057656094431877136,
0.06070950627326965,
-0.021281877532601357,
0.02533387765288353,
0.007381040137261152,
-0... |
d34b8b32-25ea-493c-844d-00e349aebb7e | Performance Improvement {#performance-improvement-4}
Increase number of streams to SELECT from Merge table for more uniform distribution of threads. Added setting
max_streams_multiplier_for_merge_tables
. This fixes
#5797
#5915
(
alexey-milovidov
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-7}
Add a backward compatibility test for client-server interaction with different versions of clickhouse.
#5868
(
alesapin
)
Test coverage information in every commit and pull request.
#5896
(
alesapin
)
Cooperate with address sanitizer to support our custom allocators (
Arena
and
ArenaWithFreeLists
) for better debugging of "use-after-free" errors.
#5728
(
akuzm
)
Switch to
LLVM libunwind implementation
for C++ exception handling and for stack traces printing
#4828
(
Nikita Lapkov
)
Add two more warnings from -Weverything
#5923
(
alexey-milovidov
)
Allow to build ClickHouse with Memory Sanitizer.
#3949
(
alexey-milovidov
)
Fixed ubsan report about
bitTest
function in fuzz test.
#5943
(
alexey-milovidov
)
Docker: added possibility to init a ClickHouse instance which requires authentication.
#5727
(
Korviakov Andrey
)
Update librdkafka to version 1.1.0
#5872
(
Ivan
)
Add global timeout for integration tests and disable some of them in tests code.
#5741
(
alesapin
)
Fix some ThreadSanitizer failures.
#5854
(
akuzm
)
The
--no-undefined
option forces the linker to check all external names for existence while linking. It's very useful to track real dependencies between libraries in the split build mode.
#5855
(
Ivan
)
Added performance test for
#5797
#5914
(
alexey-milovidov
)
Fixed compatibility with gcc-7.
#5840
(
alexey-milovidov
)
Added support for gcc-9. This fixes
#5717
#5774
(
alexey-milovidov
)
Fixed error when libunwind can be linked incorrectly.
#5948
(
alexey-milovidov
)
Fixed a few warnings found by PVS-Studio.
#5921
(
alexey-milovidov
)
Added initial support for
clang-tidy
static analyzer.
#5806
(
alexey-milovidov
)
Convert BSD/Linux endian macros( 'be64toh' and 'htobe64') to the Mac OS X equivalents
#5785
(
Fu Chen
)
Improved integration tests guide.
#5796
(
Vladimir Chebotarev
)
Fixing build at macosx + gcc9
#5822
(
filimonov
)
Fix a hard-to-spot typo: aggreAGte -> aggregate.
#5753
(
akuzm
)
Fix freebsd build
#5760
(
proller
)
Add link to experimental YouTube channel to website
#5845
(
Ivan Blinkov
)
CMake: add option for coverage flags: WITH_COVERAGE
#5776
(
proller
)
Fix initial size of some inline PODArray's.
#5787
(
akuzm
)
clickhouse-server.postinst: fix os detection for centos 6
#5788
(
proller
)
Added Arch linux package generation.
#5719
(
Vladimir Chebotarev
)
Split Common/config.h by libs (dbms)
#5715
(
proller
)
Fixes for "Arcadia" build platform
#5795
(
proller
)
Fixes for unconventional build (gcc9, no submodules)
#5792
(
proller
) | {"source_file": "2019.md"} | [
-0.018953055143356323,
-0.05051045119762421,
-0.04513672739267349,
-0.015350880101323128,
0.012622037902474403,
-0.07461372762918472,
-0.03431816026568413,
0.022282799705863,
-0.08369960635900497,
0.006854072213172913,
0.008296795189380646,
-0.03725971654057503,
0.0034014051780104637,
-0.0... |
5bf2eb08-3350-48e7-8be2-df8a667e0e50 | Split Common/config.h by libs (dbms)
#5715
(
proller
)
Fixes for "Arcadia" build platform
#5795
(
proller
)
Fixes for unconventional build (gcc9, no submodules)
#5792
(
proller
)
Require explicit type in unalignedStore because it was proven to be bug-prone
#5791
(
akuzm
)
Fixes macOS build
#5830
(
filimonov
)
Performance test concerning the new JIT feature with bigger dataset, as requested here
#5263
#5887
(
Guillaume Tassery
)
Run stateful tests in stress test
12693e568722f11e19859742f56428455501fd2a
(
alesapin
)
Backward Incompatible Change {#backward-incompatible-change-7}
Kafka
is broken in this version.
Enable
adaptive_index_granularity
= 10MB by default for new
MergeTree
tables. If you created new MergeTree tables on version 19.11+, downgrade to versions prior to 19.6 will be impossible.
#5628
(
alesapin
)
Removed obsolete undocumented embedded dictionaries that were used by Yandex.Metrica. The functions
OSIn
,
SEIn
,
OSToRoot
,
SEToRoot
,
OSHierarchy
,
SEHierarchy
are no longer available. If you are using these functions, write email to clickhouse-feedback@yandex-team.com. Note: at the last moment we decided to keep these functions for a while.
#5780
(
alexey-milovidov
)
ClickHouse Release 19.10 {#clickhouse-release-19-10}
ClickHouse Release 19.10.1.5, 2019-07-12 {#clickhouse-release-19-10-1-5-2019-07-12}
New Feature {#new-feature-7}
Add new column codec:
T64
. Made for (U)IntX/EnumX/Data(Time)/DecimalX columns. It should be good for columns with constant or small range values. Codec itself allows enlarge or shrink data type without re-compression.
#5557
(
Artem Zuikov
)
Add database engine
MySQL
that allow to view all the tables in remote MySQL server
#5599
(
Winter Zhang
)
bitmapContains
implementation. It's 2x faster than
bitmapHasAny
if the second bitmap contains one element.
#5535
(
Zhichang Yu
)
Support for
crc32
function (with behaviour exactly as in MySQL or PHP). Do not use it if you need a hash function.
#5661
(
Remen Ivan
)
Implemented
SYSTEM START/STOP DISTRIBUTED SENDS
queries to control asynchronous inserts into
Distributed
tables.
#4935
(
Winter Zhang
)
Bug Fix {#bug-fix-22}
Ignore query execution limits and max parts size for merge limits while executing mutations.
#5659
(
Anton Popov
)
Fix bug which may lead to deduplication of normal blocks (extremely rare) and insertion of duplicate blocks (more often).
#5549
(
alesapin
)
Fix of function
arrayEnumerateUniqRanked
for arguments with empty arrays
#5559
(
proller
)
Don't subscribe to Kafka topics without intent to poll any messages.
#5698
(
Ivan
)
Make setting
join_use_nulls
get no effect for types that cannot be inside Nullable
#5700
(
Olga Khvostikova
)
Fixed
Incorrect size of index granularity
errors
#5720
(
coraxster
)
Fix Float to Decimal convert overflow
#5607
(
coraxster
) | {"source_file": "2019.md"} | [
-0.05345577374100685,
-0.07719220221042633,
0.019506150856614113,
-0.031159983947873116,
0.03592955321073532,
-0.08066451549530029,
-0.08282085508108139,
0.05075730010867119,
-0.0790785476565361,
0.05705135688185692,
0.03785456717014313,
-0.012222964316606522,
-0.11858338117599487,
-0.0614... |
6ed70a6f-4a64-4286-8cb8-bcf0fc3230ed | Fixed
Incorrect size of index granularity
errors
#5720
(
coraxster
)
Fix Float to Decimal convert overflow
#5607
(
coraxster
)
Flush buffer when
WriteBufferFromHDFS
's destructor is called. This fixes writing into
HDFS
.
#5684
(
Xindong Peng
)
Improvement {#improvement-7}
Treat empty cells in
CSV
as default values when the setting
input_format_defaults_for_omitted_fields
is enabled.
#5625
(
akuzm
)
Non-blocking loading of external dictionaries.
#5567
(
Vitaly Baranov
)
Network timeouts can be dynamically changed for already established connections according to the settings.
#4558
(
Konstantin Podshumok
)
Using "public_suffix_list" for functions
firstSignificantSubdomain
,
cutToFirstSignificantSubdomain
. It's using a perfect hash table generated by
gperf
with a list generated from the file: https://publicsuffix.org/list/public_suffix_list.dat. (for example, now we recognize the domain
ac.uk
as non-significant).
#5030
(
Guillaume Tassery
)
Adopted
IPv6
data type in system tables; unified client info columns in
system.processes
and
system.query_log
#5640
(
alexey-milovidov
)
Using sessions for connections with MySQL compatibility protocol. #5476
#5646
(
Yuriy Baranov
)
Support more
ALTER
queries
ON CLUSTER
.
#5593
#5613
(
sundyli
)
Support
<logger>
section in
clickhouse-local
config file.
#5540
(
proller
)
Allow run query with
remote
table function in
clickhouse-local
#5627
(
proller
)
Performance Improvement {#performance-improvement-5}
Add the possibility to write the final mark at the end of MergeTree columns. It allows to avoid useless reads for keys that are out of table data range. It is enabled only if adaptive index granularity is in use.
#5624
(
alesapin
)
Improved performance of MergeTree tables on very slow filesystems by reducing number of
stat
syscalls.
#5648
(
alexey-milovidov
)
Fixed performance degradation in reading from MergeTree tables that was introduced in version 19.6. Fixes #5631.
#5633
(
alexey-milovidov
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-8}
Implemented
TestKeeper
as an implementation of ZooKeeper interface used for testing
#5643
(
alexey-milovidov
) (
levushkin aleksej
)
From now on
.sql
tests can be run isolated by server, in parallel, with random database. It allows to run them faster, add new tests with custom server configurations, and be sure that different tests does not affect each other.
#5554
(
Ivan
)
Remove
<name>
and
<metrics>
from performance tests
#5672
(
Olga Khvostikova
)
Fixed "select_format" performance test for
Pretty
formats
#5642
(
alexey-milovidov
)
ClickHouse Release 19.9 {#clickhouse-release-19-9}
ClickHouse Release 19.9.3.31, 2019-07-05 {#clickhouse-release-19-9-3-31-2019-07-05}
Bug Fix {#bug-fix-23} | {"source_file": "2019.md"} | [
-0.005616412032395601,
-0.04284260794520378,
-0.02901945821940899,
-0.004891518037766218,
-0.01134174782782793,
-0.09215732663869858,
-0.08187602460384369,
0.003573095425963402,
-0.03756175935268402,
0.02899145893752575,
-0.04083168879151344,
0.02348616160452366,
-0.0051924544386565685,
-0... |
e4475891-9273-41d0-ae4c-6bcd03f90726 | ClickHouse Release 19.9 {#clickhouse-release-19-9}
ClickHouse Release 19.9.3.31, 2019-07-05 {#clickhouse-release-19-9-3-31-2019-07-05}
Bug Fix {#bug-fix-23}
Fix segfault in Delta codec which affects columns with values less than 32 bits size. The bug led to random memory corruption.
#5786
(
alesapin
)
Fix rare bug in checking of part with LowCardinality column.
#5832
(
alesapin
)
Fix segfault in TTL merge with non-physical columns in block.
#5819
(
Anton Popov
)
Fix potential infinite sleeping of low-priority queries.
#5842
(
alexey-milovidov
)
Fix how ClickHouse determines default time zone as UCT instead of UTC.
#5828
(
alexey-milovidov
)
Fix bug about executing distributed DROP/ALTER/TRUNCATE/OPTIMIZE ON CLUSTER queries on follower replica before leader replica. Now they will be executed directly on leader replica.
#5757
(
alesapin
)
Fix race condition, which cause that some queries may not appear in query_log instantly after SYSTEM FLUSH LOGS query.
#5685
(
Anton Popov
)
Added missing support for constant arguments to
evalMLModel
function.
#5820
(
alexey-milovidov
)
ClickHouse Release 19.9.2.4, 2019-06-24 {#clickhouse-release-19-9-2-4-2019-06-24}
New Feature {#new-feature-8}
Print information about frozen parts in
system.parts
table.
#5471
(
proller
)
Ask client password on clickhouse-client start on tty if not set in arguments
#5092
(
proller
)
Implement
dictGet
and
dictGetOrDefault
functions for Decimal types.
#5394
(
Artem Zuikov
)
Improvement {#improvement-8}
Debian init: Add service stop timeout
#5522
(
proller
)
Add setting forbidden by default to create table with suspicious types for LowCardinality
#5448
(
Olga Khvostikova
)
Regression functions return model weights when not used as State in function
evalMLMethod
.
#5411
(
Quid37
)
Rename and improve regression methods.
#5492
(
Quid37
)
Clearer interfaces of string searchers.
#5586
(
Danila Kutenin
)
Bug Fix {#bug-fix-24}
Fix potential data loss in Kafka
#5445
(
Ivan
)
Fix potential infinite loop in
PrettySpace
format when called with zero columns
#5560
(
Olga Khvostikova
)
Fixed UInt32 overflow bug in linear models. Allow eval ML model for non-const model argument.
#5516
(
Nikolai Kochetov
)
ALTER TABLE ... DROP INDEX IF EXISTS ...
should not raise an exception if provided index does not exist
#5524
(
Gleb Novikov
)
Fix segfault with
bitmapHasAny
in scalar subquery
#5528
(
Zhichang Yu
)
Fixed error when replication connection pool does not retry to resolve host, even when DNS cache was dropped.
#5534
(
alesapin
)
Fixed
ALTER ... MODIFY TTL
on ReplicatedMergeTree.
#5539
(
Anton Popov
)
Fix INSERT into Distributed table with MATERIALIZED column
#5429
(
Azat Khuzhin
)
Fix bad alloc when truncate Join storage
#5437
(
TCeason
) | {"source_file": "2019.md"} | [
-0.04146815091371536,
-0.03416236490011215,
-0.023466238752007484,
0.01621238701045513,
0.004348206799477339,
-0.06684543937444687,
-0.03342083469033241,
0.024728307500481606,
-0.06306517869234085,
0.016430677846074104,
0.05737729370594025,
0.04216634854674339,
-0.0646757185459137,
-0.0432... |
664d7a92-c359-4a95-ba0c-e16f7b02367b | Fix INSERT into Distributed table with MATERIALIZED column
#5429
(
Azat Khuzhin
)
Fix bad alloc when truncate Join storage
#5437
(
TCeason
)
In recent versions of package tzdata some of files are symlinks now. The current mechanism for detecting default timezone gets broken and gives wrong names for some timezones. Now at least we force the timezone name to the contents of TZ if provided.
#5443
(
Ivan
)
Fix some extremely rare cases with MultiVolnitsky searcher when the constant needles in sum are at least 16KB long. The algorithm missed or overwrote the previous results which can lead to the incorrect result of
multiSearchAny
.
#5588
(
Danila Kutenin
)
Fix the issue when settings for ExternalData requests couldn't use ClickHouse settings. Also, for now, settings
date_time_input_format
and
low_cardinality_allow_in_native_format
cannot be used because of the ambiguity of names (in external data it can be interpreted as table format and in the query it can be a setting).
#5455
(
Danila Kutenin
)
Fix bug when parts were removed only from FS without dropping them from Zookeeper.
#5520
(
alesapin
)
Remove debug logging from MySQL protocol
#5478
(
alexey-milovidov
)
Skip ZNONODE during DDL query processing
#5489
(
Azat Khuzhin
)
Fix mix
UNION ALL
result column type. There were cases with inconsistent data and column types of resulting columns.
#5503
(
Artem Zuikov
)
Throw an exception on wrong integers in
dictGetT
functions instead of crash.
#5446
(
Artem Zuikov
)
Fix wrong element_count and load_factor for hashed dictionary in
system.dictionaries
table.
#5440
(
Azat Khuzhin
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-9}
Fixed build without
Brotli
HTTP compression support (
ENABLE_BROTLI=OFF
cmake variable).
#5521
(
Anton Yuzhaninov
)
Include roaring.h as roaring/roaring.h
#5523
(
Orivej Desh
)
Fix gcc9 warnings in hyperscan (#line directive is evil!)
#5546
(
Danila Kutenin
)
Fix all warnings when compiling with gcc-9. Fix some contrib issues. Fix gcc9 ICE and submit it to bugzilla.
#5498
(
Danila Kutenin
)
Fixed linking with lld
#5477
(
alexey-milovidov
)
Remove unused specializations in dictionaries
#5452
(
Artem Zuikov
)
Improvement performance tests for formatting and parsing tables for different types of files
#5497
(
Olga Khvostikova
)
Fixes for parallel test run
#5506
(
proller
)
Docker: use configs from clickhouse-test
#5531
(
proller
)
Fix compile for FreeBSD
#5447
(
proller
)
Upgrade boost to 1.70
#5570
(
proller
)
Fix build clickhouse as submodule
#5574
(
proller
)
Improve JSONExtract performance tests
#5444
(
Vitaly Baranov
)
ClickHouse Release 19.8 {#clickhouse-release-19-8}
ClickHouse Release 19.8.3.8, 2019-06-11 {#clickhouse-release-19-8-3-8-2019-06-11}
New Features {#new-features}
Added functions to work with JSON
#4686
(
hcz
)
#5124
. (
Vitaly Baranov
) | {"source_file": "2019.md"} | [
-0.030662348493933678,
-0.008965607732534409,
0.008070546202361584,
0.012156534940004349,
-0.045480579137802124,
-0.058748759329319,
-0.0943724513053894,
0.012262823060154915,
-0.042708225548267365,
0.037723034620285034,
0.034623485058546066,
-0.055315397679805756,
0.00008861148671712726,
... |
7911259f-5d20-4a24-b008-af7dd11110d0 | ClickHouse Release 19.8.3.8, 2019-06-11 {#clickhouse-release-19-8-3-8-2019-06-11}
New Features {#new-features}
Added functions to work with JSON
#4686
(
hcz
)
#5124
. (
Vitaly Baranov
)
Add a function basename, with a similar behaviour to a basename function, which exists in a lot of languages (
os.path.basename
in python,
basename
in PHP, etc...). Work with both an UNIX-like path or a Windows path.
#5136
(
Guillaume Tassery
)
Added
LIMIT n, m BY
or
LIMIT m OFFSET n BY
syntax to set offset of n for LIMIT BY clause.
#5138
(
Anton Popov
)
Added new data type
SimpleAggregateFunction
, which allows to have columns with light aggregation in an
AggregatingMergeTree
. This can only be used with simple functions like
any
,
anyLast
,
sum
,
min
,
max
.
#4629
(
Boris Granveaud
)
Added support for non-constant arguments in function
ngramDistance
#5198
(
Danila Kutenin
)
Added functions
skewPop
,
skewSamp
,
kurtPop
and
kurtSamp
to compute for sequence skewness, sample skewness, kurtosis and sample kurtosis respectively.
#5200
(
hcz
)
Support rename operation for
MaterializeView
storage.
#5209
(
Guillaume Tassery
)
Added server which allows connecting to ClickHouse using MySQL client.
#4715
(
Yuriy Baranov
)
Add
toDecimal*OrZero
and
toDecimal*OrNull
functions.
#5291
(
Artem Zuikov
)
Support Decimal types in functions:
quantile
,
quantiles
,
median
,
quantileExactWeighted
,
quantilesExactWeighted
, medianExactWeighted.
#5304
(
Artem Zuikov
)
Added
toValidUTF8
function, which replaces all invalid UTF-8 characters by replacement character � (U+FFFD).
#5322
(
Danila Kutenin
)
Added
format
function. Formatting constant pattern (simplified Python format pattern) with the strings listed in the arguments.
#5330
(
Danila Kutenin
)
Added
system.detached_parts
table containing information about detached parts of
MergeTree
tables.
#5353
(
akuzm
)
Added
ngramSearch
function to calculate the non-symmetric difference between needle and haystack.
#5418
#5422
(
Danila Kutenin
)
Implementation of basic machine learning methods (stochastic linear regression and logistic regression) using aggregate functions interface. Has different strategies for updating model weights (simple gradient descent, momentum method, Nesterov method). Also supports mini-batches of custom size.
#4943
(
Quid37
)
Implementation of
geohashEncode
and
geohashDecode
functions.
#5003
(
Vasily Nemkov
)
Added aggregate function
timeSeriesGroupSum
, which can aggregate different time series that sample timestamp not alignment. It will use linear interpolation between two sample timestamp and then sum time-series together. Added aggregate function
timeSeriesGroupRateSum
, which calculates the rate of time-series and then sum rates together.
#4542
(
Yangkuan Liu
) | {"source_file": "2019.md"} | [
-0.08730914443731308,
-0.049869898706674576,
-0.038904935121536255,
-0.008947034366428852,
-0.05352925881743431,
-0.04328135401010513,
0.0034720904659479856,
0.0386882945895195,
-0.02605253830552101,
-0.004825728479772806,
0.028346281498670578,
-0.009975460357964039,
0.007202950306236744,
... |
b8c0d4ef-07e6-4855-871c-6df87b7548fd | Added functions
IPv4CIDRtoIPv4Range
and
IPv6CIDRtoIPv6Range
to calculate the lower and higher bounds for an IP in the subnet using a CIDR.
#5095
(
Guillaume Tassery
)
Add a X-ClickHouse-Summary header when we send a query using HTTP with enabled setting
send_progress_in_http_headers
. Return the usual information of X-ClickHouse-Progress, with additional information like how many rows and bytes were inserted in the query.
#5116
(
Guillaume Tassery
)
Improvements {#improvements}
Added
max_parts_in_total
setting for MergeTree family of tables (default: 100 000) that prevents unsafe specification of partition key #5166.
#5171
(
alexey-milovidov
)
clickhouse-obfuscator
: derive seed for individual columns by combining initial seed with column name, not column position. This is intended to transform datasets with multiple related tables, so that tables will remain JOINable after transformation.
#5178
(
alexey-milovidov
)
Added functions
JSONExtractRaw
,
JSONExtractKeyAndValues
. Renamed functions
jsonExtract<type>
to
JSONExtract<type>
. When something goes wrong these functions return the correspondent values, not
NULL
. Modified function
JSONExtract
, now it gets the return type from its last parameter and does not inject nullables. Implemented fallback to RapidJSON in case AVX2 instructions are not available. Simdjson library updated to a new version.
#5235
(
Vitaly Baranov
)
Now
if
and
multiIf
functions do not rely on the condition's
Nullable
, but rely on the branches for sql compatibility.
#5238
(
Jian Wu
)
In
predicate now generates
Null
result from
Null
input like the
Equal
function.
#5152
(
Jian Wu
)
Check the time limit every (flush_interval / poll_timeout) number of rows from Kafka. This allows to break the reading from Kafka consumer more frequently and to check the time limits for the top-level streams
#5249
(
Ivan
)
Link rdkafka with bundled SASL. It should allow to use SASL SCRAM authentication
#5253
(
Ivan
)
Batched version of RowRefList for ALL JOINS.
#5267
(
Artem Zuikov
)
clickhouse-server: more informative listen error messages.
#5268
(
proller
)
Support dictionaries in clickhouse-copier for functions in
<sharding_key>
#5270
(
proller
)
Add new setting
kafka_commit_every_batch
to regulate Kafka committing policy.
It allows to set commit mode: after every batch of messages is handled, or after the whole block is written to the storage. It's a trade-off between losing some messages or reading them twice in some extreme situations.
#5308
(
Ivan
)
Make
windowFunnel
support other Unsigned Integer Types.
#5320
(
sundyli
)
Allow to shadow virtual column
_table
in Merge engine.
#5325
(
Ivan
)
Make
sequenceMatch
aggregate functions support other unsigned Integer types
#5339
(
sundyli
)
Better error messages if checksum mismatch is most likely caused by hardware failures.
#5355
(
alexey-milovidov
) | {"source_file": "2019.md"} | [
-0.019321847707033157,
0.004146159626543522,
-0.006827114149928093,
-0.03768341988325119,
0.01085967943072319,
-0.07341554760932922,
-0.046704791486263275,
0.015088806860148907,
-0.034198638051748276,
0.008124525658786297,
0.020666031166911125,
-0.022866185754537582,
0.035629674792289734,
... |
6e94637c-9156-4599-b09c-fb11cc4bd0a0 | Better error messages if checksum mismatch is most likely caused by hardware failures.
#5355
(
alexey-milovidov
)
Check that underlying tables support sampling for
StorageMerge
#5366
(
Ivan
)
Сlose MySQL connections after their usage in external dictionaries. It is related to issue #893.
#5395
(
Clément Rodriguez
)
Improvements of MySQL Wire Protocol. Changed name of format to MySQLWire. Using RAII for calling RSA_free. Disabling SSL if context cannot be created.
#5419
(
Yuriy Baranov
)
clickhouse-client: allow to run with unaccessable history file (read-only, no disk space, file is directory, ...).
#5431
(
proller
)
Respect query settings in asynchronous INSERTs into Distributed tables.
#4936
(
TCeason
)
Renamed functions
leastSqr
to
simpleLinearRegression
,
LinearRegression
to
linearRegression
,
LogisticRegression
to
logisticRegression
.
#5391
(
Nikolai Kochetov
)
Performance Improvements {#performance-improvements}
Parallelize processing of parts of non-replicated MergeTree tables in ALTER MODIFY query.
#4639
(
Ivan Kush
)
Optimizations in regular expressions extraction.
#5193
#5191
(
Danila Kutenin
)
Do not add right join key column to join result if it's used only in join on section.
#5260
(
Artem Zuikov
)
Freeze the Kafka buffer after first empty response. It avoids multiple invokations of
ReadBuffer::next()
for empty result in some row-parsing streams.
#5283
(
Ivan
)
concat
function optimization for multiple arguments.
#5357
(
Danila Kutenin
)
Query optimisation. Allow push down IN statement while rewriting commа/cross join into inner one.
#5396
(
Artem Zuikov
)
Upgrade our LZ4 implementation with reference one to have faster decompression.
#5070
(
Danila Kutenin
)
Implemented MSD radix sort (based on kxsort), and partial sorting.
#5129
(
Evgenii Pravda
)
Bug Fixes {#bug-fixes}
Fix push require columns with join
#5192
(
Winter Zhang
)
Fixed bug, when ClickHouse is run by systemd, the command
sudo service clickhouse-server forcerestart
was not working as expected.
#5204
(
proller
)
Fix http error codes in DataPartsExchange (interserver http server on 9009 port always returned code 200, even on errors).
#5216
(
proller
)
Fix SimpleAggregateFunction for String longer than MAX_SMALL_STRING_SIZE
#5311
(
Azat Khuzhin
)
Fix error for
Decimal
to
Nullable(Decimal)
conversion in IN. Support other Decimal to Decimal conversions (including different scales).
#5350
(
Artem Zuikov
)
Fixed FPU clobbering in simdjson library that lead to wrong calculation of
uniqHLL
and
uniqCombined
aggregate function and math functions such as
log
.
#5354
(
alexey-milovidov
)
Fixed handling mixed const/nonconst cases in JSON functions.
#5435
(
Vitaly Baranov
)
Fix
retention
function. Now all conditions that satisfy in a row of data are added to the data state.
#5119
(
小路
) | {"source_file": "2019.md"} | [
-0.015683315694332123,
-0.05511641874909401,
-0.1045510396361351,
0.026143111288547516,
-0.026178700849413872,
-0.12162496149539948,
-0.006814774591475725,
0.03567852824926376,
0.04670269787311554,
0.07220479846000671,
0.048962198197841644,
0.011971434578299522,
0.10885946452617645,
-0.005... |
e81c24c6-5e74-457b-82bb-f968f6a661e0 | Fix
retention
function. Now all conditions that satisfy in a row of data are added to the data state.
#5119
(
小路
)
Fix result type for
quantileExact
with Decimals.
#5304
(
Artem Zuikov
)
Documentation {#documentation}
Translate documentation for
CollapsingMergeTree
to chinese.
#5168
(
张风啸
)
Translate some documentation about table engines to chinese.
#5134
#5328
(
never lee
)
Build/Testing/Packaging Improvements {#buildtestingpackaging-improvements}
Fix some sanitizer reports that show probable use-after-free.
#5139
#5143
#5393
(
Ivan
)
Move performance tests out of separate directories for convenience.
#5158
(
alexey-milovidov
)
Fix incorrect performance tests.
#5255
(
alesapin
)
Added a tool to calculate checksums caused by bit flips to debug hardware issues.
#5334
(
alexey-milovidov
)
Make runner script more usable.
#5340
#5360
(
filimonov
)
Add small instruction how to write performance tests.
#5408
(
alesapin
)
Add ability to make substitutions in create, fill and drop query in performance tests
#5367
(
Olga Khvostikova
)
ClickHouse Release 19.7 {#clickhouse-release-19-7}
ClickHouse Release 19.7.5.29, 2019-07-05 {#clickhouse-release-19-7-5-29-2019-07-05}
Bug Fix {#bug-fix-25}
Fix performance regression in some queries with JOIN.
#5192
(
Winter Zhang
)
ClickHouse Release 19.7.5.27, 2019-06-09 {#clickhouse-release-19-7-5-27-2019-06-09}
New Features {#new-features-1}
Added bitmap related functions
bitmapHasAny
and
bitmapHasAll
analogous to
hasAny
and
hasAll
functions for arrays.
#5279
(
Sergi Vladykin
)
Bug Fixes {#bug-fixes-1}
Fix segfault on
minmax
INDEX with Null value.
#5246
(
Nikita Vasilev
)
Mark all input columns in LIMIT BY as required output. It fixes 'Not found column' error in some distributed queries.
#5407
(
Constantin S. Pan
)
Fix "Column '0' already exists" error in
SELECT .. PREWHERE
on column with DEFAULT
#5397
(
proller
)
Fix
ALTER MODIFY TTL
query on
ReplicatedMergeTree
.
#5539
(
Anton Popov
)
Don't crash the server when Kafka consumers have failed to start.
#5285
(
Ivan
)
Fixed bitmap functions produce wrong result.
#5359
(
Andy Yang
)
Fix element_count for hashed dictionary (do not include duplicates)
#5440
(
Azat Khuzhin
)
Use contents of environment variable TZ as the name for timezone. It helps to correctly detect default timezone in some cases.
#5443
(
Ivan
)
Do not try to convert integers in
dictGetT
functions, because it does not work correctly. Throw an exception instead.
#5446
(
Artem Zuikov
)
Fix settings in ExternalData HTTP request.
#5455
(
Danila
Kutenin
)
Fix bug when parts were removed only from FS without dropping them from Zookeeper.
#5520
(
alesapin
)
Fix segmentation fault in
bitmapHasAny
function.
#5528
(
Zhichang Yu
) | {"source_file": "2019.md"} | [
-0.09613444656133652,
0.06509387493133545,
0.00244972575455904,
0.06559993326663971,
-0.016262942925095558,
-0.07559478282928467,
0.022923115640878677,
0.03535251319408417,
-0.06682717055082321,
0.026676613837480545,
0.05267232656478882,
-0.05194703862071037,
0.01277241576462984,
-0.040622... |
45b1c5ca-039c-4228-994f-41a5356f166d | Fix bug when parts were removed only from FS without dropping them from Zookeeper.
#5520
(
alesapin
)
Fix segmentation fault in
bitmapHasAny
function.
#5528
(
Zhichang Yu
)
Fixed error when replication connection pool does not retry to resolve host, even when DNS cache was dropped.
#5534
(
alesapin
)
Fixed
DROP INDEX IF EXISTS
query. Now
ALTER TABLE ... DROP INDEX IF EXISTS ...
query does not raise an exception if provided index does not exist.
#5524
(
Gleb Novikov
)
Fix union all supertype column. There were cases with inconsistent data and column types of resulting columns.
#5503
(
Artem Zuikov
)
Skip ZNONODE during DDL query processing. Before if another node removes the znode in task queue, the one that
did not process it, but already get list of children, will terminate the DDLWorker thread.
#5489
(
Azat Khuzhin
)
Fix INSERT into Distributed() table with MATERIALIZED column.
#5429
(
Azat Khuzhin
)
ClickHouse Release 19.7.3.9, 2019-05-30 {#clickhouse-release-19-7-3-9-2019-05-30}
New Features {#new-features-2}
Allow to limit the range of a setting that can be specified by user.
These constraints can be set up in user settings profile.
#4931
(
Vitaly
Baranov
)
Add a second version of the function
groupUniqArray
with an optional
max_size
parameter that limits the size of the resulting array. This
behavior is similar to
groupArray(max_size)(x)
function.
#5026
(
Guillaume
Tassery
)
For TSVWithNames/CSVWithNames input file formats, column order can now be
determined from file header. This is controlled by
input_format_with_names_use_header
parameter.
#5081
(
Alexander
)
Bug Fixes {#bug-fixes-2}
Crash with uncompressed_cache + JOIN during merge (#5197)
#5133
(
Danila
Kutenin
)
Segmentation fault on a clickhouse-client query to system tables. #5066
#5127
(
Ivan
)
Data loss on heavy load via KafkaEngine (#4736)
#5080
(
Ivan
)
Fixed very rare data race condition that could happen when executing a query with UNION ALL involving at least two SELECTs from system.columns, system.tables, system.parts, system.parts_tables or tables of Merge family and performing ALTER of columns of the related tables concurrently.
#5189
(
alexey-milovidov
)
Performance Improvements {#performance-improvements-1}
Use radix sort for sorting by single numeric column in
ORDER BY
without
LIMIT
.
#5106
,
#4439
(
Evgenii Pravda
,
alexey-milovidov
)
Documentation {#documentation-1}
Translate documentation for some table engines to Chinese.
#5107
,
#5094
,
#5087
(
张风啸
),
#5068
(
never
lee
)
Build/Testing/Packaging Improvements {#buildtestingpackaging-improvements-1}
Print UTF-8 characters properly in
clickhouse-test
.
#5084
(
alexey-milovidov
)
Add command line parameter for clickhouse-client to always load suggestion
data.
#5102 | {"source_file": "2019.md"} | [
-0.07145895063877106,
0.012330473400652409,
0.04740925878286362,
0.025381768122315407,
0.04678380489349365,
-0.13585543632507324,
-0.034619804471731186,
-0.04118181765079498,
0.017443237826228142,
0.05635406821966171,
-0.0044458843767642975,
0.005811493843793869,
0.008361570537090302,
-0.0... |
88659bf7-f0ea-453a-bcda-12f267d56c09 | Print UTF-8 characters properly in
clickhouse-test
.
#5084
(
alexey-milovidov
)
Add command line parameter for clickhouse-client to always load suggestion
data.
#5102
(
alexey-milovidov
)
Resolve some of PVS-Studio warnings.
#5082
(
alexey-milovidov
)
Update LZ4
#5040
(
Danila
Kutenin
)
Add gperf to build requirements for upcoming pull request #5030.
#5110
(
proller
)
ClickHouse Release 19.6 {#clickhouse-release-19-6}
ClickHouse Release 19.6.3.18, 2019-06-13 {#clickhouse-release-19-6-3-18-2019-06-13}
Bug Fixes {#bug-fixes-3}
Fixed IN condition pushdown for queries from table functions
mysql
and
odbc
and corresponding table engines. This fixes #3540 and #2384.
#5313
(
alexey-milovidov
)
Fix deadlock in Zookeeper.
#5297
(
github1youlc
)
Allow quoted decimals in CSV.
#5284
(
Artem Zuikov
Disallow conversion from float Inf/NaN into Decimals (throw exception).
#5282
(
Artem Zuikov
)
Fix data race in rename query.
#5247
(
Winter Zhang
)
Temporarily disable LFAlloc. Usage of LFAlloc might lead to a lot of MAP_FAILED in allocating UncompressedCache and in a result to crashes of queries at high loaded servers.
cfdba93
(
Danila Kutenin
)
ClickHouse Release 19.6.2.11, 2019-05-13 {#clickhouse-release-19-6-2-11-2019-05-13}
New Features {#new-features-3}
TTL expressions for columns and tables.
#4212
(
Anton Popov
)
Added support for
brotli
compression for HTTP responses (Accept-Encoding: br)
#4388
(
Mikhail
)
Added new function
isValidUTF8
for checking whether a set of bytes is correctly utf-8 encoded.
#4934
(
Danila Kutenin
)
Add new load balancing policy
first_or_random
which sends queries to the first specified host and if it's inaccessible send queries to random hosts of shard. Useful for cross-replication topology setups.
#5012
(
nvartolomei
)
Experimental Features {#experimental-features-1}
Add setting
index_granularity_bytes
(adaptive index granularity) for MergeTree* tables family.
#4826
(
alesapin
)
Improvements {#improvements-1}
Added support for non-constant and negative size and length arguments for function
substringUTF8
.
#4989
(
alexey-milovidov
)
Disable push-down to right table in left join, left table in right join, and both tables in full join. This fixes wrong JOIN results in some cases.
#4846
(
Ivan
)
clickhouse-copier
: auto upload task configuration from
--task-file
option
#4876
(
proller
)
Added typos handler for storage factory and table functions factory.
#4891
(
Danila Kutenin
)
Support asterisks and qualified asterisks for multiple joins without subqueries
#4898
(
Artem Zuikov
)
Make missing column error message more user friendly.
#4915
(
Artem Zuikov
)
Performance Improvements {#performance-improvements-2}
Significant speedup of ASOF JOIN
#4924
(
Martijn Bakker
)
Backward Incompatible Changes {#backward-incompatible-changes} | {"source_file": "2019.md"} | [
-0.054773516952991486,
-0.0485556498169899,
-0.05946614593267441,
-0.008010522462427616,
0.014670402742922306,
-0.03611721843481064,
0.07170087099075317,
0.011783592402935028,
-0.04288649559020996,
0.03542978689074516,
0.01905713975429535,
-0.05130159854888916,
0.06922978162765503,
-0.0093... |
b04fd0d7-4375-4a97-a810-ae98b746431c | Performance Improvements {#performance-improvements-2}
Significant speedup of ASOF JOIN
#4924
(
Martijn Bakker
)
Backward Incompatible Changes {#backward-incompatible-changes}
HTTP header
Query-Id
was renamed to
X-ClickHouse-Query-Id
for consistency.
#4972
(
Mikhail
)
Bug Fixes {#bug-fixes-4}
Fixed potential null pointer dereference in
clickhouse-copier
.
#4900
(
proller
)
Fixed error on query with JOIN + ARRAY JOIN
#4938
(
Artem Zuikov
)
Fixed hanging on start of the server when a dictionary depends on another dictionary via a database with engine=Dictionary.
#4962
(
Vitaly Baranov
)
Partially fix distributed_product_mode = local. It's possible to allow columns of local tables in where/having/order by/... via table aliases. Throw exception if table does not have alias. There's not possible to access to the columns without table aliases yet.
#4986
(
Artem Zuikov
)
Fix potentially wrong result for
SELECT DISTINCT
with
JOIN
#5001
(
Artem Zuikov
)
Fixed very rare data race condition that could happen when executing a query with UNION ALL involving at least two SELECTs from system.columns, system.tables, system.parts, system.parts_tables or tables of Merge family and performing ALTER of columns of the related tables concurrently.
#5189
(
alexey-milovidov
)
Build/Testing/Packaging Improvements {#buildtestingpackaging-improvements-2}
Fixed test failures when running clickhouse-server on different host
#4713
(
Vasily Nemkov
)
clickhouse-test: Disable color control sequences in non tty environment.
#4937
(
alesapin
)
clickhouse-test: Allow use any test database (remove
test.
qualification where it possible)
#5008
(
proller
)
Fix ubsan errors
#5037
(
Vitaly Baranov
)
Yandex LFAlloc was added to ClickHouse to allocate MarkCache and UncompressedCache data in different ways to catch segfaults more reliable
#4995
(
Danila Kutenin
)
Python util to help with backports and changelogs.
#4949
(
Ivan
)
ClickHouse Release 19.5 {#clickhouse-release-19-5}
ClickHouse Release 19.5.4.22, 2019-05-13 {#clickhouse-release-19-5-4-22-2019-05-13}
Bug Fixes {#bug-fixes-5}
Fixed possible crash in bitmap* functions
#5220
#5228
(
Andy Yang
)
Fixed very rare data race condition that could happen when executing a query with UNION ALL involving at least two SELECTs from system.columns, system.tables, system.parts, system.parts_tables or tables of Merge family and performing ALTER of columns of the related tables concurrently.
#5189
(
alexey-milovidov
)
Fixed error
Set for IN is not created yet in case of using single LowCardinality column in the left part of IN
. This error happened if LowCardinality column was the part of primary key. #5031
#5154
(
Nikolai Kochetov
) | {"source_file": "2019.md"} | [
-0.025218604132533073,
0.0013732408406212926,
-0.028426039963960648,
0.016255704686045647,
-0.014553861692547798,
-0.06201045215129852,
-0.02262384630739689,
-0.027437040582299232,
-0.06555482000112534,
-0.018688222393393517,
0.03283530846238136,
0.047827206552028656,
0.05990976840257645,
... |
750871e5-d136-4c3e-9279-644408644b87 | Modification of retention function: If a row satisfies both the first and NTH condition, only the first satisfied condition is added to the data state. Now all conditions that satisfy in a row of data are added to the data state.
#5119
(
小路
)
ClickHouse Release 19.5.3.8, 2019-04-18 {#clickhouse-release-19-5-3-8-2019-04-18}
Bug Fixes {#bug-fixes-6}
Fixed type of setting
max_partitions_per_insert_block
from boolean to UInt64.
#5028
(
Mohammad Hossein Sekhavat
)
ClickHouse Release 19.5.2.6, 2019-04-15 {#clickhouse-release-19-5-2-6-2019-04-15}
New Features {#new-features-4}
Hyperscan
multiple regular expression matching was added (functions
multiMatchAny
,
multiMatchAnyIndex
,
multiFuzzyMatchAny
,
multiFuzzyMatchAnyIndex
).
#4780
,
#4841
(
Danila Kutenin
)
multiSearchFirstPosition
function was added.
#4780
(
Danila Kutenin
)
Implement the predefined expression filter per row for tables.
#4792
(
Ivan
)
A new type of data skipping indices based on bloom filters (can be used for
equal
,
in
and
like
functions).
#4499
(
Nikita Vasilev
)
Added
ASOF JOIN
which allows to run queries that join to the most recent value known.
#4774
#4867
#4863
#4875
(
Martijn Bakker
,
Artem Zuikov
)
Rewrite multiple
COMMA JOIN
to
CROSS JOIN
. Then rewrite them to
INNER JOIN
if possible.
#4661
(
Artem Zuikov
)
Improvement {#improvement-9}
topK
and
topKWeighted
now supports custom
loadFactor
(fixes issue
#4252
).
#4634
(
Kirill Danshin
)
Allow to use
parallel_replicas_count > 1
even for tables without sampling (the setting is simply ignored for them). In previous versions it was lead to exception.
#4637
(
Alexey Elymanov
)
Support for
CREATE OR REPLACE VIEW
. Allow to create a view or set a new definition in a single statement.
#4654
(
Boris Granveaud
)
Buffer
table engine now supports
PREWHERE
.
#4671
(
Yangkuan Liu
)
Add ability to start replicated table without metadata in zookeeper in
readonly
mode.
#4691
(
alesapin
)
Fixed flicker of progress bar in clickhouse-client. The issue was most noticeable when using
FORMAT Null
with streaming queries.
#4811
(
alexey-milovidov
)
Allow to disable functions with
hyperscan
library on per user basis to limit potentially excessive and uncontrolled resource usage.
#4816
(
alexey-milovidov
)
Add version number logging in all errors.
#4824
(
proller
)
Added restriction to the
multiMatch
functions which requires string size to fit into
unsigned int
. Also added the number of arguments limit to the
multiSearch
functions.
#4834
(
Danila Kutenin
)
Improved usage of scratch space and error handling in Hyperscan.
#4866
(
Danila Kutenin
)
Fill
system.graphite_detentions
from a table config of
*GraphiteMergeTree
engine tables.
#4584
(
Mikhail f. Shiryaev
)
Rename
trigramDistance
function to
ngramDistance
and add more functions with
CaseInsensitive
and
UTF
.
#4602
(
Danila Kutenin
) | {"source_file": "2019.md"} | [
-0.06398344039916992,
-0.030842846259474754,
0.03149939700961113,
-0.0706484317779541,
0.000850388896651566,
0.030463067814707756,
0.0480952113866806,
-0.0814647525548935,
-0.02617122419178486,
-0.00392560800537467,
0.056969981640577316,
-0.00037576915929093957,
0.022042127326130867,
0.022... |
f1ae1a03-b8a0-4485-808a-64955cdd2f46 | Rename
trigramDistance
function to
ngramDistance
and add more functions with
CaseInsensitive
and
UTF
.
#4602
(
Danila Kutenin
)
Improved data skipping indices calculation.
#4640
(
Nikita Vasilev
)
Keep ordinary,
DEFAULT
,
MATERIALIZED
and
ALIAS
columns in a single list (fixes issue
#2867
).
#4707
(
Alex Zatelepin
)
Bug Fix {#bug-fix-26}
Avoid
std::terminate
in case of memory allocation failure. Now
std::bad_alloc
exception is thrown as expected.
#4665
(
alexey-milovidov
)
Fixes
capnproto
reading from buffer. Sometimes files wasn't loaded successfully by HTTP.
#4674
(
Vladislav
)
Fix error
Unknown log entry type: 0
after
OPTIMIZE TABLE FINAL
query.
#4683
(
Amos Bird
)
Wrong arguments to
hasAny
or
hasAll
functions may lead to segfault.
#4698
(
alexey-milovidov
)
Deadlock may happen while executing
DROP DATABASE dictionary
query.
#4701
(
alexey-milovidov
)
Fix undefined behavior in
median
and
quantile
functions.
#4702
(
hcz
)
Fix compression level detection when
network_compression_method
in lowercase. Broken in v19.1.
#4706
(
proller
)
Fixed ignorance of
<timezone>UTC</timezone>
setting (fixes issue
#4658
).
#4718
(
proller
)
Fix
histogram
function behaviour with
Distributed
tables.
#4741
(
olegkv
)
Fixed tsan report
destroy of a locked mutex
.
#4742
(
alexey-milovidov
)
Fixed TSan report on shutdown due to race condition in system logs usage. Fixed potential use-after-free on shutdown when part_log is enabled.
#4758
(
alexey-milovidov
)
Fix recheck parts in
ReplicatedMergeTreeAlterThread
in case of error.
#4772
(
Nikolai Kochetov
)
Arithmetic operations on intermediate aggregate function states were not working for constant arguments (such as subquery results).
#4776
(
alexey-milovidov
)
Always backquote column names in metadata. Otherwise it's impossible to create a table with column named
index
(server won't restart due to malformed
ATTACH
query in metadata).
#4782
(
alexey-milovidov
)
Fix crash in
ALTER ... MODIFY ORDER BY
on
Distributed
table.
#4790
(
TCeason
)
Fix segfault in
JOIN ON
with enabled
enable_optimize_predicate_expression
.
#4794
(
Winter Zhang
)
Fix bug with adding an extraneous row after consuming a protobuf message from Kafka.
#4808
(
Vitaly Baranov
)
Fix crash of
JOIN
on not-nullable vs nullable column. Fix
NULLs
in right keys in
ANY JOIN
+
join_use_nulls
.
#4815
(
Artem Zuikov
)
Fix segmentation fault in
clickhouse-copier
.
#4835
(
proller
)
Fixed race condition in
SELECT
from
system.tables
if the table is renamed or altered concurrently.
#4836
(
alexey-milovidov
)
Fixed data race when fetching data part that is already obsolete.
#4839
(
alexey-milovidov
)
Fixed rare data race that can happen during
RENAME
table of MergeTree family.
#4844
(
alexey-milovidov
) | {"source_file": "2019.md"} | [
0.005963712930679321,
0.014033257961273193,
-0.04228154942393303,
-0.045535650104284286,
-0.026527196168899536,
-0.034361131489276886,
-0.003768129274249077,
0.08252383768558502,
-0.10391060262918472,
0.03458477184176445,
0.06017501652240753,
-0.022953283041715622,
-0.05806735157966614,
-0... |
92d5e083-7d72-4d85-98c0-ecab01cc9642 | Fixed rare data race that can happen during
RENAME
table of MergeTree family.
#4844
(
alexey-milovidov
)
Fixed segmentation fault in function
arrayIntersect
. Segmentation fault could happen if function was called with mixed constant and ordinary arguments.
#4847
(
Lixiang Qian
)
Fixed reading from
Array(LowCardinality)
column in rare case when column contained a long sequence of empty arrays.
#4850
(
Nikolai Kochetov
)
Fix crash in
FULL/RIGHT JOIN
when we joining on nullable vs not nullable.
#4855
(
Artem Zuikov
)
Fix
No message received
exception while fetching parts between replicas.
#4856
(
alesapin
)
Fixed
arrayIntersect
function wrong result in case of several repeated values in single array.
#4871
(
Nikolai Kochetov
)
Fix a race condition during concurrent
ALTER COLUMN
queries that could lead to a server crash (fixes issue
#3421
).
#4592
(
Alex Zatelepin
)
Fix incorrect result in
FULL/RIGHT JOIN
with const column.
#4723
(
Artem Zuikov
)
Fix duplicates in
GLOBAL JOIN
with asterisk.
#4705
(
Artem Zuikov
)
Fix parameter deduction in
ALTER MODIFY
of column
CODEC
when column type is not specified.
#4883
(
alesapin
)
Functions
cutQueryStringAndFragment()
and
queryStringAndFragment()
now works correctly when
URL
contains a fragment and no query.
#4894
(
Vitaly Baranov
)
Fix rare bug when setting
min_bytes_to_use_direct_io
is greater than zero, which occures when thread have to seek backward in column file.
#4897
(
alesapin
)
Fix wrong argument types for aggregate functions with
LowCardinality
arguments (fixes issue
#4919
).
#4922
(
Nikolai Kochetov
)
Fix wrong name qualification in
GLOBAL JOIN
.
#4969
(
Artem Zuikov
)
Fix function
toISOWeek
result for year 1970.
#4988
(
alexey-milovidov
)
Fix
DROP
,
TRUNCATE
and
OPTIMIZE
queries duplication, when executed on
ON CLUSTER
for
ReplicatedMergeTree*
tables family.
#4991
(
alesapin
)
Backward Incompatible Change {#backward-incompatible-change-8}
Rename setting
insert_sample_with_metadata
to setting
input_format_defaults_for_omitted_fields
.
#4771
(
Artem Zuikov
)
Added setting
max_partitions_per_insert_block
(with value 100 by default). If inserted block contains larger number of partitions, an exception is thrown. Set it to 0 if you want to remove the limit (not recommended).
#4845
(
alexey-milovidov
)
Multi-search functions were renamed (
multiPosition
to
multiSearchAllPositions
,
multiSearch
to
multiSearchAny
,
firstMatch
to
multiSearchFirstIndex
).
#4780
(
Danila Kutenin
)
Performance Improvement {#performance-improvement-6}
Optimize Volnitsky searcher by inlining, giving about 5-10% search improvement for queries with many needles or many similar bigrams.
#4862
(
Danila Kutenin
)
Fix performance issue when setting
use_uncompressed_cache
is greater than zero, which appeared when all read data contained in cache.
#4913
(
alesapin
) | {"source_file": "2019.md"} | [
-0.04169683903455734,
0.006420855410397053,
0.01116483099758625,
-0.004182710777968168,
-0.04759788140654564,
-0.09621800482273102,
-0.0016237193485721946,
0.00544284051284194,
0.003708072006702423,
-0.014869016595184803,
0.01749046891927719,
0.011147434823215008,
-0.009682358242571354,
-0... |
ad84029e-481b-4a57-973e-93978a33fa94 | Fix performance issue when setting
use_uncompressed_cache
is greater than zero, which appeared when all read data contained in cache.
#4913
(
alesapin
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-10}
Hardening debug build: more granular memory mappings and ASLR; add memory protection for mark cache and index. This allows to find more memory stomping bugs in case when ASan and MSan cannot do it.
#4632
(
alexey-milovidov
)
Add support for cmake variables
ENABLE_PROTOBUF
,
ENABLE_PARQUET
and
ENABLE_BROTLI
which allows to enable/disable the above features (same as we can do for librdkafka, mysql, etc).
#4669
(
Silviu Caragea
)
Add ability to print process list and stacktraces of all threads if some queries are hung after test run.
#4675
(
alesapin
)
Add retries on
Connection loss
error in
clickhouse-test
.
#4682
(
alesapin
)
Add freebsd build with vagrant and build with thread sanitizer to packager script.
#4712
#4748
(
alesapin
)
Now user asked for password for user
'default'
during installation.
#4725
(
proller
)
Suppress warning in
rdkafka
library.
#4740
(
alexey-milovidov
)
Allow ability to build without ssl.
#4750
(
proller
)
Add a way to launch clickhouse-server image from a custom user.
#4753
(
Mikhail f. Shiryaev
)
Upgrade contrib boost to 1.69.
#4793
(
proller
)
Disable usage of
mremap
when compiled with Thread Sanitizer. Surprisingly enough, TSan does not intercept
mremap
(though it does intercept
mmap
,
munmap
) that leads to false positives. Fixed TSan report in stateful tests.
#4859
(
alexey-milovidov
)
Add test checking using format schema via HTTP interface.
#4864
(
Vitaly Baranov
)
ClickHouse Release 19.4 {#clickhouse-release-19-4}
ClickHouse Release 19.4.4.33, 2019-04-17 {#clickhouse-release-19-4-4-33-2019-04-17}
Bug Fixes {#bug-fixes-7}
Avoid
std::terminate
in case of memory allocation failure. Now
std::bad_alloc
exception is thrown as expected.
#4665
(
alexey-milovidov
)
Fixes
capnproto
reading from buffer. Sometimes files wasn't loaded successfully by HTTP.
#4674
(
Vladislav
)
Fix error
Unknown log entry type: 0
after
OPTIMIZE TABLE FINAL
query.
#4683
(
Amos Bird
)
Wrong arguments to
hasAny
or
hasAll
functions may lead to segfault.
#4698
(
alexey-milovidov
)
Deadlock may happen while executing
DROP DATABASE dictionary
query.
#4701
(
alexey-milovidov
)
Fix undefined behavior in
median
and
quantile
functions.
#4702
(
hcz
)
Fix compression level detection when
network_compression_method
in lowercase. Broken in v19.1.
#4706
(
proller
)
Fixed ignorance of
<timezone>UTC</timezone>
setting (fixes issue
#4658
).
#4718
(
proller
)
Fix
histogram
function behaviour with
Distributed
tables.
#4741
(
olegkv
)
Fixed tsan report
destroy of a locked mutex
.
#4742
(
alexey-milovidov
) | {"source_file": "2019.md"} | [
-0.0015833021607249975,
0.04521670937538147,
-0.07171100378036499,
0.021305222064256668,
-0.057280611246824265,
-0.08947610855102539,
-0.05948606878519058,
0.019041212275624275,
-0.07221054285764694,
0.01972019299864769,
-0.0036407571751624346,
-0.033141057938337326,
-0.019628964364528656,
... |
f9431d33-752c-461b-8e86-df1face786f1 | Fix
histogram
function behaviour with
Distributed
tables.
#4741
(
olegkv
)
Fixed tsan report
destroy of a locked mutex
.
#4742
(
alexey-milovidov
)
Fixed TSan report on shutdown due to race condition in system logs usage. Fixed potential use-after-free on shutdown when part_log is enabled.
#4758
(
alexey-milovidov
)
Fix recheck parts in
ReplicatedMergeTreeAlterThread
in case of error.
#4772
(
Nikolai Kochetov
)
Arithmetic operations on intermediate aggregate function states were not working for constant arguments (such as subquery results).
#4776
(
alexey-milovidov
)
Always backquote column names in metadata. Otherwise it's impossible to create a table with column named
index
(server won't restart due to malformed
ATTACH
query in metadata).
#4782
(
alexey-milovidov
)
Fix crash in
ALTER ... MODIFY ORDER BY
on
Distributed
table.
#4790
(
TCeason
)
Fix segfault in
JOIN ON
with enabled
enable_optimize_predicate_expression
.
#4794
(
Winter Zhang
)
Fix bug with adding an extraneous row after consuming a protobuf message from Kafka.
#4808
(
Vitaly Baranov
)
Fix segmentation fault in
clickhouse-copier
.
#4835
(
proller
)
Fixed race condition in
SELECT
from
system.tables
if the table is renamed or altered concurrently.
#4836
(
alexey-milovidov
)
Fixed data race when fetching data part that is already obsolete.
#4839
(
alexey-milovidov
)
Fixed rare data race that can happen during
RENAME
table of MergeTree family.
#4844
(
alexey-milovidov
)
Fixed segmentation fault in function
arrayIntersect
. Segmentation fault could happen if function was called with mixed constant and ordinary arguments.
#4847
(
Lixiang Qian
)
Fixed reading from
Array(LowCardinality)
column in rare case when column contained a long sequence of empty arrays.
#4850
(
Nikolai Kochetov
)
Fix
No message received
exception while fetching parts between replicas.
#4856
(
alesapin
)
Fixed
arrayIntersect
function wrong result in case of several repeated values in single array.
#4871
(
Nikolai Kochetov
)
Fix a race condition during concurrent
ALTER COLUMN
queries that could lead to a server crash (fixes issue
#3421
).
#4592
(
Alex Zatelepin
)
Fix parameter deduction in
ALTER MODIFY
of column
CODEC
when column type is not specified.
#4883
(
alesapin
)
Functions
cutQueryStringAndFragment()
and
queryStringAndFragment()
now works correctly when
URL
contains a fragment and no query.
#4894
(
Vitaly Baranov
)
Fix rare bug when setting
min_bytes_to_use_direct_io
is greater than zero, which occures when thread have to seek backward in column file.
#4897
(
alesapin
)
Fix wrong argument types for aggregate functions with
LowCardinality
arguments (fixes issue
#4919
).
#4922
(
Nikolai Kochetov
)
Fix function
toISOWeek
result for year 1970.
#4988
(
alexey-milovidov
) | {"source_file": "2019.md"} | [
-0.020114032551646233,
-0.007004568353295326,
0.027520183473825455,
-0.004182459786534309,
-0.07075921446084976,
-0.017068924382328987,
-0.014383038505911827,
0.0799042209982872,
-0.023037414997816086,
0.10457655787467957,
-0.014668723568320274,
0.003239098470658064,
0.07038731127977371,
-... |
8d25f1ca-5400-4e95-ba49-92241b20e9f7 | Fix function
toISOWeek
result for year 1970.
#4988
(
alexey-milovidov
)
Fix
DROP
,
TRUNCATE
and
OPTIMIZE
queries duplication, when executed on
ON CLUSTER
for
ReplicatedMergeTree*
tables family.
#4991
(
alesapin
)
Improvements {#improvements-2}
Keep ordinary,
DEFAULT
,
MATERIALIZED
and
ALIAS
columns in a single list (fixes issue
#2867
).
#4707
(
Alex Zatelepin
)
ClickHouse Release 19.4.3.11, 2019-04-02 {#clickhouse-release-19-4-3-11-2019-04-02}
Bug Fixes {#bug-fixes-8}
Fix crash in
FULL/RIGHT JOIN
when we joining on nullable vs not nullable.
#4855
(
Artem Zuikov
)
Fix segmentation fault in
clickhouse-copier
.
#4835
(
proller
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-11}
Add a way to launch clickhouse-server image from a custom user.
#4753
(
Mikhail f. Shiryaev
)
ClickHouse Release 19.4.2.7, 2019-03-30 {#clickhouse-release-19-4-2-7-2019-03-30}
Bug Fixes {#bug-fixes-9}
Fixed reading from
Array(LowCardinality)
column in rare case when column contained a long sequence of empty arrays.
#4850
(
Nikolai Kochetov
)
ClickHouse Release 19.4.1.3, 2019-03-19 {#clickhouse-release-19-4-1-3-2019-03-19}
Bug Fixes {#bug-fixes-10}
Fixed remote queries which contain both
LIMIT BY
and
LIMIT
. Previously, if
LIMIT BY
and
LIMIT
were used for remote query,
LIMIT
could happen before
LIMIT BY
, which led to too filtered result.
#4708
(
Constantin S. Pan
)
ClickHouse Release 19.4.0.49, 2019-03-09 {#clickhouse-release-19-4-0-49-2019-03-09}
New Features {#new-features-5}
Added full support for
Protobuf
format (input and output, nested data structures).
#4174
#4493
(
Vitaly Baranov
)
Added bitmap functions with Roaring Bitmaps.
#4207
(
Andy Yang
)
#4568
(
Vitaly Baranov
)
Parquet format support.
#4448
(
proller
)
N-gram distance was added for fuzzy string comparison. It is similar to q-gram metrics in R language.
#4466
(
Danila Kutenin
)
Combine rules for graphite rollup from dedicated aggregation and retention patterns.
#4426
(
Mikhail f. Shiryaev
)
Added
max_execution_speed
and
max_execution_speed_bytes
to limit resource usage. Added
min_execution_speed_bytes
setting to complement the
min_execution_speed
.
#4430
(
Winter Zhang
)
Implemented function
flatten
.
#4555
#4409
(
alexey-milovidov
,
kzon
)
Added functions
arrayEnumerateDenseRanked
and
arrayEnumerateUniqRanked
(it's like
arrayEnumerateUniq
but allows to fine tune array depth to look inside multidimensional arrays).
#4475
(
proller
)
#4601
(
alexey-milovidov
)
Multiple JOINS with some restrictions: no asterisks, no complex aliases in ON/WHERE/GROUP BY/…
#4462
(
Artem Zuikov
)
Bug Fixes {#bug-fixes-11}
This release also contains all bug fixes from 19.3 and 19.1.
Fixed bug in data skipping indices: order of granules after INSERT was incorrect.
#4407
(
Nikita Vasilev
) | {"source_file": "2019.md"} | [
-0.061795447021722794,
-0.023755399510264397,
0.032495416700839996,
0.02277303673326969,
0.013298670761287212,
-0.0693097934126854,
-0.048305343836545944,
-0.00027107223286293447,
-0.12960660457611084,
0.03658488020300865,
0.08740739524364471,
0.018339216709136963,
0.0013946783728897572,
-... |
d96503d6-4d24-48a9-910f-160747f43a1b | This release also contains all bug fixes from 19.3 and 19.1.
Fixed bug in data skipping indices: order of granules after INSERT was incorrect.
#4407
(
Nikita Vasilev
)
Fixed
set
index for
Nullable
and
LowCardinality
columns. Before it,
set
index with
Nullable
or
LowCardinality
column led to error
Data type must be deserialized with multiple streams
while selecting.
#4594
(
Nikolai Kochetov
)
Correctly set update_time on full
executable
dictionary update.
#4551
(
Tema Novikov
)
Fix broken progress bar in 19.3.
#4627
(
filimonov
)
Fixed inconsistent values of MemoryTracker when memory region was shrinked, in certain cases.
#4619
(
alexey-milovidov
)
Fixed undefined behaviour in ThreadPool.
#4612
(
alexey-milovidov
)
Fixed a very rare crash with the message
mutex lock failed: Invalid argument
that could happen when a MergeTree table was dropped concurrently with a SELECT.
#4608
(
Alex Zatelepin
)
ODBC driver compatibility with
LowCardinality
data type.
#4381
(
proller
)
FreeBSD: Fixup for
AIOcontextPool: Found io_event with unknown id 0
error.
#4438
(
urgordeadbeef
)
system.part_log
table was created regardless to configuration.
#4483
(
alexey-milovidov
)
Fix undefined behaviour in
dictIsIn
function for cache dictionaries.
#4515
(
alesapin
)
Fixed a deadlock when a SELECT query locks the same table multiple times (e.g. from different threads or when executing multiple subqueries) and there is a concurrent DDL query.
#4535
(
Alex Zatelepin
)
Disable compile_expressions by default until we get own
llvm
contrib and can test it with
clang
and
asan
.
#4579
(
alesapin
)
Prevent
std::terminate
when
invalidate_query
for
clickhouse
external dictionary source has returned wrong resultset (empty or more than one row or more than one column). Fixed issue when the
invalidate_query
was performed every five seconds regardless to the
lifetime
.
#4583
(
alexey-milovidov
)
Avoid deadlock when the
invalidate_query
for a dictionary with
clickhouse
source was involving
system.dictionaries
table or
Dictionaries
database (rare case).
#4599
(
alexey-milovidov
)
Fixes for CROSS JOIN with empty WHERE.
#4598
(
Artem Zuikov
)
Fixed segfault in function "replicate" when constant argument is passed.
#4603
(
alexey-milovidov
)
Fix lambda function with predicate optimizer.
#4408
(
Winter Zhang
)
Multiple JOINs multiple fixes.
#4595
(
Artem Zuikov
)
Improvements {#improvements-3}
Support aliases in JOIN ON section for right table columns.
#4412
(
Artem Zuikov
)
Result of multiple JOINs need correct result names to be used in subselects. Replace flat aliases with source names in result.
#4474
(
Artem Zuikov
)
Improve push-down logic for joined statements.
#4387
(
Ivan
)
Performance Improvements {#performance-improvements-3}
Improved heuristics of "move to PREWHERE" optimization.
#4405
(
alexey-milovidov
) | {"source_file": "2019.md"} | [
0.014405417256057262,
-0.057261958718299866,
-0.003816754324361682,
0.010851612314581871,
0.00033948817872442305,
-0.04926864057779312,
-0.00881294533610344,
0.0378788486123085,
-0.01843290962278843,
-0.01940091885626316,
0.07155042886734009,
0.012610414065420628,
-0.033027004450559616,
-0... |
0d4d3d28-e4b5-4052-9d72-41173d9df564 | Performance Improvements {#performance-improvements-3}
Improved heuristics of "move to PREWHERE" optimization.
#4405
(
alexey-milovidov
)
Use proper lookup tables that uses HashTable's API for 8-bit and 16-bit keys.
#4536
(
Amos Bird
)
Improved performance of string comparison.
#4564
(
alexey-milovidov
)
Cleanup distributed DDL queue in a separate thread so that it does not slow down the main loop that processes distributed DDL tasks.
#4502
(
Alex Zatelepin
)
When
min_bytes_to_use_direct_io
is set to 1, not every file was opened with O_DIRECT mode because the data size to read was sometimes underestimated by the size of one compressed block.
#4526
(
alexey-milovidov
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-12}
Added support for clang-9
#4604
(
alexey-milovidov
)
Fix wrong
__asm__
instructions (again)
#4621
(
Konstantin Podshumok
)
Add ability to specify settings for
clickhouse-performance-test
from command line.
#4437
(
alesapin
)
Add dictionaries tests to integration tests.
#4477
(
alesapin
)
Added queries from the benchmark on the website to automated performance tests.
#4496
(
alexey-milovidov
)
xxhash.h
does not exist in external lz4 because it is an implementation detail and its symbols are namespaced with
XXH_NAMESPACE
macro. When lz4 is external, xxHash has to be external too, and the dependents have to link to it.
#4495
(
Orivej Desh
)
Fixed a case when
quantileTiming
aggregate function can be called with negative or floating point argument (this fixes fuzz test with undefined behaviour sanitizer).
#4506
(
alexey-milovidov
)
Spelling error correction.
#4531
(
sdk2
)
Fix compilation on Mac.
#4371
(
Vitaly Baranov
)
Build fixes for FreeBSD and various unusual build configurations.
#4444
(
proller
)
ClickHouse Release 19.3 {#clickhouse-release-19-3}
ClickHouse Release 19.3.9.1, 2019-04-02 {#clickhouse-release-19-3-9-1-2019-04-02}
Bug Fixes {#bug-fixes-12}
Fix crash in
FULL/RIGHT JOIN
when we joining on nullable vs not nullable.
#4855
(
Artem Zuikov
)
Fix segmentation fault in
clickhouse-copier
.
#4835
(
proller
)
Fixed reading from
Array(LowCardinality)
column in rare case when column contained a long sequence of empty arrays.
#4850
(
Nikolai Kochetov
)
Build/Testing/Packaging Improvement {#buildtestingpackaging-improvement-13}
Add a way to launch clickhouse-server image from a custom user
#4753
(
Mikhail f. Shiryaev
)
ClickHouse Release 19.3.7, 2019-03-12 {#clickhouse-release-19-3-7-2019-03-12}
Bug Fixes {#bug-fixes-13}
Fixed error in #3920. This error manifests itself as random cache corruption (messages
Unknown codec family code
,
Cannot seek through file
) and segfaults. This bug first appeared in version 19.1 and is present in versions up to 19.1.10 and 19.3.6.
#4623
(
alexey-milovidov
)
ClickHouse Release 19.3.6, 2019-03-02 {#clickhouse-release-19-3-6-2019-03-02} | {"source_file": "2019.md"} | [
-0.0510522685945034,
0.020726868882775307,
-0.03173166885972023,
-0.02482062391936779,
-0.013663061894476414,
-0.1540791094303131,
-0.041945308446884155,
0.02018899843096733,
-0.0544082410633564,
0.013316506519913673,
0.008136624470353127,
0.04053594544529915,
-0.05663320794701576,
-0.1043... |
4d11e3ed-ee03-4d76-803b-4a67a3d84756 | ClickHouse Release 19.3.6, 2019-03-02 {#clickhouse-release-19-3-6-2019-03-02}
Bug Fixes {#bug-fixes-14}
When there are more than 1000 threads in a thread pool,
std::terminate
may happen on thread exit.
Azat Khuzhin
#4485
#4505
(
alexey-milovidov
)
Now it's possible to create
ReplicatedMergeTree*
tables with comments on columns without defaults and tables with columns codecs without comments and defaults. Also fix comparison of codecs.
#4523
(
alesapin
)
Fixed crash on JOIN with array or tuple.
#4552
(
Artem Zuikov
)
Fixed crash in clickhouse-copier with the message
ThreadStatus not created
.
#4540
(
Artem Zuikov
)
Fixed hangup on server shutdown if distributed DDLs were used.
#4472
(
Alex Zatelepin
)
Incorrect column numbers were printed in error message about text format parsing for columns with number greater than 10.
#4484
(
alexey-milovidov
)
Build/Testing/Packaging Improvements {#buildtestingpackaging-improvements-3}
Fixed build with AVX enabled.
#4527
(
alexey-milovidov
)
Enable extended accounting and IO accounting based on good known version instead of kernel under which it is compiled.
#4541
(
nvartolomei
)
Allow to skip setting of core_dump.size_limit, warning instead of throw if limit set fail.
#4473
(
proller
)
Removed the
inline
tags of
void readBinary(...)
in
Field.cpp
. Also merged redundant
namespace DB
blocks.
#4530
(
hcz
)
ClickHouse Release 19.3.5, 2019-02-21 {#clickhouse-release-19-3-5-2019-02-21}
Bug Fixes {#bug-fixes-15}
Fixed bug with large http insert queries processing.
#4454
(
alesapin
)
Fixed backward incompatibility with old versions due to wrong implementation of
send_logs_level
setting.
#4445
(
alexey-milovidov
)
Fixed backward incompatibility of table function
remote
introduced with column comments.
#4446
(
alexey-milovidov
)
ClickHouse Release 19.3.4, 2019-02-16 {#clickhouse-release-19-3-4-2019-02-16}
Improvements {#improvements-4}
Table index size is not accounted for memory limits when doing
ATTACH TABLE
query. Avoided the possibility that a table cannot be attached after being detached.
#4396
(
alexey-milovidov
)
Slightly raised up the limit on max string and array size received from ZooKeeper. It allows to continue to work with increased size of
CLIENT_JVMFLAGS=-Djute.maxbuffer=...
on ZooKeeper.
#4398
(
alexey-milovidov
)
Allow to repair abandoned replica even if it already has huge number of nodes in its queue.
#4399
(
alexey-milovidov
)
Add one required argument to
SET
index (max stored rows number).
#4386
(
Nikita Vasilev
)
Bug Fixes {#bug-fixes-16}
Fixed
WITH ROLLUP
result for group by single
LowCardinality
key.
#4384
(
Nikolai Kochetov
)
Fixed bug in the set index (dropping a granule if it contains more than
max_rows
rows).
#4386
(
Nikita Vasilev
)
A lot of FreeBSD build fixes.
#4397
(
proller
) | {"source_file": "2019.md"} | [
-0.06977718323469162,
-0.07230199128389359,
-0.035749081522226334,
-0.030739307403564453,
-0.025645889341831207,
-0.08108896017074585,
-0.01970766671001911,
-0.041993554681539536,
-0.02057025209069252,
0.04887925088405609,
0.06041907146573067,
-0.0036246562376618385,
-0.006250991486012936,
... |
f223a5c4-c6ca-4820-901b-6c6ba9a5e190 | Fixed bug in the set index (dropping a granule if it contains more than
max_rows
rows).
#4386
(
Nikita Vasilev
)
A lot of FreeBSD build fixes.
#4397
(
proller
)
Fixed aliases substitution in queries with subquery containing same alias (issue
#4110
).
#4351
(
Artem Zuikov
)
Build/Testing/Packaging Improvements {#buildtestingpackaging-improvements-4}
Add ability to run
clickhouse-server
for stateless tests in docker image.
#4347
(
Vasily Nemkov
)
ClickHouse Release 19.3.3, 2019-02-13 {#clickhouse-release-19-3-3-2019-02-13}
New Features {#new-features-6}
Added the
KILL MUTATION
statement that allows removing mutations that are for some reasons stuck. Added
latest_failed_part
,
latest_fail_time
,
latest_fail_reason
fields to the
system.mutations
table for easier troubleshooting.
#4287
(
Alex Zatelepin
)
Added aggregate function
entropy
which computes Shannon entropy.
#4238
(
Quid37
)
Added ability to send queries
INSERT INTO tbl VALUES (....
to server without splitting on
query
and
data
parts.
#4301
(
alesapin
)
Generic implementation of
arrayWithConstant
function was added.
#4322
(
alexey-milovidov
)
Implemented
NOT BETWEEN
comparison operator.
#4228
(
Dmitry Naumov
)
Implement
sumMapFiltered
in order to be able to limit the number of keys for which values will be summed by
sumMap
.
#4129
(
Léo Ercolanelli
)
Added support of
Nullable
types in
mysql
table function.
#4198
(
Emmanuel Donin de Rosière
)
Support for arbitrary constant expressions in
LIMIT
clause.
#4246
(
k3box
)
Added
topKWeighted
aggregate function that takes additional argument with (unsigned integer) weight.
#4245
(
Andrew Golman
)
StorageJoin
now supports
join_any_take_last_row
setting that allows overwriting existing values of the same key.
#3973
(
Amos Bird
Added function
toStartOfInterval
.
#4304
(
Vitaly Baranov
)
Added
RowBinaryWithNamesAndTypes
format.
#4200
(
Oleg V. Kozlyuk
)
Added
IPv4
and
IPv6
data types. More effective implementations of
IPv*
functions.
#3669
(
Vasily Nemkov
)
Added function
toStartOfTenMinutes()
.
#4298
(
Vitaly Baranov
)
Added
Protobuf
output format.
#4005
#4158
(
Vitaly Baranov
)
Added brotli support for HTTP interface for data import (INSERTs).
#4235
(
Mikhail
)
Added hints while user make typo in function name or type in command line client.
#4239
(
Danila Kutenin
)
Added
Query-Id
to Server's HTTP Response header.
#4231
(
Mikhail
)
Experimental Features {#experimental-features-2}
Added
minmax
and
set
data skipping indices for MergeTree table engines family.
#4143
(
Nikita Vasilev
)
Added conversion of
CROSS JOIN
to
INNER JOIN
if possible.
#4221
#4266
(
Artem Zuikov
)
Bug Fixes {#bug-fixes-17}
Fixed
Not found column
for duplicate columns in
JOIN ON
section.
#4279
(
Artem Zuikov
) | {"source_file": "2019.md"} | [
-0.06315351277589798,
0.001450645737349987,
0.04261332377791405,
-0.009650884196162224,
0.040833551436662674,
-0.10851241648197174,
0.010716786608099937,
-0.008810599334537983,
-0.034770410507917404,
0.04180089756846428,
-0.01973533444106579,
-0.057169489562511444,
0.059036511927843094,
-0... |
de3d0fad-1306-4452-87ab-616ca81ba730 | Bug Fixes {#bug-fixes-17}
Fixed
Not found column
for duplicate columns in
JOIN ON
section.
#4279
(
Artem Zuikov
)
Make
START REPLICATED SENDS
command start replicated sends.
#4229
(
nvartolomei
)
Fixed aggregate functions execution with
Array(LowCardinality)
arguments.
#4055
(
KochetovNicolai
)
Fixed wrong behaviour when doing
INSERT ... SELECT ... FROM file(...)
query and file has
CSVWithNames
or
TSVWIthNames
format and the first data row is missing.
#4297
(
alexey-milovidov
)
Fixed crash on dictionary reload if dictionary not available. This bug was appeared in 19.1.6.
#4188
(
proller
)
Fixed
ALL JOIN
with duplicates in right table.
#4184
(
Artem Zuikov
)
Fixed segmentation fault with
use_uncompressed_cache=1
and exception with wrong uncompressed size. This bug was appeared in 19.1.6.
#4186
(
alesapin
)
Fixed
compile_expressions
bug with comparison of big (more than int16) dates.
#4341
(
alesapin
)
Fixed infinite loop when selecting from table function
numbers(0)
.
#4280
(
alexey-milovidov
)
Temporarily disable predicate optimization for
ORDER BY
.
#3890
(
Winter Zhang
)
Fixed
Illegal instruction
error when using base64 functions on old CPUs. This error has been reproduced only when ClickHouse was compiled with gcc-8.
#4275
(
alexey-milovidov
)
Fixed
No message received
error when interacting with PostgreSQL ODBC Driver through TLS connection. Also fixes segfault when using MySQL ODBC Driver.
#4170
(
alexey-milovidov
)
Fixed incorrect result when
Date
and
DateTime
arguments are used in branches of conditional operator (function
if
). Added generic case for function
if
.
#4243
(
alexey-milovidov
)
ClickHouse dictionaries now load within
clickhouse
process.
#4166
(
alexey-milovidov
)
Fixed deadlock when
SELECT
from a table with
File
engine was retried after
No such file or directory
error.
#4161
(
alexey-milovidov
)
Fixed race condition when selecting from
system.tables
may give
table does not exist
error.
#4313
(
alexey-milovidov
)
clickhouse-client
can segfault on exit while loading data for command line suggestions if it was run in interactive mode.
#4317
(
alexey-milovidov
)
Fixed a bug when the execution of mutations containing
IN
operators was producing incorrect results.
#4099
(
Alex Zatelepin
)
Fixed error: if there is a database with
Dictionary
engine, all dictionaries forced to load at server startup, and if there is a dictionary with ClickHouse source from localhost, the dictionary cannot load.
#4255
(
alexey-milovidov
)
Fixed error when system logs are tried to create again at server shutdown.
#4254
(
alexey-milovidov
)
Correctly return the right type and properly handle locks in
joinGet
function.
#4153
(
Amos Bird
)
Added
sumMapWithOverflow
function.
#4151
(
Léo Ercolanelli
)
Fixed segfault with
allow_experimental_multiple_joins_emulation
.
52de2c
(
Artem Zuikov
) | {"source_file": "2019.md"} | [
-0.0589732900261879,
-0.04412439838051796,
0.004990961402654648,
0.03827642649412155,
-0.014267650432884693,
-0.11036654561758041,
-0.05152563005685806,
-0.02330116741359234,
-0.013370929285883904,
0.06299171596765518,
0.07124607264995575,
0.01946294493973255,
0.04640887677669525,
-0.05960... |
baa983a7-ee33-4a59-8236-5ff250c86edc | Added
sumMapWithOverflow
function.
#4151
(
Léo Ercolanelli
)
Fixed segfault with
allow_experimental_multiple_joins_emulation
.
52de2c
(
Artem Zuikov
)
Fixed bug with incorrect
Date
and
DateTime
comparison.
#4237
(
valexey
)
Fixed fuzz test under undefined behavior sanitizer: added parameter type check for
quantile*Weighted
family of functions.
#4145
(
alexey-milovidov
)
Fixed rare race condition when removing of old data parts can fail with
File not found
error.
#4378
(
alexey-milovidov
)
Fix install package with missing /etc/clickhouse-server/config.xml.
#4343
(
proller
)
Build/Testing/Packaging Improvements {#buildtestingpackaging-improvements-5}
Debian package: correct /etc/clickhouse-server/preprocessed link according to config.
#4205
(
proller
)
Various build fixes for FreeBSD.
#4225
(
proller
)
Added ability to create, fill and drop tables in perftest.
#4220
(
alesapin
)
Added a script to check for duplicate includes.
#4326
(
alexey-milovidov
)
Added ability to run queries by index in performance test.
#4264
(
alesapin
)
Package with debug symbols is suggested to be installed.
#4274
(
alexey-milovidov
)
Refactoring of performance-test. Better logging and signals handling.
#4171
(
alesapin
)
Added docs to anonymized Yandex.Metrica datasets.
#4164
(
alesapin
)
Аdded tool for converting an old month-partitioned part to the custom-partitioned format.
#4195
(
Alex Zatelepin
)
Added docs about two datasets in s3.
#4144
(
alesapin
)
Added script which creates changelog from pull requests description.
#4169
#4173
(
KochetovNicolai
) (
KochetovNicolai
)
Added puppet module for ClickHouse.
#4182
(
Maxim Fedotov
)
Added docs for a group of undocumented functions.
#4168
(
Winter Zhang
)
ARM build fixes.
#4210
#4306
#4291
(
proller
) (
proller
)
Dictionary tests now able to run from
ctest
.
#4189
(
proller
)
Now
/etc/ssl
is used as default directory with SSL certificates.
#4167
(
alexey-milovidov
)
Added checking SSE and AVX instruction at start.
#4234
(
Igr
)
Init script will wait server until start.
#4281
(
proller
)
Backward Incompatible Changes {#backward-incompatible-changes-1}
Removed
allow_experimental_low_cardinality_type
setting.
LowCardinality
data types are production ready.
#4323
(
alexey-milovidov
)
Reduce mark cache size and uncompressed cache size accordingly to available memory amount.
#4240
(
Lopatin Konstantin
Added keyword
INDEX
in
CREATE TABLE
query. A column with name
index
must be quoted with backticks or double quotes:
`index`
.
#4143
(
Nikita Vasilev
)
sumMap
now promote result type instead of overflow. The old
sumMap
behavior can be obtained by using
sumMapWithOverflow
function.
#4151
(
Léo Ercolanelli
)
Performance Improvements {#performance-improvements-4}
std::sort
replaced by
pdqsort
for queries without
LIMIT
.
#4236
(
Evgenii Pravda
) | {"source_file": "2019.md"} | [
-0.10225095599889755,
-0.03732905164361,
0.01818723790347576,
-0.06108058989048004,
0.004681936930865049,
-0.09386786073446274,
-0.028029311448335648,
0.005277085583657026,
-0.03163610398769379,
0.04838145151734352,
0.04024100303649902,
-0.05372089892625809,
0.010908742435276508,
-0.073111... |
fe0a90ab-aba6-49a5-ab86-4f07024c0315 | Performance Improvements {#performance-improvements-4}
std::sort
replaced by
pdqsort
for queries without
LIMIT
.
#4236
(
Evgenii Pravda
)
Now server reuse threads from global thread pool. This affects performance in some corner cases.
#4150
(
alexey-milovidov
)
Improvements {#improvements-5}
Implemented AIO support for FreeBSD.
#4305
(
urgordeadbeef
)
SELECT * FROM a JOIN b USING a, b
now return
a
and
b
columns only from the left table.
#4141
(
Artem Zuikov
)
Allow
-C
option of client to work as
-c
option.
#4232
(
syominsergey
)
Now option
--password
used without value requires password from stdin.
#4230
(
BSD_Conqueror
)
Added highlighting of unescaped metacharacters in string literals that contain
LIKE
expressions or regexps.
#4327
(
alexey-milovidov
)
Added cancelling of HTTP read only queries if client socket goes away.
#4213
(
nvartolomei
)
Now server reports progress to keep client connections alive.
#4215
(
Ivan
)
Slightly better message with reason for OPTIMIZE query with
optimize_throw_if_noop
setting enabled.
#4294
(
alexey-milovidov
)
Added support of
--version
option for clickhouse server.
#4251
(
Lopatin Konstantin
)
Added
--help/-h
option to
clickhouse-server
.
#4233
(
Yuriy Baranov
)
Added support for scalar subqueries with aggregate function state result.
#4348
(
Nikolai Kochetov
)
Improved server shutdown time and ALTERs waiting time.
#4372
(
alexey-milovidov
)
Added info about the replicated_can_become_leader setting to system.replicas and add logging if the replica won't try to become leader.
#4379
(
Alex Zatelepin
)
ClickHouse Release 19.1 {#clickhouse-release-19-1}
ClickHouse Release 19.1.14, 2019-03-14 {#clickhouse-release-19-1-14-2019-03-14}
Fixed error
Column ... queried more than once
that may happen if the setting
asterisk_left_columns_only
is set to 1 in case of using
GLOBAL JOIN
with
SELECT *
(rare case). The issue does not exist in 19.3 and newer.
6bac7d8d
(
Artem Zuikov
)
ClickHouse Release 19.1.13, 2019-03-12 {#clickhouse-release-19-1-13-2019-03-12}
This release contains exactly the same set of patches as 19.3.7.
ClickHouse Release 19.1.10, 2019-03-03 {#clickhouse-release-19-1-10-2019-03-03}
This release contains exactly the same set of patches as 19.3.6.
ClickHouse Release 19.1 {#clickhouse-release-19-1-1}
ClickHouse Release 19.1.9, 2019-02-21 {#clickhouse-release-19-1-9-2019-02-21}
Bug Fixes {#bug-fixes-18}
Fixed backward incompatibility with old versions due to wrong implementation of
send_logs_level
setting.
#4445
(
alexey-milovidov
)
Fixed backward incompatibility of table function
remote
introduced with column comments.
#4446
(
alexey-milovidov
)
ClickHouse Release 19.1.8, 2019-02-16 {#clickhouse-release-19-1-8-2019-02-16}
Bug Fixes {#bug-fixes-19}
Fix install package with missing /etc/clickhouse-server/config.xml.
#4343
(
proller
) | {"source_file": "2019.md"} | [
-0.05343826115131378,
0.05137312039732933,
-0.055278509855270386,
0.009971176274120808,
-0.015737058594822884,
0.0025401597376912832,
0.05746854841709137,
0.017035556957125664,
0.02461213804781437,
0.06467661261558533,
-0.001881484524346888,
0.03549560531973839,
0.02827480621635914,
-0.063... |
fa683294-a5b5-4d37-a2ee-a05b377a72fb | Bug Fixes {#bug-fixes-19}
Fix install package with missing /etc/clickhouse-server/config.xml.
#4343
(
proller
)
ClickHouse Release 19.1 {#clickhouse-release-19-1-2}
ClickHouse Release 19.1.7, 2019-02-15 {#clickhouse-release-19-1-7-2019-02-15}
Bug Fixes {#bug-fixes-20}
Correctly return the right type and properly handle locks in
joinGet
function.
#4153
(
Amos Bird
)
Fixed error when system logs are tried to create again at server shutdown.
#4254
(
alexey-milovidov
)
Fixed error: if there is a database with
Dictionary
engine, all dictionaries forced to load at server startup, and if there is a dictionary with ClickHouse source from localhost, the dictionary cannot load.
#4255
(
alexey-milovidov
)
Fixed a bug when the execution of mutations containing
IN
operators was producing incorrect results.
#4099
(
Alex Zatelepin
)
clickhouse-client
can segfault on exit while loading data for command line suggestions if it was run in interactive mode.
#4317
(
alexey-milovidov
)
Fixed race condition when selecting from
system.tables
may give
table does not exist
error.
#4313
(
alexey-milovidov
)
Fixed deadlock when
SELECT
from a table with
File
engine was retried after
No such file or directory
error.
#4161
(
alexey-milovidov
)
Fixed an issue: local ClickHouse dictionaries are loaded via TCP, but should load within process.
#4166
(
alexey-milovidov
)
Fixed
No message received
error when interacting with PostgreSQL ODBC Driver through TLS connection. Also fixes segfault when using MySQL ODBC Driver.
#4170
(
alexey-milovidov
)
Temporarily disable predicate optimization for
ORDER BY
.
#3890
(
Winter Zhang
)
Fixed infinite loop when selecting from table function
numbers(0)
.
#4280
(
alexey-milovidov
)
Fixed
compile_expressions
bug with comparison of big (more than int16) dates.
#4341
(
alesapin
)
Fixed segmentation fault with
uncompressed_cache=1
and exception with wrong uncompressed size.
#4186
(
alesapin
)
Fixed
ALL JOIN
with duplicates in right table.
#4184
(
Artem Zuikov
)
Fixed wrong behaviour when doing
INSERT ... SELECT ... FROM file(...)
query and file has
CSVWithNames
or
TSVWIthNames
format and the first data row is missing.
#4297
(
alexey-milovidov
)
Fixed aggregate functions execution with
Array(LowCardinality)
arguments.
#4055
(
KochetovNicolai
)
Debian package: correct /etc/clickhouse-server/preprocessed link according to config.
#4205
(
proller
)
Fixed fuzz test under undefined behavior sanitizer: added parameter type check for
quantile*Weighted
family of functions.
#4145
(
alexey-milovidov
)
Make
START REPLICATED SENDS
command start replicated sends.
#4229
(
nvartolomei
)
Fixed
Not found column
for duplicate columns in JOIN ON section.
#4279
(
Artem Zuikov
)
Now
/etc/ssl
is used as default directory with SSL certificates.
#4167
(
alexey-milovidov
) | {"source_file": "2019.md"} | [
-0.05142225697636604,
-0.04138826206326485,
-0.04975229129195213,
-0.009320225566625595,
-0.013146394863724709,
-0.08910045027732849,
0.034148138016462326,
-0.042086876928806305,
-0.044631000608205795,
0.02887663058936596,
0.04785602167248726,
0.02761227823793888,
0.02576763555407524,
0.01... |
31740c15-e53d-4810-a601-26df8a5b8452 | Fixed
Not found column
for duplicate columns in JOIN ON section.
#4279
(
Artem Zuikov
)
Now
/etc/ssl
is used as default directory with SSL certificates.
#4167
(
alexey-milovidov
)
Fixed crash on dictionary reload if dictionary not available.
#4188
(
proller
)
Fixed bug with incorrect
Date
and
DateTime
comparison.
#4237
(
valexey
)
Fixed incorrect result when
Date
and
DateTime
arguments are used in branches of conditional operator (function
if
). Added generic case for function
if
.
#4243
(
alexey-milovidov
)
ClickHouse Release 19.1.6, 2019-01-24 {#clickhouse-release-19-1-6-2019-01-24}
New Features {#new-features-7}
Custom per column compression codecs for tables.
#3899
#4111
(
alesapin
,
Winter Zhang
,
Anatoly
)
Added compression codec
Delta
.
#4052
(
alesapin
)
Allow to
ALTER
compression codecs.
#4054
(
alesapin
)
Added functions
left
,
right
,
trim
,
ltrim
,
rtrim
,
timestampadd
,
timestampsub
for SQL standard compatibility.
#3826
(
Ivan Blinkov
)
Support for write in
HDFS
tables and
hdfs
table function.
#4084
(
alesapin
)
Added functions to search for multiple constant strings from big haystack:
multiPosition
,
multiSearch
,
firstMatch
also with
-UTF8
,
-CaseInsensitive
, and
-CaseInsensitiveUTF8
variants.
#4053
(
Danila Kutenin
)
Pruning of unused shards if
SELECT
query filters by sharding key (setting
optimize_skip_unused_shards
).
#3851
(
Gleb Kanterov
,
Ivan
)
Allow
Kafka
engine to ignore some number of parsing errors per block.
#4094
(
Ivan
)
Added support for
CatBoost
multiclass models evaluation. Function
modelEvaluate
returns tuple with per-class raw predictions for multiclass models.
libcatboostmodel.so
should be built with
#607
.
#3959
(
KochetovNicolai
)
Added functions
filesystemAvailable
,
filesystemFree
,
filesystemCapacity
.
#4097
(
Boris Granveaud
)
Added hashing functions
xxHash64
and
xxHash32
.
#3905
(
filimonov
)
Added
gccMurmurHash
hashing function (GCC flavoured Murmur hash) which uses the same hash seed as
gcc
#4000
(
sundyli
)
Added hashing functions
javaHash
,
hiveHash
.
#3811
(
shangshujie365
)
Added table function
remoteSecure
. Function works as
remote
, but uses secure connection.
#4088
(
proller
)
Experimental Features {#experimental-features-3}
Added multiple JOINs emulation (
allow_experimental_multiple_joins_emulation
setting).
#3946
(
Artem Zuikov
)
Bug Fixes {#bug-fixes-21}
Make
compiled_expression_cache_size
setting limited by default to lower memory consumption.
#4041
(
alesapin
)
Fix a bug that led to hangups in threads that perform ALTERs of Replicated tables and in the thread that updates configuration from ZooKeeper.
#2947
#3891
#3934
(
Alex Zatelepin
) | {"source_file": "2019.md"} | [
-0.08795187622308731,
-0.02246956154704094,
-0.05887454003095627,
0.032273340970277786,
0.0038058122154325247,
-0.018391136080026627,
-0.012425062246620655,
-0.017142951488494873,
-0.011645179241895676,
0.004940390586853027,
0.08403254300355911,
-0.010126776993274689,
0.059906814247369766,
... |
ddfea794-bdbf-4957-95e0-7fb1ef6dcecc | Fix a bug that led to hangups in threads that perform ALTERs of Replicated tables and in the thread that updates configuration from ZooKeeper.
#2947
#3891
#3934
(
Alex Zatelepin
)
Fixed a race condition when executing a distributed ALTER task. The race condition led to more than one replica trying to execute the task and all replicas except one failing with a ZooKeeper error.
#3904
(
Alex Zatelepin
)
Fix a bug when
from_zk
config elements weren't refreshed after a request to ZooKeeper timed out.
#2947
#3947
(
Alex Zatelepin
)
Fix bug with wrong prefix for IPv4 subnet masks.
#3945
(
alesapin
)
Fixed crash (
std::terminate
) in rare cases when a new thread cannot be created due to exhausted resources.
#3956
(
alexey-milovidov
)
Fix bug when in
remote
table function execution when wrong restrictions were used for in
getStructureOfRemoteTable
.
#4009
(
alesapin
)
Fix a leak of netlink sockets. They were placed in a pool where they were never deleted and new sockets were created at the start of a new thread when all current sockets were in use.
#4017
(
Alex Zatelepin
)
Fix bug with closing
/proc/self/fd
directory earlier than all fds were read from
/proc
after forking
odbc-bridge
subprocess.
#4120
(
alesapin
)
Fixed String to UInt monotonic conversion in case of usage String in primary key.
#3870
(
Winter Zhang
)
Fixed error in calculation of integer conversion function monotonicity.
#3921
(
alexey-milovidov
)
Fixed segfault in
arrayEnumerateUniq
,
arrayEnumerateDense
functions in case of some invalid arguments.
#3909
(
alexey-milovidov
)
Fix UB in StorageMerge.
#3910
(
Amos Bird
)
Fixed segfault in functions
addDays
,
subtractDays
.
#3913
(
alexey-milovidov
)
Fixed error: functions
round
,
floor
,
trunc
,
ceil
may return bogus result when executed on integer argument and large negative scale.
#3914
(
alexey-milovidov
)
Fixed a bug induced by 'kill query sync' which leads to a core dump.
#3916
(
muVulDeePecker
)
Fix bug with long delay after empty replication queue.
#3928
#3932
(
alesapin
)
Fixed excessive memory usage in case of inserting into table with
LowCardinality
primary key.
#3955
(
KochetovNicolai
)
Fixed
LowCardinality
serialization for
Native
format in case of empty arrays.
#3907
#4011
(
KochetovNicolai
)
Fixed incorrect result while using distinct by single LowCardinality numeric column.
#3895
#4012
(
KochetovNicolai
)
Fixed specialized aggregation with LowCardinality key (in case when
compile
setting is enabled).
#3886
(
KochetovNicolai
)
Fix user and password forwarding for replicated tables queries.
#3957
(
alesapin
) (
小路
)
Fixed very rare race condition that can happen when listing tables in Dictionary database while reloading dictionaries.
#3970
(
alexey-milovidov
)
Fixed incorrect result when HAVING was used with ROLLUP or CUBE.
#3756
#3837
(
Sam Chou
) | {"source_file": "2019.md"} | [
-0.059046681970357895,
0.0034126180689781904,
0.04297798126935959,
0.020075036212801933,
0.07059567421674728,
-0.05689837783575058,
-0.016354093328118324,
-0.0445471815764904,
-0.005447397008538246,
0.08631855249404907,
-0.007470880635082722,
-0.010269401594996452,
-0.009482055902481079,
0... |
ae553917-5f02-44f8-998b-c014922c5855 | Fixed incorrect result when HAVING was used with ROLLUP or CUBE.
#3756
#3837
(
Sam Chou
)
Fixed column aliases for query with
JOIN ON
syntax and distributed tables.
#3980
(
Winter Zhang
)
Fixed error in internal implementation of
quantileTDigest
(found by Artem Vakhrushev). This error never happens in ClickHouse and was relevant only for those who use ClickHouse codebase as a library directly.
#3935
(
alexey-milovidov
)
Improvements {#improvements-6}
Support for
IF NOT EXISTS
in
ALTER TABLE ADD COLUMN
statements along with
IF EXISTS
in
DROP/MODIFY/CLEAR/COMMENT COLUMN
.
#3900
(
Boris Granveaud
)
Function
parseDateTimeBestEffort
: support for formats
DD.MM.YYYY
,
DD.MM.YY
,
DD-MM-YYYY
,
DD-Mon-YYYY
,
DD/Month/YYYY
and similar.
#3922
(
alexey-milovidov
)
CapnProtoInputStream
now support jagged structures.
#4063
(
Odin Hultgren Van Der Horst
)
Usability improvement: added a check that server process is started from the data directory's owner. Do not allow to start server from root if the data belongs to non-root user.
#3785
(
sergey-v-galtsev
)
Better logic of checking required columns during analysis of queries with JOINs.
#3930
(
Artem Zuikov
)
Decreased the number of connections in case of large number of Distributed tables in a single server.
#3726
(
Winter Zhang
)
Supported totals row for
WITH TOTALS
query for ODBC driver.
#3836
(
Maksim Koritckiy
)
Allowed to use
Enum
s as integers inside if function.
#3875
(
Ivan
)
Added
low_cardinality_allow_in_native_format
setting. If disabled, do not use
LowCadrinality
type in
Native
format.
#3879
(
KochetovNicolai
)
Removed some redundant objects from compiled expressions cache to lower memory usage.
#4042
(
alesapin
)
Add check that
SET send_logs_level = 'value'
query accept appropriate value.
#3873
(
Sabyanin Maxim
)
Fixed data type check in type conversion functions.
#3896
(
Winter Zhang
)
Performance Improvements {#performance-improvements-5}
Add a MergeTree setting
use_minimalistic_part_header_in_zookeeper
. If enabled, Replicated tables will store compact part metadata in a single part znode. This can dramatically reduce ZooKeeper snapshot size (especially if the tables have a lot of columns). Note that after enabling this setting you will not be able to downgrade to a version that does not support it.
#3960
(
Alex Zatelepin
)
Add an DFA-based implementation for functions
sequenceMatch
and
sequenceCount
in case pattern does not contain time.
#4004
(
Léo Ercolanelli
)
Performance improvement for integer numbers serialization.
#3968
(
Amos Bird
)
Zero left padding PODArray so that -1 element is always valid and zeroed. It's used for branchless calculation of offsets.
#3920
(
Amos Bird
)
Reverted
jemalloc
version which lead to performance degradation.
#4018
(
alexey-milovidov
)
Backward Incompatible Changes {#backward-incompatible-changes-2} | {"source_file": "2019.md"} | [
-0.10021723061800003,
-0.04527215287089348,
0.0059663341380655766,
0.0019611117895692587,
-0.051704347133636475,
-0.08011794090270996,
0.017710257321596146,
0.02358526550233364,
-0.02232957072556019,
0.0360264927148819,
0.06031971424818039,
-0.023240821436047554,
-0.0022983234375715256,
-0... |
607ced79-1676-4560-a6a8-034ce2e826e3 | Reverted
jemalloc
version which lead to performance degradation.
#4018
(
alexey-milovidov
)
Backward Incompatible Changes {#backward-incompatible-changes-2}
Removed undocumented feature
ALTER MODIFY PRIMARY KEY
because it was superseded by the
ALTER MODIFY ORDER BY
command.
#3887
(
Alex Zatelepin
)
Removed function
shardByHash
.
#3833
(
alexey-milovidov
)
Forbid using scalar subqueries with result of type
AggregateFunction
.
#3865
(
Ivan
)
Build/Testing/Packaging Improvements {#buildtestingpackaging-improvements-6}
Added support for PowerPC (
ppc64le
) build.
#4132
(
Danila Kutenin
)
Stateful functional tests are run on public available dataset.
#3969
(
alexey-milovidov
)
Fixed error when the server cannot start with the
bash: /usr/bin/clickhouse-extract-from-config: Operation not permitted
message within Docker or systemd-nspawn.
#4136
(
alexey-milovidov
)
Updated
rdkafka
library to v1.0.0-RC5. Used cppkafka instead of raw C interface.
#4025
(
Ivan
)
Updated
mariadb-client
library. Fixed one of issues found by UBSan.
#3924
(
alexey-milovidov
)
Some fixes for UBSan builds.
#3926
#3021
#3948
(
alexey-milovidov
)
Added per-commit runs of tests with UBSan build.
Added per-commit runs of PVS-Studio static analyzer.
Fixed bugs found by PVS-Studio.
#4013
(
alexey-milovidov
)
Fixed glibc compatibility issues.
#4100
(
alexey-milovidov
)
Move Docker images to 18.10 and add compatibility file for glibc >= 2.28
#3965
(
alesapin
)
Add env variable if user do not want to chown directories in server Docker image.
#3967
(
alesapin
)
Enabled most of the warnings from
-Weverything
in clang. Enabled
-Wpedantic
.
#3986
(
alexey-milovidov
)
Added a few more warnings that are available only in clang 8.
#3993
(
alexey-milovidov
)
Link to
libLLVM
rather than to individual LLVM libs when using shared linking.
#3989
(
Orivej Desh
)
Added sanitizer variables for test images.
#4072
(
alesapin
)
clickhouse-server
debian package will recommend
libcap2-bin
package to use
setcap
tool for setting capabilities. This is optional.
#4093
(
alexey-milovidov
)
Improved compilation time, fixed includes.
#3898
(
proller
)
Added performance tests for hash functions.
#3918
(
filimonov
)
Fixed cyclic library dependences.
#3958
(
proller
)
Improved compilation with low available memory.
#4030
(
proller
)
Added test script to reproduce performance degradation in
jemalloc
.
#4036
(
alexey-milovidov
)
Fixed misspells in comments and string literals under
dbms
.
#4122
(
maiha
)
Fixed typos in comments.
#4089
(
Evgenii Pravda
)
Changelog for 2018
{#changelog-for-2018} | {"source_file": "2019.md"} | [
-0.0326836034655571,
0.021290438249707222,
-0.025562791153788567,
0.01612725667655468,
-0.0036375210620462894,
-0.047677185386419296,
-0.10066524147987366,
0.0002901884727180004,
-0.07140865176916122,
0.03954174369573593,
-0.010147212073206902,
0.022084541618824005,
-0.025891810655593872,
... |
0a5a7516-7ba1-4868-942b-e23b1adb34d1 | slug: /whats-new/changelog/2018
sidebar_position: 9
sidebar_label: '2018'
title: '2018 Changelog'
description: 'Changelog for 2018'
doc_type: 'changelog'
keywords: ['ClickHouse 2018', 'changelog 2018', 'release notes', 'version history', 'legacy releases']
ClickHouse Release 18.16 {#clickhouse-release-18-16}
ClickHouse Release 18.16.1, 2018-12-21 {#clickhouse-release-18-16-1-2018-12-21}
Bug Fixes: {#bug-fixes}
Fixed an error that led to problems with updating dictionaries with the ODBC source.
#3825
,
#3829
JIT compilation of aggregate functions now works with LowCardinality columns.
#3838
Improvements: {#improvements}
Added the
low_cardinality_allow_in_native_format
setting (enabled by default). When disabled, LowCardinality columns will be converted to ordinary columns for SELECT queries and ordinary columns will be expected for INSERT queries.
#3879
Build Improvements: {#build-improvements}
Fixes for builds on macOS and ARM.
ClickHouse Release 18.16.0, 2018-12-14 {#clickhouse-release-18-16-0-2018-12-14}
New Features: {#new-features}
DEFAULT
expressions are evaluated for missing fields when loading data in semi-structured input formats (
JSONEachRow
,
TSKV
). The feature is enabled with the
insert_sample_with_metadata
setting.
#3555
The
ALTER TABLE
query now has the
MODIFY ORDER BY
action for changing the sorting key when adding or removing a table column. This is useful for tables in the
MergeTree
family that perform additional tasks when merging based on this sorting key, such as
SummingMergeTree
,
AggregatingMergeTree
, and so on.
#3581
#3755
For tables in the
MergeTree
family, now you can specify a different sorting key (
ORDER BY
) and index (
PRIMARY KEY
). The sorting key can be longer than the index.
#3581
Added the
hdfs
table function and the
HDFS
table engine for importing and exporting data to HDFS.
chenxing-xc
Added functions for working with base64:
base64Encode
,
base64Decode
,
tryBase64Decode
.
Alexander Krasheninnikov
Now you can use a parameter to configure the precision of the
uniqCombined
aggregate function (select the number of HyperLogLog cells).
#3406
Added the
system.contributors
table that contains the names of everyone who made commits in ClickHouse.
#3452
Added the ability to omit the partition for the
ALTER TABLE ... FREEZE
query in order to back up all partitions at once.
#3514
Added
dictGet
and
dictGetOrDefault
functions that do not require specifying the type of return value. The type is determined automatically from the dictionary description.
Amos Bird
Now you can specify comments for a column in the table description and change it using
ALTER
.
#3377
Reading is supported for
Join
type tables with simple keys.
Amos Bird
Now you can specify the options
join_use_nulls
,
max_rows_in_join
,
max_bytes_in_join
, and
join_overflow_mode
when creating a
Join
type table.
Amos Bird | {"source_file": "2018.md"} | [
-0.001231431495398283,
0.00609578425064683,
0.04481499642133713,
0.02743147499859333,
-0.0004186630540061742,
-0.06274525821208954,
-0.04792759194970131,
-0.0016096411272883415,
-0.018056269735097885,
0.01649870164692402,
0.060185279697179794,
-0.008751021698117256,
-0.029438398778438568,
... |
ebacff7a-6d34-4f33-8cbe-171b6d90cbcd | Now you can specify the options
join_use_nulls
,
max_rows_in_join
,
max_bytes_in_join
, and
join_overflow_mode
when creating a
Join
type table.
Amos Bird
Added the
joinGet
function that allows you to use a
Join
type table like a dictionary.
Amos Bird
Added the
partition_key
,
sorting_key
,
primary_key
, and
sampling_key
columns to the
system.tables
table in order to provide information about table keys.
#3609
Added the
is_in_partition_key
,
is_in_sorting_key
,
is_in_primary_key
, and
is_in_sampling_key
columns to the
system.columns
table.
#3609
Added the
min_time
and
max_time
columns to the
system.parts
table. These columns are populated when the partitioning key is an expression consisting of
DateTime
columns.
Emmanuel Donin de Rosière
Bug Fixes: {#bug-fixes-1}
Fixes and performance improvements for the
LowCardinality
data type.
GROUP BY
using
LowCardinality(Nullable(...))
. Getting the values of
extremes
. Processing high-order functions.
LEFT ARRAY JOIN
. Distributed
GROUP BY
. Functions that return
Array
. Execution of
ORDER BY
. Writing to
Distributed
tables (nicelulu). Backward compatibility for
INSERT
queries from old clients that implement the
Native
protocol. Support for
LowCardinality
for
JOIN
. Improved performance when working in a single stream.
#3823
#3803
#3799
#3769
#3744
#3681
#3651
#3649
#3641
#3632
#3568
#3523
#3518
Fixed how the
select_sequential_consistency
option works. Previously, when this setting was enabled, an incomplete result was sometimes returned after beginning to write to a new partition.
#2863
Databases are correctly specified when executing DDL
ON CLUSTER
queries and
ALTER UPDATE/DELETE
.
#3772
#3460
Databases are correctly specified for subqueries inside a VIEW.
#3521
Fixed a bug in
PREWHERE
with
FINAL
for
VersionedCollapsingMergeTree
.
7167bfd7
Now you can use
KILL QUERY
to cancel queries that have not started yet because they are waiting for the table to be locked.
#3517
Corrected date and time calculations if the clocks were moved back at midnight (this happens in Iran, and happened in Moscow from 1981 to 1983). Previously, this led to the time being reset a day earlier than necessary, and also caused incorrect formatting of the date and time in text format.
#3819
Fixed bugs in some cases of
VIEW
and subqueries that omit the database.
Winter Zhang
Fixed a race condition when simultaneously reading from a
MATERIALIZED VIEW
and deleting a
MATERIALIZED VIEW
due to not locking the internal
MATERIALIZED VIEW
.
#3404
#3694
Fixed the error
Lock handler cannot be nullptr.
#3689
Fixed query processing when the
compile_expressions
option is enabled (it's enabled by default). Nondeterministic constant expressions like the
now
function are no longer unfolded.
#3457
Fixed a crash when specifying a non-constant scale argument in
toDecimal32/64/128
functions. | {"source_file": "2018.md"} | [
-0.007326174061745405,
0.03689699247479439,
-0.03599835932254791,
0.022820647805929184,
0.004934164695441723,
-0.1108478531241417,
0.00012653767771553248,
0.08085191994905472,
-0.07182015478610992,
0.012569161131978035,
-0.04391569644212723,
0.005881298799067736,
0.005023702047765255,
-0.0... |
1b244e0f-8ef8-4486-8db9-ea962cb19c6c | Fixed a crash when specifying a non-constant scale argument in
toDecimal32/64/128
functions.
Fixed an error when trying to insert an array with
NULL
elements in the
Values
format into a column of type
Array
without
Nullable
(if
input_format_values_interpret_expressions
= 1).
#3487
#3503
Fixed continuous error logging in
DDLWorker
if ZooKeeper is not available.
8f50c620
Fixed the return type for
quantile*
functions from
Date
and
DateTime
types of arguments.
#3580
Fixed the
WITH
clause if it specifies a simple alias without expressions.
#3570
Fixed processing of queries with named sub-queries and qualified column names when
enable_optimize_predicate_expression
is enabled.
Winter Zhang
Fixed the error
Attempt to attach to nullptr thread group
when working with materialized views.
Marek Vavruša
Fixed a crash when passing certain incorrect arguments to the
arrayReverse
function.
73e3a7b6
Fixed the buffer overflow in the
extractURLParameter
function. Improved performance. Added correct processing of strings containing zero bytes.
141e9799
Fixed buffer overflow in the
lowerUTF8
and
upperUTF8
functions. Removed the ability to execute these functions over
FixedString
type arguments.
#3662
Fixed a rare race condition when deleting
MergeTree
tables.
#3680
Fixed a race condition when reading from
Buffer
tables and simultaneously performing
ALTER
or
DROP
on the target tables.
#3719
Fixed a segfault if the
max_temporary_non_const_columns
limit was exceeded.
#3788
Improvements: {#improvements-1}
The server does not write the processed configuration files to the
/etc/clickhouse-server/
directory. Instead, it saves them in the
preprocessed_configs
directory inside
path
. This means that the
/etc/clickhouse-server/
directory does not have write access for the
clickhouse
user, which improves security.
#2443
The
min_merge_bytes_to_use_direct_io
option is set to 10 GiB by default. A merge that forms large parts of tables from the MergeTree family will be performed in
O_DIRECT
mode, which prevents excessive page cache eviction.
#3504
Accelerated server start when there is a very large number of tables.
#3398
Added a connection pool and HTTP
Keep-Alive
for connections between replicas.
#3594
If the query syntax is invalid, the
400 Bad Request
code is returned in the
HTTP
interface (500 was returned previously).
31bc680a
The
join_default_strictness
option is set to
ALL
by default for compatibility.
120e2cbe
Removed logging to
stderr
from the
re2
library for invalid or complex regular expressions.
#3723
Added for the
Kafka
table engine: checks for subscriptions before beginning to read from Kafka; the kafka_max_block_size setting for the table.
Marek Vavruša | {"source_file": "2018.md"} | [
-0.01786053366959095,
0.006591923534870148,
-0.015565520152449608,
0.009447875432670116,
-0.07016269117593765,
-0.0440220944583416,
-0.02701886184513569,
0.014169583097100258,
-0.056794993579387665,
0.03181195259094238,
-0.053778328001499176,
-0.11663027107715607,
-0.03673939406871796,
0.0... |
ae21e846-55c7-4556-97b4-05207f8f260a | Added for the
Kafka
table engine: checks for subscriptions before beginning to read from Kafka; the kafka_max_block_size setting for the table.
Marek Vavruša
The
cityHash64
,
farmHash64
,
metroHash64
,
sipHash64
,
halfMD5
,
murmurHash2_32
,
murmurHash2_64
,
murmurHash3_32
, and
murmurHash3_64
functions now work for any number of arguments and for arguments in the form of tuples.
#3451
#3519
The
arrayReverse
function now works with any types of arrays.
73e3a7b6
Added an optional parameter: the slot size for the
timeSlots
function.
Kirill Shvakov
For
FULL
and
RIGHT JOIN
, the
max_block_size
setting is used for a stream of non-joined data from the right table.
Amos Bird
Added the
--secure
command line parameter in
clickhouse-benchmark
and
clickhouse-performance-test
to enable TLS.
#3688
#3690
Type conversion when the structure of a
Buffer
type table does not match the structure of the destination table.
Vitaly Baranov
Added the
tcp_keep_alive_timeout
option to enable keep-alive packets after inactivity for the specified time interval.
#3441
Removed unnecessary quoting of values for the partition key in the
system.parts
table if it consists of a single column.
#3652
The modulo function works for
Date
and
DateTime
data types.
#3385
Added synonyms for the
POWER
,
LN
,
LCASE
,
UCASE
,
REPLACE
,
LOCATE
,
SUBSTR
, and
MID
functions.
#3774
#3763
Some function names are case-insensitive for compatibility with the SQL standard. Added syntactic sugar
SUBSTRING(expr FROM start FOR length)
for compatibility with SQL.
#3804
Added the ability to
mlock
memory pages corresponding to
clickhouse-server
executable code to prevent it from being forced out of memory. This feature is disabled by default.
#3553
Improved performance when reading from
O_DIRECT
(with the
min_bytes_to_use_direct_io
option enabled).
#3405
Improved performance of the
dictGet...OrDefault
function for a constant key argument and a non-constant default argument.
Amos Bird
The
firstSignificantSubdomain
function now processes the domains
gov
,
mil
, and
edu
.
Igor Hatarist
Improved performance.
#3628
Ability to specify custom environment variables for starting
clickhouse-server
using the
SYS-V init.d
script by defining
CLICKHOUSE_PROGRAM_ENV
in
/etc/default/clickhouse
.
Pavlo Bashynskyi
Correct return code for the clickhouse-server init script.
#3516
The
system.metrics
table now has the
VersionInteger
metric, and
system.build_options
has the added line
VERSION_INTEGER
, which contains the numeric form of the ClickHouse version, such as
18016000
.
#3644
Removed the ability to compare the
Date
type with a number to avoid potential errors like
date = 2018-12-17
, where quotes around the date are omitted by mistake.
#3687 | {"source_file": "2018.md"} | [
0.021555518731474876,
-0.015577101148664951,
-0.11033564060926437,
-0.055128373205661774,
-0.10296560078859329,
-0.03600778430700302,
-0.04879987612366676,
-0.03617170453071594,
-0.03612319380044937,
0.055174846202135086,
-0.10085435211658478,
-0.0350661464035511,
-0.04948066547513008,
-0.... |
fc3efd9f-8ca7-4750-9a83-c1888262b051 | Removed the ability to compare the
Date
type with a number to avoid potential errors like
date = 2018-12-17
, where quotes around the date are omitted by mistake.
#3687
Fixed the behavior of stateful functions like
rowNumberInAllBlocks
. They previously output a result that was one number larger due to starting during query analysis.
Amos Bird
If the
force_restore_data
file can't be deleted, an error message is displayed.
Amos Bird
Build Improvements: {#build-improvements-1}
Updated the
jemalloc
library, which fixes a potential memory leak.
Amos Bird
Profiling with
jemalloc
is enabled by default in order to debug builds.
2cc82f5c
Added the ability to run integration tests when only
Docker
is installed on the system.
#3650
Added the fuzz expression test in SELECT queries.
#3442
Added a stress test for commits, which performs functional tests in parallel and in random order to detect more race conditions.
#3438
Improved the method for starting clickhouse-server in a Docker image.
Elghazal Ahmed
For a Docker image, added support for initializing databases using files in the
/docker-entrypoint-initdb.d
directory.
Konstantin Lebedev
Fixes for builds on ARM.
#3709
Backward Incompatible Changes: {#backward-incompatible-changes}
Removed the ability to compare the
Date
type with a number. Instead of
toDate('2018-12-18') = 17883
, you must use explicit type conversion
= toDate(17883)
#3687
ClickHouse Release 18.14 {#clickhouse-release-18-14}
ClickHouse Release 18.14.19, 2018-12-19 {#clickhouse-release-18-14-19-2018-12-19}
Bug Fixes: {#bug-fixes-2}
Fixed an error that led to problems with updating dictionaries with the ODBC source.
#3825
,
#3829
Databases are correctly specified when executing DDL
ON CLUSTER
queries.
#3460
Fixed a segfault if the
max_temporary_non_const_columns
limit was exceeded.
#3788
Build Improvements: {#build-improvements-2}
Fixes for builds on ARM.
ClickHouse Release 18.14.18, 2018-12-04 {#clickhouse-release-18-14-18-2018-12-04}
Bug Fixes: {#bug-fixes-3}
Fixed error in
dictGet...
function for dictionaries of type
range
, if one of the arguments is constant and other is not.
#3751
Fixed error that caused messages
netlink: '...': attribute type 1 has an invalid length
to be printed in Linux kernel log, that was happening only on fresh enough versions of Linux kernel.
#3749
Fixed segfault in function
empty
for argument of
FixedString
type.
Daniel, Dao Quang Minh
Fixed excessive memory allocation when using large value of
max_query_size
setting (a memory chunk of
max_query_size
bytes was preallocated at once).
#3720
Build Changes: {#build-changes}
Fixed build with LLVM/Clang libraries of version 7 from the OS packages (these libraries are used for runtime query compilation).
#3582
ClickHouse Release 18.14.17, 2018-11-30 {#clickhouse-release-18-14-17-2018-11-30}
Bug Fixes: {#bug-fixes-4} | {"source_file": "2018.md"} | [
-0.01560235396027565,
0.05847299098968506,
0.0067487601190805435,
0.06526058912277222,
0.04014981910586357,
-0.05349130555987358,
-0.07401804625988007,
-0.06582780927419662,
-0.07308446615934372,
0.07299584895372391,
-0.06729928404092789,
-0.04964827746152878,
-0.04581522196531296,
-0.0531... |
40a02923-dd97-4875-9903-ead8f2f9f5df | ClickHouse Release 18.14.17, 2018-11-30 {#clickhouse-release-18-14-17-2018-11-30}
Bug Fixes: {#bug-fixes-4}
Fixed cases when the ODBC bridge process did not terminate with the main server process.
#3642
Fixed synchronous insertion into the
Distributed
table with a columns list that differs from the column list of the remote table.
#3673
Fixed a rare race condition that can lead to a crash when dropping a MergeTree table.
#3643
Fixed a query deadlock in case when query thread creation fails with the
Resource temporarily unavailable
error.
#3643
Fixed parsing of the
ENGINE
clause when the
CREATE AS table
syntax was used and the
ENGINE
clause was specified before the
AS table
(the error resulted in ignoring the specified engine).
#3692
ClickHouse Release 18.14.15, 2018-11-21 {#clickhouse-release-18-14-15-2018-11-21}
Bug Fixes: {#bug-fixes-5}
The size of memory chunk was overestimated while deserializing the column of type
Array(String)
that leads to "Memory limit exceeded" errors. The issue appeared in version 18.12.13.
#3589
ClickHouse Release 18.14.14, 2018-11-20 {#clickhouse-release-18-14-14-2018-11-20}
Bug Fixes: {#bug-fixes-6}
Fixed
ON CLUSTER
queries when cluster configured as secure (flag
<secure>
).
#3599
Build Changes: {#build-changes-1}
Fixed problems (llvm-7 from system, macos)
#3582
ClickHouse Release 18.14.13, 2018-11-08 {#clickhouse-release-18-14-13-2018-11-08}
Bug Fixes: {#bug-fixes-7}
Fixed the
Block structure mismatch in MergingSorted stream
error.
#3162
Fixed
ON CLUSTER
queries in case when secure connections were turned on in the cluster config (the
<secure>
flag).
#3465
Fixed an error in queries that used
SAMPLE
,
PREWHERE
and alias columns.
#3543
Fixed a rare
unknown compression method
error when the
min_bytes_to_use_direct_io
setting was enabled.
3544
Performance Improvements: {#performance-improvements}
Fixed performance regression of queries with
GROUP BY
of columns of UInt16 or Date type when executing on AMD EPYC processors.
Igor Lapko
Fixed performance regression of queries that process long strings.
#3530
Build Improvements: {#build-improvements-3}
Improvements for simplifying the Arcadia build.
#3475
,
#3535
ClickHouse Release 18.14.12, 2018-11-02 {#clickhouse-release-18-14-12-2018-11-02}
Bug Fixes: {#bug-fixes-8}
Fixed a crash on joining two unnamed subqueries.
#3505
Fixed generating incorrect queries (with an empty
WHERE
clause) when querying external databases.
hotid
Fixed using an incorrect timeout value in ODBC dictionaries.
Marek Vavruša
ClickHouse Release 18.14.11, 2018-10-29 {#clickhouse-release-18-14-11-2018-10-29}
Bug Fixes: {#bug-fixes-9}
Fixed the error
Block structure mismatch in UNION stream: different number of columns
in LIMIT queries.
#2156
Fixed errors when merging data in tables containing arrays inside Nested structures.
#3397 | {"source_file": "2018.md"} | [
-0.03835051506757736,
-0.06835511326789856,
-0.007960484363138676,
0.057472992688417435,
-0.025186043232679367,
-0.056673720479011536,
-0.04461977258324623,
-0.02278200164437294,
-0.036276817321777344,
0.03201134502887726,
0.02987746335566044,
0.028584925457835197,
0.005516439210623503,
-0... |
564bc3f6-6368-41f3-a11c-9e7f4fd1ec63 | Fixed errors when merging data in tables containing arrays inside Nested structures.
#3397
Fixed incorrect query results if the
merge_tree_uniform_read_distribution
setting is disabled (it is enabled by default).
#3429
Fixed an error on inserts to a Distributed table in Native format.
#3411
ClickHouse Release 18.14.10, 2018-10-23 {#clickhouse-release-18-14-10-2018-10-23}
The
compile_expressions
setting (JIT compilation of expressions) is disabled by default.
#3410
The
enable_optimize_predicate_expression
setting is disabled by default.
ClickHouse Release 18.14.9, 2018-10-16 {#clickhouse-release-18-14-9-2018-10-16}
New Features: {#new-features-1}
The
WITH CUBE
modifier for
GROUP BY
(the alternative syntax
GROUP BY CUBE(...)
is also available).
#3172
Added the
formatDateTime
function.
Alexandr Krasheninnikov
Added the
JDBC
table engine and
jdbc
table function (requires installing clickhouse-jdbc-bridge).
Alexandr Krasheninnikov
Added functions for working with the ISO week number:
toISOWeek
,
toISOYear
,
toStartOfISOYear
, and
toDayOfYear
.
#3146
Now you can use
Nullable
columns for
MySQL
and
ODBC
tables.
#3362
Nested data structures can be read as nested objects in
JSONEachRow
format. Added the
input_format_import_nested_json
setting.
Veloman Yunkan
Parallel processing is available for many
MATERIALIZED VIEW
s when inserting data. See the
parallel_view_processing
setting.
Marek Vavruša
Added the
SYSTEM FLUSH LOGS
query (forced log flushes to system tables such as
query_log
)
#3321
Now you can use pre-defined
database
and
table
macros when declaring
Replicated
tables.
#3251
Added the ability to read
Decimal
type values in engineering notation (indicating powers of ten).
#3153
Experimental Features: {#experimental-features}
Optimization of the GROUP BY clause for
LowCardinality data types.
#3138
Optimized calculation of expressions for
LowCardinality data types.
#3200
Improvements: {#improvements-2}
Significantly reduced memory consumption for queries with
ORDER BY
and
LIMIT
. See the
max_bytes_before_remerge_sort
setting.
#3205
In the absence of
JOIN
(
LEFT
,
INNER
, ...),
INNER JOIN
is assumed.
#3147
Qualified asterisks work correctly in queries with
JOIN
.
Winter Zhang
The
ODBC
table engine correctly chooses the method for quoting identifiers in the SQL dialect of a remote database.
Alexandr Krasheninnikov
The
compile_expressions
setting (JIT compilation of expressions) is enabled by default.
Fixed behavior for simultaneous DROP DATABASE/TABLE IF EXISTS and CREATE DATABASE/TABLE IF NOT EXISTS. Previously, a
CREATE DATABASE ... IF NOT EXISTS
query could return the error message "File ... already exists", and the
CREATE TABLE ... IF NOT EXISTS
and
DROP TABLE IF EXISTS
queries could return
Table ... is creating or attaching right now
.
#3101 | {"source_file": "2018.md"} | [
0.022227518260478973,
-0.001530774519778788,
-0.006406029686331749,
0.03357264772057533,
-0.05837558954954147,
-0.047421615570783615,
-0.03137621283531189,
0.013711663894355297,
-0.0941845029592514,
0.04369916766881943,
0.06184573099017143,
-0.03466863930225372,
0.028811655938625336,
-0.01... |
5097eddb-6026-44f8-8f79-3ef7478eb5d9 | LIKE and IN expressions with a constant right half are passed to the remote server when querying from MySQL or ODBC tables.
#3182
Comparisons with constant expressions in a WHERE clause are passed to the remote server when querying from MySQL and ODBC tables. Previously, only comparisons with constants were passed.
#3182
Correct calculation of row width in the terminal for
Pretty
formats, including strings with hieroglyphs.
Amos Bird
.
ON CLUSTER
can be specified for
ALTER UPDATE
queries.
Improved performance for reading data in
JSONEachRow
format.
#3332
Added synonyms for the
LENGTH
and
CHARACTER_LENGTH
functions for compatibility. The
CONCAT
function is no longer case-sensitive.
#3306
Added the
TIMESTAMP
synonym for the
DateTime
type.
#3390
There is always space reserved for query_id in the server logs, even if the log line is not related to a query. This makes it easier to parse server text logs with third-party tools.
Memory consumption by a query is logged when it exceeds the next level of an integer number of gigabytes.
#3205
Added compatibility mode for the case when the client library that uses the Native protocol sends fewer columns by mistake than the server expects for the INSERT query. This scenario was possible when using the clickhouse-cpp library. Previously, this scenario caused the server to crash.
#3171
In a user-defined WHERE expression in
clickhouse-copier
, you can now use a
partition_key
alias (for additional filtering by source table partition). This is useful if the partitioning scheme changes during copying, but only changes slightly.
#3166
The workflow of the
Kafka
engine has been moved to a background thread pool in order to automatically reduce the speed of data reading at high loads.
Marek Vavruša
.
Support for reading
Tuple
and
Nested
values of structures like
struct
in the
Cap'n'Proto format
.
Marek Vavruša
The list of top-level domains for the
firstSignificantSubdomain
function now includes the domain
biz
.
decaseal
In the configuration of external dictionaries,
null_value
is interpreted as the value of the default data type.
#3330
Support for the
intDiv
and
intDivOrZero
functions for
Decimal
.
b48402e8
Support for the
Date
,
DateTime
,
UUID
, and
Decimal
types as a key for the
sumMap
aggregate function.
#3281
Support for the
Decimal
data type in external dictionaries.
#3324
Support for the
Decimal
data type in
SummingMergeTree
tables.
#3348
Added specializations for
UUID
in
if
.
#3366
Reduced the number of
open
and
close
system calls when reading from a
MergeTree table
.
#3283
A
TRUNCATE TABLE
query can be executed on any replica (the query is passed to the leader replica).
Kirill Shvakov
Bug Fixes: {#bug-fixes-10}
Fixed an issue with
Dictionary
tables for
range_hashed
dictionaries. This error occurred in version 18.12.17.
#1702 | {"source_file": "2018.md"} | [
0.011390988714993,
0.040519680827856064,
0.0011907221050933003,
0.09558471292257309,
-0.025942586362361908,
-0.07071001827716827,
0.006017733830958605,
0.0026127230376005173,
0.016569966450333595,
0.018887605518102646,
-0.01043725199997425,
-0.004418005235493183,
0.04411153867840767,
-0.01... |
c4d85769-8ef9-4b42-8f6d-7c20dc92dc82 | Bug Fixes: {#bug-fixes-10}
Fixed an issue with
Dictionary
tables for
range_hashed
dictionaries. This error occurred in version 18.12.17.
#1702
Fixed an error when loading
range_hashed
dictionaries (the message
Unsupported type Nullable (...)
). This error occurred in version 18.12.17.
#3362
Fixed errors in the
pointInPolygon
function due to the accumulation of inaccurate calculations for polygons with a large number of vertices located close to each other.
#3331
#3341
If after merging data parts, the checksum for the resulting part differs from the result of the same merge in another replica, the result of the merge is deleted and the data part is downloaded from the other replica (this is the correct behavior). But after downloading the data part, it couldn't be added to the working set because of an error that the part already exists (because the data part was deleted with some delay after the merge). This led to cyclical attempts to download the same data.
#3194
Fixed incorrect calculation of total memory consumption by queries (because of incorrect calculation, the
max_memory_usage_for_all_queries
setting worked incorrectly and the
MemoryTracking
metric had an incorrect value). This error occurred in version 18.12.13.
Marek Vavruša
Fixed the functionality of
CREATE TABLE ... ON CLUSTER ... AS SELECT ...
This error occurred in version 18.12.13.
#3247
Fixed unnecessary preparation of data structures for
JOIN
s on the server that initiates the query if the
JOIN
is only performed on remote servers.
#3340
Fixed bugs in the
Kafka
engine: deadlocks after exceptions when starting to read data, and locks upon completion
Marek Vavruša
.
For
Kafka
tables, the optional
schema
parameter was not passed (the schema of the
Cap'n'Proto
format).
Vojtech Splichal
If the ensemble of ZooKeeper servers has servers that accept the connection but then immediately close it instead of responding to the handshake, ClickHouse chooses to connect another server. Previously, this produced the error
Cannot read all data. Bytes read: 0. Bytes expected: 4.
and the server couldn't start.
8218cf3a
If the ensemble of ZooKeeper servers contains servers for which the DNS query returns an error, these servers are ignored.
17b8e209
Fixed type conversion between
Date
and
DateTime
when inserting data in the
VALUES
format (if
input_format_values_interpret_expressions = 1
). Previously, the conversion was performed between the numerical value of the number of days in Unix Epoch time and the Unix timestamp, which led to unexpected results.
#3229
Corrected type conversion between
Decimal
and integer numbers.
#3211
Fixed errors in the
enable_optimize_predicate_expression
setting.
Winter Zhang
Fixed a parsing error in CSV format with floating-point numbers if a non-default CSV separator is used, such as
;
#3155 | {"source_file": "2018.md"} | [
-0.027107028290629387,
0.018082838505506516,
-0.030833417549729347,
-0.043600164353847504,
0.028435036540031433,
-0.12274067848920822,
-0.017220020294189453,
-0.00017125473823398352,
0.005786853842437267,
0.02619645744562149,
0.07294541597366333,
0.04798378050327301,
0.05734989047050476,
-... |
e5f70789-8e46-43af-9121-168fd5ca7a3c | Fixed a parsing error in CSV format with floating-point numbers if a non-default CSV separator is used, such as
;
#3155
Fixed the
arrayCumSumNonNegative
function (it does not accumulate negative values if the accumulator is less than zero).
Aleksey Studnev
Fixed how
Merge
tables work on top of
Distributed
tables when using
PREWHERE
.
#3165
Bug fixes in the
ALTER UPDATE
query.
Fixed bugs in the
odbc
table function that appeared in version 18.12.
#3197
Fixed the operation of aggregate functions with
StateArray
combinators.
#3188
Fixed a crash when dividing a
Decimal
value by zero.
69dd6609
Fixed output of types for operations using
Decimal
and integer arguments.
#3224
Fixed the segfault during
GROUP BY
on
Decimal128
.
3359ba06
The
log_query_threads
setting (logging information about each thread of query execution) now takes effect only if the
log_queries
option (logging information about queries) is set to 1. Since the
log_query_threads
option is enabled by default, information about threads was previously logged even if query logging was disabled.
#3241
Fixed an error in the distributed operation of the quantiles aggregate function (the error message
Not found column quantile...
).
292a8855
Fixed the compatibility problem when working on a cluster of version 18.12.17 servers and older servers at the same time. For distributed queries with GROUP BY keys of both fixed and non-fixed length, if there was a large amount of data to aggregate, the returned data was not always fully aggregated (two different rows contained the same aggregation keys).
#3254
Fixed handling of substitutions in
clickhouse-performance-test
, if the query contains only part of the substitutions declared in the test.
#3263
Fixed an error when using
FINAL
with
PREWHERE
.
#3298
Fixed an error when using
PREWHERE
over columns that were added during
ALTER
.
#3298
Added a check for the absence of
arrayJoin
for
DEFAULT
and
MATERIALIZED
expressions. Previously,
arrayJoin
led to an error when inserting data.
#3337
Added a check for the absence of
arrayJoin
in a
PREWHERE
clause. Previously, this led to messages like
Size ... does not match
or
Unknown compression method
when executing queries.
#3357
Fixed segfault that could occur in rare cases after optimization that replaced AND chains from equality evaluations with the corresponding IN expression.
liuyimin-bytedance
Minor corrections to
clickhouse-benchmark
: previously, client information was not sent to the server; now the number of queries executed is calculated more accurately when shutting down and for limiting the number of iterations.
#3351
#3352
Backward Incompatible Changes: {#backward-incompatible-changes-1}
Removed the
allow_experimental_decimal_type
option. The
Decimal
data type is available for default use.
#3329
ClickHouse Release 18.12 {#clickhouse-release-18-12} | {"source_file": "2018.md"} | [
-0.036482635885477066,
-0.04264479875564575,
0.006762364879250526,
0.0630948394536972,
-0.030934849753975868,
-0.07033316045999527,
0.005503656808286905,
0.025771183893084526,
0.0312996581196785,
0.05834338814020157,
0.004345199558883905,
-0.013609700836241245,
-0.0028450246900320053,
-0.0... |
fc7e78d9-5079-4574-a17a-8eee9124577c | Removed the
allow_experimental_decimal_type
option. The
Decimal
data type is available for default use.
#3329
ClickHouse Release 18.12 {#clickhouse-release-18-12}
ClickHouse Release 18.12.17, 2018-09-16 {#clickhouse-release-18-12-17-2018-09-16}
New Features: {#new-features-2}
invalidate_query
(the ability to specify a query to check whether an external dictionary needs to be updated) is implemented for the
clickhouse
source.
#3126
Added the ability to use
UInt*
,
Int*
, and
DateTime
data types (along with the
Date
type) as a
range_hashed
external dictionary key that defines the boundaries of ranges. Now
NULL
can be used to designate an open range.
Vasily Nemkov
The
Decimal
type now supports
var*
and
stddev*
aggregate functions.
#3129
The
Decimal
type now supports mathematical functions (
exp
,
sin
and so on.)
#3129
The
system.part_log
table now has the
partition_id
column.
#3089
Bug Fixes: {#bug-fixes-11}
Merge
now works correctly on
Distributed
tables.
Winter Zhang
Fixed incompatibility (unnecessary dependency on the
glibc
version) that made it impossible to run ClickHouse on
Ubuntu Precise
and older versions. The incompatibility arose in version 18.12.13.
#3130
Fixed errors in the
enable_optimize_predicate_expression
setting.
Winter Zhang
Fixed a minor issue with backwards compatibility that appeared when working with a cluster of replicas on versions earlier than 18.12.13 and simultaneously creating a new replica of a table on a server with a newer version (shown in the message
Can not clone replica, because the ... updated to new ClickHouse version
, which is logical, but shouldn't happen).
#3122
Backward Incompatible Changes: {#backward-incompatible-changes-2}
The
enable_optimize_predicate_expression
option is enabled by default (which is rather optimistic). If query analysis errors occur that are related to searching for the column names, set
enable_optimize_predicate_expression
to 0.
Winter Zhang
ClickHouse Release 18.12.14, 2018-09-13 {#clickhouse-release-18-12-14-2018-09-13}
New Features: {#new-features-3}
Added support for
ALTER UPDATE
queries.
#3035
Added the
allow_ddl
option, which restricts the user's access to DDL queries.
#3104
Added the
min_merge_bytes_to_use_direct_io
option for
MergeTree
engines, which allows you to set a threshold for the total size of the merge (when above the threshold, data part files will be handled using O_DIRECT).
#3117
The
system.merges
system table now contains the
partition_id
column.
#3099
Improvements {#improvements-3}
If a data part remains unchanged during mutation, it isn't downloaded by replicas.
#3103
Autocomplete is available for names of settings when working with
clickhouse-client
.
#3106
Bug Fixes: {#bug-fixes-12}
Added a check for the sizes of arrays that are elements of
Nested
type fields when inserting.
#3118 | {"source_file": "2018.md"} | [
-0.05221058055758476,
-0.018907073885202408,
-0.03907302767038345,
0.017908411100506783,
-0.012713400647044182,
-0.03631602227687836,
-0.015561501495540142,
0.06256408244371414,
-0.04276515543460846,
-0.010413305833935738,
0.04549838975071907,
-0.002505123382434249,
-0.026366468518972397,
... |
a1925cfd-2a08-4b2e-8d72-94827fc5f75b | Bug Fixes: {#bug-fixes-12}
Added a check for the sizes of arrays that are elements of
Nested
type fields when inserting.
#3118
Fixed an error updating external dictionaries with the
ODBC
source and
hashed
storage. This error occurred in version 18.12.13.
Fixed a crash when creating a temporary table from a query with an
IN
condition.
Winter Zhang
Fixed an error in aggregate functions for arrays that can have
NULL
elements.
Winter Zhang
ClickHouse Release 18.12.13, 2018-09-10 {#clickhouse-release-18-12-13-2018-09-10}
New Features: {#new-features-4}
Added the
DECIMAL(digits, scale)
data type (
Decimal32(scale)
,
Decimal64(scale)
,
Decimal128(scale)
). To enable it, use the setting
allow_experimental_decimal_type
.
#2846
#2970
#3008
#3047
New
WITH ROLLUP
modifier for
GROUP BY
(alternative syntax:
GROUP BY ROLLUP(...)
).
#2948
In queries with JOIN, the star character expands to a list of columns in all tables, in compliance with the SQL standard. You can restore the old behavior by setting
asterisk_left_columns_only
to 1 on the user configuration level.
Winter Zhang
Added support for JOIN with table functions.
Winter Zhang
Autocomplete by pressing Tab in clickhouse-client.
Sergey Shcherbin
Ctrl+C in clickhouse-client clears a query that was entered.
#2877
Added the
join_default_strictness
setting (values:
"
,
'any'
,
'all'
). This allows you to not specify
ANY
or
ALL
for
JOIN
.
#2982
Each line of the server log related to query processing shows the query ID.
#2482
Now you can get query execution logs in clickhouse-client (use the
send_logs_level
setting). With distributed query processing, logs are cascaded from all the servers.
#2482
The
system.query_log
and
system.processes
(
SHOW PROCESSLIST
) tables now have information about all changed settings when you run a query (the nested structure of the
Settings
data). Added the
log_query_settings
setting.
#2482
The
system.query_log
and
system.processes
tables now show information about the number of threads that are participating in query execution (see the
thread_numbers
column).
#2482
Added
ProfileEvents
counters that measure the time spent on reading and writing over the network and reading and writing to disk, the number of network errors, and the time spent waiting when network bandwidth is limited.
#2482
Added
ProfileEvents
counters that contain the system metrics from rusage (you can use them to get information about CPU usage in userspace and the kernel, page faults, and context switches), as well as taskstats metrics (use these to obtain information about I/O wait time, CPU wait time, and the amount of data read and recorded, both with and without page cache).
#2482
The
ProfileEvents
counters are applied globally and for each query, as well as for each query execution thread, which allows you to profile resource consumption by query in detail.
#2482 | {"source_file": "2018.md"} | [
0.005489560775458813,
-0.011227955110371113,
-0.0160075593739748,
0.06428444385528564,
-0.0016889902763068676,
-0.052051883190870285,
-0.018634961917996407,
0.012528890743851662,
-0.045119766145944595,
0.0008909248281270266,
0.03896915540099144,
-0.011554398573935032,
0.009811517782509327,
... |
e71752ec-c9d4-4205-be37-f105bde54a11 | The
ProfileEvents
counters are applied globally and for each query, as well as for each query execution thread, which allows you to profile resource consumption by query in detail.
#2482
Added the
system.query_thread_log
table, which contains information about each query execution thread. Added the
log_query_threads
setting.
#2482
The
system.metrics
and
system.events
tables now have built-in documentation.
#3016
Added the
arrayEnumerateDense
function.
Amos Bird
Added the
arrayCumSumNonNegative
and
arrayDifference
functions.
Aleksey Studnev
Added the
retention
aggregate function.
Sundy Li
Now you can add (merge) states of aggregate functions by using the plus operator, and multiply the states of aggregate functions by a nonnegative constant.
#3062
#3034
Tables in the MergeTree family now have the virtual column
_partition_id
.
#3089
Experimental Features: {#experimental-features-1}
Added the
LowCardinality(T)
data type. This data type automatically creates a local dictionary of values and allows data processing without unpacking the dictionary.
#2830
Added a cache of JIT-compiled functions and a counter for the number of uses before compiling. To JIT compile expressions, enable the
compile_expressions
setting.
#2990
#3077
Improvements: {#improvements-4}
Fixed the problem with unlimited accumulation of the replication log when there are abandoned replicas. Added an effective recovery mode for replicas with a long lag.
Improved performance of
GROUP BY
with multiple aggregation fields when one of them is string and the others are fixed length.
Improved performance when using
PREWHERE
and with implicit transfer of expressions in
PREWHERE
.
Improved parsing performance for text formats (
CSV
,
TSV
).
Amos Bird
#2980
Improved performance of reading strings and arrays in binary formats.
Amos Bird
Increased performance and reduced memory consumption for queries to
system.tables
and
system.columns
when there is a very large number of tables on a single server.
#2953
Fixed a performance problem in the case of a large stream of queries that result in an error (the
_dl_addr
function is visible in
perf top
, but the server isn't using much CPU).
#2938
Conditions are cast into the View (when
enable_optimize_predicate_expression
is enabled).
Winter Zhang
Improvements to the functionality for the
UUID
data type.
#3074
#2985
The
UUID
data type is supported in The-Alchemist dictionaries.
#2822
The
visitParamExtractRaw
function works correctly with nested structures.
Winter Zhang
When the
input_format_skip_unknown_fields
setting is enabled, object fields in
JSONEachRow
format are skipped correctly.
BlahGeek
For a
CASE
expression with conditions, you can now omit
ELSE
, which is equivalent to
ELSE NULL
.
#2920
The operation timeout can now be configured when working with ZooKeeper.
urykhy | {"source_file": "2018.md"} | [
0.049315303564071655,
-0.029608502984046936,
-0.05825133994221687,
0.05386798083782196,
-0.02791270986199379,
-0.03681880980730057,
0.08561250567436218,
0.06909514963626862,
0.012201850302517414,
0.013474233448505402,
-0.03322146460413933,
-0.05644948035478592,
0.024469943717122078,
-0.018... |
bb16376e-2560-40c6-9966-2185f96a7df0 | For a
CASE
expression with conditions, you can now omit
ELSE
, which is equivalent to
ELSE NULL
.
#2920
The operation timeout can now be configured when working with ZooKeeper.
urykhy
You can specify an offset for
LIMIT n, m
as
LIMIT n OFFSET m
.
#2840
You can use the
SELECT TOP n
syntax as an alternative for
LIMIT
.
#2840
Increased the size of the queue to write to system tables, so the
SystemLog parameter queue is full
error does not happen as often.
The
windowFunnel
aggregate function now supports events that meet multiple conditions.
Amos Bird
Duplicate columns can be used in a
USING
clause for
JOIN
.
#3006
Pretty
formats now have a limit on column alignment by width. Use the
output_format_pretty_max_column_pad_width
setting. If a value is wider, it will still be displayed in its entirety, but the other cells in the table will not be too wide.
#3003
The
odbc
table function now allows you to specify the database/schema name.
Amos Bird
Added the ability to use a username specified in the
clickhouse-client
config file.
Vladimir Kozbin
The
ZooKeeperExceptions
counter has been split into three counters:
ZooKeeperUserExceptions
,
ZooKeeperHardwareExceptions
, and
ZooKeeperOtherExceptions
.
ALTER DELETE
queries work for materialized views.
Added randomization when running the cleanup thread periodically for
ReplicatedMergeTree
tables in order to avoid periodic load spikes when there are a very large number of
ReplicatedMergeTree
tables.
Support for
ATTACH TABLE ... ON CLUSTER
queries.
#3025
Bug Fixes: {#bug-fixes-13}
Fixed an issue with
Dictionary
tables (throws the
Size of offsets does not match size of column
or
Unknown compression method
exception). This bug appeared in version 18.10.3.
#2913
Fixed a bug when merging
CollapsingMergeTree
tables if one of the data parts is empty (these parts are formed during merge or
ALTER DELETE
if all data was deleted), and the
vertical
algorithm was used for the merge.
#3049
Fixed a race condition during
DROP
or
TRUNCATE
for
Memory
tables with a simultaneous
SELECT
, which could lead to server crashes. This bug appeared in version 1.1.54388.
#3038
Fixed the possibility of data loss when inserting in
Replicated
tables if the
Session is expired
error is returned (data loss can be detected by the
ReplicatedDataLoss
metric). This error occurred in version 1.1.54378.
#2939
#2949
#2964
Fixed a segfault during
JOIN ... ON
.
#3000
Fixed the error searching column names when the
WHERE
expression consists entirely of a qualified column name, such as
WHERE table.column
.
#2994
Fixed the "Not found column" error that occurred when executing distributed queries if a single column consisting of an IN expression with a subquery is requested from a remote server.
#3087 | {"source_file": "2018.md"} | [
0.04188676178455353,
0.06549254059791565,
-0.050901565700769424,
0.03651796653866768,
-0.0033082133159041405,
-0.037460144609212875,
0.027601540088653564,
0.01802626997232437,
-0.009314917027950287,
0.041420456022024155,
-0.06436172872781754,
-0.06705036759376526,
0.019735878333449364,
0.0... |
a3dc1f5a-e35d-49dc-bb34-a97c879cab09 | Fixed the "Not found column" error that occurred when executing distributed queries if a single column consisting of an IN expression with a subquery is requested from a remote server.
#3087
Fixed the
Block structure mismatch in UNION stream: different number of columns
error that occurred for distributed queries if one of the shards is local and the other is not, and optimization of the move to
PREWHERE
is triggered.
#2226
#3037
#3055
#3065
#3073
#3090
#3093
Fixed the
pointInPolygon
function for certain cases of non-convex polygons.
#2910
Fixed the incorrect result when comparing
nan
with integers.
#3024
Fixed an error in the
zlib-ng
library that could lead to segfault in rare cases.
#2854
Fixed a memory leak when inserting into a table with
AggregateFunction
columns, if the state of the aggregate function is not simple (allocates memory separately), and if a single insertion request results in multiple small blocks.
#3084
Fixed a race condition when creating and deleting the same
Buffer
or
MergeTree
table simultaneously.
Fixed the possibility of a segfault when comparing tuples made up of certain non-trivial types, such as tuples.
#2989
Fixed the possibility of a segfault when running certain
ON CLUSTER
queries.
Winter Zhang
Fixed an error in the
arrayDistinct
function for
Nullable
array elements.
#2845
#2937
The
enable_optimize_predicate_expression
option now correctly supports cases with
SELECT *
.
Winter Zhang
Fixed the segfault when re-initializing the ZooKeeper session.
#2917
Fixed potential blocking when working with ZooKeeper.
Fixed incorrect code for adding nested data structures in a
SummingMergeTree
.
When allocating memory for states of aggregate functions, alignment is correctly taken into account, which makes it possible to use operations that require alignment when implementing states of aggregate functions.
chenxing-xc
Security Fix: {#security-fix}
Safe use of ODBC data sources. Interaction with ODBC drivers uses a separate
clickhouse-odbc-bridge
process. Errors in third-party ODBC drivers no longer cause problems with server stability or vulnerabilities.
#2828
#2879
#2886
#2893
#2921
Fixed incorrect validation of the file path in the
catBoostPool
table function.
#2894
The contents of system tables (
tables
,
databases
,
parts
,
columns
,
parts_columns
,
merges
,
mutations
,
replicas
, and
replication_queue
) are filtered according to the user's configured access to databases (
allow_databases
).
Winter Zhang
Backward Incompatible Changes: {#backward-incompatible-changes-3}
In queries with JOIN, the star character expands to a list of columns in all tables, in compliance with the SQL standard. You can restore the old behavior by setting
asterisk_left_columns_only
to 1 on the user configuration level.
Build Changes: {#build-changes-2}
Most integration tests can now be run by commit. | {"source_file": "2018.md"} | [
-0.044419191777706146,
-0.011559981852769852,
-0.0038500535301864147,
0.038423098623752594,
0.027413904666900635,
-0.12565843760967255,
-0.04340964928269386,
0.02895556017756462,
0.011765978299081326,
0.0430455356836319,
-0.008703130297362804,
-0.02916392683982849,
0.038334060460329056,
-0... |
0b059257-878f-4de9-8afe-41e5bfccffd7 | Build Changes: {#build-changes-2}
Most integration tests can now be run by commit.
Code style checks can also be run by commit.
The
memcpy
implementation is chosen correctly when building on CentOS7/Fedora.
Etienne Champetier
When using clang to build, some warnings from
-Weverything
have been added, in addition to the regular
-Wall-Wextra -Werror
.
#2957
Debugging the build uses the
jemalloc
debug option.
The interface of the library for interacting with ZooKeeper is declared abstract.
#2950
ClickHouse Release 18.10 {#clickhouse-release-18-10}
ClickHouse Release 18.10.3, 2018-08-13 {#clickhouse-release-18-10-3-2018-08-13}
New Features: {#new-features-5}
HTTPS can be used for replication.
#2760
Added the functions
murmurHash2_64
,
murmurHash3_32
,
murmurHash3_64
, and
murmurHash3_128
in addition to the existing
murmurHash2_32
.
#2791
Support for Nullable types in the ClickHouse ODBC driver (
ODBCDriver2
output format).
#2834
Support for
UUID
in the key columns.
Improvements: {#improvements-5}
Clusters can be removed without restarting the server when they are deleted from the config files.
#2777
External dictionaries can be removed without restarting the server when they are removed from config files.
#2779
Added
SETTINGS
support for the
Kafka
table engine.
Alexander Marshalov
Improvements for the
UUID
data type (not yet complete).
#2618
Support for empty parts after merges in the
SummingMergeTree
,
CollapsingMergeTree
and
VersionedCollapsingMergeTree
engines.
#2815
Old records of completed mutations are deleted (
ALTER DELETE
).
#2784
Added the
system.merge_tree_settings
table.
Kirill Shvakov
The
system.tables
table now has dependency columns:
dependencies_database
and
dependencies_table
.
Winter Zhang
Added the
max_partition_size_to_drop
config option.
#2782
Added the
output_format_json_escape_forward_slashes
option.
Alexander Bocharov
Added the
max_fetch_partition_retries_count
setting.
#2831
Added the
prefer_localhost_replica
setting for disabling the preference for a local replica and going to a local replica without inter-process interaction.
#2832
The
quantileExact
aggregate function returns
nan
in the case of aggregation on an empty
Float32
or
Float64
set.
Sundy Li
Bug Fixes: {#bug-fixes-14}
Removed unnecessary escaping of the connection string parameters for ODBC, which made it impossible to establish a connection. This error occurred in version 18.6.0.
Fixed the logic for processing
REPLACE PARTITION
commands in the replication queue. If there are two
REPLACE
commands for the same partition, the incorrect logic could cause one of them to remain in the replication queue and not be executed.
#2814
Fixed a merge bug when all data parts were empty (parts that were formed from a merge or from
ALTER DELETE
if all data was deleted). This bug appeared in version 18.1.0.
#2930 | {"source_file": "2018.md"} | [
-0.06210809201002121,
-0.023230984807014465,
0.005562697071582079,
-0.03957759961485863,
0.018851863220334053,
-0.12162264436483383,
-0.04107176512479782,
0.014098308980464935,
-0.04816523566842079,
0.05475924164056778,
0.005423251073807478,
-0.08223509788513184,
0.015795797109603882,
-0.0... |
40c0ae6c-090b-4da9-b406-d0f4f27d6c79 | Fixed a merge bug when all data parts were empty (parts that were formed from a merge or from
ALTER DELETE
if all data was deleted). This bug appeared in version 18.1.0.
#2930
Fixed an error for concurrent
Set
or
Join
.
Amos Bird
Fixed the
Block structure mismatch in UNION stream: different number of columns
error that occurred for
UNION ALL
queries inside a sub-query if one of the
SELECT
queries contains duplicate column names.
Winter Zhang
Fixed a memory leak if an exception occurred when connecting to a MySQL server.
Fixed incorrect clickhouse-client response code in case of a query error.
Fixed incorrect behavior of materialized views containing DISTINCT.
#2795
Backward Incompatible Changes {#backward-incompatible-changes-4}
Removed support for CHECK TABLE queries for Distributed tables.
Build Changes: {#build-changes-3}
The allocator has been replaced:
jemalloc
is now used instead of
tcmalloc
. In some scenarios, this increases speed up to 20%. However, there are queries that have slowed by up to 20%. Memory consumption has been reduced by approximately 10% in some scenarios, with improved stability. With highly competitive loads, CPU usage in userspace and in system shows just a slight increase.
#2773
Use of libressl from a submodule.
#1983
#2807
Use of unixodbc from a submodule.
#2789
Use of mariadb-connector-c from a submodule.
#2785
Added functional test files to the repository that depend on the availability of test data (for the time being, without the test data itself).
ClickHouse Release 18.6 {#clickhouse-release-18-6}
ClickHouse Release 18.6.0, 2018-08-02 {#clickhouse-release-18-6-0-2018-08-02}
New Features: {#new-features-6}
Added support for ON expressions for the JOIN ON syntax:
JOIN ON Expr([table.]column ...) = Expr([table.]column, ...) [AND Expr([table.]column, ...) = Expr([table.]column, ...) ...]
The expression must be a chain of equalities joined by the AND operator. Each side of the equality can be an arbitrary expression over the columns of one of the tables. The use of fully qualified column names is supported (
table.name
,
database.table.name
,
table_alias.name
,
subquery_alias.name
) for the right table.
#2742
HTTPS can be enabled for replication.
#2760
Improvements: {#improvements-6}
The server passes the patch component of its version to the client. Data about the patch version component is in
system.processes
and
query_log
.
#2646
ClickHouse Release 18.5 {#clickhouse-release-18-5}
ClickHouse Release 18.5.1, 2018-07-31 {#clickhouse-release-18-5-1-2018-07-31}
New Features: {#new-features-7}
Added the hash function
murmurHash2_32
#2756
.
Improvements: {#improvements-7}
Now you can use the
from_env
#2741
attribute to set values in config files from environment variables.
Added case-insensitive versions of the
coalesce
,
ifNull
, and
nullIf functions
#2752
. | {"source_file": "2018.md"} | [
-0.017814477905631065,
-0.007480795029550791,
0.005664929281920195,
0.024131620302796364,
-0.027429306879639626,
-0.08952080458402634,
-0.01931927539408207,
-0.05690241977572441,
0.01597040705382824,
0.04367855563759804,
-0.0003304076672066003,
-0.02878054976463318,
0.02733026258647442,
-0... |
212c2bb5-5824-467c-a1a5-751aae08af5d | Added case-insensitive versions of the
coalesce
,
ifNull
, and
nullIf functions
#2752
.
Bug Fixes: {#bug-fixes-15}
Fixed a possible bug when starting a replica
#2759
.
ClickHouse Release 18.4 {#clickhouse-release-18-4}
ClickHouse Release 18.4.0, 2018-07-28 {#clickhouse-release-18-4-0-2018-07-28}
New Features: {#new-features-8}
Added system tables:
formats
,
data_type_families
,
aggregate_function_combinators
,
table_functions
,
table_engines
,
collations
#2721
.
Added the ability to use a table function instead of a table as an argument of a
remote
or
cluster table function
#2708
.
Support for
HTTP Basic
authentication in the replication protocol
#2727
.
The
has
function now allows searching for a numeric value in an array of
Enum
values
Maxim Khrisanfov
.
Support for adding arbitrary message separators when reading from
Kafka
Amos Bird
.
Improvements: {#improvements-8}
The
ALTER TABLE t DELETE WHERE
query does not rewrite data parts that were not affected by the WHERE condition
#2694
.
The
use_minimalistic_checksums_in_zookeeper
option for
ReplicatedMergeTree
tables is enabled by default. This setting was added in version 1.1.54378, 2018-04-16. Versions that are older than 1.1.54378 can no longer be installed.
Support for running
KILL
and
OPTIMIZE
queries that specify
ON CLUSTER
Winter Zhang
.
Bug Fixes: {#bug-fixes-16}
Fixed the error
Column ... is not under an aggregate function and not in GROUP BY
for aggregation with an IN expression. This bug appeared in version 18.1.0. (
bbdd780b
)
Fixed a bug in the
windowFunnel aggregate function
Winter Zhang
.
Fixed a bug in the
anyHeavy
aggregate function (
a2101df2
)
Fixed server crash when using the
countArray()
aggregate function.
Backward Incompatible Changes: {#backward-incompatible-changes-5}
Parameters for
Kafka
engine was changed from
Kafka(kafka_broker_list, kafka_topic_list, kafka_group_name, kafka_format[, kafka_schema, kafka_num_consumers])
to
Kafka(kafka_broker_list, kafka_topic_list, kafka_group_name, kafka_format[, kafka_row_delimiter, kafka_schema, kafka_num_consumers])
. If your tables use
kafka_schema
or
kafka_num_consumers
parameters, you have to manually edit the metadata files
path/metadata/database/table.sql
and add
kafka_row_delimiter
parameter with
''
value.
ClickHouse Release 18.1 {#clickhouse-release-18-1}
ClickHouse Release 18.1.0, 2018-07-23 {#clickhouse-release-18-1-0-2018-07-23}
New Features: {#new-features-9}
Support for the
ALTER TABLE t DELETE WHERE
query for non-replicated MergeTree tables (
#2634
).
Support for arbitrary types for the
uniq*
family of aggregate functions (
#2010
).
Support for arbitrary types in comparison operators (
#2026
). | {"source_file": "2018.md"} | [
-0.031766779720783234,
0.0064687589183449745,
-0.030789285898208618,
-0.010177460499107838,
-0.019706491380929947,
-0.026455000042915344,
-0.0095553919672966,
-0.032204676419496536,
-0.03883941471576691,
0.10450512915849686,
0.03409226983785629,
-0.08558690547943115,
0.06768753379583359,
-... |
dcd11d0e-0fa6-4fa7-8204-5569225947ef | Support for arbitrary types for the
uniq*
family of aggregate functions (
#2010
).
Support for arbitrary types in comparison operators (
#2026
).
The
users.xml
file allows setting a subnet mask in the format
10.0.0.1/255.255.255.0
. This is necessary for using masks for IPv6 networks with zeros in the middle (
#2637
).
Added the
arrayDistinct
function (
#2670
).
The SummingMergeTree engine can now work with AggregateFunction type columns (
Constantin S. Pan
).
Improvements: {#improvements-9}
Changed the numbering scheme for release versions. Now the first part contains the year of release (A.D., Moscow timezone, minus 2000), the second part contains the number for major changes (increases for most releases), and the third part is the patch version. Releases are still backward compatible, unless otherwise stated in the changelog.
Faster conversions of floating-point numbers to a string (
Amos Bird
).
If some rows were skipped during an insert due to parsing errors (this is possible with the
input_allow_errors_num
and
input_allow_errors_ratio
settings enabled), the number of skipped rows is now written to the server log (
Leonardo Cecchi
).
Bug Fixes: {#bug-fixes-17}
Fixed the TRUNCATE command for temporary tables (
Amos Bird
).
Fixed a rare deadlock in the ZooKeeper client library that occurred when there was a network error while reading the response (
c315200
).
Fixed an error during a CAST to Nullable types (
#1322
).
Fixed the incorrect result of the
maxIntersection()
function when the boundaries of intervals coincided (
Michael Furmur
).
Fixed incorrect transformation of the OR expression chain in a function argument (
chenxing-xc
).
Fixed performance degradation for queries containing
IN (subquery)
expressions inside another subquery (
#2571
).
Fixed incompatibility between servers with different versions in distributed queries that use a
CAST
function that isn't in uppercase letters (
fe8c4d6
).
Added missing quoting of identifiers for queries to an external DBMS (
#2635
).
Backward Incompatible Changes: {#backward-incompatible-changes-6}
Converting a string containing the number zero to DateTime does not work. Example:
SELECT toDateTime('0')
. This is also the reason that
DateTime DEFAULT '0'
does not work in tables, as well as
<null_value>0</null_value>
in dictionaries. Solution: replace
0
with
0000-00-00 00:00:00
.
ClickHouse Release 1.1 {#clickhouse-release-1-1}
ClickHouse Release 1.1.54394, 2018-07-12 {#clickhouse-release-1-1-54394-2018-07-12}
New Features: {#new-features-10}
Added the
histogram
aggregate function (
Mikhail Surin
).
Now
OPTIMIZE TABLE ... FINAL
can be used without specifying partitions for
ReplicatedMergeTree
(
Amos Bird
).
Bug Fixes: {#bug-fixes-18} | {"source_file": "2018.md"} | [
-0.03827628493309021,
0.008394326083362103,
0.014012654311954975,
0.0006598021718673408,
-0.016905760392546654,
0.029263874515891075,
-0.04560406506061554,
-0.020194126293063164,
-0.0173458494246006,
-0.03176964819431305,
-0.03213877975940704,
-0.0006826529279351234,
-0.0709187462925911,
-... |
5b8a7a98-749f-4bc7-bfef-9c76e148464a | Now
OPTIMIZE TABLE ... FINAL
can be used without specifying partitions for
ReplicatedMergeTree
(
Amos Bird
).
Bug Fixes: {#bug-fixes-18}
Fixed a problem with a very small timeout for sockets (one second) for reading and writing when sending and downloading replicated data, which made it impossible to download larger parts if there is a load on the network or disk (it resulted in cyclical attempts to download parts). This error occurred in version 1.1.54388.
Fixed issues when using chroot in ZooKeeper if you inserted duplicate data blocks in the table.
The
has
function now works correctly for an array with Nullable elements (
#2115
).
The
system.tables
table now works correctly when used in distributed queries. The
metadata_modification_time
and
engine_full
columns are now non-virtual. Fixed an error that occurred if only these columns were queried from the table.
Fixed how an empty
TinyLog
table works after inserting an empty data block (
#2563
).
The
system.zookeeper
table works if the value of the node in ZooKeeper is NULL.
ClickHouse Release 1.1.54390, 2018-07-06 {#clickhouse-release-1-1-54390-2018-07-06}
New Features: {#new-features-11}
Queries can be sent in
multipart/form-data
format (in the
query
field), which is useful if external data is also sent for query processing (
Olga Hvostikova
).
Added the ability to enable or disable processing single or double quotes when reading data in CSV format. You can configure this in the
format_csv_allow_single_quotes
and
format_csv_allow_double_quotes
settings (
Amos Bird
).
Now
OPTIMIZE TABLE ... FINAL
can be used without specifying the partition for non-replicated variants of
MergeTree
(
Amos Bird
).
Improvements: {#improvements-10}
Improved performance, reduced memory consumption, and correct memory consumption tracking with use of the IN operator when a table index could be used (
#2584
).
Removed redundant checking of checksums when adding a data part. This is important when there are a large number of replicas, because in these cases the total number of checks was equal to N^2.
Added support for
Array(Tuple(...))
arguments for the
arrayEnumerateUniq
function (
#2573
).
Added
Nullable
support for the
runningDifference
function (
#2594
).
Improved query analysis performance when there is a very large number of expressions (
#2572
).
Faster selection of data parts for merging in
ReplicatedMergeTree
tables. Faster recovery of the ZooKeeper session (
#2597
).
The
format_version.txt
file for
MergeTree
tables is re-created if it is missing, which makes sense if ClickHouse is launched after copying the directory structure without files (
Ciprian Hacman
).
Bug Fixes: {#bug-fixes-19}
Fixed a bug when working with ZooKeeper that could make it impossible to recover the session and readonly states of tables before restarting the server. | {"source_file": "2018.md"} | [
0.032942034304142,
0.05712052062153816,
-0.02541622333228588,
0.005084822420030832,
0.028288908302783966,
-0.10019391030073166,
-0.020175879821181297,
0.012333729304373264,
-0.012791549786925316,
0.13742102682590485,
0.018492398783564568,
-0.048947349190711975,
0.02020769566297531,
-0.0138... |
ba043fb4-654c-4e9e-9363-4d81d3c900d4 | Bug Fixes: {#bug-fixes-19}
Fixed a bug when working with ZooKeeper that could make it impossible to recover the session and readonly states of tables before restarting the server.
Fixed a bug when working with ZooKeeper that could result in old nodes not being deleted if the session is interrupted.
Fixed an error in the
quantileTDigest
function for Float arguments (this bug was introduced in version 1.1.54388) (
Mikhail Surin
).
Fixed a bug in the index for MergeTree tables if the primary key column is located inside the function for converting types between signed and unsigned integers of the same size (
#2603
).
Fixed segfault if
macros
are used but they aren't in the config file (
#2570
).
Fixed switching to the default database when reconnecting the client (
#2583
).
Fixed a bug that occurred when the
use_index_for_in_with_subqueries
setting was disabled.
Security Fix: {#security-fix-1}
Sending files is no longer possible when connected to MySQL (
LOAD DATA LOCAL INFILE
).
ClickHouse Release 1.1.54388, 2018-06-28 {#clickhouse-release-1-1-54388-2018-06-28}
New Features: {#new-features-12}
Support for the
ALTER TABLE t DELETE WHERE
query for replicated tables. Added the
system.mutations
table to track progress of this type of queries.
Support for the
ALTER TABLE t [REPLACE|ATTACH] PARTITION
query for *MergeTree tables.
Support for the
TRUNCATE TABLE
query (
Winter Zhang
)
Several new
SYSTEM
queries for replicated tables (
RESTART REPLICAS
,
SYNC REPLICA
,
[STOP|START] [MERGES|FETCHES|SENDS REPLICATED|REPLICATION QUEUES]
).
Added the ability to write to a table with the MySQL engine and the corresponding table function (
sundy-li
).
Added the
url()
table function and the
URL
table engine (
Alexander Sapin
).
Added the
windowFunnel
aggregate function (
sundy-li
).
New
startsWith
and
endsWith
functions for strings (
Vadim Plakhtinsky
).
The
numbers()
table function now allows you to specify the offset (
Winter Zhang
).
The password to
clickhouse-client
can be entered interactively.
Server logs can now be sent to syslog (
Alexander Krasheninnikov
).
Support for logging in dictionaries with a shared library source (
Alexander Sapin
).
Support for custom CSV delimiters (
Ivan Zhukov
)
Added the
date_time_input_format
setting. If you switch this setting to
'best_effort'
, DateTime values will be read in a wide range of formats.
Added the
clickhouse-obfuscator
utility for data obfuscation. Usage example: publishing data used in performance tests.
Experimental Features: {#experimental-features-2}
Added the ability to calculate
and
arguments only where they are needed (
Anastasia Tsarkova
)
JIT compilation to native code is now available for some expressions (
pyos
).
Bug Fixes: {#bug-fixes-20}
Duplicates no longer appear for a query with
DISTINCT
and
ORDER BY
. | {"source_file": "2018.md"} | [
-0.028703054413199425,
0.007816188037395477,
0.021405022591352463,
0.03499610349535942,
0.007163051050156355,
-0.08883451670408249,
0.007177051622420549,
0.05447331443428993,
-0.010071951895952225,
0.06845130026340485,
0.01736300066113472,
0.014743264764547348,
0.0221034474670887,
0.032517... |
a3086853-bb26-4628-898e-2f5441708196 | JIT compilation to native code is now available for some expressions (
pyos
).
Bug Fixes: {#bug-fixes-20}
Duplicates no longer appear for a query with
DISTINCT
and
ORDER BY
.
Queries with
ARRAY JOIN
and
arrayFilter
no longer return an incorrect result.
Fixed an error when reading an array column from a Nested structure (
#2066
).
Fixed an error when analyzing queries with a HAVING clause like
HAVING tuple IN (...)
.
Fixed an error when analyzing queries with recursive aliases.
Fixed an error when reading from ReplacingMergeTree with a condition in PREWHERE that filters all rows (
#2525
).
User profile settings were not applied when using sessions in the HTTP interface.
Fixed how settings are applied from the command line parameters in clickhouse-local.
The ZooKeeper client library now uses the session timeout received from the server.
Fixed a bug in the ZooKeeper client library when the client waited for the server response longer than the timeout.
Fixed pruning of parts for queries with conditions on partition key columns (
#2342
).
Merges are now possible after
CLEAR COLUMN IN PARTITION
(
#2315
).
Type mapping in the ODBC table function has been fixed (
sundy-li
).
Type comparisons have been fixed for
DateTime
with and without the time zone (
Alexander Bocharov
).
Fixed syntactic parsing and formatting of the
CAST
operator.
Fixed insertion into a materialized view for the Distributed table engine (
Babacar Diassé
).
Fixed a race condition when writing data from the
Kafka
engine to materialized views (
Yangkuan Liu
).
Fixed SSRF in the remote() table function.
Fixed exit behavior of
clickhouse-client
in multiline mode (
#2510
).
Improvements: {#improvements-11}
Background tasks in replicated tables are now performed in a thread pool instead of in separate threads (
Silviu Caragea
).
Improved LZ4 compression performance.
Faster analysis for queries with a large number of JOINs and sub-queries.
The DNS cache is now updated automatically when there are too many network errors.
Table inserts no longer occur if the insert into one of the materialized views is not possible because it has too many parts.
Corrected the discrepancy in the event counters
Query
,
SelectQuery
, and
InsertQuery
.
Expressions like
tuple IN (SELECT tuple)
are allowed if the tuple types match.
A server with replicated tables can start even if you haven't configured ZooKeeper.
When calculating the number of available CPU cores, limits on cgroups are now taken into account (
Atri Sharma
).
Added chown for config directories in the systemd config file (
Mikhail Shiryaev
).
Build Changes: {#build-changes-4}
The gcc8 compiler can be used for builds.
Added the ability to build llvm from submodule.
The version of the librdkafka library has been updated to v0.11.4.
Added the ability to use the system libcpuid library. The library version has been updated to 0.4.0. | {"source_file": "2018.md"} | [
-0.06565842032432556,
0.047510236501693726,
0.045016296207904816,
0.007420988287776709,
-0.06361640244722366,
-0.06861557811498642,
0.06176323443651199,
0.013201224617660046,
-0.041096281260252,
0.033041417598724365,
-0.02151043340563774,
-0.012331019155681133,
0.024737322703003883,
0.0427... |
57411814-73a3-478a-b072-c3a96ee92657 | The version of the librdkafka library has been updated to v0.11.4.
Added the ability to use the system libcpuid library. The library version has been updated to 0.4.0.
Fixed the build using the vectorclass library (
Babacar Diassé
).
Cmake now generates files for ninja by default (like when using
-G Ninja
).
Added the ability to use the libtinfo library instead of libtermcap (
Georgy Kondratiev
).
Fixed a header file conflict in Fedora Rawhide (
#2520
).
Backward Incompatible Changes: {#backward-incompatible-changes-7}
Removed escaping in
Vertical
and
Pretty*
formats and deleted the
VerticalRaw
format.
If servers with version 1.1.54388 (or newer) and servers with an older version are used simultaneously in a distributed query and the query has the
cast(x, 'Type')
expression without the
AS
keyword and does not have the word
cast
in uppercase, an exception will be thrown with a message like
Not found column cast(0, 'UInt8') in block
. Solution: Update the server on the entire cluster.
ClickHouse Release 1.1.54385, 2018-06-01 {#clickhouse-release-1-1-54385-2018-06-01}
Bug Fixes: {#bug-fixes-21}
Fixed an error that in some cases caused ZooKeeper operations to block.
ClickHouse Release 1.1.54383, 2018-05-22 {#clickhouse-release-1-1-54383-2018-05-22}
Bug Fixes: {#bug-fixes-22}
Fixed a slowdown of replication queue if a table has many replicas.
ClickHouse Release 1.1.54381, 2018-05-14 {#clickhouse-release-1-1-54381-2018-05-14}
Bug Fixes: {#bug-fixes-23}
Fixed a nodes leak in ZooKeeper when ClickHouse loses connection to ZooKeeper server.
ClickHouse Release 1.1.54380, 2018-04-21 {#clickhouse-release-1-1-54380-2018-04-21}
New Features: {#new-features-13}
Added the table function
file(path, format, structure)
. An example reading bytes from
/dev/urandom
:
ln -s /dev/urandom /var/lib/clickhouse/user_files/random``clickhouse-client -q "SELECT * FROM file('random', 'RowBinary', 'd UInt8') LIMIT 10"
.
Improvements: {#improvements-12}
Subqueries can be wrapped in
()
brackets to enhance query readability. For example:
(SELECT 1) UNION ALL (SELECT 1)
.
Simple
SELECT
queries from the
system.processes
table are not included in the
max_concurrent_queries
limit.
Bug Fixes: {#bug-fixes-24}
Fixed incorrect behavior of the
IN
operator when select from
MATERIALIZED VIEW
.
Fixed incorrect filtering by partition index in expressions like
partition_key_column IN (...)
.
Fixed inability to execute
OPTIMIZE
query on non-leader replica if
REANAME
was performed on the table.
Fixed the authorization error when executing
OPTIMIZE
or
ALTER
queries on a non-leader replica.
Fixed freezing of
KILL QUERY
.
Fixed an error in ZooKeeper client library which led to loss of watches, freezing of distributed DDL queue, and slowdowns in the replication queue if a non-empty
chroot
prefix is used in the ZooKeeper configuration. | {"source_file": "2018.md"} | [
-0.04958254471421242,
0.017419980838894844,
-0.08122970163822174,
0.03661671653389931,
-0.03197643905878067,
0.03641141951084137,
-0.10825180262327194,
0.037053633481264114,
-0.02442571334540844,
-0.03380177170038223,
-0.010627145878970623,
-0.057862091809511185,
0.06886828690767288,
-0.08... |
b0cb619d-fba1-4262-8a78-d2e15279ec48 | Backward Incompatible Changes: {#backward-incompatible-changes-8}
Removed support for expressions like
(a, b) IN (SELECT (a, b))
(you can use the equivalent expression
(a, b) IN (SELECT a, b)
). In previous releases, these expressions led to undetermined
WHERE
filtering or caused errors.
ClickHouse Release 1.1.54378, 2018-04-16 {#clickhouse-release-1-1-54378-2018-04-16}
New Features: {#new-features-14}
Logging level can be changed without restarting the server.
Added the
SHOW CREATE DATABASE
query.
The
query_id
can be passed to
clickhouse-client
(elBroom).
New setting:
max_network_bandwidth_for_all_users
.
Added support for
ALTER TABLE ... PARTITION ...
for
MATERIALIZED VIEW
.
Added information about the size of data parts in uncompressed form in the system table.
Server-to-server encryption support for distributed tables (
<secure>1</secure>
in the replica config in
<remote_servers>
).
Configuration of the table level for the
ReplicatedMergeTree
family in order to minimize the amount of data stored in Zookeeper: :
use_minimalistic_checksums_in_zookeeper = 1
Configuration of the
clickhouse-client
prompt. By default, server names are now output to the prompt. The server's display name can be changed. It's also sent in the
X-ClickHouse-Display-Name
HTTP header (Kirill Shvakov).
Multiple comma-separated
topics
can be specified for the
Kafka
engine (Tobias Adamson)
When a query is stopped by
KILL QUERY
or
replace_running_query
, the client receives the
Query was canceled
exception instead of an incomplete result.
Improvements: {#improvements-13}
ALTER TABLE ... DROP/DETACH PARTITION
queries are run at the front of the replication queue.
SELECT ... FINAL
and
OPTIMIZE ... FINAL
can be used even when the table has a single data part.
A
query_log
table is recreated on the fly if it was deleted manually (Kirill Shvakov).
The
lengthUTF8
function runs faster (zhang2014).
Improved performance of synchronous inserts in
Distributed
tables (
insert_distributed_sync = 1
) when there is a very large number of shards.
The server accepts the
send_timeout
and
receive_timeout
settings from the client and applies them when connecting to the client (they are applied in reverse order: the server socket's
send_timeout
is set to the
receive_timeout
value received from the client, and vice versa).
More robust crash recovery for asynchronous insertion into
Distributed
tables.
The return type of the
countEqual
function changed from
UInt32
to
UInt64
(谢磊).
Bug Fixes: {#bug-fixes-25}
Fixed an error with
IN
when the left side of the expression is
Nullable
.
Correct results are now returned when using tuples with
IN
when some of the tuple components are in the table index.
The
max_execution_time
limit now works correctly with distributed queries.
Fixed errors when calculating the size of composite columns in the
system.columns
table. | {"source_file": "2018.md"} | [
0.008871003985404968,
-0.007964947260916233,
-0.01159331388771534,
0.003757331520318985,
-0.01218672376126051,
-0.0544450543820858,
-0.0023973749484866858,
-0.020291833207011223,
-0.04153534024953842,
0.07331572473049164,
0.016398433595895767,
-0.020080722868442535,
0.06900890171527863,
-0... |
bfecb9ff-6e38-456d-a3d2-ad00495bdee9 | The
max_execution_time
limit now works correctly with distributed queries.
Fixed errors when calculating the size of composite columns in the
system.columns
table.
Fixed an error when creating a temporary table
CREATE TEMPORARY TABLE IF NOT EXISTS.
Fixed errors in
StorageKafka
(##2075)
Fixed server crashes from invalid arguments of certain aggregate functions.
Fixed the error that prevented the
DETACH DATABASE
query from stopping background tasks for
ReplicatedMergeTree
tables.
Too many parts
state is less likely to happen when inserting into aggregated materialized views (##2084).
Corrected recursive handling of substitutions in the config if a substitution must be followed by another substitution on the same level.
Corrected the syntax in the metadata file when creating a
VIEW
that uses a query with
UNION ALL
.
SummingMergeTree
now works correctly for summation of nested data structures with a composite key.
Fixed the possibility of a race condition when choosing the leader for
ReplicatedMergeTree
tables.
Build Changes: {#build-changes-5}
The build supports
ninja
instead of
make
and uses
ninja
by default for building releases.
Renamed packages:
clickhouse-server-base
in
clickhouse-common-static
;
clickhouse-server-common
in
clickhouse-server
;
clickhouse-common-dbg
in
clickhouse-common-static-dbg
. To install, use
clickhouse-server clickhouse-client
. Packages with the old names will still load in the repositories for backward compatibility.
Backward Incompatible Changes: {#backward-incompatible-changes-9}
Removed the special interpretation of an IN expression if an array is specified on the left side. Previously, the expression
arr IN (set)
was interpreted as "at least one
arr
element belongs to the
set
". To get the same behavior in the new version, write
arrayExists(x -> x IN (set), arr)
.
Disabled the incorrect use of the socket option
SO_REUSEPORT
, which was incorrectly enabled by default in the Poco library. Note that on Linux there is no longer any reason to simultaneously specify the addresses
::
and
0.0.0.0
for listen – use just
::
, which allows listening to the connection both over IPv4 and IPv6 (with the default kernel config settings). You can also revert to the behavior from previous versions by specifying
<listen_reuse_port>1</listen_reuse_port>
in the config.
ClickHouse Release 1.1.54370, 2018-03-16 {#clickhouse-release-1-1-54370-2018-03-16}
New Features: {#new-features-15}
Added the
system.macros
table and auto updating of macros when the config file is changed.
Added the
SYSTEM RELOAD CONFIG
query.
Added the
maxIntersections(left_col, right_col)
aggregate function, which returns the maximum number of simultaneously intersecting intervals
[left; right]
. The
maxIntersectionsPosition(left, right)
function returns the beginning of the "maximum" interval. (
Michael Furmur
).
Improvements: {#improvements-14} | {"source_file": "2018.md"} | [
0.005609096493571997,
-0.01655900478363037,
-0.036859169602394104,
0.026969369500875473,
-0.06840762495994568,
-0.06720957905054092,
-0.08939970284700394,
0.027991315349936485,
0.011268776841461658,
0.10608028620481491,
-0.013744323514401913,
-0.0680718868970871,
0.03807949647307396,
-0.01... |
d778b627-a45e-454e-af51-50bbed8bfb4d | Improvements: {#improvements-14}
When inserting data in a
Replicated
table, fewer requests are made to
ZooKeeper
(and most of the user-level errors have disappeared from the
ZooKeeper
log).
Added the ability to create aliases for data sets. Example:
WITH (1, 2, 3) AS set SELECT number IN set FROM system.numbers LIMIT 10
.
Bug Fixes: {#bug-fixes-26}
Fixed the
Illegal PREWHERE
error when reading from Merge tables for
Distributed
tables.
Added fixes that allow you to start clickhouse-server in IPv4-only Docker containers.
Fixed a race condition when reading from system
system.parts_columns tables.
Removed double buffering during a synchronous insert to a
Distributed
table, which could have caused the connection to timeout.
Fixed a bug that caused excessively long waits for an unavailable replica before beginning a
SELECT
query.
Fixed incorrect dates in the
system.parts
table.
Fixed a bug that made it impossible to insert data in a
Replicated
table if
chroot
was non-empty in the configuration of the
ZooKeeper
cluster.
Fixed the vertical merging algorithm for an empty
ORDER BY
table.
Restored the ability to use dictionaries in queries to remote tables, even if these dictionaries are not present on the requestor server. This functionality was lost in release 1.1.54362.
Restored the behavior for queries like
SELECT * FROM remote('server2', default.table) WHERE col IN (SELECT col2 FROM default.table)
when the right side of the
IN
should use a remote
default.table
instead of a local one. This behavior was broken in version 1.1.54358.
Removed extraneous error-level logging of
Not found column ... in block
.
ClickHouse Release 1.1.54362, 2018-03-11 {#clickhouse-release-1-1-54362-2018-03-11}
New Features: {#new-features-16}
Aggregation without
GROUP BY
for an empty set (such as
SELECT count(*) FROM table WHERE 0
) now returns a result with one row with null values for aggregate functions, in compliance with the SQL standard. To restore the old behavior (return an empty result), set
empty_result_for_aggregation_by_empty_set
to 1.
Added type conversion for
UNION ALL
. Different alias names are allowed in
SELECT
positions in
UNION ALL
, in compliance with the SQL standard.
Arbitrary expressions are supported in
LIMIT BY
clauses. Previously, it was only possible to use columns resulting from
SELECT
.
An index of
MergeTree
tables is used when
IN
is applied to a tuple of expressions from the columns of the primary key. Example:
WHERE (UserID, EventDate) IN ((123, '2000-01-01'), ...)
(Anastasiya Tsarkova).
Added the
clickhouse-copier
tool for copying between clusters and resharding data (beta).
Added consistent hashing functions:
yandexConsistentHash
,
jumpConsistentHash
,
sumburConsistentHash
. They can be used as a sharding key in order to reduce the amount of network traffic during subsequent reshardings. | {"source_file": "2018.md"} | [
0.012180004268884659,
0.013595751486718655,
0.03614947199821472,
0.014646811410784721,
-0.016368096694350243,
-0.0909978523850441,
-0.08015196025371552,
-0.016056260094046593,
-0.01636083610355854,
0.07594213634729385,
0.008692831732332706,
-0.001322177005931735,
0.04372352361679077,
-0.01... |
e58a1f30-28d4-495a-8669-993214e17901 | Added functions:
arrayAny
,
arrayAll
,
hasAny
,
hasAll
,
arrayIntersect
,
arrayResize
.
Added the
arrayCumSum
function (Javi Santana).
Added the
parseDateTimeBestEffort
,
parseDateTimeBestEffortOrZero
, and
parseDateTimeBestEffortOrNull
functions to read the DateTime from a string containing text in a wide variety of possible formats.
Data can be partially reloaded from external dictionaries during updating (load just the records in which the value of the specified field greater than in the previous download) (Arsen Hakobyan).
Added the
cluster
table function. Example:
cluster(cluster_name, db, table)
. The
remote
table function can accept the cluster name as the first argument, if it is specified as an identifier.
The
remote
and
cluster
table functions can be used in
INSERT
queries.
Added the
create_table_query
and
engine_full
virtual columns to the
system.tables
table . The
metadata_modification_time
column is virtual.
Added the
data_path
and
metadata_path
columns to
system.tables
and
system.databases
tables, and added the
path
column to the
system.parts
and
system.parts_columns
tables.
Added additional information about merges in the
system.part_log
table.
An arbitrary partitioning key can be used for the
system.query_log
table (Kirill Shvakov).
The
SHOW TABLES
query now also shows temporary tables. Added temporary tables and the
is_temporary
column to
system.tables
(zhang2014).
Added
DROP TEMPORARY TABLE
and
EXISTS TEMPORARY TABLE
queries (zhang2014).
Support for
SHOW CREATE TABLE
for temporary tables (zhang2014).
Added the
system_profile
configuration parameter for the settings used by internal processes.
Support for loading
object_id
as an attribute in
MongoDB
dictionaries (Pavel Litvinenko).
Reading
null
as the default value when loading data for an external dictionary with the
MongoDB
source (Pavel Litvinenko).
Reading
DateTime
values in the
Values
format from a Unix timestamp without single quotes.
Failover is supported in
remote
table functions for cases when some of the replicas are missing the requested table.
Configuration settings can be overridden in the command line when you run
clickhouse-server
. Example:
clickhouse-server -- --logger.level=information
.
Implemented the
empty
function from a
FixedString
argument: the function returns 1 if the string consists entirely of null bytes (zhang2014).
Added the
listen_try
configuration parameter for listening to at least one of the listen addresses without quitting, if some of the addresses can't be listened to (useful for systems with disabled support for IPv4 or IPv6).
Added the
VersionedCollapsingMergeTree
table engine.
Support for rows and arbitrary numeric types for the
library
dictionary source.
MergeTree
tables can be used without a primary key (you need to specify
ORDER BY tuple()
). | {"source_file": "2018.md"} | [
0.06851853430271149,
-0.031365085393190384,
-0.12519001960754395,
0.05572778359055519,
-0.026160718873143196,
-0.021943597123026848,
0.01881382241845131,
0.03512932360172272,
-0.08713481575250626,
0.046511564403772354,
0.022692782804369926,
-0.05134326592087746,
0.039121612906455994,
-0.08... |
87cc29ee-5852-4cf1-8df8-3d20d10004e1 | Support for rows and arbitrary numeric types for the
library
dictionary source.
MergeTree
tables can be used without a primary key (you need to specify
ORDER BY tuple()
).
A
Nullable
type can be
CAST
to a non-
Nullable
type if the argument is not
NULL
.
RENAME TABLE
can be performed for
VIEW
.
Added the
throwIf
function.
Added the
odbc_default_field_size
option, which allows you to extend the maximum size of the value loaded from an ODBC source (by default, it is 1024).
The
system.processes
table and
SHOW PROCESSLIST
now have the
is_cancelled
and
peak_memory_usage
columns.
Improvements: {#improvements-15}
Limits and quotas on the result are no longer applied to intermediate data for
INSERT SELECT
queries or for
SELECT
subqueries.
Fewer false triggers of
force_restore_data
when checking the status of
Replicated
tables when the server starts.
Added the
allow_distributed_ddl
option.
Nondeterministic functions are not allowed in expressions for
MergeTree
table keys.
Files with substitutions from
config.d
directories are loaded in alphabetical order.
Improved performance of the
arrayElement
function in the case of a constant multidimensional array with an empty array as one of the elements. Example:
[[1], []][x]
.
The server starts faster now when using configuration files with very large substitutions (for instance, very large lists of IP networks).
When running a query, table valued functions run once. Previously,
remote
and
mysql
table valued functions performed the same query twice to retrieve the table structure from a remote server.
The
MkDocs
documentation generator is used.
When you try to delete a table column that
DEFAULT
/
MATERIALIZED
expressions of other columns depend on, an exception is thrown (zhang2014).
Added the ability to parse an empty line in text formats as the number 0 for
Float
data types. This feature was previously available but was lost in release 1.1.54342.
Enum
values can be used in
min
,
max
,
sum
and some other functions. In these cases, it uses the corresponding numeric values. This feature was previously available but was lost in the release 1.1.54337.
Added
max_expanded_ast_elements
to restrict the size of the AST after recursively expanding aliases.
Bug Fixes: {#bug-fixes-27}
Fixed cases when unnecessary columns were removed from subqueries in error, or not removed from subqueries containing
UNION ALL
.
Fixed a bug in merges for
ReplacingMergeTree
tables.
Fixed synchronous insertions in
Distributed
tables (
insert_distributed_sync = 1
).
Fixed segfault for certain uses of
FULL
and
RIGHT JOIN
with duplicate columns in subqueries.
Fixed segfault for certain uses of
replace_running_query
and
KILL QUERY
.
Fixed the order of the
source
and
last_exception
columns in the
system.dictionaries
table.
Fixed a bug when the
DROP DATABASE
query did not delete the file with metadata. | {"source_file": "2018.md"} | [
-0.011536620557308197,
-0.06292381882667542,
-0.04949512332677841,
-0.010837067849934101,
-0.026028597727417946,
-0.12145969271659851,
0.007341743912547827,
0.07585368305444717,
-0.00023640839208383113,
0.07482269406318665,
0.010999707505106926,
0.0750039666891098,
0.01510528102517128,
-0.... |
1105758e-82af-4a09-8f37-e3403600c5d0 | Fixed the order of the
source
and
last_exception
columns in the
system.dictionaries
table.
Fixed a bug when the
DROP DATABASE
query did not delete the file with metadata.
Fixed the
DROP DATABASE
query for
Dictionary
databases.
Fixed the low precision of
uniqHLL12
and
uniqCombined
functions for cardinalities greater than 100 million items (Alex Bocharov).
Fixed the calculation of implicit default values when necessary to simultaneously calculate default explicit expressions in
INSERT
queries (zhang2014).
Fixed a rare case when a query to a
MergeTree
table couldn't finish (chenxing-xc).
Fixed a crash that occurred when running a
CHECK
query for
Distributed
tables if all shards are local (chenxing.xc).
Fixed a slight performance regression with functions that use regular expressions.
Fixed a performance regression when creating multidimensional arrays from complex expressions.
Fixed a bug that could cause an extra
FORMAT
section to appear in an
.sql
file with metadata.
Fixed a bug that caused the
max_table_size_to_drop
limit to apply when trying to delete a
MATERIALIZED VIEW
looking at an explicitly specified table.
Fixed incompatibility with old clients (old clients were sometimes sent data with the
DateTime('timezone')
type, which they do not understand).
Fixed a bug when reading
Nested
column elements of structures that were added using
ALTER
but that are empty for the old partitions, when the conditions for these columns moved to
PREWHERE
.
Fixed a bug when filtering tables by virtual
_table
columns in queries to
Merge
tables.
Fixed a bug when using
ALIAS
columns in
Distributed
tables.
Fixed a bug that made dynamic compilation impossible for queries with aggregate functions from the
quantile
family.
Fixed a race condition in the query execution pipeline that occurred in very rare cases when using
Merge
tables with a large number of tables, and when using
GLOBAL
subqueries.
Fixed a crash when passing arrays of different sizes to an
arrayReduce
function when using aggregate functions from multiple arguments.
Prohibited the use of queries with
UNION ALL
in a
MATERIALIZED VIEW
.
Fixed an error during initialization of the
part_log
system table when the server starts (by default,
part_log
is disabled).
Backward Incompatible Changes: {#backward-incompatible-changes-10}
Removed the
distributed_ddl_allow_replicated_alter
option. This behavior is enabled by default.
Removed the
strict_insert_defaults
setting. If you were using this functionality, write to
feedback@clickhouse.com
.
Removed the
UnsortedMergeTree
engine.
ClickHouse Release 1.1.54343, 2018-02-05 {#clickhouse-release-1-1-54343-2018-02-05}
Added macros support for defining cluster names in distributed DDL queries and constructors of Distributed tables:
CREATE TABLE distr ON CLUSTER '{cluster}' (...) ENGINE = Distributed('{cluster}', 'db', 'table')
. | {"source_file": "2018.md"} | [
0.0328187569975853,
-0.025120647624135017,
0.051070619374513626,
0.03972318023443222,
0.03271268308162689,
-0.08318164199590683,
-0.07807645946741104,
0.018072478473186493,
0.02318836748600006,
0.0686846598982811,
0.013194505125284195,
0.054844386875629425,
0.04387199878692627,
-0.00623189... |
3097f7a1-058a-46b6-93fc-6640d4814174 | Now queries like
SELECT ... FROM table WHERE expr IN (subquery)
are processed using the
table
index.
Improved processing of duplicates when inserting to Replicated tables, so they no longer slow down execution of the replication queue.
ClickHouse Release 1.1.54342, 2018-01-22 {#clickhouse-release-1-1-54342-2018-01-22}
This release contains bug fixes for the previous release 1.1.54337:
Fixed a regression in 1.1.54337: if the default user has readonly access, then the server refuses to start up with the message
Cannot create database in readonly mode
.
Fixed a regression in 1.1.54337: on systems with systemd, logs are always written to syslog regardless of the configuration; the watchdog script still uses init.d.
Fixed a regression in 1.1.54337: wrong default configuration in the Docker image.
Fixed nondeterministic behavior of GraphiteMergeTree (you can see it in log messages
Data after merge is not byte-identical to the data on another replicas
).
Fixed a bug that may lead to inconsistent merges after OPTIMIZE query to Replicated tables (you may see it in log messages
Part ... intersects the previous part
).
Buffer tables now work correctly when MATERIALIZED columns are present in the destination table (by zhang2014).
Fixed a bug in implementation of NULL.
ClickHouse Release 1.1.54337, 2018-01-18 {#clickhouse-release-1-1-54337-2018-01-18}
New Features: {#new-features-17}
Added support for storage of multi-dimensional arrays and tuples (
Tuple
data type) in tables.
Support for table functions for
DESCRIBE
and
INSERT
queries. Added support for subqueries in
DESCRIBE
. Examples:
DESC TABLE remote('host', default.hits)
;
DESC TABLE (SELECT 1)
;
INSERT INTO TABLE FUNCTION remote('host', default.hits)
. Support for
INSERT INTO TABLE
in addition to
INSERT INTO
.
Improved support for time zones. The
DateTime
data type can be annotated with the timezone that is used for parsing and formatting in text formats. Example:
DateTime('Asia/Istanbul')
. When timezones are specified in functions for
DateTime
arguments, the return type will track the timezone, and the value will be displayed as expected.
Added the functions
toTimeZone
,
timeDiff
,
toQuarter
,
toRelativeQuarterNum
. The
toRelativeHour
/
Minute
/
Second
functions can take a value of type
Date
as an argument. The
now
function name is case-sensitive.
Added the
toStartOfFifteenMinutes
function (Kirill Shvakov).
Added the
clickhouse format
tool for formatting queries.
Added the
format_schema_path
configuration parameter (Marek Vavruşa). It is used for specifying a schema in
Cap'n Proto
format. Schema files can be located only in the specified directory.
Added support for config substitutions (
incl
and
conf.d
) for configuration of external dictionaries and models (Pavel Yakunin).
Added a column with documentation for the
system.settings
table (Kirill Shvakov). | {"source_file": "2018.md"} | [
-0.008338682353496552,
-0.07251893728971481,
0.01632746309041977,
0.05995652452111244,
0.005667452700436115,
-0.12112586200237274,
-0.03657080605626106,
-0.07907097041606903,
0.018793592229485512,
0.10569753497838974,
0.025251636281609535,
0.07460453361272812,
0.07156115025281906,
-0.01166... |
abe19e60-8c1f-4ad8-bd53-83c06a1042c9 | Added a column with documentation for the
system.settings
table (Kirill Shvakov).
Added the
system.parts_columns
table with information about column sizes in each data part of
MergeTree
tables.
Added the
system.models
table with information about loaded
CatBoost
machine learning models.
Added the
mysql
and
odbc
table function and corresponding
MySQL
and
ODBC
table engines for accessing remote databases. This functionality is in the beta stage.
Added the possibility to pass an argument of type
AggregateFunction
for the
groupArray
aggregate function (so you can create an array of states of some aggregate function).
Removed restrictions on various combinations of aggregate function combinators. For example, you can use
avgForEachIf
as well as
avgIfForEach
aggregate functions, which have different behaviors.
The
-ForEach
aggregate function combinator is extended for the case of aggregate functions of multiple arguments.
Added support for aggregate functions of
Nullable
arguments even for cases when the function returns a non-
Nullable
result (added with the contribution of Silviu Caragea). Example:
groupArray
,
groupUniqArray
,
topK
.
Added the
max_client_network_bandwidth
for
clickhouse-client
(Kirill Shvakov).
Users with the
readonly = 2
setting are allowed to work with TEMPORARY tables (CREATE, DROP, INSERT...) (Kirill Shvakov).
Added support for using multiple consumers with the
Kafka
engine. Extended configuration options for
Kafka
(Marek Vavruša).
Added the
intExp3
and
intExp4
functions.
Added the
sumKahan
aggregate function.
Added the to * Number* OrNull functions, where * Number* is a numeric type.
Added support for
WITH
clauses for an
INSERT SELECT
query (author: zhang2014).
Added settings:
http_connection_timeout
,
http_send_timeout
,
http_receive_timeout
. In particular, these settings are used for downloading data parts for replication. Changing these settings allows for faster failover if the network is overloaded.
Added support for
ALTER
for tables of type
Null
(Anastasiya Tsarkova).
The
reinterpretAsString
function is extended for all data types that are stored contiguously in memory.
Added the
--silent
option for the
clickhouse-local
tool. It suppresses printing query execution info in stderr.
Added support for reading values of type
Date
from text in a format where the month and/or day of the month is specified using a single digit instead of two digits (Amos Bird).
Performance Optimizations: {#performance-optimizations}
Improved performance of aggregate functions
min
,
max
,
any
,
anyLast
,
anyHeavy
,
argMin
,
argMax
from string arguments.
Improved performance of the functions
isInfinite
,
isFinite
,
isNaN
,
roundToExp2
.
Improved performance of parsing and formatting
Date
and
DateTime
type values in text format.
Improved performance and precision of parsing floating point numbers. | {"source_file": "2018.md"} | [
0.0036865377333015203,
-0.05630698427557945,
-0.08904622495174408,
0.031751085072755814,
-0.016287682577967644,
-0.026927229017019272,
0.004729509819298983,
0.048718638718128204,
-0.04570745676755905,
0.044958822429180145,
-0.06799846887588501,
-0.0053111775778234005,
0.01939462311565876,
... |
9bfaaa92-2af6-44ad-bacb-bfb433a7018c | Improved performance of parsing and formatting
Date
and
DateTime
type values in text format.
Improved performance and precision of parsing floating point numbers.
Lowered memory usage for
JOIN
in the case when the left and right parts have columns with identical names that are not contained in
USING
.
Improved performance of aggregate functions
varSamp
,
varPop
,
stddevSamp
,
stddevPop
,
covarSamp
,
covarPop
,
corr
by reducing computational stability. The old functions are available under the names
varSampStable
,
varPopStable
,
stddevSampStable
,
stddevPopStable
,
covarSampStable
,
covarPopStable
,
corrStable
.
Bug Fixes: {#bug-fixes-28}
Fixed data deduplication after running a
DROP
or
DETACH PARTITION
query. In the previous version, dropping a partition and inserting the same data again was not working because inserted blocks were considered duplicates.
Fixed a bug that could lead to incorrect interpretation of the
WHERE
clause for
CREATE MATERIALIZED VIEW
queries with
POPULATE
.
Fixed a bug in using the
root_path
parameter in the
zookeeper_servers
configuration.
Fixed unexpected results of passing the
Date
argument to
toStartOfDay
.
Fixed the
addMonths
and
subtractMonths
functions and the arithmetic for
INTERVAL n MONTH
in cases when the result has the previous year.
Added missing support for the
UUID
data type for
DISTINCT
,
JOIN
, and
uniq
aggregate functions and external dictionaries (Evgeniy Ivanov). Support for
UUID
is still incomplete.
Fixed
SummingMergeTree
behavior in cases when the rows summed to zero.
Various fixes for the
Kafka
engine (Marek Vavruša).
Fixed incorrect behavior of the
Join
table engine (Amos Bird).
Fixed incorrect allocator behavior under FreeBSD and OS X.
The
extractAll
function now supports empty matches.
Fixed an error that blocked usage of
libressl
instead of
openssl
.
Fixed the
CREATE TABLE AS SELECT
query from temporary tables.
Fixed non-atomicity of updating the replication queue. This could lead to replicas being out of sync until the server restarts.
Fixed possible overflow in
gcd
,
lcm
and
modulo
(
%
operator) (Maks Skorokhod).
-preprocessed
files are now created after changing
umask
(
umask
can be changed in the config).
Fixed a bug in the background check of parts (
MergeTreePartChecker
) when using a custom partition key.
Fixed parsing of tuples (values of the
Tuple
data type) in text formats.
Improved error messages about incompatible types passed to
multiIf
,
array
and some other functions.
Redesigned support for
Nullable
types. Fixed bugs that may lead to a server crash. Fixed almost all other bugs related to
NULL
support: incorrect type conversions in INSERT SELECT, insufficient support for Nullable in HAVING and PREWHERE,
join_use_nulls
mode, Nullable types as arguments of
OR
operator, etc. | {"source_file": "2018.md"} | [
-0.030794309452176094,
-0.005842804443091154,
0.05281049758195877,
0.021596940234303474,
-0.00803949125111103,
-0.03104567900300026,
0.0011921939440071583,
0.05971607565879822,
-0.015989841893315315,
0.010359042324125767,
0.025154003873467445,
-0.011233669705688953,
-0.0005526722525246441,
... |
7555c764-dee6-4949-8bcc-c0f83246d3b3 | Fixed various bugs related to internal semantics of data types. Examples: unnecessary summing of
Enum
type fields in
SummingMergeTree
; alignment of
Enum
types in
Pretty
formats, etc.
Stricter checks for allowed combinations of composite columns.
Fixed the overflow when specifying a very large parameter for the
FixedString
data type.
Fixed a bug in the
topK
aggregate function in a generic case.
Added the missing check for equality of array sizes in arguments of n-ary variants of aggregate functions with an
-Array
combinator.
Fixed a bug in
--pager
for
clickhouse-client
(author: ks1322).
Fixed the precision of the
exp10
function.
Fixed the behavior of the
visitParamExtract
function for better compliance with documentation.
Fixed the crash when incorrect data types are specified.
Fixed the behavior of
DISTINCT
in the case when all columns are constants.
Fixed query formatting in the case of using the
tupleElement
function with a complex constant expression as the tuple element index.
Fixed a bug in
Dictionary
tables for
range_hashed
dictionaries.
Fixed a bug that leads to excessive rows in the result of
FULL
and
RIGHT JOIN
(Amos Bird).
Fixed a server crash when creating and removing temporary files in
config.d
directories during config reload.
Fixed the
SYSTEM DROP DNS CACHE
query: the cache was flushed but addresses of cluster nodes were not updated.
Fixed the behavior of
MATERIALIZED VIEW
after executing
DETACH TABLE
for the table under the view (Marek Vavruša).
Build Improvements: {#build-improvements-4}
The
pbuilder
tool is used for builds. The build process is almost completely independent of the build host environment.
A single build is used for different OS versions. Packages and binaries have been made compatible with a wide range of Linux systems.
Added the
clickhouse-test
package. It can be used to run functional tests.
The source tarball can now be published to the repository. It can be used to reproduce the build without using GitHub.
Added limited integration with Travis CI. Due to limits on build time in Travis, only the debug build is tested and a limited subset of tests are run.
Added support for
Cap'n'Proto
in the default build.
Changed the format of documentation sources from
Restricted Text
to
Markdown
.
Added support for
systemd
(Vladimir Smirnov). It is disabled by default due to incompatibility with some OS images and can be enabled manually.
For dynamic code generation,
clang
and
lld
are embedded into the
clickhouse
binary. They can also be invoked as
clickhouse clang
and
clickhouse lld
.
Removed usage of GNU extensions from the code. Enabled the
-Wextra
option. When building with
clang
the default is
libc++
instead of
libstdc++
.
Extracted
clickhouse_parsers
and
clickhouse_common_io
libraries to speed up builds of various tools. | {"source_file": "2018.md"} | [
-0.0245536919683218,
-0.004279244691133499,
0.044533416628837585,
-0.01497249398380518,
-0.061037562787532806,
-0.06967177242040634,
-0.0771181508898735,
-0.0017377006588503718,
-0.047158047556877136,
0.03481362760066986,
-0.0033057592809200287,
-0.002477576257660985,
0.005121167283505201,
... |
b7d73b6f-858b-4c21-8d92-a7909043a53f | Extracted
clickhouse_parsers
and
clickhouse_common_io
libraries to speed up builds of various tools.
Backward Incompatible Changes: {#backward-incompatible-changes-11}
The format for marks in
Log
type tables that contain
Nullable
columns was changed in a backward incompatible way. If you have these tables, you should convert them to the
TinyLog
type before starting up the new server version. To do this, replace
ENGINE = Log
with
ENGINE = TinyLog
in the corresponding
.sql
file in the
metadata
directory. If your table does not have
Nullable
columns or if the type of your table is not
Log
, then you do not need to do anything.
Removed the
experimental_allow_extended_storage_definition_syntax
setting. Now this feature is enabled by default.
The
runningIncome
function was renamed to
runningDifferenceStartingWithFirstvalue
to avoid confusion.
Removed the
FROM ARRAY JOIN arr
syntax when ARRAY JOIN is specified directly after FROM with no table (Amos Bird).
Removed the
BlockTabSeparated
format that was used solely for demonstration purposes.
Changed the state format for aggregate functions
varSamp
,
varPop
,
stddevSamp
,
stddevPop
,
covarSamp
,
covarPop
,
corr
. If you have stored states of these aggregate functions in tables (using the
AggregateFunction
data type or materialized views with corresponding states), please write to feedback@clickhouse.com.
In previous server versions there was an undocumented feature: if an aggregate function depends on parameters, you can still specify it without parameters in the AggregateFunction data type. Example:
AggregateFunction(quantiles, UInt64)
instead of
AggregateFunction(quantiles(0.5, 0.9), UInt64)
. This feature was lost. Although it was undocumented, we plan to support it again in future releases.
Enum data types cannot be used in min/max aggregate functions. This ability will be returned in the next release.
Please Note When Upgrading: {#please-note-when-upgrading}
When doing a rolling update on a cluster, at the point when some of the replicas are running the old version of ClickHouse and some are running the new version, replication is temporarily stopped and the message
unknown parameter 'shard'
appears in the log. Replication will continue after all replicas of the cluster are updated.
If different versions of ClickHouse are running on the cluster servers, it is possible that distributed queries using the following functions will have incorrect results:
varSamp
,
varPop
,
stddevSamp
,
stddevPop
,
covarSamp
,
covarPop
,
corr
. You should update all cluster nodes.
Changelog for 2017
{#changelog-for-2017} | {"source_file": "2018.md"} | [
0.08451944589614868,
-0.0705794170498848,
-0.00483959075063467,
0.029273631051182747,
-0.009288247674703598,
-0.06010599806904793,
-0.018603960052132607,
-0.007104703225195408,
-0.08701185882091522,
0.058554090559482574,
0.04288801550865173,
-0.03073093108832836,
0.004220983013510704,
0.00... |
309a8de2-dec6-43ac-a317-36ee36731fc4 | title: 'chDB for Bun'
sidebar_label: 'Bun'
slug: /chdb/install/bun
description: 'How to install and use chDB with Bun runtime'
keywords: ['chdb', 'bun', 'javascript', 'typescript', 'embedded', 'clickhouse', 'sql', 'olap']
doc_type: 'guide'
chDB for Bun
chDB-bun provides experimental FFI (Foreign Function Interface) bindings for chDB, enabling you to run ClickHouse queries directly in your Bun applications with zero external dependencies.
Installation {#installation}
Step 1: Install system dependencies {#install-system-dependencies}
First, install the required system dependencies:
Install libchdb {#install-libchdb}
bash
curl -sL https://lib.chdb.io | bash
Install build tools {#install-build-tools}
You'll need either
gcc
or
clang
installed on your system:
Step 2: Install chDB-bun {#install-chdb-bun}
```bash
Install from the GitHub repository
bun add github:chdb-io/chdb-bun
Or clone and build locally
git clone https://github.com/chdb-io/chdb-bun.git
cd chdb-bun
bun install
bun run build
```
Usage {#usage}
chDB-bun supports two query modes: ephemeral queries for one-time operations and persistent sessions for maintaining database state.
Ephemeral queries {#ephemeral-queries}
For simple, one-off queries that don't require persistent state:
```typescript
import { query } from 'chdb-bun';
// Basic query
const result = query("SELECT version()", "CSV");
console.log(result); // "23.10.1.1"
// Query with different output formats
const jsonResult = query("SELECT 1 as id, 'Hello' as message", "JSON");
console.log(jsonResult);
// Query with calculations
const mathResult = query("SELECT 2 + 2 as sum, pi() as pi_value", "Pretty");
console.log(mathResult);
// Query system information
const systemInfo = query("SELECT * FROM system.functions LIMIT 5", "CSV");
console.log(systemInfo);
```
Persistent sessions {#persistent-sessions}
For complex operations that require maintaining state across queries:
```typescript
import { Session } from 'chdb-bun';
// Create a session with persistent storage
const sess = new Session('./chdb-bun-tmp');
try {
// Create a database and table
sess.query(
CREATE DATABASE IF NOT EXISTS mydb;
CREATE TABLE IF NOT EXISTS mydb.users (
id UInt32,
name String,
email String
) ENGINE = MergeTree() ORDER BY id
, "CSV");
// Insert data
sess.query(`
INSERT INTO mydb.users VALUES
(1, 'Alice', 'alice@example.com'),
(2, 'Bob', 'bob@example.com'),
(3, 'Charlie', 'charlie@example.com')
`, "CSV");
// Query the data
const users = sess.query("SELECT * FROM mydb.users ORDER BY id", "JSON");
console.log("Users:", users);
// Create and use custom functions
sess.query("CREATE FUNCTION IF NOT EXISTS hello AS () -> 'Hello chDB'", "CSV");
const greeting = sess.query("SELECT hello() as message", "Pretty");
console.log(greeting); | {"source_file": "bun.md"} | [
0.05846887826919556,
-0.0805511549115181,
-0.023839682340621948,
0.019722679629921913,
-0.03697221353650093,
0.034294694662094116,
-0.0006660296348854899,
0.06813792884349823,
-0.0781620442867279,
0.004971688613295555,
-0.029287779703736305,
-0.057900357991456985,
-0.0005861989338882267,
-... |
fc817f42-75c9-4539-86b7-3f0a505c068a | // Aggregate queries
const stats = sess.query(`
SELECT
COUNT(*) as total_users,
MAX(id) as max_id,
MIN(id) as min_id
FROM mydb.users
`, "JSON");
console.log("Statistics:", stats);
} finally {
// Always cleanup the session to free resources
sess.cleanup(); // This deletes the database files
}
``` | {"source_file": "bun.md"} | [
0.023453248664736748,
0.021530020982027054,
-0.032113559544086456,
0.09698992967605591,
-0.05433112010359764,
-0.026292666792869568,
0.0739874467253685,
0.10077885538339615,
0.02674059383571148,
-0.008037598803639412,
-0.014820707030594349,
0.021433696150779724,
0.051948267966508865,
-0.02... |
251ac3f4-c3d0-4a4e-a9ea-12bec3164711 | title: 'chDB for Go'
sidebar_label: 'Go'
slug: /chdb/install/go
description: 'How to install and use chDB with Go'
keywords: ['chdb', 'go', 'golang', 'embedded', 'clickhouse', 'sql', 'olap']
doc_type: 'guide'
chDB for Go
chDB-go provides Go bindings for chDB, enabling you to run ClickHouse queries directly in your Go applications with zero external dependencies.
Installation {#installation}
Step 1: Install libchdb {#install-libchdb}
First, install the chDB library:
bash
curl -sL https://lib.chdb.io | bash
Step 2: Install chdb-go {#install-chdb-go}
Install the Go package:
bash
go install github.com/chdb-io/chdb-go@latest
Or add it to your
go.mod
:
bash
go get github.com/chdb-io/chdb-go
Usage {#usage}
Command line interface {#cli}
chDB-go includes a CLI for quick queries:
```bash
Simple query
./chdb-go "SELECT 123"
Interactive mode
./chdb-go
Interactive mode with persistent storage
./chdb-go --path /tmp/chdb
```
Go Library - quick start {#quick-start}
Stateless queries {#stateless-queries}
For simple, one-off queries:
```go
package main
import (
"fmt"
"github.com/chdb-io/chdb-go"
)
func main() {
// Execute a simple query
result, err := chdb.Query("SELECT version()", "CSV")
if err != nil {
panic(err)
}
fmt.Println(result)
}
```
Stateful queries with session {#stateful-queries}
For complex queries with persistent state:
```go
package main
import (
"fmt"
"github.com/chdb-io/chdb-go"
)
func main() {
// Create a session with persistent storage
session, err := chdb.NewSession("/tmp/chdb-data")
if err != nil {
panic(err)
}
defer session.Cleanup()
// Create database and table
_, err = session.Query(`
CREATE DATABASE IF NOT EXISTS testdb;
CREATE TABLE IF NOT EXISTS testdb.test_table (
id UInt32,
name String
) ENGINE = MergeTree() ORDER BY id
`, "")
if err != nil {
panic(err)
}
// Insert data
_, err = session.Query(`
INSERT INTO testdb.test_table VALUES
(1, 'Alice'), (2, 'Bob'), (3, 'Charlie')
`, "")
if err != nil {
panic(err)
}
// Query data
result, err := session.Query("SELECT * FROM testdb.test_table ORDER BY id", "Pretty")
if err != nil {
panic(err)
}
fmt.Println(result)
}
```
SQL driver interface {#sql-driver}
chDB-go implements Go's
database/sql
interface:
```go
package main
import (
"database/sql"
"fmt"
_ "github.com/chdb-io/chdb-go/driver"
)
func main() {
// Open database connection
db, err := sql.Open("chdb", "")
if err != nil {
panic(err)
}
defer db.Close()
// Query with standard database/sql interface
rows, err := db.Query("SELECT COUNT(*) FROM url('https://datasets.clickhouse.com/hits/hits.parquet')")
if err != nil {
panic(err)
}
defer rows.Close() | {"source_file": "go.md"} | [
0.07370011508464813,
-0.03148926421999931,
-0.059890516102313995,
-0.007360768970102072,
-0.08642612397670746,
0.0435224287211895,
0.02611537091434002,
0.05092239752411842,
-0.03869638592004776,
-0.04773851856589317,
0.018297994509339333,
-0.025517698377370834,
0.03428792953491211,
0.01233... |
1a5e52c5-2dd8-429b-b283-2dcf643365ea | for rows.Next() {
var count int
err := rows.Scan(&count)
if err != nil {
panic(err)
}
fmt.Printf("Count: %d\n", count)
}
}
```
Query streaming for large datasets {#query-streaming}
For processing large datasets that don't fit in memory, use streaming queries:
```go
package main
import (
"fmt"
"log"
"github.com/chdb-io/chdb-go/chdb"
)
func main() {
// Create a session for streaming queries
session, err := chdb.NewSession("/tmp/chdb-stream")
if err != nil {
log.Fatal(err)
}
defer session.Cleanup()
// Execute a streaming query for large dataset
streamResult, err := session.QueryStreaming(
"SELECT number, number * 2 as double FROM system.numbers LIMIT 1000000",
"CSV",
)
if err != nil {
log.Fatal(err)
}
defer streamResult.Free()
rowCount := 0
// Process data in chunks
for {
chunk := streamResult.GetNext()
if chunk == nil {
// No more data
break
}
// Check for streaming errors
if err := streamResult.Error(); err != nil {
log.Printf("Streaming error: %v", err)
break
}
rowsRead := chunk.RowsRead()
// You can process the chunk data here
// For example, write to file, send over network, etc.
fmt.Printf("Processed chunk with %d rows\n", rowsRead)
rowCount += int(rowsRead)
if rowCount%100000 == 0 {
fmt.Printf("Processed %d rows so far...\n", rowCount)
}
}
fmt.Printf("Total rows processed: %d\n", rowCount)
}
```
Benefits of query streaming:
-
Memory efficient
- Process large datasets without loading everything into memory
-
Real-time processing
- Start processing data as soon as first chunk arrives
-
Cancellation support
- Can cancel long-running queries with
Cancel()
-
Error handling
- Check for errors during streaming with
Error()
API documentation {#api-documentation}
chDB-go provides both high-level and low-level APIs:
High-Level API Documentation
- Recommended for most use cases
Low-Level API Documentation
- For advanced use cases requiring fine-grained control
System requirements {#requirements}
Go 1.21 or later
Compatible with Linux, macOS | {"source_file": "go.md"} | [
0.034076593816280365,
0.007089779246598482,
-0.09442980587482452,
0.01899361051619053,
-0.011619765311479568,
-0.032639335840940475,
0.058855436742305756,
0.05122239515185356,
-0.00394437275826931,
-0.0013929161941632628,
-0.02211756631731987,
-0.009382525458931923,
-0.0017626514891162515,
... |
fdfac210-615c-4551-9c74-48c7e4939af9 | title: 'Installing chDB for Python'
sidebar_label: 'Python'
slug: /chdb/install/python
description: 'How to install chDB for Python'
keywords: ['chdb', 'embedded', 'clickhouse-lite', 'python', 'install']
doc_type: 'guide'
Requirements {#requirements}
Python 3.8+
Supported platforms: macOS and Linux (x86_64 and ARM64)
Installation {#install}
bash
pip install chdb
Usage {#usage}
Command line interface {#command-line-interface}
Run SQL queries directly from the command line:
```bash
Basic query
python3 -m chdb "SELECT 1, 'abc'" Pretty
Query with formatting
python3 -m chdb "SELECT version()" JSON
```
Basic python usage {#basic-python-usage}
```python
import chdb
Simple query
result = chdb.query("SELECT 1 as id, 'Hello World' as message", "CSV")
print(result)
Get query statistics
print(f"Rows read: {result.rows_read()}")
print(f"Bytes read: {result.bytes_read()}")
print(f"Execution time: {result.elapsed()} seconds")
```
Connection-based API (recommended) {#connection-based-api}
For better resource management and performance:
```python
import chdb
Create connection (in-memory by default)
conn = chdb.connect(":memory:")
Or use file-based: conn = chdb.connect("mydata.db")
Create cursor for query execution
cur = conn.cursor()
Execute queries
cur.execute("SELECT number, toString(number) as str FROM system.numbers LIMIT 3")
Fetch results in different ways
print(cur.fetchone()) # Single row: (0, '0')
print(cur.fetchmany(2)) # Multiple rows: ((1, '1'), (2, '2'))
Get metadata
print(cur.column_names()) # ['number', 'str']
print(cur.column_types()) # ['UInt64', 'String']
Use cursor as iterator
for row in cur:
print(row)
Always close resources
cur.close()
conn.close()
```
Data input methods {#data-input}
File-based data sources {#file-based-data-sources}
chDB supports 70+ data formats for direct file querying:
```python
import chdb
Prepare your data
...
Query Parquet files
result = chdb.query("""
SELECT customer_id, sum(amount) as total
FROM file('sales.parquet', Parquet)
GROUP BY customer_id
ORDER BY total DESC
LIMIT 10
""", 'JSONEachRow')
Query CSV with headers
result = chdb.query("""
SELECT * FROM file('data.csv', CSVWithNames)
WHERE column1 > 100
""", 'DataFrame')
Multiple file formats
result = chdb.query("""
SELECT * FROM file('logs*.jsonl', JSONEachRow)
WHERE timestamp > '2024-01-01'
""", 'Pretty')
```
Output format examples {#output-format-examples}
```python
DataFrame for analysis
df = chdb.query('SELECT * FROM system.numbers LIMIT 5', 'DataFrame')
print(type(df)) #
Arrow Table for interoperability
arrow_table = chdb.query('SELECT * FROM system.numbers LIMIT 5', 'ArrowTable')
print(type(arrow_table)) #
JSON for APIs
json_result = chdb.query('SELECT version()', 'JSON')
print(json_result)
Pretty format for debugging | {"source_file": "python.md"} | [
0.05387163162231445,
0.015256650745868683,
-0.014412716962397099,
0.07189347594976425,
-0.08322107791900635,
-0.005507079418748617,
0.05805840343236923,
0.04440600797533989,
-0.04514176398515701,
-0.02464911714196205,
0.015431535430252552,
-0.0727207288146019,
0.11261337995529175,
-0.05250... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.