status
stringclasses
1 value
repo_name
stringclasses
13 values
repo_url
stringclasses
13 values
issue_id
int64
1
104k
updated_files
stringlengths
11
1.76k
title
stringlengths
4
369
body
stringlengths
0
254k
issue_url
stringlengths
38
55
pull_url
stringlengths
38
53
before_fix_sha
stringlengths
40
40
after_fix_sha
stringlengths
40
40
report_datetime
timestamp[ns, tz=UTC]
language
stringclasses
5 values
commit_datetime
timestamp[us, tz=UTC]
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,785
["src/Storages/StorageNull.h", "tests/queries/0_stateless/02902_select_subcolumns_from_engine_null.reference", "tests/queries/0_stateless/02902_select_subcolumns_from_engine_null.sql"]
Dot syntax tuple element with Null engine
**Describe what's wrong** Accessing Tuple elements using the dot syntax throws 'Missing columns' **Does it reproduce on recent release?** Tried 23.8 LTS **How to reproduce** ```sql CREATE TABLE memory (t Tuple(n Int64)) ENGINE = Memory SELECT tupleElement(t, 'n') FROM memory SELECT t.n FROM memory ...
https://github.com/ClickHouse/ClickHouse/issues/55785
https://github.com/ClickHouse/ClickHouse/pull/55912
04b82d6463b824e82642474fcc4a7cada88f6cb1
cb63b07e89270480092e9e5e290fc7f8f0fe0eaa
2023-10-18T13:15:01Z
c++
2023-10-24T12:03:46Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,651
["src/Interpreters/InterpreterAlterQuery.cpp", "tests/queries/0_stateless/02911_add_index_and_materialize_index.reference", "tests/queries/0_stateless/02911_add_index_and_materialize_index.sql"]
Cannot materialize index in the same ALTER query that creates it.
**Use case** ``` milovidov-desktop :) ALTER TABLE index_test ADD INDEX i_x (mortonDecode(2, z).1) TYPE minmax, ADD INDEX i_y (mortonDecode(2, z).2) TYPE minmax, MATERIALIZE INDEX i_x, MATERIALIZE INDEX i_y ALTER TABLE index_test ADD INDEX i_x mortonDecode(2, z).1 TYPE minmax GRANULARITY 1, ADD INDEX i_...
https://github.com/ClickHouse/ClickHouse/issues/55651
https://github.com/ClickHouse/ClickHouse/pull/56331
435350772471b0e05df193663eab52ac885043f2
2efa5ab172b2ffe51617d3944a8e28c058810776
2023-10-16T04:48:16Z
c++
2023-11-18T16:23:11Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,650
["src/Storages/IndicesDescription.cpp", "src/Storages/ReplaceAliasByExpressionVisitor.cpp", "src/Storages/ReplaceAliasByExpressionVisitor.h", "tests/queries/0_stateless/02911_support_alias_column_in_indices.reference", "tests/queries/0_stateless/02911_support_alias_column_in_indices.sql"]
Cannot use ALIAS columns in indices
This does not work: ``` CREATE TABLE test ( x UInt32, y ALIAS x + 1, INDEX i_y (y) TYPE minmax ) ENGINE = MergeTree ORDER BY x; ``` This does: ``` CREATE TABLE test ( x UInt32, y ALIAS x + 1, INDEX i_y (x + 1) TYPE minmax ) ENGINE = MergeTree ORDER BY x; ```
https://github.com/ClickHouse/ClickHouse/issues/55650
https://github.com/ClickHouse/ClickHouse/pull/57546
3bd3e2e749eeb678cb158f648d408e1637c7815a
b85214ca1ab1a2fb33bb4403232043e9dabcb70a
2023-10-16T04:37:34Z
c++
2023-12-07T00:22:03Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,643
["tests/queries/0_stateless/02900_decimal_sort_with_multiple_columns.reference", "tests/queries/0_stateless/02900_decimal_sort_with_multiple_columns.sql"]
23.9 returns incorrect results depending on ORDER BY key (also affects projections)
**Describe what's wrong** We see a regression in 23.9 where, depending on a table's ORDER BY and filters, ClickHouse returns incorrect results. We see correct results in 23.8. I couldn't find a way to manually generate a data set that exhibits this issue, so instead I have uploaded an example data set to S3. Anyway,...
https://github.com/ClickHouse/ClickHouse/issues/55643
https://github.com/ClickHouse/ClickHouse/pull/55662
71dfdf5bfe85373a1d7fa814aceb276df5b7cbe6
ffcf1f02cb44605e909742f381ad63d721ca1fbe
2023-10-15T10:06:59Z
c++
2023-10-26T10:36:46Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,562
["src/Core/Settings.h", "tests/queries/0_stateless/02896_optimize_array_exists_to_has_with_date.reference", "tests/queries/0_stateless/02896_optimize_array_exists_to_has_with_date.sql"]
Date-String comparison doesn't work for lambda functions on 23.3.8.22
**Describe the issue** On build 22.8.21.38, comparison between String/Date works fine for lambda function(for example in arrayExists), the same behavior results in an error on build 23.3.8.22 **How to reproduce** on 22.8.21.38: ``` SELECT arrayExists(date -> (date = '2022-07-31'), [toDate('2022-07-31')])...
https://github.com/ClickHouse/ClickHouse/issues/55562
https://github.com/ClickHouse/ClickHouse/pull/55609
13ee46ed74fa9b116e522bb7da07ded4091ac001
17616ca3256c1b602980fab6277faf829b460cbf
2023-10-12T15:24:48Z
c++
2023-10-13T22:28:45Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,501
["src/Storages/MergeTree/MergeTreeData.cpp", "tests/queries/0_stateless/02895_forbid_create_inverted_index.reference", "tests/queries/0_stateless/02895_forbid_create_inverted_index.sql"]
Disallow `ADD INDEX TYPE inverted` unless `allow_experimental_inverted_index = 1`
**Describe the unexpected behaviour** `ALTER TABLE ADD INDEX TYPE inverted` should require `allow_experimental_inverted_index = 1`. **How to reproduce** * Which ClickHouse server version to use - 23.8, 23.3 Creating a table with `INDEX TYPE inverted` is not allowed unless we set `allow_experimental_inverted_in...
https://github.com/ClickHouse/ClickHouse/issues/55501
https://github.com/ClickHouse/ClickHouse/pull/55529
1905c44a334397eaa94b9eba2013ef72d4f87a48
332a0cfa24d6ca76814dde17a09fa96f58be0003
2023-10-11T13:43:58Z
c++
2023-10-12T12:40:58Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,500
["docker/test/base/setup_export_logs.sh"]
Many `Structure does not match` in `stateless_tests_flaky_check (asan)`
right now we have lots of `Warning` log `Structure does not match` in the `stateless_tests_flaky_check` . For example https://s3.amazonaws.com/clickhouse-test-reports/55467/bb204ed0bd08203621d12fe92c17e9385b788a6a/stateless_tests_flaky_check__asan_/run.log , the ratio right now is 0.434%, just lower than 1% in our tras...
https://github.com/ClickHouse/ClickHouse/issues/55500
https://github.com/ClickHouse/ClickHouse/pull/55503
332a0cfa24d6ca76814dde17a09fa96f58be0003
54fb9a836e5c2e4a5bc4a772679d4fd7200d426e
2023-10-11T13:26:48Z
c++
2023-10-12T14:15:00Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,381
["programs/server/dashboard.html"]
Advanced dashboard: if there is only a single chart, don't show the "maximize" and "drag" buttons.
**Use case** https://play.clickhouse.com/dashboard#eyJob3N0IjoiaHR0cHM6Ly9wbGF5LmNsaWNraG91c2UuY29tIiwidXNlciI6InBsYXkiLCJxdWVyaWVzIjpbeyJ0aXRsZSI6Intkb21haW59IiwicXVlcnkiOiJTRUxFQ1QgZGF0ZTo6RGF0ZVRpbWU6OklOVCBBUyBkLCByb3VuZCgxZTkgKiBhdmcocG93KHJhbmssIC0wLjc1KSkpIEZST00gY2lzY29fdW1icmVsbGEgV0hFUkUgZG9tYWluID0ge2RvbW...
https://github.com/ClickHouse/ClickHouse/issues/55381
https://github.com/ClickHouse/ClickHouse/pull/55581
17616ca3256c1b602980fab6277faf829b460cbf
8697e78cd86260f5c843675289cc399e02995244
2023-10-09T11:23:07Z
c++
2023-10-14T01:15:31Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,331
["docs/en/operations/settings/settings.md", "src/Core/Settings.h", "src/Interpreters/executeQuery.cpp", "src/Processors/QueryPlan/Optimizations/QueryPlanOptimizationSettings.cpp", "src/Processors/QueryPlan/Optimizations/QueryPlanOptimizationSettings.h", "tests/queries/0_stateless/02906_force_optimize_projection_name.re...
A setting `force_optimize_projection_name`
**Use case** Similar to `force_optimize_projection`. **Describe the solution you'd like** If it is set to a non-empty string, check that this projection is used in the query at least once. **Additional context** There could be ambiguity with queries containing multiple tables, possibly with identical pro...
https://github.com/ClickHouse/ClickHouse/issues/55331
https://github.com/ClickHouse/ClickHouse/pull/56134
b0f6b18f6ec1be26d9467aa6431adc72a61f2882
4deaf7cefbf17141af18f5f82ffe7ca3572c6f14
2023-10-08T11:58:08Z
c++
2023-11-01T12:12:10Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,308
["docs/en/sql-reference/functions/date-time-functions.md", "src/DataTypes/IDataType.h", "src/Functions/DateTimeTransforms.h", "src/Functions/fromDaysSinceYearZero.cpp", "src/Functions/makeDate.cpp", "tests/fuzz/all.dict", "tests/fuzz/dictionaries/functions.dict", "tests/queries/0_stateless/02907_fromDaysSinceYearZero.r...
Provide fromDaysSinceYearZero()
#54856 (respectively #54796) added function [toDaysSinceYearZero()](https://clickhouse.com/docs/en/sql-reference/functions/date-time-functions#todayssinceyearzero). The main reason to add this function was to have something similar as MySQL's [TO_DAYS()](https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.h...
https://github.com/ClickHouse/ClickHouse/issues/55308
https://github.com/ClickHouse/ClickHouse/pull/56088
35d785592b1447cf17cf598024e3a3cff210dbf9
480e284db1a36f0208fb51ef24eb7897d626c926
2023-10-07T17:08:10Z
c++
2023-11-03T23:17:04Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,279
["src/Processors/Transforms/CreatingSetsTransform.cpp"]
data-race in CreatingSetsTransform
``` ==184==WARNING: MemorySanitizer: use-of-uninitialized-value #0 0x555dd9f6b0ea in LZ4_putIndexOnHash build_docker/./contrib/lz4/lib/lz4.c:822:88 #1 0x555dd9f6b0ea in LZ4_compress_generic_validated build_docker/./contrib/lz4/lib/lz4.c:1232:17 #2 0x555dd9f6b0ea in LZ4_compress_generic build_docker/./...
https://github.com/ClickHouse/ClickHouse/issues/55279
https://github.com/ClickHouse/ClickHouse/pull/55786
5d1cc1425a0ff1013fb866c637fe292e7e4773bc
4724c84dac978c32457ddc2a9e4b44f8a5f6124f
2023-10-06T17:42:12Z
c++
2023-10-20T08:02:10Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,273
["docs/en/operations/settings/settings.md", "docs/en/operations/system-tables/columns.md", "docs/en/sql-reference/statements/show.md", "src/Core/Settings.h", "src/Storages/System/StorageSystemColumns.cpp", "tests/queries/0_stateless/02775_show_columns_mysql_compatibility.reference", "tests/queries/0_stateless/02775_sho...
use_mysql_types_in_show_columns=1 has no effect over CH protocol
(you don't have to strictly follow this form) **Describe the unexpected behaviour** `use_mysql_types_in_show_columns=1 ` does not show MySQL types for ClickHouse protocol. **How to reproduce** ```sql Dales-MacBook-Pro.local :) SET use_mysql_types_in_show_columns=1; SET use_mysql_types_in_show_columns = 1 ...
https://github.com/ClickHouse/ClickHouse/issues/55273
https://github.com/ClickHouse/ClickHouse/pull/55298
ab9e6f5f6a023ea6ea434aaf18ef52d743d0644a
312fe8e31ddf0f98fd13bda104cd7f29c0c76406
2023-10-06T12:13:37Z
c++
2023-10-07T20:03:24Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,272
["src/Interpreters/LogicalExpressionsOptimizer.cpp", "tests/queries/0_stateless/02893_trash_optimization.reference", "tests/queries/0_stateless/02893_trash_optimization.sql"]
Segmentation fault on query with "Engine=Merge + ALL INNER JOIN + WHERE with OR"
this query: SELECT * FROM merge('system', '^one$') AS one ALL INNER JOIN ( SELECT * FROM system.one ) AS subquery ON one.dummy = subquery.dummy WHERE (one.dummy = 0) OR (one.dummy = 1) produces segmentation fault of ClickHouse proof (latest version): https://fiddle.clickhouse.com/5ca1d3c3-de60-4...
https://github.com/ClickHouse/ClickHouse/issues/55272
https://github.com/ClickHouse/ClickHouse/pull/55353
808b78984f284d8ea7879155306f97ab772936e3
b619d07baf29ce4ae252cb2ada4f1510c68b41b0
2023-10-06T12:07:48Z
c++
2023-10-09T00:42:56Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,225
["src/Disks/ObjectStorages/DiskObjectStorageTransaction.cpp", "src/Storages/StorageReplicatedMergeTree.cpp", "tests/integration/test_replicated_s3_zero_copy_drop_partition/__init__.py", "tests/integration/test_replicated_s3_zero_copy_drop_partition/configs/storage_conf.xml", "tests/integration/test_replicated_s3_zero_c...
Drop detached partition with a S3 disk is not removing the blob files
**Describe what's wrong** Dropping detached parts from a table with a storage on S3 is not removing the files from AWS S3. **Does it reproduce on recent release?** Yes, on the 23.9 **How to reproduce** - Use latest ClickHouse version - Run `CREATE TABLE mytable (...) Engine = ReplicatedOne ... PARTI...
https://github.com/ClickHouse/ClickHouse/issues/55225
https://github.com/ClickHouse/ClickHouse/pull/55309
68ce6b9b00d5e60de0ed0cbb46a068d2b051f921
666c690b4f4356d283b48eed91adb749cdeb9366
2023-10-04T08:30:22Z
c++
2023-10-10T09:48:00Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,183
["docs/en/operations/system-tables/information_schema.md", "src/Storages/System/attachInformationSchemaTables.cpp", "tests/queries/0_stateless/01161_information_schema.reference", "tests/queries/0_stateless/02206_information_schema_show_database.reference"]
`information_schema.columns` lacks field `EXTRA` (MySQL compatibility)
It is specifically required for Tableau _Desktop_ via MySQL, as one of the popular use cases is seamless data import/export between Tableau Desktop and Tableau Online using the same connector (MySQL in this case). **Describe the unexpected behaviour** This generated query: ```sql SELECT TABLE_SCHEMA, ...
https://github.com/ClickHouse/ClickHouse/issues/55183
https://github.com/ClickHouse/ClickHouse/pull/55215
20868f3b656466021f57ccabbe15c1c278ebc826
282200ef50cc8c48dd72c37bf701ef479a0be9fa
2023-09-29T23:30:04Z
c++
2023-10-08T10:21:34Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,182
["docs/en/operations/system-tables/information_schema.md", "src/Storages/System/attachInformationSchemaTables.cpp", "tests/queries/0_stateless/01161_information_schema.reference", "tests/queries/0_stateless/02206_information_schema_show_database.reference"]
`information_schema.tables` lacks field `TABLE_ROWS` (MySQL compatibility)
Required for Tableau Online. Missing columns: 'TABLE_ROWS' while processing query: ```sql SELECT TABLE_ROWS FROM (SELECT database AS table_catalog, database AS table_schema, name ...
https://github.com/ClickHouse/ClickHouse/issues/55182
https://github.com/ClickHouse/ClickHouse/pull/55215
20868f3b656466021f57ccabbe15c1c278ebc826
282200ef50cc8c48dd72c37bf701ef479a0be9fa
2023-09-29T23:19:23Z
c++
2023-10-08T10:21:34Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,181
["cmake/split_debug_symbols.cmake", "docker/packager/binary/build.sh", "programs/CMakeLists.txt", "programs/self-extracting/CMakeLists.txt", "tests/ci/build_check.py"]
Publish the self-contained binary without a debug info
**Use case** Someone on the internet pointed out that it is large: https://twitter.com/eatonphil/status/1707783632566292596 The reason for the size is that we include the debug info to have line numbers in stack traces. Maybe it is not needed - the symbol names will be present anyway. If we will remove the debu...
https://github.com/ClickHouse/ClickHouse/issues/55181
https://github.com/ClickHouse/ClickHouse/pull/56617
0dabdf43b85273c49901ca68320e26bf1537643c
38ca18d8e76b1f8c584759b04cbbe300db65f2b2
2023-09-29T22:34:22Z
c++
2023-11-11T21:18:26Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,174
["src/Storages/MergeTree/MergeTreeData.cpp", "src/Storages/MergeTree/MergeTreeData.h", "src/Storages/MergeTree/MergeTreeSettings.h", "src/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.cpp", "src/Storages/StorageMergeTree.cpp", "tests/integration/test_broken_detached_part_clean_up/__init__.py", "tests/integration/...
Remove the removal of broken detached parts
This is a harmful feature - it has to be removed. If there are broken parts, it requires immediate attention of an engineer. They should never be deleted. I remember this feature was added by one customer because they asked too many times. But the truth is - the introduction of this feature is harmful even for th...
https://github.com/ClickHouse/ClickHouse/issues/55174
https://github.com/ClickHouse/ClickHouse/pull/55184
7b7abd11f40c848fd9dccaa30a419de3ad67314b
de8e068da753ac886eaefee48392728bdaebea8d
2023-09-29T21:11:34Z
c++
2023-09-30T03:10:40Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,106
["src/Storages/MergeTree/KeyCondition.cpp", "tests/queries/0_stateless/02890_partition_prune_in_extra_columns.reference", "tests/queries/0_stateless/02890_partition_prune_in_extra_columns.sql"]
count(*) incorrect value with IN clause
**Describe what's wrong** When querying a datetime64 keyed table it is possible to correctly query a row count with literal value filters on individual fields but when providing the literals within an `IN` clause the output is incorrect. **How to reproduce** * Which ClickHouse server version to use clickhouse-s...
https://github.com/ClickHouse/ClickHouse/issues/55106
https://github.com/ClickHouse/ClickHouse/pull/55172
ad991dc78a94ac5e0992aa072509ac4eae564e5e
db9377fc5989c6e7b3b172f9560b8493b68fe7c2
2023-09-28T16:24:10Z
c++
2023-09-30T01:17:14Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,091
["src/Processors/Sources/ShellCommandSource.cpp"]
udfs let server crash
[iZbp18ncx6mrfr5rpymxoxZ] 2023.09.28 18:23:53.642844 [ 2389513 ] <Fatal> BaseDaemon: ######################################## [iZbp18ncx6mrfr5rpymxoxZ] 2023.09.28 18:23:53.642899 [ 2389513 ] <Fatal> BaseDaemon: (version 23.8.2.7 (official build), build id: 8D11186275018B3F7DD7F6CCF24A69C19328DA7F, git hash: f73c8f37...
https://github.com/ClickHouse/ClickHouse/issues/55091
https://github.com/ClickHouse/ClickHouse/pull/55103
8ae8371260567503e36ba3c461a200a53980dd79
fa54b2142454ecf1bafde8c8f68c67b8c730c95f
2023-09-28T10:28:41Z
c++
2023-10-08T19:36:28Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,078
["src/Functions/FunctionsStringDistance.cpp", "src/Functions/array/arrayJaccardIndex.cpp", "tests/queries/0_stateless/02884_string_distance_function.reference", "tests/queries/0_stateless/02884_string_distance_function.sql"]
`byteJaccardIndex` is slow
**Describe the unexpected behaviour** ``` std::unordered_set<char> haystack_set(haystack, haystack + haystack_size); std::unordered_set<char> needle_set(needle, needle + needle_size); ``` ``` play-eu :) SELECT DISTINCT arrayJoin(tokens(lower(text))) AS word, byteJaccardIndex(word, 'clickhouse'...
https://github.com/ClickHouse/ClickHouse/issues/55078
https://github.com/ClickHouse/ClickHouse/pull/55080
f73eef9ed8cebf2baefb8ac6c14ce0035e5fdf86
383f8c58b60d06fa43110c91fa28f168c5cf0b76
2023-09-28T04:17:43Z
c++
2023-09-28T18:56:53Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,047
["src/DataTypes/DataTypeFunction.h", "src/Functions/IFunction.cpp", "tests/queries/0_stateless/02891_functions_over_sparse_columns.reference", "tests/queries/0_stateless/02891_functions_over_sparse_columns.sql"]
isDefaultAt is not implemented for Function
v.23.8.2.7 I run the same query on the same data, and sometimes it throws an error, and sometimes it works without problems. ` Code: 48. DB::Exception: isDefaultAt is not implemented for Function: while executing 'FUNCTION Capture[Int64](Int64) -> UInt8(toInt64(prev_id) :: 0) -> __lambda Function(Int64 -> UInt8) ...
https://github.com/ClickHouse/ClickHouse/issues/55047
https://github.com/ClickHouse/ClickHouse/pull/55275
781da580ac31e3c901306b43fdce84cb1cb557da
caf3c85b389358750cef37420b204971bdb63459
2023-09-27T07:07:28Z
c++
2023-10-08T13:27:46Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,031
["docs/en/operations/system-tables/information_schema.md", "src/Storages/System/attachInformationSchemaTables.cpp", "tests/queries/0_stateless/01161_information_schema.reference", "tests/queries/0_stateless/01161_information_schema.sql", "tests/queries/0_stateless/02206_information_schema_show_database.reference"]
MySQL compatibility: missing information_schema.tables.data_length field
This is a minor one and does not cause any visible issues, but it still causes an exception when using QuickSight. ```sql SELECT data_length FROM information_schema.TABLES WHERE (table_schema = 'default'); ``` fails with: ``` 2023.09.26 18:07:57.609754 [ 47988 ] {} <Error> MySQLHandler: MySQLHandler: Cannot...
https://github.com/ClickHouse/ClickHouse/issues/55031
https://github.com/ClickHouse/ClickHouse/pull/55037
3a1663a46008c5164e4d3193ec9c14b1c5b63ad2
e9c3032f838dcd20eda22adf04a425f88b862eaf
2023-09-26T16:12:04Z
c++
2023-09-27T12:09:38Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
55,023
["docs/en/engines/table-engines/mergetree-family/mergetree.md", "src/Core/Settings.h", "src/Storages/MergeTree/registerStorageMergeTree.cpp", "tests/queries/0_stateless/02903_empty_order_by_throws_error.reference", "tests/queries/0_stateless/02903_empty_order_by_throws_error.sh", "tests/queries/0_stateless/02904_empty_...
Default ORDER BY key
I found the setting to enable default table engine, but you can only set default engine = MergeTree therefore, one must always write CREATE TABLE db.table **ORDER BY tuple() a**s select .. unless one uses the log engine. I would hope for an option MergeTree ORDER BY tuple() as a default engine, because then the ...
https://github.com/ClickHouse/ClickHouse/issues/55023
https://github.com/ClickHouse/ClickHouse/pull/55899
e2846d4c582b2086694ca56cb7724e92b2cd0e38
9f4f851505febe4b5fcd4fed462cc5e6351f0749
2023-09-26T13:22:55Z
c++
2023-10-24T11:47:23Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,963
["docs/en/sql-reference/data-types/nullable.md", "docs/en/sql-reference/functions/array-functions.md", "src/Functions/array/arrayShingles.cpp", "tests/queries/0_stateless/02891_array_shingles.reference", "tests/queries/0_stateless/02891_array_shingles.sql", "utils/check-style/aspell-ignore/en/aspell-dict.txt"]
`shingles` function for arrays.
**Use case** ``` shingles(['Fotografías','ganadoras','del','World','Press','Photo','Awards','2014','http','t','co','F1iwa8gSWK'], 3) = [['Fotografías','ganadoras','del'], ['ganadoras','del','World'], ['del','World','Press'], ['World','Press','Photo'], ['Press','Photo','Awards'], ['Photo','Award...
https://github.com/ClickHouse/ClickHouse/issues/54963
https://github.com/ClickHouse/ClickHouse/pull/58396
1595dd8a3f0566baecab475fa8f32867b548743e
316669b90f871fd73ff21f966268a98789f068e1
2023-09-24T21:32:03Z
c++
2024-01-18T10:38:56Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,962
["src/TableFunctions/TableFunctionDictionary.cpp", "tests/queries/0_stateless/02916_dictionary_access.reference", "tests/queries/0_stateless/02916_dictionary_access.sh"]
non-granted dictionary can be accessed through table function
## Problem **Describe the unexpected behaviour** A clear and concise description of what works not as it is supposed to. A user with `CREATE TEMPORARY TABLE ON *.*` can read any dictionary. Even those which will raise `ACCESS_DENIED` when accesses through `dictGet` ## Steps to reproduce Clickhouse version `...
https://github.com/ClickHouse/ClickHouse/issues/54962
https://github.com/ClickHouse/ClickHouse/pull/57362
f26e31357d45b21e69f1b1e35d94f924a4ee4e86
252de64af3f73ef6866118e29bc048657c0c6e2a
2023-09-24T21:12:46Z
c++
2023-12-08T13:09:40Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,941
["src/Storages/AlterCommands.cpp", "tests/queries/0_stateless/01710_minmax_count_projection_modify_partition_key.reference", "tests/queries/0_stateless/01710_minmax_count_projection_modify_partition_key.sql"]
Optimization with implicit projections produces logical error if table's partition key was ALTERed by extending its Enum type.
**Describe what's wrong** ``` CREATE TABLE test (type Enum('x'), s String) ENGINE = MergeTree ORDER BY s PARTITION BY type; INSERT INTO test VALUES ('x', 'Hello'); SELECT type, count() FROM test GROUP BY type ORDER BY type; ALTER TABLE test MODIFY COLUMN type Enum('x', 'y'); INSERT INTO test VALUES ('y', 'W...
https://github.com/ClickHouse/ClickHouse/issues/54941
https://github.com/ClickHouse/ClickHouse/pull/54943
2a2655739112036beefdcad22a4d6a3754b68ad7
320e4c47f3c509b1c68bbd4e8e52effe19946a07
2023-09-23T00:14:02Z
c++
2023-09-23T20:11:52Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,902
["src/Storages/StorageReplicatedMergeTree.cpp", "tests/queries/0_stateless/02989_replicated_merge_tree_invalid_metadata_version.reference", "tests/queries/0_stateless/02989_replicated_merge_tree_invalid_metadata_version.sql"]
Metadata on replica is not up to date with common metadata in Zookeeper
```sql alter table test add column x Int32; Received exception from server (version 23.8.2): Code: 517. DB::Exception: Received from localhost:9000. DB::Exception: Metadata on replica is not up to date with common metadata in Zookeeper. It means that this replica still not applied some of previous alters. Pr...
https://github.com/ClickHouse/ClickHouse/issues/54902
https://github.com/ClickHouse/ClickHouse/pull/60078
914b19aadedb56b22881052a42a84db35b32c85e
392081256c7d3d34ca824189370293e4610ee1ef
2023-09-21T18:16:33Z
c++
2024-02-20T18:24:35Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,896
["docs/en/sql-reference/statements/alter/partition.md", "src/Storages/MergeTree/MergeTreeData.cpp", "tests/queries/0_stateless/02888_attach_partition_from_different_tables.reference", "tests/queries/0_stateless/02888_attach_partition_from_different_tables.sql"]
ATTACH PARTITION from source table with different index as destination table throws `Integer divide by zero` error
**Describe the unexpected behaviour** ATTACH PARTITION from source table with different index as destination table throws `Integer divide by zero` error. **How to reproduce** ClickHouse Cloud v23.8.1.41541 ClickHouse 23.8.2.7 ``` create or replace table t1 ( a UInt32, b String, INDEX bf b TYPE tokenbf_...
https://github.com/ClickHouse/ClickHouse/issues/54896
https://github.com/ClickHouse/ClickHouse/pull/55062
8ac88645c8e4ac44abe06dc082027918860d4a33
c911c8daf4bd626315d6b67f35ed7ea0f6c476ce
2023-09-21T15:05:54Z
c++
2023-09-27T19:02:53Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,858
["src/Processors/QueryPlan/PartsSplitter.cpp", "tests/queries/0_stateless/02875_final_invalid_read_ranges_bug.reference", "tests/queries/0_stateless/02875_final_invalid_read_ranges_bug.sql"]
"Cannot read out of marks range" with function in the PK and FINAL clause in query
Data for repro in the attachement: [data.zip](https://github.com/ClickHouse/ClickHouse/files/12677249/data.zip) Schema ``` CREATE TABLE test_table ( `tid` UInt64, `processed_at` DateTime, `created_at` DateTime, `amount` Int64 ) ENGINE = ReplacingMergeTree() PARTITION BY toStartOfQuarte...
https://github.com/ClickHouse/ClickHouse/issues/54858
https://github.com/ClickHouse/ClickHouse/pull/54934
36478f66fd874eb56cfaddce86eb1b8872ae1c06
0e506b618e9146acd69cab956f3039994fb291dd
2023-09-20T20:27:15Z
c++
2023-09-28T12:12:19Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,796
["docs/en/sql-reference/functions/date-time-functions.md", "src/DataTypes/IDataType.h", "src/Functions/DateTimeTransforms.h", "src/Functions/FunctionDateOrDateTimeToSomething.h", "src/Functions/IFunctionDateOrDateTime.h", "src/Functions/toDaysSinceYearZero.cpp", "tests/queries/0_stateless/02874_toDaysSinceYearZero.refe...
MySQL compatibility: Illegal type of argument #1 'date' of function toDaysSinceYearZero
Required for Tableau Online. Sample rendered query: ```sql SELECT SUM(`cell_towers`.`mcc`) AS `sum_mcc_ok`, ADDDATE(FROM_DAYS(TO_DAYS(`cell_towers`.`updated`) - (DAYOFWEEK(`cell_towers`.`updated`) - 1)), INTERVAL 0 SECOND) AS `twk_updated_ok` FROM `cell_towers` GROUP BY 2; ``` fa...
https://github.com/ClickHouse/ClickHouse/issues/54796
https://github.com/ClickHouse/ClickHouse/pull/54856
cf4072317961a40db777c3e3aaf5c04183165ebf
ec09fd124dda510081436221bb3b219d1acb5643
2023-09-19T14:31:48Z
c++
2023-09-22T18:39:54Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,795
["docs/en/sql-reference/functions/date-time-functions.md", "src/Functions/FunctionBinaryArithmetic.h", "src/Functions/FunctionsOpDate.cpp", "tests/queries/0_stateless/01923_ttl_with_modify_column.sql", "tests/queries/0_stateless/02834_add_sub_date_functions.reference", "tests/queries/0_stateless/02834_add_sub_date_func...
MySQL Compatibility: Illegal type String of 1st argument of function addDate
Required for Tableau Online. Sample rendered query: ```sql SELECT ADDDATE( DATE_FORMAT( `cell_towers`.`updated`, '%Y-01-01 00:00:00' ), INTERVAL 0 SECOND ) AS `tyr_updated_ok` FROM `cell_towers` GROUP BY 1 ``` fails with ``` Code: 43. DB::Exception: Illegal type String of 1st argument of functio...
https://github.com/ClickHouse/ClickHouse/issues/54795
https://github.com/ClickHouse/ClickHouse/pull/55960
b93bf06e86821f3cc31e79848ad36623b3d82c8a
13b2946ae2c126b5b27e301e95470b98db350f13
2023-09-19T14:26:21Z
c++
2023-10-31T14:37:34Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,746
["docs/en/sql-reference/functions/date-time-functions.md", "src/Common/DateLUTImpl.h", "src/Functions/DateTimeTransforms.cpp", "src/Functions/DateTimeTransforms.h", "src/Functions/toMillisecond.cpp", "tests/queries/0_stateless/02998_to_milliseconds.reference", "tests/queries/0_stateless/02998_to_milliseconds.sql", "uti...
Implement toMillisecond()
Implement a function `toMillisecond()`, similar to existing function `toSecond()` ([docs](https://clickhouse.com/docs/en/sql-reference/functions/date-time-functions#tosecond)).
https://github.com/ClickHouse/ClickHouse/issues/54746
https://github.com/ClickHouse/ClickHouse/pull/60281
ed215a293afd78a635a71520b21c99a067296b17
44c3de1a0b2fcfb212d21db8d94178fc6b0bb65d
2023-09-18T12:09:50Z
c++
2024-03-01T10:34:20Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,734
["docs/en/sql-reference/functions/arithmetic-functions.md", "src/Functions/byteSwap.cpp", "tests/queries/0_stateless/02887_byteswap.reference", "tests/queries/0_stateless/02887_byteswap.sql", "utils/check-style/aspell-ignore/en/aspell-dict.txt"]
Function `byteSwap`
**Use case** If a number was in big-endian instead of little-endian, or vice versa, convert it back. Example: Instead of writing: ``` SELECT toIPv4(reinterpretAsUInt32(reverse(reinterpretAsFixedString(3351772109)))) ``` I want to write: ``` SELECT toIPv4(byteSwap(3351772109)) ``` **Describe the sol...
https://github.com/ClickHouse/ClickHouse/issues/54734
https://github.com/ClickHouse/ClickHouse/pull/55211
c814d8b39dd9d0fc18183ecfa15c07dd436c1ffd
d02a718076071952fe4ecedc00a5f91157193b5e
2023-09-17T19:27:32Z
c++
2023-10-13T14:54:28Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,656
["src/Access/SettingsProfilesCache.cpp", "src/Access/SettingsProfilesCache.h"]
LOGICAL_ERROR from SettingsProfilesInfo::getProfileNames()
An undisclosed customer recently ran into this `LOGICAL_ERROR`: ``` Code: 49. DB::Exception: Unable to get profile name for 834b80a5-c274-88dd-9e7b-8e83274cbf85. (LOGICAL_ERROR), Stack trace (when copying this message, always include the lines below): 0. DB::Exception::Exception(DB::Exception::MessageMasked&&, i...
https://github.com/ClickHouse/ClickHouse/issues/54656
https://github.com/ClickHouse/ClickHouse/pull/57263
e468dbe2cb3fe0c6abd833d053a665f349c2782a
7c867a09afef36c503ac046d5e8fd0ae8b6b4e21
2023-09-14T21:44:05Z
c++
2024-01-05T12:43:54Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,486
["src/Common/OptimizedRegularExpression.cpp", "tests/queries/0_stateless/02886_binary_like.reference", "tests/queries/0_stateless/02886_binary_like.sql"]
Some LIKE expressions don't work
**Use case** ``` milovidov-desktop :) SELECT 'test' LIKE '\xFF\xFE%' SELECT 'test' LIKE '��%' Query id: 1de419f8-e9d8-4da1-8544-21ed91b8b088 0 rows in set. Elapsed: 0.030 sec. Received exception: Code: 427. DB::Exception: OptimizedRegularExpression: cannot compile re2: ^��, error: invalid UTF-8. Loo...
https://github.com/ClickHouse/ClickHouse/issues/54486
https://github.com/ClickHouse/ClickHouse/pull/54942
4032fc17bb31a83a1ec70dd175b00ad3f343335e
a751f51ec8bf746223a21e6d099904fdb23dd8ea
2023-09-10T21:33:00Z
c++
2023-09-23T12:37:19Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,406
["src/Columns/ColumnAggregateFunction.cpp", "src/Columns/ColumnAggregateFunction.h", "src/DataTypes/DataTypeAggregateFunction.cpp", "src/DataTypes/DataTypeAggregateFunction.h", "src/Functions/FunctionsConversion.h", "src/Processors/QueryPlan/Optimizations/optimizeUseAggregateProjection.cpp", "tests/queries/0_stateless/...
Projection issue Block structure mismatch in AggregatingStep stream
worked with 22.8: https://fiddle.clickhouse.com/bba44076-1961-4356-b59c-df7e26362245 fails with 23.3: https://fiddle.clickhouse.com/731c266b-df63-437e-ac64-05a36422ad36 ```sql CREATE TABLE r ( x String, a LowCardinality(String), q AggregateFunction(quantilesTiming(0.5, 0.95, 0.99), Int64), ...
https://github.com/ClickHouse/ClickHouse/issues/54406
https://github.com/ClickHouse/ClickHouse/pull/54480
5354af00aedd659e44bea6eb4fa9717ca32aa2b2
63243fbc03c52da2ded762332c59982106e2f2df
2023-09-07T14:09:08Z
c++
2023-09-12T11:43:41Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,380
["src/Processors/Formats/Impl/ConstantExpressionTemplate.cpp", "tests/queries/0_stateless/02896_leading_zeroes_no_octal.reference", "tests/queries/0_stateless/02896_leading_zeroes_no_octal.sql"]
Incorrect handling of leading zeroes during INSERT
**How to reproduce** ```sql CREATE TABLE EMPLOYEE ( `empId` INTEGER PRIMARY KEY, `d` DOUBLE ) ENGINE = MergeTree ORDER BY empId; INSERT INTO EMPLOYEE VALUES (0001, 1.456), (0005, 45.98), (0008, 4342.766), (0017, 345.87), (0021, 43.78), (0051, 0.781); SELECT * FROM EMPLOYEE; ``` Results into ```...
https://github.com/ClickHouse/ClickHouse/issues/54380
https://github.com/ClickHouse/ClickHouse/pull/59403
556b63700a98df79f97ddeda34a13c3084e69a81
569b8487e887c842e2ea936f71e9d8662edffac0
2023-09-07T03:14:51Z
c++
2024-02-05T14:34:50Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,352
["src/Columns/ColumnDecimal.cpp", "tests/queries/0_stateless/02875_fix_column_decimal_serialization.reference", "tests/queries/0_stateless/02875_fix_column_decimal_serialization.sql"]
Assertion `new_head == holder.key.data` failed (`Aggregator`)
https://s3.amazonaws.com/clickhouse-test-reports/0/d9746b5ea10eec3b0e82d46b1b15627ccfb3f243/fuzzer_astfuzzerdebug/report.html https://s3.amazonaws.com/clickhouse-test-reports/54043/03914f2d31da7a3c3384426c425666f6526afa93/fuzzer_astfuzzerdebug/report.html ``` 5947:2023.09.05 19:28:01.035857 [ 178 ] {5fdfcd95-169...
https://github.com/ClickHouse/ClickHouse/issues/54352
https://github.com/ClickHouse/ClickHouse/pull/54601
d23daca082fba97298995683114f2b246ac328d9
b4f9d8a51717c2141e075a7a7d6f475dd3e2a6ff
2023-09-06T12:17:32Z
c++
2023-09-14T01:54:00Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,275
["docs/en/sql-reference/functions/date-time-functions.md", "src/Functions/timestamp.cpp", "src/IO/ReadHelpers.h", "tests/queries/0_stateless/02834_timestamp_function.reference", "tests/queries/0_stateless/02834_timestamp_function.sql"]
MySQL compatibility: ADDDATE, TIMESTAMP functions
Required by Tableau Online. Sample query with both examples: ```sql SELECT sum(area) AS sum_area_ok FROM cell_towers WHERE (ADDDATE(DATE_FORMAT(created, '%Y-01-01 00:00:00'), toIntervalSecond(0)) >= TIMESTAMP('1995-01-01 00:00:00')) AND (ADDDATE(DATE_FORMAT(created, '%Y-01-01 00:00:00'), toIntervalSecond(0)...
https://github.com/ClickHouse/ClickHouse/issues/54275
https://github.com/ClickHouse/ClickHouse/pull/54639
2a0ec41d85a2b2ec269634929695db03f1a48c61
9ebecb5499e41241be1722cb9d3aba6c6a686812
2023-09-04T20:42:15Z
c++
2023-09-28T14:44:16Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,239
["src/Interpreters/Set.cpp", "src/Interpreters/Set.h", "src/Interpreters/castColumn.cpp", "src/Interpreters/castColumn.h", "tests/performance/enum_in_set.xml"]
Set::execute excessively builds internal CAST functions
<img width="1491" alt="image" src="https://github.com/ClickHouse/ClickHouse/assets/22796953/32e20f98-90f7-4630-9bd3-c3ff35fb2e8d"> ==== Building functions require parsing, so it can be slow. Probably `Set` should cache the `CAST` corresponding functions for each column.
https://github.com/ClickHouse/ClickHouse/issues/54239
https://github.com/ClickHouse/ClickHouse/pull/55712
3d8875a342925fd658ee3ab001bdcf3deb5f050f
5923e1b1167b1bf755654e3dcb46c13106ec164b
2023-09-04T06:50:46Z
c++
2023-10-23T11:31:44Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,218
["src/QueryPipeline/QueryPipeline.cpp"]
FROM INFILE with multiple files does not parallelize
**Use case** ``` clickhouse-client --query "INSERT INTO table FROM INFILE '*.csv'" ``` **Describe the solution you'd like** Parallelize it by files.
https://github.com/ClickHouse/ClickHouse/issues/54218
https://github.com/ClickHouse/ClickHouse/pull/54533
45cf7935447efd5def4fead68211dc549ec4d49b
fd2ac0cb8f471a4ff7fbd6baae280ca335585e83
2023-09-03T03:02:26Z
c++
2023-09-15T12:30:49Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,206
["programs/server/dashboard.html"]
Advanced dashboard: charts are not draggable on iPad.
null
https://github.com/ClickHouse/ClickHouse/issues/54206
https://github.com/ClickHouse/ClickHouse/pull/55649
79eccfb6421eeaf7d3cf0ceb3af619fb45962a09
3864c6746e051a3771c2ecf1be881ebcace85f0b
2023-09-02T13:36:19Z
c++
2023-10-17T21:10:21Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,162
["src/Storages/MergeTree/MergeTreeIndexFullText.cpp", "tests/queries/0_stateless/00908_bloom_filter_index.reference", "tests/queries/0_stateless/00908_bloom_filter_index.sh"]
ngram bloomfilter index based on IPv6 type breaks in v23.3
**Describe the unexpected behaviour** We are trying to upgrade from v22.3-lts to v23.3-lts. This is when we noticed that v23.3 wasn't happy with ngram bloom filter indices we had defined on IPv6 type. **How to reproduce** - v22.3: https://fiddle.clickhouse.com/623b1437-2ad7-4803-b33f-8793d3e9a87e - v23.3: https...
https://github.com/ClickHouse/ClickHouse/issues/54162
https://github.com/ClickHouse/ClickHouse/pull/54200
e3b5972fab1219284f5daf9da8761f3f81d3731d
86223699be977ab9fbd0abf850dd40303d23d6b8
2023-09-01T05:14:17Z
c++
2023-09-03T20:08:51Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
54,156
["src/Processors/QueryPlan/PartsSplitter.cpp", "src/Processors/QueryPlan/PartsSplitter.h", "tests/queries/0_stateless/01861_explain_pipeline.reference", "tests/queries/0_stateless/02780_final_streams_data_skipping_index.reference", "tests/queries/0_stateless/02867_nullable_primary_key_final.reference", "tests/queries/0...
ILLEGAL_TYPE_OF_ARGUMENT allow_nullable_key + final
ERROR: type should be string, got "https://fiddle.clickhouse.com/796d6997-b571-4e4f-aede-1e18f670ec6f\r\n\r\n```sql\r\nCREATE TABLE t\r\n(\r\n d Nullable(Date),\r\n f1 Nullable(String),\r\n f2 Nullable(String),\r\n c Nullable(Int64)\r\n)\r\nENGINE = ReplacingMergeTree()\r\nORDER BY (f1, f2, d)\r\nSETTINGS allow_nullable_key = 1;\r\n\r\ninsert into t select today() d, \r\n [number%999999, null][number%2] f1, \r\n ['x', null][number%2] f2, \r\n [number, null][number%2] c \r\nfrom numbers(1000000);\r\n\r\nSELECT date_trunc('month', d), SUM( c ) \r\nFROM t FINAL WHERE f2 = 'x' GROUP BY 1;\r\n\r\nReceived exception from server (version 23.7.5):\r\nCode: 43. DB::Exception: Received from localhost:9000. \r\nDB::Exception: Illegal types of arguments (Date, UInt16) of function greater: \r\nWhile processing NOT ((f1, f2, d) > ('203217', 'x', 19600)). (ILLEGAL_TYPE_OF_ARGUMENT)\r\n```\r\n\r\ncc @amosbird "
https://github.com/ClickHouse/ClickHouse/issues/54156
https://github.com/ClickHouse/ClickHouse/pull/54164
5fb8e469672888fa191bc1fe829dac095c6a896a
0518b64b583cb1d1f518820b548547b19206fc73
2023-08-31T20:25:12Z
c++
2023-09-15T20:44:13Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,858
["src/Interpreters/MutationsInterpreter.cpp", "src/Interpreters/MutationsInterpreter.h", "src/Storages/MergeTree/MergeTreeMarksLoader.cpp", "tests/queries/0_stateless/02891_alter_update_adaptive_granularity.reference", "tests/queries/0_stateless/02891_alter_update_adaptive_granularity.sql"]
DB::Exception: Too many marks in file skip_idx_sindex_visitorid.cmrk3, marks expected 3 (bytes size 72)
Hi, I'm try to use the latest version 23.7.4.5 (official build) and skip index, but after I insert data and try to query via skipe index, I got this error, can you please tell me why? I get started with clickhouse but stuck at first step here `error: HttpCode:500 ; ;Code: 33. DB::Exception: Too many marks in ...
https://github.com/ClickHouse/ClickHouse/issues/53858
https://github.com/ClickHouse/ClickHouse/pull/55202
8ffe87cf06cfd0855ed5c93b833cc5d489f15f66
26a938c8cf21b2597d5394fd7700adcc32a4ecef
2023-08-27T14:21:02Z
c++
2023-10-09T17:24:59Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,749
["src/Common/ZooKeeper/IKeeper.cpp", "src/Common/ZooKeeper/IKeeper.h", "src/Common/ZooKeeper/ZooKeeper.cpp", "src/Common/ZooKeeper/ZooKeeperConstants.h", "src/Common/ZooKeeper/ZooKeeperImpl.cpp", "src/Interpreters/ZooKeeperLog.cpp"]
Incompatibility with Zookeeper 3.9
It seems ZK 3.9 has changed something in its protocol and ClickHouse can't connect to it. The error seems to be related to the handshake: ``` 2023.08.23 13:11:59.885984 [ 422494 ] {} <Error> virtual bool DB::DDLWorker::initializeMainThread(): Code: 999. Coordination::Exception: Connection loss, path: All connectio...
https://github.com/ClickHouse/ClickHouse/issues/53749
https://github.com/ClickHouse/ClickHouse/pull/57479
9b517e47129bd52f509cdb073b822f6b93f8f6cf
429ed3460704b8d5fed272b5a188ed7a49e74581
2023-08-23T13:24:00Z
c++
2023-12-07T19:22:00Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,720
["src/Analyzer/FunctionNode.h", "src/Analyzer/InDepthQueryTreeVisitor.h", "src/Analyzer/Passes/IfConstantConditionPass.cpp", "src/Analyzer/Utils.cpp", "src/Analyzer/Utils.h", "tests/queries/0_stateless/00835_if_generic_case.reference", "tests/queries/0_stateless/02901_remove_nullable_crash_analyzer.reference", "tests/q...
ClickHouse Server v23.7.4.5 crashed by a SELECT statement with allow_experimental_analyzer enabled ("SELECT CASE 1 WHEN ...")
**Describe the bug** ClickHouse Server v23.7.4.5 crashed by a SELECT statement with allow_experimental_analyzer enabled. It was found by an in-development fuzzer of WINGFUZZ. **How to reproduce** The SQL statement to reproduce: ```sql ( SELECT CASE 1 WHEN FALSE THEN 1 ELSE CASE WHEN 1 THEN 1 - (CASE 1 WHEN 1 TH...
https://github.com/ClickHouse/ClickHouse/issues/53720
https://github.com/ClickHouse/ClickHouse/pull/55951
9666549d1538d4eedcb4a884a6be8b26454ead1e
73fc8c8f4b424ef202d3892b184e21421febd5e0
2023-08-23T07:56:55Z
c++
2023-11-03T16:12:27Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,718
["src/Analyzer/Passes/QueryAnalysisPass.cpp", "tests/queries/0_stateless/02901_analyzer_recursive_window.reference", "tests/queries/0_stateless/02901_analyzer_recursive_window.sql"]
ClickHouse Server v23.7.4.5 crashed by a SELECT statement with allow_experimental_analyzer enabled ("SELECT 1 WINDOW ...")
**Describe the bug** ClickHouse Server v23.7.4.5 crashed by a SELECT statement with allow_experimental_analyzer enabled. It was found by an in-development fuzzer of WINGFUZZ. **How to reproduce** The SQL statement to reproduce: ```sql SELECT 1 WINDOW x AS ( PARTITION BY x ) SETTINGS allow_experimental_analyzer...
https://github.com/ClickHouse/ClickHouse/issues/53718
https://github.com/ClickHouse/ClickHouse/pull/56055
b65c498016403f78e5ad83cf066e21b838e55495
224d4f0ee199f99d4a72b102dccda74a02162bbd
2023-08-23T07:54:48Z
c++
2023-10-27T19:55:46Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,717
["src/Analyzer/FunctionNode.h", "src/Analyzer/InDepthQueryTreeVisitor.h", "src/Analyzer/Passes/IfConstantConditionPass.cpp", "src/Analyzer/Utils.cpp", "src/Analyzer/Utils.h", "tests/queries/0_stateless/00835_if_generic_case.reference", "tests/queries/0_stateless/02901_remove_nullable_crash_analyzer.reference", "tests/q...
ClickHouse Server v23.7.4.5 crashed by a SELECT statement with allow_experimental_analyzer enabled ("SELECT 1 % (CASE ...")
**Describe the bug** ClickHouse Server v23.7.4.5 crashed by a SELECT statement with allow_experimental_analyzer enabled. It was found by an in-development fuzzer of WINGFUZZ. **How to reproduce** The SQL statement to reproduce: ```sql SELECT 1 % ( CASE WHEN 1 THEN (1 IS NOT NULL + *) ELSE NULL END ) SETTINGS al...
https://github.com/ClickHouse/ClickHouse/issues/53717
https://github.com/ClickHouse/ClickHouse/pull/55951
9666549d1538d4eedcb4a884a6be8b26454ead1e
73fc8c8f4b424ef202d3892b184e21421febd5e0
2023-08-23T07:51:46Z
c++
2023-11-03T16:12:27Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,715
["src/Functions/parseDateTime.cpp", "tests/queries/0_stateless/02668_parse_datetime.reference", "tests/queries/0_stateless/02668_parse_datetime.sql"]
Crash bug: ClickHouse Server v23.7.4.5 crashed when calling the parseDateTime function
**Describe the bug** ClickHouse Server v23.7.4.5 crashed when calling the parseDateTime function with illegal arguments. It was found by an in-development fuzzer of WINGFUZZ. **How to reproduce** The SQL statement to reproduce: ```sql SELECT parseDateTime ('' , '' , toString ( number ) ) FROM numbers ( 13 ) ; ...
https://github.com/ClickHouse/ClickHouse/issues/53715
https://github.com/ClickHouse/ClickHouse/pull/53764
4d2efd87b52540b26fa2aafe34ff95d535228db3
2f31a2a5685158f86ab3dc77fa5fb590de63143f
2023-08-23T07:41:50Z
c++
2023-08-24T09:54:23Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,708
["docker/test/integration/runner/compose/docker_compose_ldap.yml", "src/Access/LDAPAccessStorage.h", "src/Access/MemoryAccessStorage.h", "tests/integration/helpers/cluster.py", "tests/integration/test_ldap_external_user_directory/__init__.py", "tests/integration/test_ldap_external_user_directory/configs/ldap_with_role_...
LDAP External User Directory role mapping leads to query hangs and denial of service
LDAP External User Directory with role mapping is configured against Microsoft Active Directory as described here: https://clickhouse.com/docs/en/operations/external-authenticators/ldap If some user is added to an AD group which doesn't have a corresponding role in ClickHouse after some previous query activity of thi...
https://github.com/ClickHouse/ClickHouse/issues/53708
https://github.com/ClickHouse/ClickHouse/pull/55119
48ce595e247c76020f3a74dd9ea965aec1e3ce10
b38d4b5b0fb6956242e9a870ea5d6275210f3a22
2023-08-22T20:13:03Z
c++
2023-10-07T22:38:10Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,640
["src/Interpreters/ExpressionAnalyzer.cpp", "src/Interpreters/TreeRewriter.cpp", "tests/queries/0_stateless/02863_interpolate_subquery.reference", "tests/queries/0_stateless/02863_interpolate_subquery.sql"]
'Missing columns' exception when using INTERPOLATE in subquery
**Describe what's wrong** In scenarios where an interpolated value is dependent on a calculated column (also interpolated) on a subquery, every interpolated column must be referenced in the outer query, otherwise a `Missing columns` exception is thrown [Reproduction in fiddle](https://fiddle.clickhouse.com/bcb35723...
https://github.com/ClickHouse/ClickHouse/issues/53640
https://github.com/ClickHouse/ClickHouse/pull/53754
ec628ee6972d292f46f631a5f493e640bd6c9dd4
217bfa0e42a4e18b62c0220db19e7381bf24a06f
2023-08-21T13:16:01Z
c++
2023-09-04T05:05:47Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,634
["tests/performance/encrypt_decrypt_empty_string_slow.xml"]
Perf test `encrypt_decrypt_empty_string_slow` is too slow
https://s3.amazonaws.com/clickhouse-test-reports/0/dd1a00b97646c0b0103bf2f0d46c430f03ba91bc/performance_comparison_aarch64_[2_4]/report.html#test-times.encrypt_decrypt_empty_string_slow @Enmk please take a look
https://github.com/ClickHouse/ClickHouse/issues/53634
https://github.com/ClickHouse/ClickHouse/pull/53691
b78bd47c7a6c40e1d97d55ce07f425688728485e
050925314916ec3b3de950b8ce21fe18b595ded8
2023-08-21T12:09:44Z
c++
2023-08-22T18:03:06Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,602
["docs/en/sql-reference/functions/date-time-functions.md", "src/Functions/dateDiff.cpp", "tests/queries/0_stateless/00538_datediff.reference", "tests/queries/0_stateless/00538_datediff.sql"]
`dateDiff`: add support for plural units, e.g., `seconds`
**Use case** `dateDiff('microseconds', event_time_microseconds, lagInFrame(event_time_microseconds) OVER ())` ``` Received exception from server (version 23.8.1): Code: 36. DB::Exception: Received from p12uiq1ogd.us-east-2.aws.clickhouse-staging.com:9440. DB::Exception: Function dateDiff does not support 'micro...
https://github.com/ClickHouse/ClickHouse/issues/53602
https://github.com/ClickHouse/ClickHouse/pull/53641
fdfefe58f30fdc899d801693f4dcb4d38c1e52c7
b884fdb8676d971a760c36f5192140ba5fbcc21b
2023-08-20T02:20:03Z
c++
2023-08-23T09:45:35Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,543
["src/Parsers/ExpressionListParsers.cpp", "tests/queries/0_stateless/02868_select_support_from_keywords.reference", "tests/queries/0_stateless/02868_select_support_from_keywords.sql"]
ClickHouse is deleting quotes during the view definition saving
Clickhouse is deleting quotes in inner selects during view definition saving. How to repeat the error: Create table: ``` create table test_table ( `date` Date, `__sign` Int8, `from` Float64, `to` Float64, ) ENGINE = CollapsingMergeTree(__sign) PARTITION BY toYYYYMM(date) ORDER BY (date) SETTINGS inde...
https://github.com/ClickHouse/ClickHouse/issues/53543
https://github.com/ClickHouse/ClickHouse/pull/53914
0148e15aee7fbf871c088c05653420f7f5e54348
0387556a34b88719f30d880306fb34bd534c5e8b
2023-08-18T09:38:01Z
c++
2023-08-30T20:25:08Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,508
["src/Interpreters/InterpreterSelectQuery.cpp", "tests/queries/0_stateless/02861_interpolate_alias_precedence.reference", "tests/queries/0_stateless/02861_interpolate_alias_precedence.sql"]
Crash when running query with INTERPOLATE clause
There is a crash under certain conditions when executing a query with an `ORDER BY... INTERPOLATE` clause. This issue happens in the most recent CH version. In a table with the following schema and data: ``` CREATE TABLE test (date Date, id String, f Int16) ENGINE=MergeTree() ORDER BY (date); INSERT...
https://github.com/ClickHouse/ClickHouse/issues/53508
https://github.com/ClickHouse/ClickHouse/pull/53572
ec0561b3f1e40cc2060c50917624022d4bc16024
75b748fc9af5d05ff1adbb43ee09c0857eb10fab
2023-08-17T09:18:50Z
c++
2023-08-19T09:12:32Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,482
["docs/en/operations/settings/settings.md", "src/Core/Settings.h", "src/Interpreters/InterpreterShowColumnsQuery.cpp", "tests/queries/0_stateless/02775_show_columns_mysql_compatibility.reference", "tests/queries/0_stateless/02775_show_columns_mysql_compatibility.sql"]
MySQL compatibility: BLOB vs TEXT for String types
**Describe the issue** All the string types are reported as BLOB if `use_mysql_types_in_show_columns` is set to 1. This, unfortunately, causes issues with QuickSight via MySQL interface, as it cannot recognize BLOB columns as strings. For example: <img width="618" alt="image" src="https://github.com/ClickHouse/Clic...
https://github.com/ClickHouse/ClickHouse/issues/53482
https://github.com/ClickHouse/ClickHouse/pull/55617
3864c6746e051a3771c2ecf1be881ebcace85f0b
945dcb865ac612f963000cb3d1d87aaacebf6f07
2023-08-16T15:05:22Z
c++
2023-10-18T08:57:18Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,453
["src/Storages/MergeTree/MergeTreeSplitPrewhereIntoReadSteps.cpp", "tests/queries/0_stateless/02845_prewhere_preserve_column.reference", "tests/queries/0_stateless/02845_prewhere_preserve_column.sql"]
"DB::Exception: Not found column" when using PREWHERE optimization in SELECT queries
**Describe what's wrong** Potential problem with [PREWHERE](https://clickhouse.com/docs/en/sql-reference/statements/select/prewhere) optimization in [SELECT](https://clickhouse.com/docs/en/sql-reference/statements/select) queries. Example: If I have a query where a column is in a NOT clause with the same value ...
https://github.com/ClickHouse/ClickHouse/issues/53453
https://github.com/ClickHouse/ClickHouse/pull/53492
06415c7a53130fa4040c1e23d902cf8c64dd0a46
e89a8e4d13652baa7af88ead4d50cc76fd8ffd26
2023-08-15T20:36:57Z
c++
2023-09-23T19:24:00Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,437
["src/Interpreters/PreparedSets.cpp", "tests/queries/0_stateless/02844_subquery_timeout_with_break.reference", "tests/queries/0_stateless/02844_subquery_timeout_with_break.sql"]
Logical error: Trying to use set before it has been built (with timeout_overflow_mode = 'break')
**Describe the unexpected behaviour** When set `timeout_overflow_mode = 'break'` we expect that if query timeout it will break and not throwing exception, but it still can if query has subquery in the rhs of IN and index is used. ``` DB::Exception: Logical error: Trying to use set before it has been built. (LOGICA...
https://github.com/ClickHouse/ClickHouse/issues/53437
https://github.com/ClickHouse/ClickHouse/pull/53439
c22356bcaafcc17378d36122d1c7dc7140f9bad9
00e2e3184b3229710a241ad4a800310965d77896
2023-08-15T04:03:10Z
c++
2023-08-18T23:24:42Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,350
["docs/en/engines/database-engines/materialized-mysql.md"]
ngrambf_v1 + MaterializedMySQL not working
**Steps to reproduce** Create a MaterializedMySQL table with ngrambf_v1 skip index for text field Run LIKE query search for some non-existing record **Expected behavior** - Queries use index and run fast - `system.data_skipping_indices` has appropriate index record with non-zero `data_compressed_bytes` colum...
https://github.com/ClickHouse/ClickHouse/issues/53350
https://github.com/ClickHouse/ClickHouse/pull/53373
bd0e8792886ac2a02ad45eb2a48b935aa89fb5fe
b69ef759721d016a3856e66150bf9b1bd2158258
2023-08-12T18:17:36Z
c++
2023-08-16T11:16:43Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,303
["docs/en/operations/settings/merge-tree-settings.md", "src/Storages/MergeTree/MergeTreeDataMergerMutator.cpp", "src/Storages/MergeTree/MergeTreeSettings.cpp", "src/Storages/MergeTree/MergeTreeSettings.h", "tests/queries/0_stateless/01419_merge_tree_settings_sanity_check.sql"]
Consider adding a separated task for historical merges
**Use case** The merged algorithm in ClickHouse was designed to favour smaller and more recent parts. This is obvious because we need to minimise number of parts. However, there's a case when merging old parts also important. For example, when we have a `ReplacingMergeTree` and the `SELECT ... FINAL` spans across...
https://github.com/ClickHouse/ClickHouse/issues/53303
https://github.com/ClickHouse/ClickHouse/pull/53405
75d32bfe771db20a2698d6a6e5d9484e3cf747f5
cbbb81f5ccf94e7549fd5608f9c157adc63a8dbd
2023-08-11T04:21:01Z
c++
2023-08-24T17:49:38Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,276
["src/Common/Config/ConfigReloader.cpp"]
Configuration is not reloaded if changed too fast
**Describe the issue** ClickHouse only reloads config file if the modification time changes. This is detected with `FS::getModificationTime`, which only has a resolution of one second. This means ClickHouse may miss changes if they happen within the same seconds as the previous change.
https://github.com/ClickHouse/ClickHouse/issues/53276
https://github.com/ClickHouse/ClickHouse/pull/54065
57ffbeeaf519bdce8f5a2fa75b507815ae05298d
6655de199b5ad8751bb9f405dd818ef1a7c93a56
2023-08-10T13:55:42Z
c++
2023-09-01T08:08:28Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,237
["src/Storages/MergeTree/MergeTreeSplitPrewhereIntoReadSteps.cpp", "tests/queries/0_stateless/02845_prewhere_preserve_column.reference", "tests/queries/0_stateless/02845_prewhere_preserve_column.sql"]
move_all_conditions_to_prewhere / NOT_FOUND_COLUMN_IN_BLOCK
https://fiddle.clickhouse.com/e7d218c3-2d5f-4a7b-b713-0b5052b62e86 ```sql CREATE TABLE t ( e String, c String, q String ) ENGINE = MergeTree ORDER BY tuple(); insert into t select number, number, number from numbers(10); WITH s AS ( SELECT * FROM t WHERE ((e != 'cl') OR (q = 'bn'))) SELECT count() AS cn...
https://github.com/ClickHouse/ClickHouse/issues/53237
https://github.com/ClickHouse/ClickHouse/pull/53492
06415c7a53130fa4040c1e23d902cf8c64dd0a46
e89a8e4d13652baa7af88ead4d50cc76fd8ffd26
2023-08-09T19:15:21Z
c++
2023-09-23T19:24:00Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,222
["src/Storages/MergeTree/KeyCondition.cpp", "tests/queries/0_stateless/02462_match_regexp_pk.sql"]
Using match with `^$` as anchors on a primary key column returns incorrect results
**Describe what's wrong** When running a query that applies a regex expression to the primary key column and uses `^$` as anchors on the first element, Clickhouse incorrectly returns only a portion of the expected results. **Does it reproduce on recent release?** Running release `23.3.8.21`. **How to repro...
https://github.com/ClickHouse/ClickHouse/issues/53222
https://github.com/ClickHouse/ClickHouse/pull/54696
f5e8028bb12e0e01438e6aeccee426fcd95805c7
711876dfa8cc2cf48099eff68c494067ff5bcbc0
2023-08-09T14:18:00Z
c++
2023-09-18T02:45:13Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,215
["docker/test/base/setup_export_logs.sh"]
02152_http_external_tables_memory_tracking is flaky
https://s3.amazonaws.com/clickhouse-test-reports/53146/4f6f8fce652adae458a766f76af153d20501b864/stateless_tests__debug__[3_5].html https://play.clickhouse.com/play?user=play#c2VsZWN0IAp0b1N0YXJ0T2ZEYXkoY2hlY2tfc3RhcnRfdGltZSkgYXMgZCwKY291bnQoKSwgZ3JvdXBVbmlxQXJyYXkocHVsbF9yZXF1ZXN0X251bWJlciksICBhbnkocmVwb3J0X3VybCk...
https://github.com/ClickHouse/ClickHouse/issues/53215
https://github.com/ClickHouse/ClickHouse/pull/57130
ec18f24c1f36906e2e0f8ae6de7e6ac83e57890e
851e96cd80777596aa0ce60f4c31cb4d8f5907c9
2023-08-09T13:16:32Z
c++
2023-11-24T20:04:43Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,190
["src/Functions/FunctionsConversion.h", "tests/queries/0_stateless/01556_accurate_cast_or_null.reference", "tests/queries/0_stateless/01556_accurate_cast_or_null.sql"]
No results when quering col > '1969' if table partitioned by that column
**Describe what's wrong** DateTime condition comparing to the date before starting of the unix epoch stopped to work if the partitioning key uses that column. **Repro** https://fiddle.clickhouse.com/66a75ef0-c107-4ae1-83f4-ae608971bc9c **Does it reproduce on recent release?** Yes **How to reproduc...
https://github.com/ClickHouse/ClickHouse/issues/53190
https://github.com/ClickHouse/ClickHouse/pull/58139
d0ca383bca3a012e70348508ca91cb7532bbbb73
a30980c930c6a1357028a2473593f526ba409a64
2023-08-09T08:05:57Z
c++
2023-12-23T13:52:59Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,187
["src/Functions/transform.cpp", "tests/queries/0_stateless/02542_transform_new.reference", "tests/queries/0_stateless/02542_transform_new.sql", "tests/queries/0_stateless/02787_transform_null.reference"]
Conditionals in CASE statements sometimes produce wrong results
**How to reproduce** ``` ClickHouse client version 23.7.1.1. Connecting to localhost:9000 as user ymirlink. Connected to ClickHouse server version 23.7.1 revision 54464. :) SELECT CAST(1, 'Nullable(String)') v1, CAST(number, 'String') v2, CASE 'x' WHEN 'y' THEN 0 ELSE v...
https://github.com/ClickHouse/ClickHouse/issues/53187
https://github.com/ClickHouse/ClickHouse/pull/53742
62747ea20f3e9b312ad25eba4593568526fb8b88
9b749391101f6f7a11c3ad6ba81ecf6d472bc7cd
2023-08-09T06:31:42Z
c++
2023-08-29T18:57:59Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,179
["src/Functions/URL/domain.h", "tests/queries/0_stateless/02845_domain_rfc_support_ipv6.reference", "tests/queries/0_stateless/02845_domain_rfc_support_ipv6.sql"]
domain() returns empty string for IPv6 and port combination
**How to reproduce** ``` SELECT domain('[2001:db8::1]:80') FORMAT CSV "" ``` **Expected be...
https://github.com/ClickHouse/ClickHouse/issues/53179
https://github.com/ClickHouse/ClickHouse/pull/53506
a1a45ee9055664ba9fee935983c124bef9919cba
a2d451d6e60630d71a8469420aedd8f4f627daa0
2023-08-08T23:52:30Z
c++
2023-08-29T09:42:59Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,156
["docs/en/sql-reference/functions/other-functions.md", "docs/ru/sql-reference/functions/other-functions.md", "src/Functions/formatReadableTimeDelta.cpp", "tests/queries/0_stateless/02887_format_readable_timedelta_subseconds.reference", "tests/queries/0_stateless/02887_format_readable_timedelta_subseconds.sql"]
formatReadableTimeDelta support for milli-micro-nano seconds in output
**Use case** ``` SELECT formatReadableTimeDelta(0.1) ┌─formatReadableTimeDelta(0.1)─┐ │ 0 seconds │ └──────────────────────────────┘ SELECT formatReadableTimeDelta(0.1, 'millisecond') ┌─formatReadableTimeDelta(0.1)─┐ │ 100 milliseconds │ └─────────────────────────...
https://github.com/ClickHouse/ClickHouse/issues/53156
https://github.com/ClickHouse/ClickHouse/pull/54250
477922617c2823879383e2e75a73f98e2fc40346
aa37814b3a5518c730eff221b86645e153363306
2023-08-08T11:17:13Z
c++
2023-09-24T21:15:56Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,152
["src/Interpreters/OptimizeDateOrDateTimeConverterWithPreimageVisitor.cpp", "tests/queries/0_stateless/02843_date_predicate_optimizations_bugs.reference", "tests/queries/0_stateless/02843_date_predicate_optimizations_bugs.sql"]
Query with array join and toYYYYMM in predicate doesn't work as expected
Reproduce: ```sql select toYYYYMM(date) as date_, n from (select [toDate(now()), toDate(now())] as date, [1, 2] as n ) as data array join date, n where date_ >= 202303; ``` Work in 23.6: https://fiddle.clickhouse.com/cabc075a-ac8a-4a15-bd46-2bc2b1de09a6 Not work in 23.7: https://fiddle.clickho...
https://github.com/ClickHouse/ClickHouse/issues/53152
https://github.com/ClickHouse/ClickHouse/pull/53440
a52249872e3f800419a7cc9ec241bc11a15d7927
81af60eeea988dbd2d38cf11d13d84943c0ea843
2023-08-08T10:02:32Z
c++
2023-08-17T18:56:01Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,098
["docs/en/sql-reference/functions/array-functions.md", "src/Functions/array/arrayRandomSample.cpp", "tests/queries/0_stateless/02415_all_new_functions_must_be_documented.reference", "tests/queries/0_stateless/02874_array_random_sample.reference", "tests/queries/0_stateless/02874_array_random_sample.sh", "utils/check-st...
Array Of Random Numbers (In a Given Range of N , M)
Can we please add a feature for generating random arrays. I was wondering something like: `generateRandomIntArray(N, M, K)` where `N` is start, `M` is end and `K` is the size of the array. Additionally, can we also add a random sampler for existing arrays. Something like: `randomSampleFromArray(<Array>, K)` wh...
https://github.com/ClickHouse/ClickHouse/issues/53098
https://github.com/ClickHouse/ClickHouse/pull/54391
9ac7cfc026cb8d7cf1ab48c0f4b12c656f52fe15
32a77ca1eb08f0dede7f7aa75ed71ed771393b1d
2023-08-07T00:14:19Z
c++
2023-10-08T16:28:58Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
53,094
["docs/en/operations/utilities/clickhouse-local.md", "docs/ru/operations/utilities/clickhouse-local.md", "src/Common/StringUtils/StringUtils.h", "src/Databases/DatabaseFilesystem.cpp", "tests/queries/0_stateless/02707_clickhouse_local_implicit_file_table_function.reference", "tests/queries/0_stateless/02707_clickhouse_...
Let's make DatabaseFilesystem/S3/HDFS support globs
**Use case** I can write: ``` SELECT * FROM file('*.jsonl') ``` And I can also use the default overlay Filesystem database in clickhouse-local, but only for single files: ``` SELECT * FROM 'test.jsonl' ``` I want to use it with globs as well: ``` SELECT * FROM '*.jsonl' ```
https://github.com/ClickHouse/ClickHouse/issues/53094
https://github.com/ClickHouse/ClickHouse/pull/53863
e8e6b0a16528c5159b49bc4a0f55ddae0d03b525
55ba08490d692b620dd0973fd221f5c5b13038dc
2023-08-06T14:17:52Z
c++
2023-08-31T10:44:06Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,968
["src/Interpreters/ExpressionAnalyzer.cpp", "src/Interpreters/TableJoin.h", "src/Planner/PlannerJoins.cpp", "src/Storages/StorageJoin.cpp", "src/Storages/StorageJoin.h", "tests/performance/storage_join_direct_join.xml"]
Direct Join has worse performance than joinGet
There's two ways to query multiple columns from a storage join: - Use multiple `joinGet`, e.g. `SELECT key, joinGet('table_join', 'value1', key), joinGet('table_join', 'value2', key) ... FROM keys` - Use direct join, .e.g `SELECT key, value1, value2 ... FROM keys LEFT ANY JOIN table_join AS rhs ON key = rhs.key ...
https://github.com/ClickHouse/ClickHouse/issues/52968
https://github.com/ClickHouse/ClickHouse/pull/53046
c12292306dd5538b7e0e752768a4c5b2454b94ed
3f915491f029ef030dc3d4777e5f60a3abf52822
2023-08-03T08:00:20Z
c++
2023-08-08T09:55:17Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,936
["src/Client/ClientBase.cpp"]
clickhouse-client: don't show "0 rows in set" if it is zero and if exception was thrown.
null
https://github.com/ClickHouse/ClickHouse/issues/52936
https://github.com/ClickHouse/ClickHouse/pull/55240
9e64f51ffacf36387dd72069fb2ae764e80abbd1
9313b343e4102a328a2fe1112a0d690f13d79b2c
2023-08-02T13:57:28Z
c++
2023-10-26T11:52:53Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,895
["docs/en/sql-reference/functions/array-functions.md", "docs/ru/sql-reference/functions/array-functions.md", "src/Functions/array/arrayShiftRotate.cpp", "tests/queries/0_stateless/02845_arrayShiftRotate.reference", "tests/queries/0_stateless/02845_arrayShiftRotate.sql", "utils/check-style/aspell-ignore/en/aspell-dict.t...
arrayShiftLeft, arrayShiftRight
**Use case** Shift array values, quite commonly used with combination of arrayMap **Describe the solution you'd like** ``` arrayShiftLeft(arr, N) arrayShiftLeft(arr, N, 3) arrayShiftRight(arr, N) arrayShiftRight(arr, N, 5) -- Examples: arrayShiftLeft([1, 2, 3, 4, 5], 1) = [0, 1, 2, 3, 4] arrayShiftRight...
https://github.com/ClickHouse/ClickHouse/issues/52895
https://github.com/ClickHouse/ClickHouse/pull/53557
34ac113af6b7e0f767e05c50ff8ae6a03c8552d6
50b8bbe0dc1f466ba8d51cbc99bd9c72c7e67c28
2023-08-01T20:21:32Z
c++
2023-08-25T11:24:31Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,843
["src/Client/ClientBase.cpp", "src/Client/Suggest.cpp", "src/Client/Suggest.h", "tests/integration/parallel_skip.json", "tests/integration/test_profile_max_sessions_for_user/test.py"]
Make client receive suggestions from server if interactive connection is esablished
**Describe the issue** Clickhouse client can't load suggestions using single connection when `max_sessions_for_user` is set. **How to reproduce** - Create a user with `<max_sessions_for_user>2</max_sessions_for_user>` in profile - Connect to the server with clickhouse-client in interactive mode (starts a sessio...
https://github.com/ClickHouse/ClickHouse/issues/52843
https://github.com/ClickHouse/ClickHouse/pull/53177
0ff5d12788f1656f61c5b8df2a716675aef02f88
7ed7707ab7e6ccd6b2f26675f3349b29e703b442
2023-07-31T22:52:12Z
c++
2023-08-10T11:19:16Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,838
["docs/en/operations/settings/settings.md", "src/Core/Settings.h", "src/Interpreters/InterpreterAlterQuery.cpp", "src/Interpreters/MutationsNonDeterministicHelpers.cpp", "src/Interpreters/MutationsNonDeterministicHelpers.h", "tests/queries/0_stateless/02842_mutations_replace_non_deterministic.reference", "tests/queries...
materialize now() for mutations
this ```sql alter table t UPDATE ts = now() where 1 ``` leads to ``` Data after mutation is not byte-identical to data on another replicas. ``` if `allow_nondeterministic_mutations=1`. But Clickhouse can substitute `now()` with the current time during alter "parsing". or with a mutation's create time ...
https://github.com/ClickHouse/ClickHouse/issues/52838
https://github.com/ClickHouse/ClickHouse/pull/53129
ce58b90ea15ace209c5cc2c4179b4ac594816106
b9df41d5e33fd4b21c258ff338e24ab141a0f714
2023-07-31T20:54:58Z
c++
2023-08-17T22:26:20Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,777
["docs/en/operations/settings/settings.md", "src/Core/Settings.h", "src/Interpreters/InterpreterShowColumnsQuery.cpp", "tests/queries/0_stateless/02775_show_columns_mysql_compatibility.reference", "tests/queries/0_stateless/02775_show_columns_mysql_compatibility.sql"]
Inconsistency between `String` and `FixedString` type mapping in MySQL compatibility mode.
**Describe the unexpected behaviour** When using the `use_mysql_types_in_show_columns` setting, implemented in issue #49577, ClickHouse's `String` datatype is mapped to MySQL's `BLOB` datatype. Unfortunately, the QuickSight tool mentioned in the issue does not support this type of columns (https://docs.aws.amazon.co...
https://github.com/ClickHouse/ClickHouse/issues/52777
https://github.com/ClickHouse/ClickHouse/pull/55617
3864c6746e051a3771c2ecf1be881ebcace85f0b
945dcb865ac612f963000cb3d1d87aaacebf6f07
2023-07-30T10:07:11Z
c++
2023-10-18T08:57:18Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,760
["src/Columns/ColumnNullable.cpp", "tests/queries/0_stateless/02834_nulls_first_sort.reference", "tests/queries/0_stateless/02834_nulls_first_sort.sql"]
Unexpected sort result on multi columns with nulls first direction
**Describe what's wrong** Unexpected sort result on multi columns with nulls first direction Reproducer:https://fiddle.clickhouse.com/6cf10cbb-aa70-4956-898b-c09ed8b3e177 The order of third column is unexpected. **Does it reproduce on recent release?** Yes **How to reproduce** It can be reproduced on...
https://github.com/ClickHouse/ClickHouse/issues/52760
https://github.com/ClickHouse/ClickHouse/pull/52761
4578d43f79769fcaaca9130793a6d9ba854de0d4
1130904697393bcff03b1384b76e7cced247f9ca
2023-07-29T03:08:49Z
c++
2023-08-01T13:28:41Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,755
["docs/en/sql-reference/functions/array-functions.md", "docs/ru/sql-reference/functions/array-functions.md", "src/Functions/array/arrayShiftRotate.cpp", "tests/queries/0_stateless/02845_arrayShiftRotate.reference", "tests/queries/0_stateless/02845_arrayShiftRotate.sql", "utils/check-style/aspell-ignore/en/aspell-dict.t...
arrayRotateLeft, arrayRotateRight
**Use case** With some adjustments, it can be helpful for the canonization of "rings" (Ring is a data type representing a polygon without holes). **Describe the solution you'd like** ``` arrayRotateLeft(arr, N) arrayRotateRight(arr, N) -- Examples: arrayRotateLeft([1, 2, 3, 4, 5], 3) = [4, 5, 1, 2, 3] ...
https://github.com/ClickHouse/ClickHouse/issues/52755
https://github.com/ClickHouse/ClickHouse/pull/53557
34ac113af6b7e0f767e05c50ff8ae6a03c8552d6
50b8bbe0dc1f466ba8d51cbc99bd9c72c7e67c28
2023-07-29T01:20:29Z
c++
2023-08-25T11:24:31Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,752
["src/Functions/FunctionBinaryArithmetic.h", "src/Functions/IsOperation.h", "src/Functions/vectorFunctions.cpp", "tests/queries/0_stateless/02415_all_new_functions_must_be_documented.reference", "tests/queries/0_stateless/02841_tuple_modulo.reference", "tests/queries/0_stateless/02841_tuple_modulo.sql"]
Modulo doesn't work for Tuple and intDiv works incorrectly.
**Describe what's wrong** Modulo doesn't work for Tuple and intDiv works incorrectly. **Does it reproduce on recent release?** yes **How to reproduce** ``` ip-172-31-42-195.us-east-2.compute.internal :) select (3, 2) % 2 SELECT (3, 2) % 2 Query id: a01d6231-9e24-49e8-8525-88671e602aff 0 rows in...
https://github.com/ClickHouse/ClickHouse/issues/52752
https://github.com/ClickHouse/ClickHouse/pull/52758
8744a0269a144b52b656092ecb28ad8f96b9bfd5
4953208adccfe70bde2dc3f61306b53a1f521626
2023-07-28T19:38:25Z
c++
2023-08-11T15:00:54Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,723
["src/Databases/MySQL/DatabaseMySQL.cpp", "src/Databases/PostgreSQL/DatabasePostgreSQL.cpp", "src/Databases/SQLite/DatabaseSQLite.cpp", "tests/integration/test_mysql_database_engine/test.py", "tests/integration/test_postgresql_database_engine/test.py"]
MySQL connection password leaked in SHOW CREATE TABLE query
**Describe the unexpected behaviour** CH masks the user instead of the password. <img width="990" alt="image" src="https://github.com/ClickHouse/ClickHouse/assets/22796953/79eda9b9-42cc-4bb8-b307-afa83130d7f6"> To reproduce: - Create a MySQL database - Create a MySQL table inside the MySQL database - Run ...
https://github.com/ClickHouse/ClickHouse/issues/52723
https://github.com/ClickHouse/ClickHouse/pull/52962
def587701be76308f7f5418587c72e0f68d1b1a5
af610062eca259c7aba402f49c59fe95450f6f43
2023-07-28T09:52:47Z
c++
2023-08-04T08:57:59Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,654
["src/Storages/tests/gtest_transform_query_for_external_database.cpp", "src/Storages/transformQueryForExternalDatabase.cpp"]
error when select from postgresql() where 1=1 and (id=id)
CH 22.8.12.45 When trying to query postgresql function with condition WHERE 1=1 and (id=id) (generated query) ch generates query with wrong syntax for postgres. Any query to postgres: ```sql select * from postgresql(...) where 1=1 and id=id ``` Code: 1001. DB::Exception: Received from localhost:9000. DB...
https://github.com/ClickHouse/ClickHouse/issues/52654
https://github.com/ClickHouse/ClickHouse/pull/56456
dc12111ed1b888cf7c25a47affc446d4a7a6fb1b
7f3a082c0e968d52cbbb68bc8f0dfecfe7c79992
2023-07-27T11:52:44Z
c++
2023-11-13T14:25:58Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,637
["src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp", "src/Storages/MergeTree/MergeTreeDataSelectExecutor.h", "tests/queries/0_stateless/01786_explain_merge_tree.reference", "tests/queries/0_stateless/02354_annoy_index.reference", "tests/queries/0_stateless/02354_usearch_index.reference", "tests/queries/0_stateles...
Skip indexes and functions and dropped granules
-- granularity 100 ```sql ClickHouse local version 23.6.2.18 (official build). create table test (K Int64, A Int64, B Int64, C Int64, index x1 (greatest(A,B,C)) type minmax granularity 100) Engine=MergeTree order by K as select number,0,0,0 from numbers(1e7); select count() from test where greatest(A,B,C) ...
https://github.com/ClickHouse/ClickHouse/issues/52637
https://github.com/ClickHouse/ClickHouse/pull/53616
a190efed837b55f4263da043fb502c63737b5873
45d924c62c4390aa31db3d443a0e353ef692642b
2023-07-26T23:07:42Z
c++
2023-08-24T14:46:47Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,571
["src/Bridge/IBridge.cpp", "src/Core/Defines.h", "src/Disks/IO/ReadBufferFromWebServer.cpp", "src/Disks/ObjectStorages/S3/diskSettings.cpp", "src/Server/HTTPHandler.cpp", "src/Server/InterserverIOHTTPHandler.cpp", "src/Server/PrometheusRequestHandler.cpp", "src/Server/ReplicasStatusHandler.cpp", "src/Server/StaticReque...
Spontaneous disconnects from server side when using HTTP interface
**Describe what's wrong** Sometimes Clickhouse closes HTTP connection when request is in progress. **Does it reproduce on recent release?** We have issues on 23.3 and earlier versions for at least a year. Bug reproduction rate is low - we observe it like 20 times a day or like 1/1000 - 1/10_000 requests **H...
https://github.com/ClickHouse/ClickHouse/issues/52571
https://github.com/ClickHouse/ClickHouse/pull/53068
02339a1f221f4993f1901c48971cb0d2a0d1e18f
0dd6928a13165936420c6a538bf5001eb7d2a3b7
2023-07-25T12:22:07Z
c++
2023-09-06T02:05:23Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,511
["src/Functions/transform.cpp", "tests/queries/0_stateless/02832_transform_fixed_string_no_default.reference", "tests/queries/0_stateless/02832_transform_fixed_string_no_default.sql"]
Abort in `transform`
``` clickhouse-local --query "SELECT transform(name, ['a', 'b'], ['', NULL]) AS name FROM (SELECT 'test'::Nullable(FixedString(4)) AS name);" ```
https://github.com/ClickHouse/ClickHouse/issues/52511
https://github.com/ClickHouse/ClickHouse/pull/52513
7cab99d2a35c5aafdb486f849d6b6016dbf27743
813efa31ad74cc68540263a685b5a4e5389a5956
2023-07-24T04:11:34Z
c++
2023-07-25T02:37:17Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,436
["src/Interpreters/DatabaseCatalog.cpp", "tests/queries/0_stateless/02814_currentDatabase_for_table_functions.reference", "tests/queries/0_stateless/02814_currentDatabase_for_table_functions.sql"]
Table functions don't work anymore in scenarios when currentDatabase is unknown
> A clear and concise description of what works not as it is supposed to. The reference to a table function (mysql / mongo etc) stop working in 23.1 when the call of that functions happens out of the query context (flushes from Buffer, from Distributed etc). > A link to reproducer in [https://fiddle.clickhouse.co...
https://github.com/ClickHouse/ClickHouse/issues/52436
https://github.com/ClickHouse/ClickHouse/pull/52440
a4a8c731088b339b08fc10cf68e2f0e2685e2a34
933c2f3fb5564c48202bde8246d3b018250d2f8f
2023-07-21T16:50:55Z
c++
2023-07-26T14:41:00Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,433
["src/Interpreters/MutationsInterpreter.cpp", "src/Interpreters/MutationsInterpreter.h", "src/Storages/MergeTree/IMergeTreeDataPart.cpp", "src/Storages/MergeTree/IMergeTreeDataPart.h", "src/Storages/MergeTree/MutateTask.cpp", "src/Storages/StorageInMemoryMetadata.cpp", "src/Storages/StorageInMemoryMetadata.h", "tests/q...
Skip index is not affected by alter delete. Too many marks in file.
master ``` create table tab (x UInt32, y String, Index i y type minmax granularity 3) engine = MergeTree order by tuple(); insert into tab select number, toString(number) from numbers(8192 * 10); alter table tab delete where x < 8192; select x from tab where y in (4, 5); ``` ``` SELECT x FROM tab WHERE y ...
https://github.com/ClickHouse/ClickHouse/issues/52433
https://github.com/ClickHouse/ClickHouse/pull/52530
dbe13e30168b75d9eaa073228c5242d6ca375337
8744a0269a144b52b656092ecb28ad8f96b9bfd5
2023-07-21T15:03:59Z
c++
2023-08-11T13:23:05Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,407
["docs/en/sql-reference/functions/type-conversion-functions.md", "docs/ru/sql-reference/functions/type-conversion-functions.md", "src/Functions/FunctionToDecimalString.cpp", "src/Functions/FunctionToDecimalString.h", "src/IO/WriteHelpers.h", "tests/queries/0_stateless/02676_to_decimal_string.reference", "tests/queries/...
ClickHouse Server 23.7.1.1659 crashed through a SELECT statement calling the toDecimalString function
**Describe the bug** ClickHouse Server 23.7.1.1659 crashed through a SELECT statement calling the toDecimalString function. **How to reproduce** The SQL statement to reproduce: ```sql SELECT toDecimalString ( '110' :: Decimal256 ( 45 ) , * ) ; ``` It can be reproduced on the official docker image. (`clickhouse...
https://github.com/ClickHouse/ClickHouse/issues/52407
https://github.com/ClickHouse/ClickHouse/pull/52520
3387b02ede113bf39fef76fe7d8dea4e9ec87eab
7bcef0a6c081cfb290223269a935bbaca44fd623
2023-07-21T10:05:17Z
c++
2023-07-26T22:18:36Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,405
["src/Processors/QueryPlan/Optimizations/optimizeUseNormalProjection.cpp", "tests/queries/0_stateless/01710_projection_query_plan_optimization_misc.reference", "tests/queries/0_stateless/01710_projection_query_plan_optimization_misc.sql"]
ClickHouse Server 23.7.1.1659 crashed through alter-table, insert and select statements.
**Describe the bug** ClickHouse Server 23.7.1.1659 crashed through alter-table, insert and select statements. I am not sure whether it is a bug, as I do not know the effect of the `add projection` in `alter table`. **How to reproduce** The SQL statement to reproduce: ```sql create table test_00681 (x Int32, cod...
https://github.com/ClickHouse/ClickHouse/issues/52405
https://github.com/ClickHouse/ClickHouse/pull/52432
045bb3e1f382e7d3bfadaa595d9815396542ce44
e3c85613c943b7d6d3d4b9ea8a08ff64529973fb
2023-07-21T09:58:16Z
c++
2023-07-23T15:27:51Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,403
["src/Common/OptimizedRegularExpression.cpp", "tests/queries/0_stateless/02831_regexp_analyze_recursion.reference", "tests/queries/0_stateless/02831_regexp_analyze_recursion.sql"]
Crash bug: ClickHouse Server 23.7.1.1659 crashed through SELECT statement calling the 'match' function
**Describe the bug** ClickHouse Server 23.7.1.1659 crashed through SELECT statement calling the 'match' function. It seems like a stack overflow. **How to reproduce** The SQL statement to reproduce: ```sql SELECT match ( 'xyz' , repeat ( '!(1, ' , 320000 ) ) AS token ; ``` It can be reproduced on the officia...
https://github.com/ClickHouse/ClickHouse/issues/52403
https://github.com/ClickHouse/ClickHouse/pull/52451
db9c7c477f62a74eb731631a72581822f734dfeb
2e67a8927b256546881baee7c823ecb6ee918198
2023-07-21T09:51:18Z
c++
2023-07-22T14:24:35Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,393
["src/Disks/ObjectStorages/DiskObjectStorageTransaction.cpp", "src/Storages/StorageReplicatedMergeTree.cpp", "tests/integration/test_replicated_s3_zero_copy_drop_partition/__init__.py", "tests/integration/test_replicated_s3_zero_copy_drop_partition/configs/storage_conf.xml", "tests/integration/test_replicated_s3_zero_c...
S3 disk garbage collection?
Hi, If we use S3 as a disk for a table, how does Clickhouse make sure there are no orphan files left in the S3 bucket? In my recent test, I have encountered a lot of S3 rate limiting errors (HTTP 503, "Slow Down") when bulk inserted lots of data. Then I truncated the table. This seems have left many files in t...
https://github.com/ClickHouse/ClickHouse/issues/52393
https://github.com/ClickHouse/ClickHouse/pull/55309
68ce6b9b00d5e60de0ed0cbb46a068d2b051f921
666c690b4f4356d283b48eed91adb749cdeb9366
2023-07-21T06:27:40Z
c++
2023-10-10T09:48:00Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,353
["src/Storages/MergeTree/MergeTreeData.cpp", "src/Storages/MergeTree/MergeTreeData.h", "tests/queries/0_stateless/02540_duplicate_primary_key.sql", "tests/queries/0_stateless/02540_duplicate_primary_key2.reference", "tests/queries/0_stateless/02540_duplicate_primary_key2.sql", "tests/queries/0_stateless/02816_check_pro...
Segfault in projections with `ORDER BY <constant>`
It's a logical error in debug build (trivial to reproduce), but it's known to cause a segmentation fault in release builds (example: https://pastila.nl/?00bfc54a/d23ec9236a59b1185278736662ecda54) ``` dell9510 :) create table kek (uuid FixedString(16), id int, ns Nullable(String), dt DateTime64(6), projection null...
https://github.com/ClickHouse/ClickHouse/issues/52353
https://github.com/ClickHouse/ClickHouse/pull/52361
0db9c798866951a5c5b4fee55e17c8b65afdeed2
b5cf64466887e115656aab065848fb52784964ae
2023-07-20T09:53:57Z
c++
2023-07-21T13:23:04Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,258
["docs/en/engines/table-engines/mergetree-family/annindexes.md", "docs/en/sql-reference/data-types/array.md", "src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp", "src/Storages/MergeTree/MergeTreeIndexUSearch.cpp", "tests/queries/0_stateless/02354_annoy_index.reference", "tests/queries/0_stateless/02354_annoy_index.sql", ...
LOGICAL_ERROR in Annoy index: Array has [...] rows, [...] rows expected.
``` <Error> executeQuery: Code: 49. DB::Exception: Array has 0 rows, 20 rows expected. (LOGICAL_ERROR) (version 23.5.1.34446 (official build)) (from 10.20 .5.65:60124) (in query: [...] Stack trace (when copying this message, always include the lines below): 0. DB::Exception::Exception(DB::Exception::MessageMasked&...
https://github.com/ClickHouse/ClickHouse/issues/52258
https://github.com/ClickHouse/ClickHouse/pull/54600
2ba9263098ea94c2e5b5e43325ba17cbab68ff93
2c91e52da1268aa2cbc155196b495a26b70174c9
2023-07-18T13:49:14Z
c++
2023-09-20T15:05:16Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,207
["docs/en/operations/configuration-files.md", "docs/ru/operations/configuration-files.md", "src/Common/Config/ConfigProcessor.cpp", "src/Common/Config/ConfigProcessor.h", "tests/integration/test_config_hide_in_preprocessed/__init__.py", "tests/integration/test_config_hide_in_preprocessed/configs/config.xml", "tests/int...
Preprocessed config file with hidden/in-memory parts
https://github.com/ClickHouse/ClickHouse/issues/48291 and https://github.com/ClickHouse/ClickHouse/pull/50986 try to avoid plaintext passwords in configuration files. A second angle of attack is the preprocessed XML file which might contains sensitive data (fused from multiple XML/JSON files with varying access rights)...
https://github.com/ClickHouse/ClickHouse/issues/52207
https://github.com/ClickHouse/ClickHouse/pull/53818
55ba08490d692b620dd0973fd221f5c5b13038dc
97d960ba1d6cda0e17d6b7c16da4a08638be6957
2023-07-17T12:57:40Z
c++
2023-08-31T11:00:16Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,186
["src/Interpreters/JoinedTables.cpp", "src/Interpreters/TableJoin.h", "src/Planner/PlannerJoins.cpp", "tests/queries/0_stateless/02815_range_dict_no_direct_join.reference", "tests/queries/0_stateless/02815_range_dict_no_direct_join.sql"]
Crash when using direct join when right table is range dictionary
> You have to provide the following information whenever possible. Reproduce: https://fiddle.clickhouse.com/d4e1257f-0671-4470-9563-214cdd6635e8 ``` [a1b9834a6416] 2023.07.17 07:26:47.600997 [ 319 ] <Fatal> BaseDaemon: ######################################## [a1b9834a6416] 2023.07.17 07:26:47.601063 [ 319 ] ...
https://github.com/ClickHouse/ClickHouse/issues/52186
https://github.com/ClickHouse/ClickHouse/pull/52187
8a2dbb8b9c2cea478754910f0242b0331ab63743
b98dce16e242fbb6a7f0ab89439896cdc00aa619
2023-07-17T08:05:56Z
c++
2023-07-22T08:48:24Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,178
["docs/en/operations/utilities/clickhouse-local.md", "src/Parsers/ExpressionElementParsers.cpp", "src/Parsers/ExpressionElementParsers.h", "src/Parsers/ParserTablesInSelectQuery.cpp", "tests/queries/0_stateless/02816_clickhouse_local_table_name_expressions.reference", "tests/queries/0_stateless/02816_clickhouse_local_t...
Allow writing table name as a string literal.
Currently, we allow writing table names as an identifier: ``` SELECT * FROM table ``` Identifiers can be quoted in ANSI SQL style way: ``` SELECT * FROM "table" ``` And in MySQL style way: ``` SELECT * FROM `table` ``` Recently we started to recognize files as table names in clickhouse-local automat...
https://github.com/ClickHouse/ClickHouse/issues/52178
https://github.com/ClickHouse/ClickHouse/pull/52635
d4441fed5e5e06c939601dc0a6033e61dbaf281e
e5d3e348ce65e9a5bcce3d3658f53b85e5716765
2023-07-17T04:43:53Z
c++
2023-08-04T17:09:59Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,156
["src/Functions/HasTokenImpl.h", "tests/queries/0_stateless/02816_has_token_empty.reference", "tests/queries/0_stateless/02816_has_token_empty.sql"]
hasTokenCaseInsensitive() can hang
The following query never finishes: ``` SELECT hasTokenCaseInsensitive('K(G', '') ``` The stateless asan test [00746_sql_fuzzy.sh](https://s3.amazonaws.com/clickhouse-test-reports/51772/361c235d6e578f1d156c4b49726fcad813d37021/stateless_tests__asan__[1_4].html) found that.
https://github.com/ClickHouse/ClickHouse/issues/52156
https://github.com/ClickHouse/ClickHouse/pull/52160
32b9d391a5c3c5a2bf72b52597acd31241761b37
51c65e38ff9833f7f125dde45c4c0664615802dd
2023-07-16T21:08:49Z
c++
2023-07-18T13:38:34Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
52,153
["docs/en/sql-reference/functions/array-functions.md", "docs/en/sql-reference/functions/string-functions.md", "src/Functions/array/length.cpp", "tests/queries/0_stateless/02815_alias_to_length.reference", "tests/queries/0_stateless/02815_alias_to_length.sql"]
Add `OCTET_LENGTH` as an alias to `length`
**Use case** SQL standard compatibility. **Describe the solution you'd like** Add an alias, case insensitive.
https://github.com/ClickHouse/ClickHouse/issues/52153
https://github.com/ClickHouse/ClickHouse/pull/52176
df363f444e730e51a61fbe570d73ed268694ee8f
89a33c5879de6085f94a9c8e033876c9263f7817
2023-07-16T19:33:56Z
c++
2023-07-17T11:34:01Z