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 | 18,785 | ["src/Common/ThreadStatus.cpp"] | INSERT INTO table FORMAT CSV successfully but reports error msg | I run the bin/upload-data.sh from https://github.com/Altinity/tpc-ds
```
#!/bin/bash
for file_name in `ls ../data/*.dat`; do
table_file=$(echo "${file_name##*/}")
table_name=$(echo "${table_file%_*}" | tr '[:upper:]' '[:lower:]' | tr -d [0-9]|sed 's/__//g')
upload_data_sql="INSERT INTO $table_name... | https://github.com/ClickHouse/ClickHouse/issues/18785 | https://github.com/ClickHouse/ClickHouse/pull/18832 | 371149b8fef1806259ab2d366346dd12317a7a3e | 19ad9e7a5161821e3dcfe0b4ea1f7d85209000fc | 2021-01-06T08:39:36Z | c++ | 2021-01-07T22:15:55Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,765 | ["src/Storages/MergeTree/IMergeTreeReader.cpp", "tests/queries/0_stateless/02017_columns_with_dot_2.reference", "tests/queries/0_stateless/02017_columns_with_dot_2.sql"] | Clickhouse Nested issue | After you create table with fields with dots and after alter table clickhouse throw exception about bad cast
version 20.12.3
How to reproduce
```
CREATE TABLE test_nested
(
`id` String,
`with_dot.str` String,
`with_dot.array` Array(Int32)
)
ENGINE = MergeTree()
ORDER BY id
Insert Into te... | https://github.com/ClickHouse/ClickHouse/issues/18765 | https://github.com/ClickHouse/ClickHouse/pull/28762 | 43102e84273b9aa3aea2d3ed13e0a9858244b78a | 0bb74f8eaf43e86e405708ddebc8758ec0da9ef8 | 2021-01-05T14:04:13Z | c++ | 2021-09-10T14:34:43Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,754 | ["src/Storages/StorageS3.cpp", "tests/integration/test_storage_s3/test.py"] | s3 table function auto compression doesn't work | **How to reproduce**
Clickhouse Server 20.13
```
SELECT *
FROM url('https://storage.yandexcloud.net/my-test-bucket-768/data.csv.gz', 'CSV', 'column1 UInt32, column2 UInt32, column3 UInt32')
LIMIT 2
Query id: 31d85b1f-cc2a-41c4-978d-1fb09840d7b7
┌─column1─┬─column2─┬─column3─┐
│ 1 │ 2 │ 3 │... | https://github.com/ClickHouse/ClickHouse/issues/18754 | https://github.com/ClickHouse/ClickHouse/pull/19793 | f996b8433499cbbabc32febf55ce2291afbc2290 | 98e88d7305c6d067df22f6e1b3413cdd95b7e79d | 2021-01-05T00:57:20Z | c++ | 2021-01-29T20:42:05Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,741 | ["src/Compression/CompressedReadBuffer.h", "src/Compression/CompressionFactory.cpp", "src/Server/TCPHandler.cpp", "src/Storages/Distributed/DistributedBlockOutputStream.cpp", "tests/queries/0_stateless/01640_distributed_async_insert_compression.reference", "tests/queries/0_stateless/01640_distributed_async_insert_compr... | Data rejected by server when clickhouse-client uses zstd network compression | Hello guys,
**Description**
When inserting data into a replicated+distributed table, I've noticed that not all data reaches all shards, only shard where client connects.
TLDR; version of command which fails:
cat payload.json | clickhouse client --input_format_skip_unknown_fields 1 --host 192.168.121.201 --query... | https://github.com/ClickHouse/ClickHouse/issues/18741 | https://github.com/ClickHouse/ClickHouse/pull/18776 | a20c4cce763b4ef6740ed169d6fb83c0af8a440c | 76a32dfdd35b103579f7b728a3ac39b28ae9ac0f | 2021-01-04T19:06:39Z | c++ | 2021-01-06T16:59:41Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,734 | ["debian/control"] | ClickHouse testing version is asking some questions about Kerberos. | It's clearly a bug. I don't need Kerberos. | https://github.com/ClickHouse/ClickHouse/issues/18734 | https://github.com/ClickHouse/ClickHouse/pull/18748 | 2a37f5f6878267444adef030a8d7402ff819354d | 56f3a3b6c71b3d9af95652d9125cb5ffeaea9d6e | 2021-01-04T16:58:49Z | c++ | 2021-01-05T04:09:23Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,733 | ["docs/en/getting-started/example-datasets/brown-benchmark.md", "docs/en/getting-started/example-datasets/index.md"] | Reproduce "mgbench" from Brown University | https://github.com/crottyan/mgbench | https://github.com/ClickHouse/ClickHouse/issues/18733 | https://github.com/ClickHouse/ClickHouse/pull/18739 | e476dcdba78a1f24dd4522b6ef042bbe4756b1b8 | 683b16a5259686231c6055ebee75c1e848307d1c | 2021-01-04T16:36:32Z | c++ | 2021-01-04T18:08:14Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,713 | ["src/AggregateFunctions/AggregateFunctionGroupBitmapData.h", "src/Functions/FunctionsBitmap.h", "tests/queries/0_stateless/00829_bitmap_function.sql", "tests/queries/0_stateless/00974_bitmapContains_with_primary_key.reference", "tests/queries/0_stateless/00974_bitmapContains_with_primary_key.sql"] | bitmapContains does not worked for UInt64 while the bitmap is a AggregateFunction(groupBitmap, UInt64) |
**Describe the bug**
bitmapContains does not worked for UInt64 while the bitmap is of type AggregateFunction(groupBitmap, UInt64)
**How to reproduce**
SELECT
bitmapBuild([toUInt64(1), toUInt64(10000)]) AS res,
bitmapContains(res, toUInt64(200000000)) AS aa
Code: 43. DB::Exception: Received from ... | https://github.com/ClickHouse/ClickHouse/issues/18713 | https://github.com/ClickHouse/ClickHouse/pull/18791 | 4dd9165934ce7a8da98f69bef9c311230d366d3c | fedfcb78e174558ac469ca8061f73f8d45d4b953 | 2021-01-04T07:23:36Z | c++ | 2021-01-13T23:18:42Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,707 | ["src/Parsers/ExpressionListParsers.cpp", "tests/queries/0_stateless/00977_int_div.reference", "tests/queries/0_stateless/00977_int_div.sql", "tests/queries/0_stateless/01412_mod_float.reference", "tests/queries/0_stateless/01412_mod_float.sql"] | MySQL compatibility: DIV and MOD operators | https://dev.mysql.com/doc/refman/8.0/en/arithmetic-functions.html
**Use case**
`a DIV b` - the same as `intDiv(a, b)`
`a MOD b` - the same as `modulo(a, b)` | https://github.com/ClickHouse/ClickHouse/issues/18707 | https://github.com/ClickHouse/ClickHouse/pull/18760 | 06143d73ca9c66cb9b5f078193d24c8233bfec6b | 202d1f2211278e7cb191f7f1f2e27541d06aa4fc | 2021-01-04T00:48:17Z | c++ | 2021-01-05T17:42:58Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,706 | ["docs/en/sql-reference/statements/select/all.md", "src/Parsers/ExpressionElementParsers.cpp", "src/Parsers/ParserSelectQuery.cpp", "tests/queries/0_stateless/01632_select_all_syntax.reference", "tests/queries/0_stateless/01632_select_all_syntax.sql"] | SQL compatibility: support SELECT ALL syntax | **Use case**
For #15112
**Describe the solution you'd like**
SELECT ALL is identical to SELECT without DISTINCT.
If ALL is specified - ignore it.
If both ALL and DISTINCT are specified - syntax error or exception.
ALL can also be specified inside aggregate function:
SELECT sum(ALL x)
with the same e... | https://github.com/ClickHouse/ClickHouse/issues/18706 | https://github.com/ClickHouse/ClickHouse/pull/18723 | 49ad73b9bc3a3edb86df9e0649ee2433995fec46 | bf8d58d2e8696f9a2aa0c0107b70274fe65b867c | 2021-01-04T00:42:40Z | c++ | 2021-01-14T08:53:09Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,701 | ["src/Parsers/ExpressionElementParsers.cpp", "tests/queries/0_stateless/00233_position_function_sql_comparibilty.reference", "tests/queries/0_stateless/00233_position_function_sql_comparibilty.sql"] | SQL compatibility: provide POSITION(needle IN haystack) syntax. | **Use case**
`SELECT POSITION('/' IN s) FROM (SELECT 'Hello/World' AS s);`
The same as `position(s, '/')`
| https://github.com/ClickHouse/ClickHouse/issues/18701 | https://github.com/ClickHouse/ClickHouse/pull/18779 | d76c05e1345741a1be8ba158370b5c1ee092c14f | 63761f72e74cc24a47c353d8e849d709f98783ea | 2021-01-03T21:51:38Z | c++ | 2021-01-06T18:07:15Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,693 | ["programs/server/config.xml", "src/Interpreters/ClientInfo.h", "src/Server/HTTPHandler.cpp", "src/Server/HTTPHandlerFactory.cpp", "src/Server/HTTPHandlerFactory.h", "tests/config/config.d/CORS.xml", "tests/config/install.sh", "tests/queries/0_stateless/00372_cors_header.reference", "tests/queries/0_stateless/02029_tes... | Support CORS fully with pre-flight requests using HTTP OPTIONS and server-side config for CORS | **Use case**
ClickHouse cannot accept connections from web browser-based query tools that implement [CORS protocol preflight requests](https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request). The reason is preflight checks use an OPTIONS request, which ClickHouse does not implement in the HTTP interface.... | https://github.com/ClickHouse/ClickHouse/issues/18693 | https://github.com/ClickHouse/ClickHouse/pull/29155 | 889034f6c2129ce5bb12e1442bd0590f03ec4a7d | ee577e1ab443ff365f06f215aa139a1d6875bf01 | 2021-01-03T08:44:56Z | c++ | 2021-10-09T17:18:17Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,690 | ["src/IO/PeekableReadBuffer.cpp", "src/IO/PeekableReadBuffer.h", "src/IO/tests/gtest_peekable_read_buffer.cpp", "tests/queries/0_stateless/01184_insert_values_huge_strings.reference", "tests/queries/0_stateless/01184_insert_values_huge_strings.sh"] | PeekableReadBuffer: Memory limit exceed when inserting data by HTTP (20.8) | Error started to appear after migrated 19.9 -> 20.8
Settings
<input_format_parallel_parsing>0</input_format_parallel_parsing>
and
<input_format_values_interpret_expressions>0</input_format_values_interpret_expressions>
do not help
```
2021.01.03 08:01:15.601198 [ 1968 ] {b4472a5e-e463-4852-a0ed-efd90fae639... | https://github.com/ClickHouse/ClickHouse/issues/18690 | https://github.com/ClickHouse/ClickHouse/pull/18979 | aa51463c933e4af08227df68192ddfe237be09b1 | fb6d1dc18e1e5641e4753c69f28ad73d6c1db3bb | 2021-01-03T08:11:27Z | c++ | 2021-01-15T10:43:50Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,629 | ["src/Storages/StorageTinyLog.cpp", "tests/queries/0_stateless/01651_lc_insert_tiny_log.reference", "tests/queries/0_stateless/01651_lc_insert_tiny_log.sql"] | Logical error: Got empty stream for DataTypeLowCardinality keys | ```
milovidov-desktop :) CREATE TABLE perf_lc_num( num UInt8, arr Array(LowCardinality(Int64)) default [num] ) ENGINE = TinyLog
CREATE TABLE perf_lc_num
(
`num` UInt8,
`arr` Array(LowCardinality(Int64)) DEFAULT [num]
)
ENGINE = TinyLog
Query id: e95f9a71-5795-4dea-8d80-4729fc... | https://github.com/ClickHouse/ClickHouse/issues/18629 | https://github.com/ClickHouse/ClickHouse/pull/19010 | bf49b669ca75dfb05472f977792a0ef3d8c8a8e5 | 7b33ad5e447865d1644ac9fc072faaed56fae2db | 2020-12-30T13:41:52Z | c++ | 2021-01-14T08:25:38Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,582 | ["src/Storages/StorageReplicatedMergeTree.cpp", "tests/integration/test_merge_tree_empty_parts/__init__.py", "tests/integration/test_merge_tree_empty_parts/configs/cleanup_thread.xml", "tests/integration/test_merge_tree_empty_parts/configs/remote_servers.xml", "tests/integration/test_merge_tree_empty_parts/test.py"] | 20.12 CH crashes trying to delete empty parts from a table created with the old syntax | I have a few SummingMergeTree tables created many years ago.
20.12 crashes trying to delete empty parts with the message: `Unexpected part name: 201907_44_45_999999999`
```
2020.12.28 20:57:39.962301 [ 21808 ] {} <Trace> db.table (ReplicatedMergeTreeCleanupThread): Checking 100 blocks (100 are not cached) to clear o... | https://github.com/ClickHouse/ClickHouse/issues/18582 | https://github.com/ClickHouse/ClickHouse/pull/18614 | ea39f59a5f587214334f61156b5b2ed1b680fafe | 1bcdf37c366965e2b7978e89091e32261e19001d | 2020-12-28T22:06:19Z | c++ | 2020-12-30T14:20:31Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,535 | ["src/Functions/array/arrayCompact.cpp", "tests/queries/0_stateless/01020_function_array_compact.sql", "tests/queries/0_stateless/01025_array_compact_generic.reference", "tests/queries/0_stateless/01025_array_compact_generic.sql"] | arrayCompact as Higher-order function | **Use case**
To be able run arrayCompact with deduplication based on some function from input value.
**Describe the solution you'd like**
```
SELECT
[(1, 'a'), (2, 'b'), (3, 'b'), (4, 'c')] AS arr,
arrayCompact((x)-> x.2, arr)
```
**Describe alternatives you've considered**
```
SELECT
[(1, ... | https://github.com/ClickHouse/ClickHouse/issues/18535 | https://github.com/ClickHouse/ClickHouse/pull/34795 | aea7bfb59aa23432b7eb6f69c4ce158c40f65c11 | 7d01516202152c8d60d4fed6b72dad67357d337f | 2020-12-26T02:12:35Z | c++ | 2022-03-03T18:25:43Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,525 | ["src/AggregateFunctions/AggregateFunctionGroupArray.h", "src/Common/PODArray.h"] | Fuzzer, UBSan, statistical functions, PODArray, memcpy called with zero size and nullptr. | ```
SELECT roundBankers(mannWhitneyUTest('greater')(left, right).1, 16) as t_stat, roundBankers(mannWhitneyUTest('greater')(left, right).2, 16) as p_value FROM mann_whitney FORMAT TabSeparatedWithNames;
```
https://clickhouse-test-reports.s3.yandex.net/18488/1ddea6d7eed5cadce087cf19e51413440571a472/stress_test_(un... | https://github.com/ClickHouse/ClickHouse/issues/18525 | https://github.com/ClickHouse/ClickHouse/pull/18526 | 19e0e1a40397f3fdae5b233929098d4780e3efd0 | aff724ea7d371d322589fba96a1214aacab78e59 | 2020-12-25T19:05:04Z | c++ | 2021-01-02T14:07:54Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,492 | ["src/Functions/FunctionsConversion.h", "tests/queries/0_stateless/01550_create_map_type.sql"] | Debug assertion in Map datatype | ```
SELECT
CAST(([2, 1, 1023], ['', '']), 'Map(UInt8, String)') AS map,
map[10]
```
Triggers `Assertion 'n < size()' failed` in `DB::ColumnString::operator[](unsigned long)`
https://clickhouse-test-reports.s3.yandex.net/18481/64c4ade5b0e0c9a13d6c2475431daf431fc97554/fuzzer/fuzzer.log
Introduced here:... | https://github.com/ClickHouse/ClickHouse/issues/18492 | https://github.com/ClickHouse/ClickHouse/pull/18523 | 00bc167872598744135f1caf7e6d4cb9684cd8e0 | 8eb9788955dc14903c5e55cdda39d232f3a3e26e | 2020-12-25T01:08:15Z | c++ | 2020-12-26T07:00:01Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,407 | ["docs/en/sql-reference/statements/create/view.md", "src/Core/Settings.h", "src/Interpreters/SystemLog.cpp", "src/Processors/Transforms/buildPushingToViewsChain.cpp", "tests/queries/0_stateless/02572_materialized_views_ignore_errors.reference", "tests/queries/0_stateless/02572_materialized_views_ignore_errors.sql", "te... | Fire and forget mode or limited number of retries for distributed sends. | **Use case**
1. Mirror data from production to testing environment with MATERIALIZED VIEW with Distributed engine. The testing cluster should not affect production in any way: better to skip data when testing is unavailable than to accumulate it.
2. Send query_log, metric_log, text_log, etc. to third-party unreli... | https://github.com/ClickHouse/ClickHouse/issues/18407 | https://github.com/ClickHouse/ClickHouse/pull/46658 | 65d671b7c72c7b1da23f831faa877565cf34f92c | 575ffbc4653b117e918356c8e60f7748df956643 | 2020-12-23T12:16:44Z | c++ | 2023-03-09T11:19:48Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,402 | ["src/IO/parseDateTimeBestEffort.cpp", "src/IO/parseDateTimeBestEffort.h", "tests/queries/0_stateless/01351_parse_date_time_best_effort_us.reference", "tests/queries/0_stateless/01351_parse_date_time_best_effort_us.sql", "tests/queries/0_stateless/01442_date_time_with_params.reference", "tests/queries/0_stateless/01442... | parseDateTimeBestEffort should not ignore AM abbreviation for 12th hour | Ignoring AM abbreviation leads to wrong processing the 12th hour.
**Bug reproducing**
```sql
SELECT
parseDateTimeBestEffort('2020-02-01 12:10:00 AM') AS am,
parseDateTimeBestEffort('2020-02-01 12:10:00 PM') AS pm
┌──────────────────am─┬──────────────────pm─┐
│ 2020-02-01 12:10:00 │ 2020-02-01 12:10:0... | https://github.com/ClickHouse/ClickHouse/issues/18402 | https://github.com/ClickHouse/ClickHouse/pull/18449 | fcacb053db26f08f35270a7313e8437dcecc86f8 | 230f9b6ad40308c1c4a5b088a8042e80ca317e99 | 2020-12-23T09:30:41Z | c++ | 2020-12-25T19:32:43Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,391 | ["contrib/libunwind"] | clickhouse from 20.4 exeception process get core dump on aarch64 | I build clickhouse 20.8.6.4-lts on aarch64, it runs well.
but when got exception ,it core dump.
for example. connect an unexist clickhouse, it got error : connect refused , after that ,it core dump
the core like this:
I test several versions, the clickhosue20.3.XX run ok, from20.4, all coreed when exception ha... | https://github.com/ClickHouse/ClickHouse/issues/18391 | https://github.com/ClickHouse/ClickHouse/pull/25854 | 956b1f588dbf5e406bf61e8a9b4e329d35af8b70 | 011ed015fa49c8e1a37f6f103c28def5e637a23f | 2020-12-23T02:44:36Z | c++ | 2021-06-30T13:18:59Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,383 | ["tests/queries/0_stateless/01562_optimize_monotonous_functions_in_order_by.reference", "tests/queries/0_stateless/01576_alias_column_rewrite.reference"] | Check whether optimization was applied | I'm experimenting with query settings to get the best possible performance from a query. Is there a way to check whether a setting related to optimization has been really applied? For example, I'm trying with `SETTINGS optimize_aggregation_in_order = 1`, but in some cases the optimization is disabled and there is no ea... | https://github.com/ClickHouse/ClickHouse/issues/18383 | https://github.com/ClickHouse/ClickHouse/pull/20050 | c715f0e2ede82d3644eab45c79ac024f5e0ac75e | 9d8033d8d67c42e098f70e41c8b2fd425c052f0e | 2020-12-23T01:07:40Z | c++ | 2021-02-03T19:49:04Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,356 | ["src/Functions/if.cpp", "tests/queries/0_stateless/01701_if_tuple_segfault.reference", "tests/queries/0_stateless/01701_if_tuple_segfault.sql"] | Crash when updating tuples? | **Describe the bug**
I have a table like
```
CREATE TABLE IF NOT EXISTS xxx
(
time DateTime CODEC(DoubleDelta, LZ4),
xxx String,
total SimpleAggregateFunction(sum, UInt64) CODEC(T64, LZ4),
agg1 SimpleAggregateFunction(sumMap, Tuple(Array(Int16), Array(UInt64))),
agg2 SimpleAggregate... | https://github.com/ClickHouse/ClickHouse/issues/18356 | https://github.com/ClickHouse/ClickHouse/pull/20133 | dee8f1fbf238dedc4fed32c05927b986877c3d7c | 5c281bd2f10ded51cc12a03502f0d15a1a70ed1b | 2020-12-22T10:09:39Z | c++ | 2021-02-06T06:52:54Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,340 | ["src/Storages/MergeTree/IMergeTreeDataPart.cpp", "tests/integration/test_compression_codec_read/__init__.py", "tests/integration/test_compression_codec_read/test.py"] | EOF from detectDefaultCompressionCodec start happening between v20.8.2.3 and v20.13.1.1? | I tried to upgrade ClickHouse from v20.8.2.3 to v20.13.1.1 but there are some errors while reading a merge_tree table..
**Error Messages:**
```
2020.12.22 11:19:36.084760 [ 20114 ] {} <Error> DB::MergeTreeData::loadDataParts(bool)::<lambda()>: Code: 32, e.displayText() = DB::Exception: Attempt to read after eof, S... | https://github.com/ClickHouse/ClickHouse/issues/18340 | https://github.com/ClickHouse/ClickHouse/pull/19101 | fa8a3237fa469e0ad7d9feb97d573e3bc8c2e955 | b97beea22a5a81787da4422e58862176e081bc01 | 2020-12-22T02:44:18Z | c++ | 2021-01-15T17:55:58Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,265 | ["docs/en/getting-started/example-datasets/recipes.md"] | RecipeNLG dataset | **Describe the issue**
Describe the dataset from Poznań University of Technology in the docs.
https://recipenlg.cs.put.poznan.pl/dataset
**Additional context**
We cannot redistribute it directly as the user must agree with the Terms and Conditions.
But we can provide description and detailed instructions.
| https://github.com/ClickHouse/ClickHouse/issues/18265 | https://github.com/ClickHouse/ClickHouse/pull/18272 | 37fb7e707cf0320a300bfc2b93b2d01c2b4d9281 | 7a078337ff7bc96d108a38418e90e749c60f14f6 | 2020-12-20T08:14:29Z | c++ | 2020-12-20T12:52:08Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,244 | ["src/Storages/MergeTree/IMergeTreeDataPart.cpp", "src/Storages/MergeTree/IMergeTreeDataPart.h", "src/Storages/MergeTree/MergeTreeData.cpp", "src/Storages/System/StorageSystemParts.cpp", "src/Storages/System/StorageSystemPartsColumns.cpp", "tests/queries/0_stateless/01773_min_max_time_system_parts_datetime64.reference"... | Tables with DateTime64 don't have min/max_time set? | **Describe the bug**
I have a table like:
```
CREATE TABLE test (
time DateTime64(3)
...
) ENGINE = MergeTree()
PARTITION BY toStartOfInterval(time, INTERVAL 1 HOUR)
...
```
But when I search in `system.parts` it does not appear to have the `min/max` columns appropriately set?
```
partition:... | https://github.com/ClickHouse/ClickHouse/issues/18244 | https://github.com/ClickHouse/ClickHouse/pull/22011 | 52396acba12360d093e55f1d2651e07025025463 | f895bc895cf63791185c07349979db328bf0bac7 | 2020-12-19T18:10:05Z | c++ | 2021-03-25T13:02:33Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,241 | ["docs/en/sql-reference/dictionaries/external-dictionaries/external-dicts-dict-layout.md", "docs/fr/sql-reference/dictionaries/external-dictionaries/external-dicts-dict-layout.md", "docs/ja/sql-reference/dictionaries/external-dictionaries/external-dicts-dict-layout.md", "docs/ru/sql-reference/dictionaries/external-dict... | Fetch key from dictionary | **Use case**
I'm using `ip_trie` on maxmind geoip databases. Given an IP address I want to find out what key was used (ie what network the IP comes under). But it seems it is not possible to look up the key field when using `dictGet`?
```
<layout>
<ip_trie/>
</layout>
<struct... | https://github.com/ClickHouse/ClickHouse/issues/18241 | https://github.com/ClickHouse/ClickHouse/pull/18480 | fd08bf31327dc7b9063b5b3ad3ab01f0f3a89ad4 | 6863dbd6a872a8f92a30a48e2537a4cb463f2ffa | 2020-12-19T10:54:21Z | c++ | 2020-12-28T13:15:40Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,210 | ["src/AggregateFunctions/AggregateFunctionIf.cpp", "tests/queries/0_stateless/01642_if_nullable_regression.reference", "tests/queries/0_stateless/01642_if_nullable_regression.sql"] | Remote Query Execution with sumIf() function faling | I'm using clickhouse 20.12.3.3 version.
The execution of sumIf() function is failing on the distributed table
Query:
`SELECT sumIf(pos_sales,isNotNull (pos_sales)) , fin_seg_desc AS SBU from stores_cost_position_dist where ((week between 201945 AND 202043)) group by fin_seg_desc;
`
Fails with:
`Code: 42. DB::E... | https://github.com/ClickHouse/ClickHouse/issues/18210 | https://github.com/ClickHouse/ClickHouse/pull/18806 | 68ccdc8ca2e13cdab1a5b8a66b28979fe64d3b44 | b73722e587bfaa1097b3ff93835b2785f7ceb4bb | 2020-12-18T00:12:31Z | c++ | 2021-01-07T12:25:54Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,197 | ["src/Interpreters/HashJoin.cpp", "src/Interpreters/MergeJoin.cpp", "src/Interpreters/join_common.cpp", "src/Interpreters/join_common.h", "tests/queries/0_stateless/01656_join_defaul_enum.reference", "tests/queries/0_stateless/01656_join_defaul_enum.sql"] | Enum Column in LEFT JOIN leads to Exception | When doing a left join on a table, which contains an Enum column, selecting this column will lead to an error when setting 'join_use_nulls' is disabled. Clickhouse tries to use default value for enum which does not exist.
**How to reproduce**
Tested with clh: 20.12.3.3
```
CREATE TABLE join_test_main (
key... | https://github.com/ClickHouse/ClickHouse/issues/18197 | https://github.com/ClickHouse/ClickHouse/pull/19360 | 4afcb94a8ad05c0bf38b41dbb921e9c4f5e6bc89 | 25ea281297324b92c134942d12539d6bcdc17ad4 | 2020-12-17T12:43:27Z | c++ | 2021-01-22T20:51:56Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,190 | ["src/Interpreters/ActionsDAG.cpp", "src/Interpreters/ExpressionActions.h", "src/Processors/QueryPlan/ExpressionStep.cpp", "tests/queries/0_stateless/01650_expressions_merge_bug.reference", "tests/queries/0_stateless/01650_expressions_merge_bug.sql"] | Block structure mismatch in QueryPipeline stream: different number of columns | ```
SELECT
NULL IN
(
SELECT
9223372036854775807,
9223372036854775807
),
NULL
FROM
(
SELECT DISTINCT
NULL,
NULL,
NULL IN
(
SELECT (NULL, '-1')
),
NULL
FROM numbers(1024)
)
Query i... | https://github.com/ClickHouse/ClickHouse/issues/18190 | https://github.com/ClickHouse/ClickHouse/pull/18980 | 73e536a0748310fb033ddc1520db8ec4b1d179b2 | 07431a64940d88735ebeaeed8102f6160c0c99ff | 2020-12-17T11:25:47Z | c++ | 2021-01-13T08:16:01Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,170 | ["tests/queries/0_stateless/01818_move_partition_simple.reference", "tests/queries/0_stateless/01818_move_partition_simple.sql"] | `Move Partition To Table` will lost data | **Describe the bug**
Use `Move Partition To Table` to move data from tmp table to production table, some data will lost after moving
**How to reproduce**
* Which ClickHouse server version to use
20.12.3.3
* Which interface to use, if matters
`Move Partition To Table`
* Queries to run that lead to unexpected ... | https://github.com/ClickHouse/ClickHouse/issues/18170 | https://github.com/ClickHouse/ClickHouse/pull/23813 | 711cc5f62bda02f9f3035118d07ac1ad524aaff8 | 72d9e4d34047b17c8780e56613b7373718cf2c6c | 2020-12-17T02:02:31Z | c++ | 2021-05-01T08:31:36Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,137 | ["src/Storages/MergeTree/MergeTreeReadPool.cpp", "tests/queries/0_stateless/01603_read_with_backoff_bug.reference", "tests/queries/0_stateless/01603_read_with_backoff_bug.sql"] | 20.12.3.3 Less amount of data is returned if "read backoff" is in effect. | Consider following:
1 master server with Distributed table (```tracking_distributed```), 2 shards, previously was 4 shards, but during chat discussion i've reduced them to 2 for easier debugging (including master server each having 1 replica with 1 MergeTree table ```tracking_shard```). Also a ```tracking``` table ... | https://github.com/ClickHouse/ClickHouse/issues/18137 | https://github.com/ClickHouse/ClickHouse/pull/18216 | 3261392f168e7fb47bf984f4c17cf6634b9a18cc | d7fc426458fa75ae7556478057d893d79ed5f20b | 2020-12-16T10:34:59Z | c++ | 2020-12-18T15:49:02Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,121 | ["contrib/libunwind"] | start clickhouse on aarch64 get coredump | I build clickhouse 20.8.6 code on aarch64,
the gcc :9.3.0
clang+llvm:10.0
the build is ok:
cd ClickHouse
export CC=clang; export CXX=clang++; rm -rf build; mkdir -p build && cd build;cmake .. -DENABLE_TCMALLOC=OFF -DENABLE_JEMALLOC=OFF -DCMAKE_INSTALL_PREFIX=/opt/clickhouse
ninja clickhouse
when run clickhou... | https://github.com/ClickHouse/ClickHouse/issues/18121 | https://github.com/ClickHouse/ClickHouse/pull/25854 | 956b1f588dbf5e406bf61e8a9b4e329d35af8b70 | 011ed015fa49c8e1a37f6f103c28def5e637a23f | 2020-12-16T01:28:08Z | c++ | 2021-06-30T13:18:59Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,120 | ["contrib/CMakeLists.txt", "contrib/consistent-hashing-sumbur/CMakeLists.txt", "contrib/consistent-hashing-sumbur/sumbur.cpp", "contrib/consistent-hashing-sumbur/sumbur.h", "src/Functions/CMakeLists.txt", "src/Functions/registerFunctionsConsistentHashing.cpp", "src/Functions/sumburConsistentHash.cpp", "src/Functions/ya... | Announcement: removal of sumburConsistentHash. | We are going to remove `sumburConsistentHash` function due to low demand and limited possible usages.
If you are using this function please describe your scenarios here.
`jumpConsistentHash` and `yandexConsistentHash` will remain available. | https://github.com/ClickHouse/ClickHouse/issues/18120 | https://github.com/ClickHouse/ClickHouse/pull/18656 | 07411aafd21744e1bfacb90e7e6f576289946b8a | 80ae2b5138d98c01399c10543c11b69f7b2bad83 | 2020-12-16T00:07:09Z | c++ | 2020-12-31T11:46:52Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,091 | ["docs/en/engines/database-engines/materialized-mysql.md", "src/Common/mysqlxx/mysqlxx/Types.h", "src/Core/MySQL/MySQLReplication.cpp", "src/DataTypes/DataTypeString.cpp", "src/DataTypes/DataTypesNumber.cpp", "src/Databases/MySQL/MaterializedMySQLSyncThread.cpp", "src/Interpreters/MySQL/InterpretersMySQLDDLQuery.cpp", ... | MaterializeMySQL: support time data type | <Error> MaterializeMySQLSyncThread: Code: 50, e.displayText() = DB::Exception: Unknown data type family: time, Stack trace (when copying this message, always include the lines below):
0. DB::DataTypeFactory::findCreatorByName(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const... | https://github.com/ClickHouse/ClickHouse/issues/18091 | https://github.com/ClickHouse/ClickHouse/pull/33429 | 677a7f1133c7e176dc38b291d54f63f0207e8799 | 9e91a9dfd1dae8072d9d2132a4b3e4bbb70e1c1d | 2020-12-15T07:27:55Z | c++ | 2022-01-26T08:29:46Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,063 | ["src/AggregateFunctions/AggregateFunctionSum.h", "src/Storages/StorageMaterializedView.cpp", "tests/queries/0_stateless/01182_materialized_view_different_structure.reference", "tests/queries/0_stateless/01182_materialized_view_different_structure.sql", "tests/queries/0_stateless/arcadia_skip_list.txt"] | SEGFAULT and wrong result while querying MV with mismatched Decimal Types. | **How to reproduce**
Clickhouse version 20.12.3.3, 20.13.1.5365
```
CREATE TABLE default.test_table
(
`key` UInt32,
`value` Decimal(16, 6)
)
ENGINE = SummingMergeTree()
PARTITION BY tuple()
ORDER BY key
SETTINGS index_granularity = 8192
INSERT INTO test_table SELECT *, toDecimal64(number,6) a... | https://github.com/ClickHouse/ClickHouse/issues/18063 | https://github.com/ClickHouse/ClickHouse/pull/19322 | ad73dc6c721bb7e8a7d988a3aaa1d7c44391d9e5 | 1b832aa698f5f3d96a625728df989721d2fd52ba | 2020-12-14T15:16:18Z | c++ | 2021-01-22T17:15:09Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 18,051 | ["src/Core/Settings.h", "src/Interpreters/RewriteAnyFunctionVisitor.cpp", "tests/queries/0_stateless/01398_any_with_alias.sql", "tests/queries/0_stateless/01470_columns_transformers.reference", "tests/queries/0_stateless/01591_window_functions.reference", "tests/queries/0_stateless/01591_window_functions.sql", "tests/q... | inconsistent `nullIf` behavior inside function `any` | I am using `nullIf` in aggregations to skip unwanted empty strings. Strangely enough `any` function picks `NULL`s resulting from `nullIf`, i.e. does skip them as it should do with NULLs.
### Minimal reproducing code
```sql
select any(nullIf('', ''), 'some text');
```
produces:
```
┌─nullIf('', '')─┐
│ ᴺᵁᴸᴸ ... | https://github.com/ClickHouse/ClickHouse/issues/18051 | https://github.com/ClickHouse/ClickHouse/pull/18981 | 7d7af00afb2a2dde105abc78b8fa1378176efa96 | 6d79068a0fc7459341e77a086ec1de9d9e59dfed | 2020-12-13T19:00:51Z | c++ | 2021-01-14T07:12:55Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,994 | ["contrib/libunwind"] | compile clickhouse on arm(aarch64) ok ,but execute clickhouse got bus error | build clickhouse on arm ok, but execute clickhouse --help
got bus error.
I don't know why.
can you tell me how to comiple on arm with ninja? thank you
gcc version -------------------------------------------------------------------
node53 /home/amos/gentoo # gcc -v
Using built-in specs.
COLLECT_GCC=gc... | https://github.com/ClickHouse/ClickHouse/issues/17994 | https://github.com/ClickHouse/ClickHouse/pull/25854 | 956b1f588dbf5e406bf61e8a9b4e329d35af8b70 | 011ed015fa49c8e1a37f6f103c28def5e637a23f | 2020-12-11T06:00:05Z | c++ | 2021-06-30T13:18:59Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,964 | ["tests/queries/0_stateless/01914_index_bgranvea.reference", "tests/queries/0_stateless/01914_index_bgranvea.sql"] | "Illegal column for DataTypeNullable" with indexed column | **How to reproduce**
```
ClickHouse client version 20.11.5.18 (official build).
Connecting to localhost:9000 as user default.
Connected to ClickHouse server version 20.11.5 revision 54442.
create table test (id UInt64,insid UInt64,insidvalue Nullable(UInt64), index insid_idx (insid) type bloom_filter() granulari... | https://github.com/ClickHouse/ClickHouse/issues/17964 | https://github.com/ClickHouse/ClickHouse/pull/25285 | 1aac27e9034e7d7b3107bd80ad053ad75b4fe3be | f12368bbb492de77d808a70edec33335902f9f50 | 2020-12-10T14:30:04Z | c++ | 2021-06-17T06:14:25Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,938 | ["src/Interpreters/InterpreterInsertQuery.cpp"] | Misleading error message while inserting in a remote() table function with URL table engine in it. | **Describe the issue**
We have a table with URL table engine like described below.
And we want to insert into that table via a remote table function.
And if we used a non-existent column name, clickhouse would produce misleading error messages about that table not existing.
**How to reproduce**
Table ddl:
https... | https://github.com/ClickHouse/ClickHouse/issues/17938 | https://github.com/ClickHouse/ClickHouse/pull/19013 | fc5e09d6b8a6f350954e642cdf6bf4a47ba310b5 | 49ad73b9bc3a3edb86df9e0649ee2433995fec46 | 2020-12-09T16:58:13Z | c++ | 2021-01-14T08:42:06Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,933 | ["docs/en/operations/settings/settings.md", "docs/ru/operations/settings/settings.md", "src/Core/Settings.h", "src/Functions/FunctionsConversion.h", "src/IO/ReadHelpers.h", "tests/queries/0_stateless/02813_float_parsing.reference", "tests/queries/0_stateless/02813_float_parsing.sql"] | Give the ability to choose float from string parsing algorithms.[Fast/Precise] | In continuation of #1665
It would be useful to be able choose a float parsing algorithm, as some drivers don't support binary formats and that can be done as session setting.
**Use case**
Clickhouse version 20.13.1.5365
```
SELECT
toFloat64(15008753.),
toFloat64('1.5008753E7')
Query id: b4376f9b-a... | https://github.com/ClickHouse/ClickHouse/issues/17933 | https://github.com/ClickHouse/ClickHouse/pull/52791 | d90048693a0a0a4182890f7c42e4de9307e657a6 | 357fee99ff9bcdf76dd044ee11ae2d3c6f5f5a43 | 2020-12-09T13:52:51Z | c++ | 2023-08-02T04:23:23Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,912 | ["src/Interpreters/MySQL/InterpretersMySQLDDLQuery.cpp", "src/Interpreters/MySQL/tests/gtest_create_rewritten.cpp"] | Hope MaterializeMySQL engine can support MySQL prefix index | **Use case**
mysql repl to clickhouse
**Describe the solution you'd like**
Hope MaterializeMySQL engine can support MySQL prefix index
| https://github.com/ClickHouse/ClickHouse/issues/17912 | https://github.com/ClickHouse/ClickHouse/pull/17944 | 5f78280aec51a375827eebfcc7c8a2a91efeb004 | 60aef3d5291bed69947bba7c82e12f5fcd85e7b4 | 2020-12-09T02:35:53Z | c++ | 2020-12-10T16:42:38Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,882 | ["src/Storages/MergeTree/MergeTreeData.cpp", "src/Storages/MergeTree/MergeTreeData.h", "src/Storages/StorageMergeTree.cpp", "src/Storages/StorageReplicatedMergeTree.cpp", "src/Storages/StorageReplicatedMergeTree.h", "tests/queries/0_stateless/02004_invalid_partition_mutation_stuck.sql"] | Is it a bug when number of ast elements > max_expanded_ast_elements if there are many mutations. | I am reading clickhouse mutation code. In StorageMergeTree->selectPartsToMutate() function, there is a check
`if (current_ast_elements + commands_size >= max_ast_elements)
break;`
I think if there are many mutations then the check result will be true, so that it will skip the remaining mutations.
... | https://github.com/ClickHouse/ClickHouse/issues/17882 | https://github.com/ClickHouse/ClickHouse/pull/32814 | e834d655a5a3b30e1270b5a3b88be6d6b0a686ce | 7dbdcf91bf0a76a80302eb782cfd6e6a10808d9e | 2020-12-08T02:11:03Z | c++ | 2021-12-17T05:53:36Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,876 | ["src/Functions/bar.cpp", "tests/queries/0_stateless/01621_bar_nan_arguments.reference", "tests/queries/0_stateless/01621_bar_nan_arguments.sql"] | Query Fuzzer: bar, greatCircleAngle: too large size passed to allocator. | ```
SELECT bar((greatCircleAngle(65537, 2, number, number) - number) * 65535, 1048576, 1048577, nan)
FROM numbers(1025)
Query id: 1792a79a-e5ae-425d-aaeb-55fbff42ea0e
→ Progress: 1.02 thousand rows, 8.20 KB (10.09 thousand rows/s., 80.73 KB/s.) 99%
Received exception from server (version 20.13.1):
Code: 49. ... | https://github.com/ClickHouse/ClickHouse/issues/17876 | https://github.com/ClickHouse/ClickHouse/pull/18520 | 7b23b866a231cb399ada061e7e378d2d3ac625c7 | c3ad122142adc382a44695be3ff4a8067849437f | 2020-12-07T20:40:52Z | c++ | 2020-12-26T01:32:05Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,875 | ["src/AggregateFunctions/AggregateFunctionGroupArray.h", "src/AggregateFunctions/AggregateFunctionGroupUniqArray.h", "tests/queries/0_stateless/01651_group_uniq_array_enum.reference", "tests/queries/0_stateless/01651_group_uniq_array_enum.sql"] | groupUniqArray + Enum data type returns Int instead of Enum | **How to reproduce**
Clickhouse version 20.11.5.18, 20.8.7.15, 20.3.19
```
SELECT
groupUniqArray(val) AS uniq,
toTypeName(uniq),
groupArray(val) AS arr,
toTypeName(arr)
FROM
(
SELECT CAST(number % 2, 'Enum(\'hello\' = 1, \'world\' = 0)') AS val
FROM numbers(2)
)
Query id: d4657f27... | https://github.com/ClickHouse/ClickHouse/issues/17875 | https://github.com/ClickHouse/ClickHouse/pull/19019 | c1732ef1b5874dafec2b33ee3e067c455d1d378c | 2c8ce7d94ea2a15ed0611bc5461597213f296530 | 2020-12-07T17:33:06Z | c++ | 2021-01-14T07:11:44Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,861 | ["src/Interpreters/JoinedTables.cpp", "tests/queries/0_stateless/01938_joins_identifiers.reference", "tests/queries/0_stateless/01938_joins_identifiers.sql"] | Error joining tables with special symbols in names. | (you don't have to strictly follow this form)
**Describe the bug**
Join fails if table names contain some special symbols (e.g. '/').
**How to reproduce**
* Which ClickHouse server version to use
version 20.11.4
* Which interface to use, if matters
* Non-default settings, if any
* `CREATE TABLE` statements ... | https://github.com/ClickHouse/ClickHouse/issues/17861 | https://github.com/ClickHouse/ClickHouse/pull/25924 | f238d98fd04a88e4fbf27452a4729824d9b6ccc7 | c584312c57af57ef1a27dfe8dd9bf15a33a3e773 | 2020-12-07T10:39:35Z | c++ | 2021-07-03T11:55:26Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,799 | ["debian/clickhouse-server.init"] | Problem while trying to start clickhouse server | **Version:**
ClickHouse client version 20.10.3.30 (official build)
Connected to ClickHouse server version 20.10.3 revision 54441
**Task Description:**
**Task1 :**
trying to do restart and check status of clickhouse server using below commands
```sudo /etc/init.d/clickhouse-server restart```
```sudo /et... | https://github.com/ClickHouse/ClickHouse/issues/17799 | https://github.com/ClickHouse/ClickHouse/pull/25921 | edce77803f07a29efd32190bc7c3053325894113 | 38d1ce310d9ff824fc38143ab362460b2b83ab7d | 2020-12-04T12:51:18Z | c++ | 2021-07-03T11:50:05Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,756 | ["tests/queries/0_stateless/02693_multiple_joins_in.reference", "tests/queries/0_stateless/02693_multiple_joins_in.sql"] | "unknown column name" with multi-join + IN table | ```
root@db-0:/# clickhouse-client
ClickHouse client version 20.11.4.13 (official build).
Connecting to localhost:9000 as user default.
Connected to ClickHouse server version 20.11.4 revision 54442.
db-0 :) create temporary table temp_table3(val0 UInt64) ENGINE=Memory();
db-0 :) select * from (select 1 as id)... | https://github.com/ClickHouse/ClickHouse/issues/17756 | https://github.com/ClickHouse/ClickHouse/pull/47739 | 2b439f079ef8f3410b5ace1bdba46e4ceb361ff4 | 50e1eedd4766ed8c2e34339d78f000d63f4d5191 | 2020-12-03T09:45:32Z | c++ | 2023-03-23T14:48:06Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,733 | ["src/Storages/IStorage.h", "src/Storages/MergeTree/MergeTreeData.cpp", "src/Storages/MergeTree/MergeTreeData.h", "src/Storages/StorageMergeTree.cpp", "src/Storages/StorageMergeTree.h", "tests/queries/0_stateless/02148_in_memory_part_flush.reference", "tests/queries/0_stateless/02148_in_memory_part_flush.sql"] | In-memory parts with disabled wal-log disappear while server restart or DETACH table. | **How to reproduce**
Clickhouse server 20.13.1.5273
```
CREATE TABLE default.test
(
`key` UInt32,
`ts` DateTime CODEC(DoubleDelta, LZ4),
`db_time` DateTime DEFAULT now() COMMENT 'spout-ignore' CODEC(DoubleDelta, LZ4)
)
ENGINE = MergeTree
PARTITION BY toStartOfTenMinutes(db_time)
ORDER BY (key, ts)
TTL db_ti... | https://github.com/ClickHouse/ClickHouse/issues/17733 | https://github.com/ClickHouse/ClickHouse/pull/32742 | bf415378be7a223f71d9325080f8c23b63948a7a | 2e388a72daedbba1183624578014dc599046c3b1 | 2020-12-02T12:45:01Z | c++ | 2021-12-14T20:09:10Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,731 | ["src/Storages/MergeTree/MergeTreeData.cpp", "src/Storages/MergeTree/MergeTreeData.h", "src/Storages/MergeTree/MergeTreeWriteAheadLog.cpp", "src/Storages/MergeTree/MergeTreeWriteAheadLog.h", "tests/queries/0_stateless/02410_inmemory_wal_cleanup.reference", "tests/queries/0_stateless/02410_inmemory_wal_cleanup.sql"] | Slow start with high memory consumption: log filled with "<Debug> DiskLocal: Reserving 1.00 MiB on disk `default`, having unreserved 16.90 TiB." | **Describe the bug**
Since we upgraded to 20.10.3.30, one of our clickhouse cluster takes much more time to start. (Up to 50 minutes, and before it took ~3 minutes)
The log file is filled with
> <Debug> DiskLocal: Reserving 1.00 MiB on disk `default`, having unreserved 16.90 TiB
Additionally, the memory consum... | https://github.com/ClickHouse/ClickHouse/issues/17731 | https://github.com/ClickHouse/ClickHouse/pull/40592 | 582216a3ca1093dee7a72a4ab7b2c3f2c7dc3665 | f11b7499d183511b9e5694a92c407f5ce5e0eeb8 | 2020-12-02T12:21:58Z | c++ | 2022-09-05T12:15:19Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,718 | ["src/Interpreters/join_common.cpp", "tests/queries/0_stateless/00119_storage_join.reference", "tests/queries/0_stateless/00119_storage_join.sql"] | Error in query with join and 'with totals' clause | **Describe the bug**
Exception happens when running query which joins subquery with `group by with totals` clause and table with Join engine.
**How to reproduce**
Clickhouse version 20.7.4.11
```
CREATE TABLE table1 (
show_date DateTime,
pu_num String,
pu_id UInt64,
amnt UInt32
) ENGINE = MergeTre... | https://github.com/ClickHouse/ClickHouse/issues/17718 | https://github.com/ClickHouse/ClickHouse/pull/23549 | 5f23acfb47b834874f1936ebfe1431feda3cf8a1 | ca230224cfa8939680bb05826fa1bc38e4c3648d | 2020-12-02T09:09:35Z | c++ | 2021-04-24T00:19:00Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,682 | ["src/Common/ThreadPool.cpp", "src/Common/ThreadPool.h", "src/Interpreters/Aggregator.cpp", "src/Interpreters/Aggregator.h", "tests/queries/0_stateless/01605_dictinct_two_level.reference", "tests/queries/0_stateless/01605_dictinct_two_level.sql"] | Server crash with groupArraySample(5)(distinct ...) | **Describe the bug**
```
SELECT
domain
, groupArraySample(5)(distinct subdomain) AS example_subdomains
FROM table
WHERE time > now() - interval 1 hour
GROUP BY domain
LIMIT 100
```
Causes a server crash. If I remove the distinct it runs just fine. I appreciate it is probably not valid to use a di... | https://github.com/ClickHouse/ClickHouse/issues/17682 | https://github.com/ClickHouse/ClickHouse/pull/18365 | 568119535a8a6d21995678e7c26807e4a80bce65 | 0f98fe3c0ca9d0b035fbd5397e2cf1019703b108 | 2020-12-01T13:08:11Z | c++ | 2020-12-23T12:41:20Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,680 | ["docs/en/sql-reference/functions/date-time-functions.md"] | Table of Contents of section [Dates and Times] incomplete | The **Table of Contents** does not actually list all functions as documented in the section **Dates and Times**.
See: [https://clickhouse.tech/docs/en/sql-reference/functions/date-time-functions/](https://clickhouse.tech/docs/en/sql-reference/functions/date-time-functions/)
For example, `formatDateTime` is not li... | https://github.com/ClickHouse/ClickHouse/issues/17680 | https://github.com/ClickHouse/ClickHouse/pull/17703 | cd653898357e8b714d304c3bc8ba0408b67d04d9 | a8a37b42490755a0c1fab79ecf6478490f85c632 | 2020-12-01T12:28:56Z | c++ | 2020-12-10T22:50:12Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,661 | ["src/Common/renameat2.cpp"] | WSL: Cannot rename /var/[...]/hits_v1.sql.tmp to /var/[...]/hits_v1.sql, errno: 38, strerror: Function not implemented (version 20.11.4.13 (official build)) (from 127.0.0.1:55079) | **Describe the bug**
Then I execute tutorial query "CREATE TABLE tutorial.hits_v1" from https://clickhouse.tech/docs/ru/getting-started/tutorial/ I got this error.
**How to reproduce**
* Which ClickHouse server version to use
ClickHouse server version 20.11.4.13 (official build).
* Which interface to use, if m... | https://github.com/ClickHouse/ClickHouse/issues/17661 | https://github.com/ClickHouse/ClickHouse/pull/17664 | 2b3281888afc233cea12f74c35d1462c3ec985d8 | 45b4b3648c47b14c6eae90d171662d79a4c6ea93 | 2020-12-01T09:38:31Z | c++ | 2020-12-02T10:55:50Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,613 | ["src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp"] | format error, argument not found | (you don't have to strictly follow this form)
**Describe the bug**
a lot of background logs of thar error, constantly, on different tables
**How to reproduce**
from 20.3 -20.11.4.13
**Expected behavior**
some error log which I can't see I think
**Error message and/or stacktrace**
2020.11.30 03:21:19.382... | https://github.com/ClickHouse/ClickHouse/issues/17613 | https://github.com/ClickHouse/ClickHouse/pull/17615 | 0b5261b1afd090583be97d40d60de280df8ae182 | 21bbc7bc19f0a25b28a269392d4e96b034f60a02 | 2020-11-30T08:26:07Z | c++ | 2020-12-01T11:26:25Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,540 | ["docs/en/sql-reference/functions/other-functions.md", "src/DataTypes/IDataType.h", "src/Functions/byteSize.cpp", "src/Functions/registerFunctionsMiscellaneous.cpp", "tests/queries/0_stateless/01622_byte_size.reference", "tests/queries/0_stateless/01622_byte_size.sql"] | Function `byteSize` | The function should return an estimate of uncompressed byte size of its arguments in memory.
E.g. for UInt32 argument it will return constant 4, for String argument - the string length + 9.
The function can take multiple arguments. The typical application is `byteSize(*)`.
**Use case**
Suppose you have a service ... | https://github.com/ClickHouse/ClickHouse/issues/17540 | https://github.com/ClickHouse/ClickHouse/pull/18579 | df188aa49d2a8a3d483e642fba45e955dca3d702 | 4cf7f0c6073f1b5be58fca8747e4995a38f20c31 | 2020-11-29T07:32:10Z | c++ | 2021-01-01T17:00:14Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,500 | ["tests/queries/0_stateless/01901_test_attach_partition_from.reference", "tests/queries/0_stateless/01901_test_attach_partition_from.sql"] | attach partition from : Transaction failed (Node exists) | 19.13
```
create table S (A Int64, D date) Engine=MergeTree partition by D order by A;
insert into S values(1, '2020-01-01');
create table D (A Int64, D date)
Engine=ReplicatedMergeTree('/clickhouse/{cluster}/tables/testD', '{replica}')
partition by D order by A;
alter table D attach partition '2020-01-0... | https://github.com/ClickHouse/ClickHouse/issues/17500 | https://github.com/ClickHouse/ClickHouse/pull/25060 | ab2529d4f0440191c1d31acaeae55619acbadb9d | 59071d9bd139f49333b8c481773156c851a032f9 | 2020-11-27T15:51:21Z | c++ | 2021-06-08T10:22:38Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,469 | ["CMakeLists.txt", "contrib/libmetrohash/CMakeLists.txt", "docker/packager/packager", "release"] | Check "unbundled" build with SSE2 only. | **Use case**
It is needed to check that it's possible to build ClickHouse without SSE4.2. | https://github.com/ClickHouse/ClickHouse/issues/17469 | https://github.com/ClickHouse/ClickHouse/pull/27683 | 40f5e06a8d9b2074b5985a8042f3ebf9940c77f4 | 135a5a2453d6f1bcef17c6f64d456a3c1cce7f36 | 2020-11-27T11:16:12Z | c++ | 2021-08-15T10:25:44Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,404 | ["src/Common/HashTable/HashTable.h", "src/Common/SpaceSaving.h", "src/Common/tests/CMakeLists.txt", "src/Common/tests/gtest_hash_table.cpp", "src/Common/tests/hash_table.cpp", "tests/queries/0_stateless/00453_top_k.reference", "tests/queries/0_stateless/00453_top_k.sql"] | Query Fuzzer, `topK`, segfault. | ERROR: type should be string, got "https://clickhouse-test-reports.s3.yandex.net/17375/99073c26ee2692f8efe2ab14b2d8ae0fd813b80e/fuzzer/fuzzer.log\r\n\r\n```\r\nSELECT\r\n k,\r\n topK(v)\r\nFROM \r\n(\r\n SELECT\r\n number % 7 AS k,\r\n arrayMap(x -> arrayMap(x -> if(x = 0, NULL, toString(x)), range(x)), range(intDiv(number, 1))) AS v\r\n FROM system.numbers\r\n LIMIT 257\r\n)\r\nGROUP BY k\r\nORDER BY k ASC\r\n```" | https://github.com/ClickHouse/ClickHouse/issues/17404 | https://github.com/ClickHouse/ClickHouse/pull/17845 | 04e222f6f38acb0d9395751aeb8c5096fb484f0a | 8df478911323771ff94aada88cf79a82b6a7822e | 2020-11-25T15:00:03Z | c++ | 2020-12-13T01:09:51Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,392 | ["src/Interpreters/RedundantFunctionsInOrderByVisitor.h", "tests/queries/0_stateless/01323_redundant_functions_in_order_by.reference", "tests/queries/0_stateless/01593_functions_in_order_by.reference", "tests/queries/0_stateless/01593_functions_in_order_by.sql"] | optimize_redundant_functions_in_order_by issue | ```
SELECT msg, toDateTime(intDiv(ms, 1000)) AS time
FROM (
SELECT 'hello' as msg, toUInt64(t)*1000 as ms FROM generateRandom('t DateTime') LIMIT 10
)
ORDER BY msg, time
```
```
/* optimize_redundant_functions_in_order_by=1 -- (default) */
SELECT msg, toDateTime(intDiv(ms, 1000)) AS time
FROM (
S... | https://github.com/ClickHouse/ClickHouse/issues/17392 | https://github.com/ClickHouse/ClickHouse/pull/17471 | 70af62af79609e22d32dc1a49aa98fce3f638078 | 7a6c72ce880861bdb134c751d8fdb6c1826687bd | 2020-11-25T12:37:33Z | c++ | 2020-11-28T05:34:26Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,367 | ["tests/queries/0_stateless/01915_for_each_crakjie.reference", "tests/queries/0_stateless/01915_for_each_crakjie.sql"] | Array join incorrect result when requesting distributed table | When running some specific query with arrayJoin result are not what they are expected to be.
This seems to be correlated to the usage of State Merge modifier.
Clickhouse 20.3.20.6
The following query
```sql
WITH arrayJoin(['a','b']) as z
SELECT
z,
sumMergeForEach(x) as x
FROM
(
SELECT
... | https://github.com/ClickHouse/ClickHouse/issues/17367 | https://github.com/ClickHouse/ClickHouse/pull/25286 | 0972b53ef4f39a67a5993505e43b9ecdffd7620f | 1aac27e9034e7d7b3107bd80ad053ad75b4fe3be | 2020-11-24T16:56:14Z | c++ | 2021-06-17T06:13:55Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,317 | ["src/Storages/MergeTree/MergeTreeReadPool.cpp", "src/Storages/MergeTree/MergeTreeReverseSelectProcessor.cpp", "src/Storages/MergeTree/MergeTreeSelectProcessor.cpp", "tests/queries/0_stateless/01903_correct_block_size_prediction_with_default.reference", "tests/queries/0_stateless/01903_correct_block_size_prediction_wit... | On the fly DEFAULT values calculation uses 8 times more memory than expression itself. | **Describe the bug**
If we add a new column to table via ALTER TABLE ADD COLUMN command and use in DEFAULT section some expression with array functions, it requires much more memory than using that expression by itself in query.
**How to reproduce**
Clickhouse version 20.12, 20.8
```
CREATE TABLE test_extract(st... | https://github.com/ClickHouse/ClickHouse/issues/17317 | https://github.com/ClickHouse/ClickHouse/pull/25917 | 3c395389b0be1bf4ace9c2db3b05f1db063063aa | 3d05f07eceb502ba0ce4b3480e009f5affbcf5cf | 2020-11-23T15:46:11Z | c++ | 2021-07-13T17:05:41Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,302 | ["tests/queries/0_stateless/01763_long_ttl_group_by.reference", "tests/queries/0_stateless/01763_long_ttl_group_by.sql"] | TTL GROUP BY + OPTIMIZE FINAL exception | **Describe the bug**
Clickhouse version 20.12
```
CREATE TABLE test_ttl_group_by(key UInt32, ts DateTime, value UInt32) ENGINE =MergeTree() PARTITION BY tuple() ORDER BY (key, toStartOfInterval(ts, toIntervalMinute(2)), ts) TTL ts + INTERVAL 5 MINUTE GROUP BY key, toStartOfInterval(ts, toIntervalMinute(2)) SET val... | https://github.com/ClickHouse/ClickHouse/issues/17302 | https://github.com/ClickHouse/ClickHouse/pull/21848 | bf5b8e1a1419ed02cf244b13a36db421d13ba6a1 | 868766ac47b5ea2e6261c6860eb6f06375feba2e | 2020-11-23T12:21:27Z | c++ | 2021-03-21T19:20:25Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,294 | ["src/Processors/QueryPlan/AddingMissedStep.cpp", "src/Processors/QueryPlan/DistinctStep.cpp", "src/Processors/QueryPlan/ExpressionStep.cpp", "src/Processors/QueryPlan/ITransformingStep.cpp", "tests/queries/0_stateless/01582_distinct_optimization.reference", "tests/queries/0_stateless/01582_distinct_optimization.sh", "... | Distinct on subquery with group by may return duplicate result | **Describe the bug**
ClickHouse version: 20.8.2.3
`SELECT DISTINCT b FROM (SELECT a, b FROM d GROUP BY a, b)` may return duplicate result, here is the step to reproduce:
```sql
CREATE TABLE test_local ON CLUSTER xxx (a String, b Int) Engine=TinyLog;
CREATE TABLE test ON CLUSTER xxx (a String, b Int) Engine = Dis... | https://github.com/ClickHouse/ClickHouse/issues/17294 | https://github.com/ClickHouse/ClickHouse/pull/17439 | 875a0a04eb086b599fd3e63f2ef3c7b5c860e18a | 60af8219eea9b1c7e3d7e3a554698d9a8b9105a7 | 2020-11-23T09:05:06Z | c++ | 2020-11-27T10:26:19Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,279 | ["base/daemon/SentryWriter.cpp", "tests/integration/test_grpc_protocol/configs/grpc_port.xml", "tests/integration/test_grpc_protocol_ssl/configs/grpc_config.xml"] | Write the number of CPU cores, memory amount, amount of free space in data dir to Sentry | **Use case**
Ignore reports from embarrassingly memory constrainted instances. | https://github.com/ClickHouse/ClickHouse/issues/17279 | https://github.com/ClickHouse/ClickHouse/pull/17543 | 0739ed8f9792b9fb48690f4f7ce2d8831aaa5210 | c0489ce5373afda9128a03a2d6ccc4f31bd11fb1 | 2020-11-23T02:15:06Z | c++ | 2020-12-01T07:33:10Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,278 | ["base/daemon/SentryWriter.cpp", "programs/keeper/Keeper.cpp", "programs/server/Server.cpp", "src/Core/ServerUUID.cpp", "src/Core/ServerUUID.h", "src/Functions/registerFunctionsMiscellaneous.cpp", "src/Functions/serverUUID.cpp", "tests/integration/test_replicated_database/test.py"] | Generate server UUID at first start. | Write a file `uuid` in server's data directory that contains random UUID, generated at startup if file does not exist.
It will be used for several purposes:
- to anonymously identify server in Sentry (currently Sentry is unusable);
- (possible future usage) to identify server in ensemble.
@tavplubix comments? | https://github.com/ClickHouse/ClickHouse/issues/17278 | https://github.com/ClickHouse/ClickHouse/pull/27755 | 96a5c4b033e57dcc0072cd4cbd7727e2c10a8196 | 9ef45d92c28381ae5b325c7e3c0b0cd499717522 | 2020-11-23T02:12:37Z | c++ | 2021-08-19T11:59:18Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,244 | ["src/Interpreters/ExtractExpressionInfoVisitor.cpp", "src/Interpreters/ExtractExpressionInfoVisitor.h", "src/Interpreters/PredicateExpressionsOptimizer.cpp", "tests/queries/0_stateless/01582_deterministic_function_with_predicate.reference", "tests/queries/0_stateless/01582_deterministic_function_with_predicate.sql"] | Condition pushdown for rand() > value multiply the probabilities | **Describe the bug**
If we pushdown сonditions with rand() function in subquery, we actually multiply the probabilities.
**How to reproduce**
Clickhouse version 20.12
```
SELECT count(*)
FROM
(
SELECT number
FROM
(
SELECT number
FROM numbers(1000000)
)
WHERE rand64... | https://github.com/ClickHouse/ClickHouse/issues/17244 | https://github.com/ClickHouse/ClickHouse/pull/17273 | 6c6edfc050cb8cdd8de756948f303995a95bd4d3 | af4c3956dad4ef989cdd0ce3c8f00f2e19f8f255 | 2020-11-20T23:44:38Z | c++ | 2020-12-20T06:51:20Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,228 | ["src/Storages/StorageJoin.cpp", "tests/queries/0_stateless/01586_storage_join_low_cardinality_key.reference", "tests/queries/0_stateless/01586_storage_join_low_cardinality_key.sql"] | Segmentation fault on Join engine with LowCardinality column | Tested in `20.11.3.3-stable` and `20.7.2.30-stable`.
```SQL
CREATE TABLE low_card
(
`lc` LowCardinality(String)
)
ENGINE = Join(ANY, LEFT, lc);
```
```SQL
INSERT INTO low_card VALUES ( '1' );
```
```
SELECT * FROM low_card WHERE lc = '1';
[fdea5737f3fb] 2020.11.20 12:32:03.028811 [ 117 ] <Fatal... | https://github.com/ClickHouse/ClickHouse/issues/17228 | https://github.com/ClickHouse/ClickHouse/pull/17397 | 60af8219eea9b1c7e3d7e3a554698d9a8b9105a7 | 85283b394483c4258b4342d3259387612bf17c8e | 2020-11-20T12:44:22Z | c++ | 2020-11-27T10:37:05Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,215 | ["programs/odbc-bridge/ODBCBridge.cpp", "src/Common/XDBCBridgeHelper.h", "src/Dictionaries/ExternalQueryBuilder.h", "src/IO/ReadWriteBufferFromHTTP.h"] | Incorrect columns and segfault in odbc external dictionary updates | **Describe the bug**
I have a database containing two external dictionaries from postgres via ODBC. Dictionary updates are sometimes querying incorrect/fewer columns. This causes the dictionary not to update and eventually causes a segfault.
**How to reproduce**
* 20.10.4.1
* Two external dictionaries:
```
CREA... | https://github.com/ClickHouse/ClickHouse/issues/17215 | https://github.com/ClickHouse/ClickHouse/pull/18278 | 850d584d3f0afd50353f2612bbc649a08dbc0979 | fa68af02d7863eaf62635feb51ebaae4433994c0 | 2020-11-20T05:50:49Z | c++ | 2020-12-21T07:18:04Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,200 | ["contrib/poco"] | clickhouse-client connection server is abnormal: Code: 32. DB::Exception: Attempt to read after eof | system: centos7
clickhouse version: 20.3.11.97
Link to server through different host client, report exception;
```
ClickHouse client version 20.3.11.97.
Connecting to ***:9000 as user admin.
Code: 32. DB::Exception: Attempt to read after eof
```
But the clickhouse-server.err.log has no abnormal updates, clic... | https://github.com/ClickHouse/ClickHouse/issues/17200 | https://github.com/ClickHouse/ClickHouse/pull/17542 | 00b8e72039be69cff63021b8630c229e315eca7c | e7b277e1a18c0c1f59dfb406eaa61ab72e8b3eff | 2020-11-19T10:09:34Z | c++ | 2020-11-30T06:35:35Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,177 | ["tests/queries/0_stateless/02503_mysql_compat_utc_timestamp.reference", "tests/queries/0_stateless/02503_mysql_compat_utc_timestamp.sql"] | MySQL add support for UTC_TIMESTAMP() AND TIMEDIFF (comparability with Power BI) | **Background**
I can already connect to Power BI using ODBC connector, but it would be so great if I can make a Direct Query connection to utilize the full power of OLAP DB. I tried to achieve that with MySQL interface which has PBI Direct Query support.
**Describe the issue**
Unfortunate, when I make the connecti... | https://github.com/ClickHouse/ClickHouse/issues/17177 | https://github.com/ClickHouse/ClickHouse/pull/44338 | ed3d70f7c0eccc78e97a4f981c2a1e520315cd42 | c26ce8a629fb121fbba37d78596a4c04814ff161 | 2020-11-18T11:41:05Z | c++ | 2022-12-27T14:12:51Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,151 | ["src/Storages/MergeTree/MergeList.cpp", "src/Storages/MergeTree/MergeList.h", "src/Storages/MergeTree/MergeTreeDataMergerMutator.cpp", "src/Storages/StorageReplicatedMergeTree.cpp"] | TRUNCATE TABLE does not stop already running merges. | And waits for them. That's pointless. | https://github.com/ClickHouse/ClickHouse/issues/17151 | https://github.com/ClickHouse/ClickHouse/pull/25684 | 227913579d98858a825fc9ac5b1678a59a7e4e29 | afbc6bf17dba8634f4b3f1cc649c8427505c319f | 2020-11-17T19:27:01Z | c++ | 2021-06-30T20:41:04Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 17,112 | ["src/DataTypes/EnumValues.cpp", "src/DataTypes/EnumValues.h", "tests/queries/0_stateless/01852_hints_enum_name.reference", "tests/queries/0_stateless/01852_hints_enum_name.sh"] | Hints for Enum names and column names based on Levenshtein distance. | **Use case**
Provide "Did you mean: ..." with nearest matches when user made a typo in Enum name or column name.
**Describe the solution you'd like**
See `NamePrompter.h` | https://github.com/ClickHouse/ClickHouse/issues/17112 | https://github.com/ClickHouse/ClickHouse/pull/23919 | 2b87656c66bd038908e61b8493ec58569d51ee2d | fd56e0a9844c1c6d2ccb187e4b0c3aad7aaa69da | 2020-11-16T21:44:31Z | c++ | 2021-05-07T13:12:16Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,953 | ["src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp", "tests/queries/0_stateless/01593_concurrent_alter_mutations_kill.reference", "tests/queries/0_stateless/01593_concurrent_alter_mutations_kill.sh", "tests/queries/0_stateless/01593_concurrent_alter_mutations_kill_many_replicas.reference", "tests/queries/0_stateless... | In some cases killed mutation lead to unfinished alter | One of our users just killed mutations produced by `ALTER MODIFY` queries on 21 servers. After that new alters on three servers stuck with:
```
Cannot execute alter metadata with version: 8 because another alter 7 must be executed before
```
However, there is no corresponding alter №7 in the replication queue and... | https://github.com/ClickHouse/ClickHouse/issues/16953 | https://github.com/ClickHouse/ClickHouse/pull/17499 | e9795acd93b1a4982c71f6e9b21be4763da312bd | 25f40db2fbeef19cf69ac0bb2559b53b028cd45e | 2020-11-12T20:40:26Z | c++ | 2020-11-30T07:51:50Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,944 | ["src/Interpreters/InterpreterCreateQuery.cpp", "tests/queries/0_stateless/01189_create_as_table_as_table_function.reference", "tests/queries/0_stateless/01189_create_as_table_as_table_function.sql"] | Using CREATE TABLE AS on a table built using the numbers() table function causes crash. | **Describe the bug**
Creating a table as a table that was created using the numbers() causes an issue and disconnects the client.
**How to reproduce**
* ClickHouse server version
version 20.10.3.30
* `CREATE TABLE` statements for all tables involved
```
CREATE TABLE table2 AS numbers(5)
CREATE TABLE table3 ... | https://github.com/ClickHouse/ClickHouse/issues/16944 | https://github.com/ClickHouse/ClickHouse/pull/17072 | 013c582abf2d0dca79dcb80bd9f27442240f30ed | b251478d983df01c28dae9b15fa282ad1c80d25e | 2020-11-12T18:23:47Z | c++ | 2020-11-17T09:51:37Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,926 | ["src/Processors/Formats/Impl/AvroRowInputFormat.cpp"] | Bug when using format_avro_schema_registry_url in Kafka table engine? | We use Kafka table engine to integrate with the Kafka. When we put the url into format_avro_schema_registry_url we can get the right message at the first time.
`<format_avro_schema_registry_url>http://schema-registry-url:8081</format_avro_schema_registry_url>
`
However when there's any update in the schema-registry... | https://github.com/ClickHouse/ClickHouse/issues/16926 | https://github.com/ClickHouse/ClickHouse/pull/16985 | 93d21e0764f8a4961bd94c944fdd5f2f0bda07e7 | c2205498b212b2e92b1c687694d9c3a8ab93be12 | 2020-11-12T11:56:22Z | c++ | 2020-11-14T22:54:01Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,869 | ["src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.cpp", "src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.h", "src/AggregateFunctions/registerAggregateFunctions.cpp", "src/AggregateFunctions/ya.make", "tests/fuzz/ast.dict", "tests/queries/0_stateless/00910_aggregation_timeseriesgroupsum.reference",... | TimeSeriesGroupSum algorithm is totally wrong | ... and code quality is very poor.
Imagine the 3 timeseries: the first is growing from 200 with rate `2*t`, and another two are decreasing starting from 200 with `t` rate. So sum should always be constant `600`.
```
WITH [200. + (2 * number), 200. - number, 200. - number] AS vals
SELECT
arrayJoin(if((numbe... | https://github.com/ClickHouse/ClickHouse/issues/16869 | https://github.com/ClickHouse/ClickHouse/pull/17423 | f086f563797532125d74fcaf48398c19bea1d41e | 572bdb4090c94f57a869269ad1ee8b23b95a3a2e | 2020-11-11T12:21:34Z | c++ | 2020-11-26T20:07:46Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,862 | ["src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.h", "tests/queries/0_stateless/01560_timeseriesgroupsum_segfault.reference", "tests/queries/0_stateless/01560_timeseriesgroupsum_segfault.sql"] | DB::AggregateFunctionTimeSeriesGroupSum<false>::serialize segfault | Happens when AggregateFunctionTimeSeriesGroupSum state is serialized.
Can lead to:
```
2020.11.11 08:50:26.219001 [ 259 ] {} <Fatal> BaseDaemon: ########################################
2020.11.11 08:50:26.219056 [ 259 ] {} <Fatal> BaseDaemon: (version 20.3.13.127 (official build)) (from thread 207) (query_id:... | https://github.com/ClickHouse/ClickHouse/issues/16862 | https://github.com/ClickHouse/ClickHouse/pull/16865 | f48232d615df2385b2959743453f8650e6893e09 | 21513657645c0d75f12cf4a81eac50166b9edb8c | 2020-11-11T09:48:14Z | c++ | 2020-11-12T16:39:14Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,835 | ["base/mysqlxx/ResultBase.cpp", "base/mysqlxx/ResultBase.h", "src/Databases/MySQL/MaterializeMetadata.cpp", "src/Databases/MySQL/MaterializeMetadata.h", "src/Databases/MySQL/MaterializeMySQLSyncThread.cpp", "src/Databases/MySQL/MaterializeMySQLSyncThread.h", "src/Formats/MySQLBlockInputStream.cpp", "src/Formats/MySQLBl... | Use MaterializeMySQL synchronization problem | When I used ClickHouse's MaterializeMySQL feature to synchronize data from MySQL to ClickHouse, I had some problems. The Click House version I'm using is 20.10.3.30, and the MySQL version I'm using is 5.7.28-log.
The SQL statement I executed is as follows:
> SET allow_experimental_database_materialize_mysql = 1;
d... | https://github.com/ClickHouse/ClickHouse/issues/16835 | https://github.com/ClickHouse/ClickHouse/pull/17366 | fef65b0cbd6debced8007ce21e2d3f7fb82abc4f | f13de96afcb37c41174a09acb5013aaa898dac7a | 2020-11-10T13:04:40Z | c++ | 2020-12-09T20:12:47Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,827 | ["tests/queries/0_stateless/02467_cross_join_three_table_functions.reference", "tests/queries/0_stateless/02467_cross_join_three_table_functions.sql"] | can not cross join three tables(numbers()) | cross join two tables(numbers()) are ok
```
SELECT count(*)
FROM numbers(10000) AS a
, numbers(10000) AS b
, numbers(10) AS c
Received exception from server (version 20.10.3):
Code: 51. DB::Exception: Received from localhost:9000. DB::Exception: Empty list of columns in SELECT query.
0 rows in set. Elapse... | https://github.com/ClickHouse/ClickHouse/issues/16827 | https://github.com/ClickHouse/ClickHouse/pull/42511 | 151137d6d5c182b752ffaff6c8cbb35e7f72874f | bd80e6a10b0b7e2f539e79419b160cef9a775141 | 2020-11-10T07:22:33Z | c++ | 2022-10-20T22:03:04Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,752 | ["docs/en/sql-reference/table-functions/cluster.md", "docs/en/sql-reference/table-functions/remote.md", "src/Storages/Distributed/DistributedBlockOutputStream.cpp", "src/TableFunctions/TableFunctionRemote.cpp", "src/TableFunctions/TableFunctionRemote.h", "tests/queries/0_stateless/01602_insert_into_table_function_clust... | Support insert into table function cluster if the cluster does not have sharding key. | ```
CREATE TABLE default.x AS system.numbers ENGINE = Log;
INSERT INTO FUNCTION cluster('test_cluster_two_shards', default, x) SELECT * FROM numbers(10)
Received exception from server (version 20.11.1):
Code: 55. DB::Exception: Received from localhost:9000. DB::Exception: Method write is not supported by storag... | https://github.com/ClickHouse/ClickHouse/issues/16752 | https://github.com/ClickHouse/ClickHouse/pull/18264 | ecf9b9c392e00a81f41d2f8b72dda30fb7092979 | a15092eeb77b7d35d8f068f99bfeb26b0470ae9d | 2020-11-06T14:23:34Z | c++ | 2021-01-16T10:22:49Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,609 | ["src/Core/Settings.h", "src/Interpreters/executeQuery.cpp", "tests/integration/test_log_query_probability/__init__.py", "tests/integration/test_log_query_probability/test.py"] | Support logging a random sample of queries to query_log | With a large volume of queries per second logging all queries gets expensive, it would be nice to be able to log only a configurable fraction of the queries, selected at random. | https://github.com/ClickHouse/ClickHouse/issues/16609 | https://github.com/ClickHouse/ClickHouse/pull/27527 | 4cc0b0298c663768a9ccf27e9d68540bba7827cf | 77d085f26470409353a637687c2e4e9a6cc13a67 | 2020-11-02T14:01:30Z | c++ | 2021-08-31T21:51:23Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,605 | ["src/Server/MySQLHandler.cpp", "tests/integration/test_mysql_protocol/test.py"] | ClickHouse doesn't return affected rows via MySQL protocol for INSERT queries after 20.5+ | **Describe the bug**
ClickHouse doesn't return affected rows via MySQL protocol for INSERT queries after 20.5+
**How to reproduce**
i create clear docker-compose environment for reproduce behavior MySQL + clickhouse + php + python
https://gist.github.com/Slach/aa67440ce856a3a53f64f92eeddfbc1b
**Queries to run ... | https://github.com/ClickHouse/ClickHouse/issues/16605 | https://github.com/ClickHouse/ClickHouse/pull/16715 | d423ce34a118457153fae274c37c96a82d1eaf79 | 7af89cba8a3ffece4bf8c6132c1d7e07f7a04f49 | 2020-11-02T12:20:40Z | c++ | 2020-11-23T12:54:43Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,580 | ["src/Interpreters/MonotonicityCheckVisitor.h", "tests/queries/0_stateless/01560_monotonicity_check_multiple_args_bug.reference", "tests/queries/0_stateless/01560_monotonicity_check_multiple_args_bug.sql"] | Strange errors while using arrayJoin with ORDER BY on DateTime datatype values | **How to reproduce**
* Working query
```sql
WITH arrayJoin(range(2)) AS delta
SELECT
toDate(time) + toIntervalDay(delta) AS dt,
version()
FROM
(
SELECT NOW() AS time
)
┌─────────dt─┬─version()──┐
│ 2020-11-01 │ 20.10.3.30 │
│ 2020-11-02 │ 20.10.3.30 │
└────────────┴────────────┘
2 rows i... | https://github.com/ClickHouse/ClickHouse/issues/16580 | https://github.com/ClickHouse/ClickHouse/pull/16928 | 7ec83794b869e9ace2987c3876a4f840c2b6715a | 684d649b70ad74c6b06c79a68b684ca32c47c1b2 | 2020-11-01T12:26:58Z | c++ | 2020-11-16T09:39:20Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,518 | ["programs/client/Client.cpp"] | clickhouse-client should clear screen until end and force showing cursor in terminal | **Use case**
Some program left garbage in terminal.
**Describe the solution you'd like**
Subset of what `reset` command does. | https://github.com/ClickHouse/ClickHouse/issues/16518 | https://github.com/ClickHouse/ClickHouse/pull/22634 | 74a3668ce4211d701ce6accb43538bae37a77866 | 92f57fd669fe163b5237db1ccf1d5a170a9c3550 | 2020-10-29T16:57:22Z | c++ | 2021-04-05T06:00:29Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,414 | ["src/Functions/FunctionsCodingULID.cpp", "src/Functions/castOrDefault.cpp", "src/Functions/extractTimeZoneFromFunctionArguments.cpp", "src/Functions/extractTimeZoneFromFunctionArguments.h", "src/Functions/toTimezone.cpp", "tests/queries/0_stateless/00515_enhanced_time_zones.sql"] | toTimeZone does not throw an error about non-constant timezone | ```
select materialize('America/Los_Angeles') t, toTimeZone(now(), t)
┌─t───────────────────┬─toTimeZone(now(), materialize('America/Los_Angeles'))─┐
│ America/Los_Angeles │ 2020-10-26 22:58:42 │
└─────────────────────┴───────────────────────────────────────────────────────┘
d... | https://github.com/ClickHouse/ClickHouse/issues/16414 | https://github.com/ClickHouse/ClickHouse/pull/48471 | d69463859f5d90b1f344f2ef74e968a1b6a1f989 | 0fbc9585f1742a9f942a39c417b9010f9d2d4f20 | 2020-10-26T23:00:43Z | c++ | 2023-04-13T14:57:37Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,393 | ["src/Interpreters/TreeOptimizer.cpp", "tests/queries/0_stateless/01532_min_max_with_modifiers.reference", "tests/queries/0_stateless/01532_min_max_with_modifiers.sql"] | Rollup shows wrong results for min()/max() in 20.9.3 and even worse in 20.10.2 | **How to reproduce**
Query:
```sql
select
x,
min(x) as lower,
max(x)+1 as upper,
upper-lower as range
from (select arrayJoin([1, 2]) as x)
group by x
with rollup;
```
## 20.4.6
```
┌─x─┬─lower─┬─upper─┬─range─┐
│ 1 │ 1 │ 2 │ 1 │
│ 2 │ 2 │ 3 │ 1 │
└───┴───────┴───────┴───... | https://github.com/ClickHouse/ClickHouse/issues/16393 | https://github.com/ClickHouse/ClickHouse/pull/16397 | cc5f15da291d96cafb4f5d47beff424e73d51839 | 30325689c44439d8c7b025338a29a4bb5bbe84a6 | 2020-10-26T12:44:26Z | c++ | 2020-10-26T23:10:44Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,372 | ["src/Interpreters/MySQL/InterpretersMySQLDDLQuery.cpp", "src/Interpreters/MySQL/tests/gtest_create_rewritten.cpp"] | Create MaterializeMySQL cause clickhouse server Segmentation fault | (you don't have to strictly follow this form)
**Describe the bug**
After create database with engine MaterializeMySQL, clickhouse server Segmentation fault and restart
**How to reproduce**
* 20.10.2.20 (official build)
* `CREATE DATABASE xxx ENGINE = MaterializeMySQL('host', 'dbname', 'user', 'pass');`
**... | https://github.com/ClickHouse/ClickHouse/issues/16372 | https://github.com/ClickHouse/ClickHouse/pull/18211 | a4b0d9ba4c99a22007ad872ba64525d0445469d7 | 0e807d0647179b8b1a4a6b7a1c6ffa0ff6056451 | 2020-10-26T03:22:23Z | c++ | 2020-12-22T08:51:31Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,307 | ["src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp", "src/Storages/MergeTree/ReplicatedMergeTreeQueue.h"] | ZooKeeper coordination may fail permanently after multiple huge ALTERs are executed. | **Describe the bug:**
Create a table with very long column names or type names (type names can be long for legitimate reason, e.g. Enum).
Make table structure to be less than 1 MB but larger than 100 KB.
Create two replicas, turn one replica off. Execute at least 10 ALTER queries to slightly modify columns in th... | https://github.com/ClickHouse/ClickHouse/issues/16307 | https://github.com/ClickHouse/ClickHouse/pull/16332 | d46cf39f3be34428c00590c2905ee022bdd8261f | 0faf2bc7e320d6d5b3c24f0467fa18639ca5cd45 | 2020-10-23T19:16:41Z | c++ | 2020-10-29T06:09:29Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,265 | ["src/Core/MySQL/MySQLReplication.cpp"] | MaterializeMySQL Decimal type data convert to weired one | This issue is hard to reproduce, it happens 10 times in last 24 hours
duration_hr is a field with type Decimal (13, 4), I found some abnormal conversion during the ClickHouse replication, as below:
```
MySQL ClickHouse
0.3333 -> -2147483653.2202
0.5000 -> -2147483653.0535
0.1667 -> -2147483653.3868
0.0833 ... | https://github.com/ClickHouse/ClickHouse/issues/16265 | https://github.com/ClickHouse/ClickHouse/pull/31990 | fa298b089e9669a8ffb1aaf00d0fbfb922f40f06 | 9e034ee3a5af2914aac4fd9a39fd469286eb9b86 | 2020-10-22T16:02:48Z | c++ | 2021-12-01T16:18:48Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,260 | ["docs/en/sql-reference/functions/date-time-functions.md", "docs/ru/sql-reference/functions/date-time-functions.md", "src/Functions/timeSlots.cpp", "tests/queries/0_stateless/02319_timeslots_dt64.reference", "tests/queries/0_stateless/02319_timeslots_dt64.sql"] | timeSlots() does not support DateTime64 | **`timeSlots() ` is not working with DateTime64 date type at all, even when within normal range:**
```sql
SELECT timeSlots(toDateTime64('2012-01-01 12:20:00', 0, 'UTC'), 600)
Received exception from server (version 22.1.3):
Code: 43. DB::Exception: Received from localhost:9000. DB::Exception: Illegal type DateTim... | https://github.com/ClickHouse/ClickHouse/issues/16260 | https://github.com/ClickHouse/ClickHouse/pull/37951 | acb0137dbb75e04cf4cf1567307228a4eb6aab8f | b52843d5fd79f0d11ab379098b94fcb5dd805032 | 2020-10-22T12:48:37Z | c++ | 2022-07-30T18:49:05Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,171 | ["tests/queries/0_stateless/02133_final_prewhere_where_lowcardinality_replacing.reference", "tests/queries/0_stateless/02133_final_prewhere_where_lowcardinality_replacing.sql"] | Exception with combination of FINAL, PREWHERE, WHERE, and LowCardinality on ReplicatedReplacingMergeTree. | **Disclaimer:** I (we) know that the combination of all.... six(?) of these factors is a pretty far edge case. We also know that the usage of `FINAL` and `PREWHERE` is actively discouraged. We can circumvent this issue by figuring out a different query strategy but would prefer this to work nonetheless.
When applyin... | https://github.com/ClickHouse/ClickHouse/issues/16171 | https://github.com/ClickHouse/ClickHouse/pull/32421 | 13a3f85ecef741e13c21a0ace33e26111ff2cbf4 | 6cfb1177325fea43f043aa5f60aebf20bba20082 | 2020-10-19T23:13:24Z | c++ | 2021-12-10T12:23:29Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,125 | ["src/TableFunctions/ITableFunctionFileLike.cpp"] | Assertion failure in `file` table function. | https://clickhouse-test-reports.s3.yandex.net/16074/19e31578dfc5847766d13db7cbae9af6949fe5b3/fuzzer/fuzzer.log | https://github.com/ClickHouse/ClickHouse/issues/16125 | https://github.com/ClickHouse/ClickHouse/pull/16189 | 14f5bef796db287518f056ada32f96681cb5006b | 3c53d478406c57e425cb8847012b39da1362831b | 2020-10-18T16:09:25Z | c++ | 2020-10-21T19:38:24Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,107 | ["src/Interpreters/TreeOptimizer.cpp", "src/Interpreters/TreeOptimizer.h", "src/Interpreters/TreeRewriter.cpp", "tests/queries/0_stateless/01321_monotonous_functions_in_order_by.reference", "tests/queries/0_stateless/01562_optimize_monotonous_functions_in_order_by.reference", "tests/queries/0_stateless/01562_optimize_m... | optimize_read_in_order doesn't work with ORDER BY (toDate(timestamp)) in clickhouse 20.8+ | **How to reproduce**
```
CREATE TABLE test_order_by (timestamp DateTime, key UInt32) ENGINE=MergeTree() PARTITION BY toYYYYMM(timestamp) ORDER BY (toDate(timestamp), key);
INSERT INTO test_order_by SELECT now() + toIntervalSecond(number), number % 4 FROM numbers(10000000);
OPTIMIZE TABLE test_order_by FINAL;
Q1: S... | https://github.com/ClickHouse/ClickHouse/issues/16107 | https://github.com/ClickHouse/ClickHouse/pull/16956 | 51f159201b3020b0058fecf89ef897b0610d472c | 1c7844b91ed6e73bf0045acf4522bda89ac4e9bc | 2020-10-16T23:03:55Z | c++ | 2020-11-29T17:45:47Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,087 | ["src/AggregateFunctions/AggregateFunctionSumMap.h", "tests/queries/0_stateless/01280_min_map_max_map.reference", "tests/queries/0_stateless/01280_min_map_max_map.sql"] | maxMap is removing entries with empty string or zero value | **Describe the unexpected behaviour**
maxMap is removing entries with empty string or zero value.
**How to reproduce**
String array
SELECT maxMap(a, b) from values ('a Array(String), b Array(String)',(['A'],['']),(['B'],['']));
┌─maxMap(a, b) ─┐
│ ([],[]) │
└───────────┘
Numeric arra... | https://github.com/ClickHouse/ClickHouse/issues/16087 | https://github.com/ClickHouse/ClickHouse/pull/16631 | caa1bf9bcd2b0452b835aa77ea6f9810ba52d220 | 9cb0b76c161085dad0435c9ae53ad69468af7a93 | 2020-10-16T15:36:55Z | c++ | 2020-11-05T11:14:19Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,072 | ["cmake/tools.cmake"] | MacOS:Building CXX object src/Functions/CMakeFiles/clickhouse_functions.dir/FunctionsLogical.cpp.o Fail | OS: mac OS 10.14.6
gcc verson : gcc (GCC) 10.0.1
ninja version: 1.10.0
From Docs i know, "Build should work on Mac OS X 10.15 (Catalina)." But I heard that there will be problems after upgrading MacOS to 15, so macOS has not been upgraded. I encountered the following problem, so I want to know if it is related to ... | https://github.com/ClickHouse/ClickHouse/issues/16072 | https://github.com/ClickHouse/ClickHouse/pull/16074 | 691bd829a6845431c5ed51ddc3f50673cc7b2e9f | 3e6839a7e141c07b1a52aaab438f7c03090f8b16 | 2020-10-16T10:09:32Z | c++ | 2020-10-18T16:07:06Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,035 | ["programs/client/Client.cpp", "programs/client/Suggest.h", "tests/queries/0_stateless/01526_client_start_and_exit.expect", "tests/queries/0_stateless/01526_client_start_and_exit.reference", "tests/queries/0_stateless/01526_client_start_and_exit.sh"] | clickhouse-client and 100K tables crashes on exit | Related to huge suggestions list
```
(gdb) thread apply all bt
Thread 2 (Thread 0x7fbefa6d8400 (LWP 298)):
#0 __pthread_clockjoin_ex (threadid=140458186086144, thread_return=0x0, clockid=<optimized out>, abstime=<optimized out>, block=<optimized out>) at pthread_join_common.c:145
#1 0x0000000007c42cb0 in DB:... | https://github.com/ClickHouse/ClickHouse/issues/16035 | https://github.com/ClickHouse/ClickHouse/pull/16047 | 0faf2bc7e320d6d5b3c24f0467fa18639ca5cd45 | ae4d66ac9d8000563afbb77a68b37a98c5706c03 | 2020-10-15T17:49:11Z | c++ | 2020-10-29T06:10:23Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 16,020 | ["tests/queries/0_stateless/01632_group_array_msan.reference", "tests/queries/0_stateless/01632_group_array_msan.sql"] | MSan: crash in groupArray | ```
SELECT groupArrayMerge(1048577)(y * 1048576) FROM (SELECT groupArrayState(9223372036854775807)(x) AS y FROM (SELECT 1048576 AS x))
```
```
2020.10.15 16:52:17.088012 [ 1493 ] {} <Fatal> BaseDaemon: ########################################
2020.10.15 16:52:17.091205 [ 1493 ] {} <Fatal> BaseDaemon: (version 20.1... | https://github.com/ClickHouse/ClickHouse/issues/16020 | https://github.com/ClickHouse/ClickHouse/pull/18702 | 7f85ae7fa7cfe3adb0f9f6e106fa21580d35444d | 5332b0327c21ecc69c04b7a18ff7cb421b4c066a | 2020-10-15T13:55:38Z | c++ | 2021-01-04T13:35:41Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 15,995 | ["src/Storages/StorageDistributed.cpp", "src/Storages/StorageDistributed.h", "tests/analyzer_tech_debt.txt", "tests/queries/0_stateless/02790_optimize_skip_unused_shards_join.reference", "tests/queries/0_stateless/02790_optimize_skip_unused_shards_join.sql"] | Exception when using optimize_skip_unused_shards = 1 | We have this query
```
SELECT sum(if(inner_distributed.id != 0, 1, 0)) AS total,
inner_distributed.date as date
FROM outer_distributed AS outer_distributed FINAL
LEFT JOIN (SELECT inner_distributed.outer_id AS outer_id,
inner_distributed.id AS id,
... | https://github.com/ClickHouse/ClickHouse/issues/15995 | https://github.com/ClickHouse/ClickHouse/pull/51037 | a1a79eee0f610b2b5c07255ca08ea3401e4d2d5d | f17844e9c27d5164084861fcf9375164b5052ce0 | 2020-10-15T08:05:44Z | c++ | 2023-07-24T05:31:00Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 15,980 | ["src/Storages/StorageReplicatedMergeTree.cpp", "tests/queries/0_stateless/01526_alter_add_and_modify_order_zookeeper.reference", "tests/queries/0_stateless/01526_alter_add_and_modify_order_zookeeper.sql"] | ADD COLUMN MODIFY QUERY query on a ReplicatedVersionedCollapsingMergeTree table causes client to freeze. | **Describe the bug**
The ClickHouse client freezes when executing `ALTER TABLE` with `ADD COLUMN` and `MODIFY ORDER` on a table built using Replicated Versioned Collapsing Merge Tree engine.
**How to reproduce**
* ClickHouse client version 20.10.1.1.
Connecting to localhost:9000 as user default.
Connected to Cli... | https://github.com/ClickHouse/ClickHouse/issues/15980 | https://github.com/ClickHouse/ClickHouse/pull/16011 | d1c705d47f907b13cba1d506c53c05329683fc47 | 963bc57835d3e7133eb78e240e7f691e2e533c9e | 2020-10-14T16:16:32Z | c++ | 2020-10-19T07:31:13Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 15,979 | ["src/Interpreters/InterpreterSystemQuery.cpp", "src/Parsers/ASTSystemQuery.cpp", "src/Parsers/ASTSystemQuery.h", "src/Parsers/ParserSystemQuery.cpp", "tests/queries/0_stateless/01643_system_suspend.reference", "tests/queries/0_stateless/01643_system_suspend.sql"] | SYSTEM SUSPEND FOR ... | Add a command that will freeze clickhouse-server process with STOP signal and wakeup it after specified amount of time.
This is needed for testing (fault injection).
Wakeup can be done with `ShellCommand` running `sleep N && kill -CONT pid` | https://github.com/ClickHouse/ClickHouse/issues/15979 | https://github.com/ClickHouse/ClickHouse/pull/18850 | 19ad9e7a5161821e3dcfe0b4ea1f7d85209000fc | 442a90fb89c91645ccfb944e83b6fc6c48953797 | 2020-10-14T15:22:43Z | c++ | 2021-01-08T04:26:05Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.