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 | 49,150 | ["src/Processors/QueryPlan/Optimizations/optimizeUseAggregateProjection.cpp", "tests/queries/0_stateless/02725_agg_projection_resprect_PK.reference", "tests/queries/0_stateless/02725_agg_projection_resprect_PK.sql"] | Projection makes things worse when aggregation matches but filter condition can't be applied to primary key | ```
CREATE TABLE t0
(
`c1` Int64,
`c2` Int64,
`c3` Int64,
`c4` Int64,
PROJECTION p1
(
SELECT
c1,
c2,
sum(c4)
GROUP BY
c2,
c1
)
)
ENGINE = MergeTree
ORDER BY (c1, c2);
INSERT INTO t0 SELECT
... | https://github.com/ClickHouse/ClickHouse/issues/49150 | https://github.com/ClickHouse/ClickHouse/pull/49417 | 7a0fedb0692daf24313a0eb8743fffa2a2ac4fcc | df9f00e87c08fa385ea6650d0b5480954e76c079 | 2023-04-25T15:10:24Z | c++ | 2023-05-04T10:52:27Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 49,143 | ["docs/en/sql-reference/functions/date-time-functions.md", "src/Functions/makeDate.cpp", "tests/queries/0_stateless/02242_make_date.reference", "tests/queries/0_stateless/02242_make_date.sql", "tests/queries/0_stateless/02242_make_date_mysql.reference", "tests/queries/0_stateless/02242_make_date_mysql.sql", "tests/quer... | MySQL compatibility: MAKEDATE function support | **Use case**
This is how QuickSight renders count query with grouping by quarter via MySQL:
```
SELECT MAKEDATE(YEAR(`created`), 1) + INTERVAL QUARTER(`created`) QUARTER - INTERVAL 1 QUARTER AS `f4245df6-e4eb-428b-9181-8644f65ccaec.created_tg`, COUNT(*) AS `count` FROM `cell_towers` GROUP BY MAKEDATE(YEAR(`creat... | https://github.com/ClickHouse/ClickHouse/issues/49143 | https://github.com/ClickHouse/ClickHouse/pull/49603 | 5078231c7e84ee929e25266dde7e2bad29f0bae9 | f4eabd967d8db5e58e51bfa07d609dae6ba03de2 | 2023-04-25T13:22:48Z | c++ | 2023-05-07T19:51:03Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 49,041 | ["docker/docs/builder/Dockerfile", "tests/ci/ci_config.py", "tests/ci/commit_status_helper.py", "tests/ci/docs_check.py", "tests/ci/run_check.py"] | Enforce documentation for `pr-feature` PRs | After some thoughts, we'll just add the pending documentation status. Everything will work as usual, but it will block merging the PR unless the DocsCheck is finished. | https://github.com/ClickHouse/ClickHouse/issues/49041 | https://github.com/ClickHouse/ClickHouse/pull/49090 | 791e91a4c57f52de4aac77590db86181aceb4492 | f6a7e83932e7a32165c945f3904d2dbfcff52d92 | 2023-04-22T10:02:17Z | c++ | 2023-04-24T12:19:51Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 49,039 | ["src/Formats/newLineSegmentationEngine.cpp", "src/Formats/newLineSegmentationEngine.h", "src/Functions/array/arrayAUC.cpp", "src/Processors/Formats/Impl/LineAsStringRowInputFormat.cpp", "src/Processors/Formats/Impl/RegexpRowInputFormat.cpp", "tests/queries/0_stateless/02722_line_as_string_consistency.reference", "test... | Regexp and LineAsString are using the same segmentation engine, but the behavior is different with respect to `\r` characters | null | https://github.com/ClickHouse/ClickHouse/issues/49039 | https://github.com/ClickHouse/ClickHouse/pull/49052 | 76230be7c8a93b7ce8ac28c6b05448cd8243640a | e7087e921770441ba299b7124ed33b564e35edb8 | 2023-04-22T00:43:05Z | c++ | 2023-04-23T18:25:45Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 49,028 | ["docs/en/operations/settings/settings.md", "src/Core/Settings.h", "src/IO/ReadSettings.h", "src/IO/ReadWriteBufferFromHTTP.cpp", "src/Interpreters/Context.cpp", "tests/ci/stress.py"] | Propose SETTING make_head_request=0 for engine=URL and url() table function | **Use case**
Currently, clickhouse makes two HTTP requests during SELECT data from `engine=URL()` and `url()` table function
first `HEAD` to receive Content-Length header and decide to allow parallel download
second `GET` to retrieve whole content body
For some dynamic HTTP endpoints, generating data twice mayb... | https://github.com/ClickHouse/ClickHouse/issues/49028 | https://github.com/ClickHouse/ClickHouse/pull/54602 | 91609a104c267e02a1788372489affc341f6dfe1 | 252cb8a5073c74809d1f3aa80bb4199c752d79e6 | 2023-04-21T17:04:06Z | c++ | 2023-12-19T12:33:59Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 49,012 | ["tests/queries/0_stateless/01346_alter_enum_partition_key_replicated_zookeeper_long.reference", "tests/queries/0_stateless/01346_alter_enum_partition_key_replicated_zookeeper_long.sql"] | Flaky test `01346_alter_enum_partition_key_replicated_zookeeper_long` | Link: https://s3.amazonaws.com/clickhouse-test-reports/0/9d6c3d7a4cc7bdeb8487f2e4212ec33f5e6bf4c7/stateless_tests__release__s3_storage__[1/2].html | https://github.com/ClickHouse/ClickHouse/issues/49012 | https://github.com/ClickHouse/ClickHouse/pull/49099 | ebc7e30fdf08e557aec26bb53b9abcda06b571b2 | 5c80a3dbc2aac4fc39c061602fe8d2233da97b3e | 2023-04-21T12:59:12Z | c++ | 2023-04-27T11:18:16Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,997 | ["src/Interpreters/Aggregator.h", "tests/queries/0_stateless/02719_aggregate_with_empty_string_key.reference", "tests/queries/0_stateless/02719_aggregate_with_empty_string_key.sql"] | When key is Nullable(String), the aggregate operator converts the empty string to null | > You have to provide the following information whenever possible.
**Describe what's wrong**

**Does it reproduce on recent release?**
23.3
**Enable crash reporting**
> If possible, change "e... | https://github.com/ClickHouse/ClickHouse/issues/48997 | https://github.com/ClickHouse/ClickHouse/pull/48999 | 9410f20d271042e52bcdf3741d688f250334e41e | 4f6e8b0b3c6e45bac9141cbeee09ed3d551a35d0 | 2023-04-21T06:07:20Z | c++ | 2023-04-23T13:08:44Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,936 | ["src/DataTypes/Utils.cpp", "src/DataTypes/Utils.h", "src/Functions/FunctionHelpers.cpp", "src/Interpreters/PreparedSets.cpp", "src/Interpreters/PreparedSets.h", "src/Storages/MergeTree/KeyCondition.cpp", "src/Storages/MergeTree/RPNBuilder.cpp", "src/Storages/MergeTree/RPNBuilder.h", "tests/queries/0_stateless/02882_pr... | Analyzer: Subquery filter not using primary key | **Describe the unexpected behaviour**
When using a subquery to filter a table the primary/sorting key is not being used.
**How to reproduce**
This is happening in CH 23.3 but also reproduced in master:
```sql
SELECT version()
┌─version()─┐
│ 23.8.1.1 │
└───────────┘
```
The minimum reproducible s... | https://github.com/ClickHouse/ClickHouse/issues/48936 | https://github.com/ClickHouse/ClickHouse/pull/54544 | 49ee14f70123298c8fcbef7494a30f7ff67b1b89 | 0bc41bab741b474c2788c3690a8fdb29348488a9 | 2023-04-19T10:59:19Z | c++ | 2023-09-20T10:54:01Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,933 | ["docs/en/sql-reference/functions/type-conversion-functions.md"] | No type promotion when adding 64/128/256-bit integers | ClickHouse has integer promotion rules where the sum of two integer types is casted into the next bigger type.
```sql
select toTypeName(toInt8(1) + toInt8(1)); -- is Int16
select toTypeName(toInt16(1) + toInt16(1)); -- is Int32
select toTypeName(toInt32(1) + toInt32(1)); -- is Int64
```
These rules only apply... | https://github.com/ClickHouse/ClickHouse/issues/48933 | https://github.com/ClickHouse/ClickHouse/pull/48937 | c58785aa67a9f1f540c0ebd89f9afa1fcdbe1748 | b8b9f330d9f4e82cbffa765350e20e7f3efd1f5a | 2023-04-19T09:30:13Z | c++ | 2023-04-19T13:09:57Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,914 | ["src/Databases/DatabaseFactory.cpp", "src/Storages/StoragePostgreSQL.cpp", "tests/integration/test_postgresql_database_engine/test.py"] | Unable to set use_table_cache while creating Postgres database with credentials from named collections. | **Describe what's wrong**
Unable to set `use_table_cache=1` while creating Postgres database with credentials from `named collections`.
Getting an error:
```
Code: 36. DB::Exception: Unexpected key use_table_cache in named collection. Required keys: database, db, password, user, username, optional keys: address... | https://github.com/ClickHouse/ClickHouse/issues/48914 | https://github.com/ClickHouse/ClickHouse/pull/49481 | c87a6e8e7d3fd91fb81bc81049d0232dfa16e319 | 7c203dbcd2948b5d06b306bc5cc5c663e226856f | 2023-04-18T20:37:10Z | c++ | 2023-05-05T10:53:51Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,894 | ["tests/queries/0_stateless/02795_full_join_assert_cast.reference", "tests/queries/0_stateless/02795_full_join_assert_cast.sql"] | Assert cast fails in JOIN constant LowCardinality(String) |
```sql
SELECT any(toTypeName(s)) FROM (SELECT ('a' :: String) as s) t1 FULL JOIN (SELECT ('b' :: LowCardinality(String)) as s) t2 USING (s);
```
<details>
<summary>Stack Trace</summary>
```
Stack trace: 0x7fc9dc6aea7c 0x7fc9dc65a476 0x7fc9dc6407f3 0x2269b7b6 0x2269b835 0x2269bc3f 0x19bcc0ca 0x19bcf84c 0... | https://github.com/ClickHouse/ClickHouse/issues/48894 | https://github.com/ClickHouse/ClickHouse/pull/51307 | 3a697544c9362791e298631a7aaf6d7d6155c1e4 | 4c8a4f54ce9a1ce58ea2a6f4c7b5f0ea804ac110 | 2023-04-18T11:43:31Z | c++ | 2023-06-23T11:44:33Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,848 | ["docs/en/sql-reference/functions/array-functions.md", "src/Functions/array/arrayCumSum.cpp", "src/Functions/array/arrayCumSumNonNegative.cpp", "src/Functions/array/arrayDifference.cpp", "tests/queries/0_stateless/02716_int256_arrayfunc.reference", "tests/queries/0_stateless/02716_int256_arrayfunc.sql"] | arrayMax, arrayMin, arrayDifference, arrayCumSum doesn't have support for wide ints (Int256) | **Use case**
```
SELECT arrayCumSum([CAST('1', 'Int256'), 2])
Query id: abeebc3d-13d4-4cb5-b69c-f20e8c1b0d51
0 rows in set. Elapsed: 0.007 sec.
Received exception from server (version 23.3.1):
Code: 43. DB::Exception: Received from localhost:9000. DB::Exception: arrayCumSum cannot add values of type Int... | https://github.com/ClickHouse/ClickHouse/issues/48848 | https://github.com/ClickHouse/ClickHouse/pull/48866 | 21dddf8c4cdacd4a1f25e27e23e27aec6e58b445 | 6aaafbad1f79e215e49f8917207f0998a760961b | 2023-04-17T12:37:20Z | c++ | 2023-04-19T08:52:28Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,837 | ["docs/en/operations/settings/query-complexity.md"] | default value for `max_memory_usage` is not same as in `src/Core/Settings.h` | > max_memory_usage
> The maximum amount of RAM to use for running a query on a single server.
>
> In the default configuration file, the maximum is 10 GB.
whereas, in `src/Core/Settings.h`
https://github.com/ClickHouse/ClickHouse/blob/6a4422c56de7534fb2846a174682d295327918ae/src/Core/Settings.h#L401
| https://github.com/ClickHouse/ClickHouse/issues/48837 | https://github.com/ClickHouse/ClickHouse/pull/48940 | 95b64eccbcd22a838a7b273982a75fae7dcef49b | aec97033c99da95cf5718bf8409ec40e5e8eee95 | 2023-04-17T08:19:37Z | c++ | 2023-04-20T14:56:31Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,828 | ["src/Functions/array/arrayAUC.cpp", "src/Functions/array/arrayDotProduct.cpp", "src/Functions/array/arrayScalarProduct.h", "src/Functions/vectorFunctions.cpp", "tests/queries/0_stateless/02415_all_new_functions_must_be_documented.reference", "tests/queries/0_stateless/02708_dot_product.reference", "tests/queries/0_sta... | `dotProduct` should work for arrays | **Use case**
Vector search databases.
**Implementation**
Currently, it works only for tuples.
```
SELECT dotProduct([1., 2.], [3., 4.])
```
Although it can be easily emulated by the following expression:
```
arraySum((x, y) -> x * y, arr1, arr2)
```
And this expression is quite fast, but there is... | https://github.com/ClickHouse/ClickHouse/issues/48828 | https://github.com/ClickHouse/ClickHouse/pull/49050 | 2c8c412835f1799e410c585ac370ce0ebabf7c7a | 4e3188126f5b013f8a80f369bcfef0d49985615b | 2023-04-17T02:51:20Z | c++ | 2023-05-20T00:07:13Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,827 | ["src/Functions/FunctionBinaryArithmetic.h", "src/Functions/bitHammingDistance.cpp", "tests/queries/0_stateless/01017_bithamming_distance.reference", "tests/queries/0_stateless/01017_bithamming_distance.sql"] | Support `bitCount` and `bitHammingDistance` for `String` and `FixedString` | **Use case**
Vector search databases often use conversion of the vector space into bit-vectors, where every bit represents a subspace of the space divided by random hyperplanes. The hamming distance on these bit-vectors represents an approximation of the distance in the original vector space. The typical size of a b... | https://github.com/ClickHouse/ClickHouse/issues/48827 | https://github.com/ClickHouse/ClickHouse/pull/49858 | caee95b89bec933c47d138c621e075bf7aad059d | 4f7bcf01f6349dd673cd4ef634f24884281abaf9 | 2023-04-17T02:42:05Z | c++ | 2023-05-14T05:28:01Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,823 | ["src/Processors/QueryPlan/Optimizations/optimizeTree.cpp", "src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp", "src/Processors/QueryPlan/Optimizations/projectionsCommon.h", "tests/queries/0_stateless/01710_normal_projection_with_query_plan_optimization.reference", "tests/queries/0_stateless/01710_normal_pr... | The behavior of filtering by primary key is completely different when "allow_experimental_projection_optimization" is enabled or disabled. | There is a large table with many fields and data. I am performing a simple select query of the form "select count() where id=123", with the table ordered by this id. When I execute this query, magically, it reads 1.17 million rows in approximately 0.3 seconds. However, if I add "allow_experimental_projection_optimizati... | https://github.com/ClickHouse/ClickHouse/issues/48823 | https://github.com/ClickHouse/ClickHouse/pull/52308 | a39ba00ec34bea1b53f062d9f7507b86c48e4d40 | 4b0be1e535e792648d85c6f42e07cf79e6e34156 | 2023-04-16T16:24:35Z | c++ | 2023-07-20T16:25:21Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,814 | ["src/Client/ReplxxLineReader.cpp"] | I'd prefer to not have extra padding for queries from history in clickhouse-client | **Describe the issue**
```
milovidov-desktop :) CREATE TABLE TABLEAU_DB.rfph
(
`timestamp` DateTime,
`latitude` Nullable(Float32) CODEC(Gorilla, ZSTD(1)),
`longitude` Nullable(Float32) CODEC(Gori... | https://github.com/ClickHouse/ClickHouse/issues/48814 | https://github.com/ClickHouse/ClickHouse/pull/48870 | 9bc95bed85b9b9c5149d999ada054097f7575a3c | 2b5a1295cf3be0f89827442916d783741a6872fb | 2023-04-15T21:46:24Z | c++ | 2023-04-19T12:18:18Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,772 | ["src/Interpreters/ReplaceQueryParameterVisitor.cpp", "tests/queries/0_stateless/02723_param_exception_message_context.reference", "tests/queries/0_stateless/02723_param_exception_message_context.sh"] | If there is exception while parsing a query parameter, add the context, describing what parameter failed to parse. | **Describe the issue**
```
CREATE TABLE sphere_extended
(
`id` UUID,
`url` String,
`domain` String DEFAULT domainWithoutWWW(url),
`url_hash` UInt64 DEFAULT sipHash64(url),
`title` String,
`title_tokens` Array(String) DEFAULT arraySort(arrayDistinct(tokens(lowerUTF8(title)))),
`sha`... | https://github.com/ClickHouse/ClickHouse/issues/48772 | https://github.com/ClickHouse/ClickHouse/pull/49061 | f6eefb24408501e9bccd9828603179694336a66c | 76230be7c8a93b7ce8ac28c6b05448cd8243640a | 2023-04-14T06:33:48Z | c++ | 2023-04-23T18:25:01Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,770 | ["docs/en/sql-reference/functions/array-functions.md", "src/DataTypes/IDataType.h", "src/Functions/array/arrayJaccardIndex.cpp", "tests/queries/0_stateless/02415_all_new_functions_must_be_documented.reference", "tests/queries/0_stateless/02737_arrayJaccardIndex.reference", "tests/queries/0_stateless/02737_arrayJaccardI... | Jaccard Similarity of arrays | **Use case**
Brute-force similarity search.
**Describe the solution you'd like**
See the implementation of the `arrayIntersect` function.
**Describe alternatives you've considered**
```
CREATE FUNCTION arrayJaccardIndex AS (a, b) -> size(arrayIntersect(a, b)) / (size(a) + size(b) - size(arrayIntersect(a... | https://github.com/ClickHouse/ClickHouse/issues/48770 | https://github.com/ClickHouse/ClickHouse/pull/50076 | 036fb1fc9bd2cb92dc0f8cc8969fa677e92ed976 | 9d7737ba093e51d7016d82aecc89be3c8af42024 | 2023-04-14T03:12:26Z | c++ | 2023-07-17T10:22:24Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,746 | ["src/Storages/StorageReplicatedMergeTree.cpp", "src/Storages/StorageReplicatedMergeTree.h", "tests/integration/test_zero_copy_replication_drop_detached_part/__init__.py", "tests/integration/test_zero_copy_replication_drop_detached_part/configs/storage_conf.xml", "tests/integration/test_zero_copy_replication_drop_detac... | Broken detached parts cleanup does not work with zero-copy replication | ```
Initialization failed, table will remain readonly. Error: Code: 233. DB::Exception: Unexpected part name: ignored_all_58400_58417_3 for format version: 1. (BAD_DATA_PART_NAME), Stack trace (when copying this message, always include the lines below):
0. DB::Exception::Exception(DB::Exception::MessageMasked&&, in... | https://github.com/ClickHouse/ClickHouse/issues/48746 | https://github.com/ClickHouse/ClickHouse/pull/48862 | ded8eca0415ea58c70fbefb8acfdb00a158f2669 | 516a0c9784a628cd82418fb9e8217749444a300c | 2023-04-13T12:01:14Z | c++ | 2023-04-24T10:57:25Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,736 | ["src/Interpreters/convertFieldToType.cpp", "tests/queries/0_stateless/02714_date_date32_in.reference", "tests/queries/0_stateless/02714_date_date32_in.sql"] | Please add support for the IN operator over combinations of Date and Date32 | Right now it is impossible to compare `Date` and `Date32` via the `IN` operator. This breaks queries when you don't know which one you are going to get.
Example 1 (Date32 in (Date list)):
```
5d7a06876b79 :) select toDate32('2020-01-01') in (toDate('2020-01-01'))
SELECT toDate32('2020-01-01') IN toDate('2020-01... | https://github.com/ClickHouse/ClickHouse/issues/48736 | https://github.com/ClickHouse/ClickHouse/pull/48806 | ce00aa74a05e0c858775c3260477a2bda18e8946 | 527b136ddf9a09d1da0d76a37d3be73f72f690b4 | 2023-04-13T07:50:36Z | c++ | 2023-04-26T23:17:05Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,728 | ["src/QueryPipeline/RemoteQueryExecutor.cpp", "tests/queries/0_stateless/01956_skip_unavailable_shards_excessive_attempts.reference", "tests/queries/0_stateless/01956_skip_unavailable_shards_excessive_attempts.sh"] | AGAIN skip_unavailable_shards=1 makes 6 tries if a shard is unavailable | It is happening again.
22.8 and 23.3. are affected.
```
SELECT *
FROM cluster('test_unavailable_shard', system.one)
SETTINGS skip_unavailable_shards = 1, send_logs_level = 'trace'
Query id: d5a5dc35-c7b0-4688-80e9-94423e98ab9b
2023.04.12 19:03:04.669543 [ 28138 ] {d5a5dc35-c7b0-4688-80e9-94423e98ab9b} <Debug... | https://github.com/ClickHouse/ClickHouse/issues/48728 | https://github.com/ClickHouse/ClickHouse/pull/48771 | 0c58c7502350c8d8334a8673ea8b130f81b86bf8 | a2793fcea61ed848bf3c9830b8e25c7afaa6337f | 2023-04-12T19:09:14Z | c++ | 2023-04-15T20:55:41Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,718 | ["src/Interpreters/PartLog.cpp", "src/Storages/System/StorageSystemPartsBase.cpp", "tests/queries/0_stateless/02117_show_create_table_system.reference"] | Alias `part` and `part_name` for system.part_log and system.parts | ```
DESCRIBE TABLE system.parts
...
name │ String
```
```
DESCRIBE TABLE system.part_log
...
part_name │ String
```
^
This columns have the same meaning. Let's add an alias `part_name -> name` for `system.parts` and `name -> part_name` for `system.part_log`. | https://github.com/ClickHouse/ClickHouse/issues/48718 | https://github.com/ClickHouse/ClickHouse/pull/48850 | e105a6e9bf4f9deb170f9cbd96f45a293ce66062 | 6805edf9e68a6047770b8ba6440f3ac6583155cc | 2023-04-12T15:16:05Z | c++ | 2023-04-20T11:04:11Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,716 | ["docs/en/sql-reference/statements/select/into-outfile.md", "src/Client/ClientBase.cpp", "src/Parsers/ASTQueryWithOutput.h", "src/Parsers/ParserQueryWithOutput.cpp", "tests/queries/0_stateless/02001_append_output_file.reference", "tests/queries/0_stateless/02001_append_output_file.sh"] | Enhance usability of `INTO OUTFILE` clause for SELECT queries | **Use case**
There is a possibility to write `INTO OUTFILE` to export the result of SELECT query, but if a file with a specified name exists on filesystem - there will be an exception.
**Describe the solution you'd like**
Add another keywords to parser to be able to write something like `INTO OUTFILE APPEND 'f... | https://github.com/ClickHouse/ClickHouse/issues/48716 | https://github.com/ClickHouse/ClickHouse/pull/48880 | a4f7bfa62de3d27b620d8f3d9b2a809dffb993f1 | 6b2daff663a43d5579750fd427bd4304cb40a282 | 2023-04-12T14:40:49Z | c++ | 2023-05-10T10:35:22Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,698 | ["docs/en/sql-reference/table-functions/file.md"] | Need docs for file() function that include PARTITION | See tests dir
```
./performance/file_table_function.xml: INSERT INTO FUNCTION file('test_file_{{_partition_id}}
', '{format}', 'partition_id UInt64, value UInt64')
./performance/file_table_function.xml: INSERT INTO FUNCTION file('test_file_{{_partition_id}}
', '{format}', 'partition_id UInt64, valu... | https://github.com/ClickHouse/ClickHouse/issues/48698 | https://github.com/ClickHouse/ClickHouse/pull/48947 | d43dbc78b6d87dc57eef4b0e9a7c65fb92644047 | 5bcd443bce833e0f613bee5aaa76cebb7e14c953 | 2023-04-12T12:43:33Z | c++ | 2023-04-20T14:53:22Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,694 | ["tests/queries/0_stateless/01054_window_view_proc_tumble_to.sh"] | 01054_window_view_proc_tumble_to is flaky | U0VMRUNUIHB1bGxfcmVxdWVzdF9udW1iZXIsIGNoZWNrX3N0YXJ0X3RpbWUsIGNoZWNrX25hbWUsIHRlc3RfbmFtZSwgdGVzdF9zdGF0dXMsIGNoZWNrX3N0YXR1cywgcmVwb3J0X3VybApGUk9NIGNoZWNrcwpXSEVSRSAxCiAgICAtLUFORCBwdWxsX3JlcXVlc3RfbnVtYmVyID0gMAogICAgQU5EIHRlc3Rfc3RhdHVzICE9ICdTS0lQUEVEJwogICAgQU5EIHRlc3Rfc3RhdHVzICE9ICdPSycKICAgIEFORCBjaGVja19zdGF0... | https://github.com/ClickHouse/ClickHouse/issues/48694 | https://github.com/ClickHouse/ClickHouse/pull/48824 | 82fe9d4dbe80d1c5cedb23850ac1b104b0cbc6cf | 0dab82c420df1961f3832fc07cf52efa046a4eb2 | 2023-04-12T11:23:26Z | c++ | 2023-04-17T03:25:50Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,691 | ["tests/integration/test_merge_tree_s3/test.py"] | test_store_cleanup_disk_s3 is flaky | https://s3.amazonaws.com/clickhouse-test-reports/0/c3482a104f73f237450f7d7781871859472687d9/integration_tests__asan__[6/6].html
https://play.clickhouse.com/play?user=play#U0VMRUNUIHB1bGxfcmVxdWVzdF9udW1iZXIsIGNoZWNrX3N0YXJ0X3RpbWUsIGNoZWNrX25hbWUsIHRlc3RfbmFtZSwgdGVzdF9zdGF0dXMsIGNoZWNrX3N0YXR1cywgcmVwb3J0X3VybApGUk... | https://github.com/ClickHouse/ClickHouse/issues/48691 | https://github.com/ClickHouse/ClickHouse/pull/50558 | fb4e950f9f6545bcfae057ef4e497aa6cd3f2027 | afdf7eaed7fab6d5f25663d66be97c301acc5195 | 2023-04-12T11:15:40Z | c++ | 2023-06-05T08:14:03Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,688 | ["tests/queries/0_stateless/02455_one_row_from_csv_memory_usage.sh"] | Flaky test `02455_one_row_from_csv_memory_usage` | Link: https://s3.amazonaws.com/clickhouse-test-reports/48666/165edd332e58c280808a842331d9f6a9934dfa59/stateless_tests__ubsan__[2/2].html | https://github.com/ClickHouse/ClickHouse/issues/48688 | https://github.com/ClickHouse/ClickHouse/pull/48756 | 1996049256b559504b287bc251085224423dedea | eafa3e8f643281537848734508369de709e18f00 | 2023-04-12T10:37:52Z | c++ | 2023-04-15T10:50:51Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,682 | ["src/Processors/QueryPlan/Optimizations/optimizeReadInOrder.cpp", "tests/queries/0_stateless/02811_read_in_order_and_array_join_bug.reference", "tests/queries/0_stateless/02811_read_in_order_and_array_join_bug.sql"] | Cannot find column less(id, 100) in ActionsDAG result. (UNKNOWN_IDENTIFIER) | Good afternoon, I ran into such a problem that I'm trying to select from a view and I'm catching an error. I found how to fix the error - turn off the optimization "setting optimize_read_in_order" , but in my opinion this setting should not throw an exception.
version Clickhouse 23.3.1.2823-lts
example:
https://... | https://github.com/ClickHouse/ClickHouse/issues/48682 | https://github.com/ClickHouse/ClickHouse/pull/51746 | 0523e6cbd0b0793572d7c3f36347190dcc016f7e | f748f1242678dca1fc789fbcdfc61969f1f73112 | 2023-04-12T09:07:04Z | c++ | 2023-10-31T10:51:01Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,676 | ["tests/queries/0_stateless/02796_projection_date_filter_on_view.reference", "tests/queries/0_stateless/02796_projection_date_filter_on_view.sql"] | SELECT with date filter on view using projection causes segmentation fault | I get a segmentation fault when I `SELECT` from a `VIEW`, which `SELECT`s from a table with the corresponding `PROJECTION`. It only happens if I include a `BETWEEN` filter on the `DateTime64(3, 'UTC')` column, which is part of the `GROUP BY` in the projection.
Here some code for reproduction, which is self-contained... | https://github.com/ClickHouse/ClickHouse/issues/48676 | https://github.com/ClickHouse/ClickHouse/pull/51308 | 75ef844f99a3af081978a7d905dcf2c214508237 | e1b0991de226f795886d2ed13e27ca94cb3a7641 | 2023-04-12T00:47:28Z | c++ | 2023-06-23T12:02:53Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,640 | ["docs/en/sql-reference/functions/rounding-functions.md"] | roundAge returns incorrect value | Function **roundAge**, describe from [documentation](https://clickhouse.com/docs/en/sql-reference/functions/rounding-functions#roundagenum):
> If the number is less than 18, it returns 0. Otherwise, it rounds the number down to a number from the set: 18, 25, 35, 45, 55.
But for 1-17 it returns 17.
```
SELECT
... | https://github.com/ClickHouse/ClickHouse/issues/48640 | https://github.com/ClickHouse/ClickHouse/pull/48673 | dd64eaed668a35f083d6690023d1bf46a988a68d | f619208b862104577530b9eb1202e8fd8c87216c | 2023-04-11T11:41:21Z | c++ | 2023-04-12T08:32:04Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,580 | ["docs/en/sql-reference/statements/show.md", "src/Analyzer/Passes/QueryAnalysisPass.cpp", "src/Parsers/ParserTablePropertiesQuery.cpp", "tests/queries/0_stateless/02710_show_table.reference", "tests/queries/0_stateless/02710_show_table.sql"] | Support `SHOW TABLE` syntax meaning the same as `SHOW CREATE TABLE` | **Use case**
Read https://staging.clickhouse.com/blog/redshift-vs-clickhouse-comparison
**Describe the solution you'd like**
Trivial. | https://github.com/ClickHouse/ClickHouse/issues/48580 | https://github.com/ClickHouse/ClickHouse/pull/48591 | 567111f146a05b498f91328acbebbb16210099f5 | 8eabc4306883f527f9713aa264139e21412fa2ba | 2023-04-10T03:05:01Z | c++ | 2023-04-14T16:42:29Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,545 | ["src/Interpreters/AsynchronousInsertQueue.cpp", "tests/queries/0_stateless/02714_async_inserts_empty_data.reference", "tests/queries/0_stateless/02714_async_inserts_empty_data.sh"] | Unexpected exception while inserting empty data with async_insert=1 |
**Unexpected behaviour**
Insertion of the empty data set (without records) causes an unexpected and unclear error when async_insert is enabled, error: `The associated promise has been destructed prior to the associated state becoming ready`.
See the stack trace below. The same error will be visible on the client ... | https://github.com/ClickHouse/ClickHouse/issues/48545 | https://github.com/ClickHouse/ClickHouse/pull/48663 | a8c892f92567ebb9bcacf08d0e27579b672117f7 | 4a1c868ca9c74ca2fd462e7e119479c1fea50997 | 2023-04-07T15:11:34Z | c++ | 2023-04-13T17:44:47Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,514 | ["src/Interpreters/getColumnFromBlock.cpp", "tests/queries/0_stateless/02709_storage_memory_compressed.reference", "tests/queries/0_stateless/02709_storage_memory_compressed.sql"] | segmentation fault in Memory engine with compression | see https://fiddle.clickhouse.com/865783e7-90a1-4bee-afa2-244ccd363ae4
```sql
CREATE TABLE users (uid Int16, name String, age Int16) ENGINE=Memory SETTINGS compress=1;
INSERT INTO users VALUES (1231, 'John', 33);
INSERT INTO users VALUES (6666, 'Ksenia', 48);
INSERT INTO users VALUES (8888, 'Alice', 50);
SE... | https://github.com/ClickHouse/ClickHouse/issues/48514 | https://github.com/ClickHouse/ClickHouse/pull/48517 | abe3c9b9db78c1bad5582807ab281cee4eef8536 | 5f01b8a2b59f6f340c65bfbc4ed0dd655d997ff9 | 2023-04-06T17:36:55Z | c++ | 2023-04-13T17:52:49Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,496 | ["src/Planner/Planner.cpp", "tests/queries/0_stateless/02932_parallel_replicas_fuzzer.reference", "tests/queries/0_stateless/02932_parallel_replicas_fuzzer.sql"] | Logical error: 'Chunk info was not set for chunk in GroupingAggregatedTransform.' | **Describe the bug**
https://s3.amazonaws.com/clickhouse-test-reports/0/3ad0a6ac1861292ef3e74d2738a7c67f44b0932d/fuzzer_astfuzzermsan/report.html
```
2023.04.06 04:03:52.021197 [ 495 ] {f2a512bd-c6c5-455b-bb60-53bba1c5f6d8} <Fatal> : Logical error: 'Chunk info was not set for chunk in GroupingAggregatedTransform.'... | https://github.com/ClickHouse/ClickHouse/issues/48496 | https://github.com/ClickHouse/ClickHouse/pull/57414 | 9c2ef4eae5d06deef52f66ccb8406cd64cd51703 | ae003bcc437ff84feb950660ad97048c36cc0ec2 | 2023-04-06T15:39:00Z | c++ | 2023-12-17T19:51:25Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,493 | ["src/Core/Settings.h", "src/Interpreters/executeQuery.cpp", "src/Storages/IStorage.h", "src/Storages/MergeTree/MergeTreeData.h", "src/Storages/MergeTree/MergeTreeSettings.h", "tests/queries/0_stateless/02725_async_insert_table_setting.reference", "tests/queries/0_stateless/02725_async_insert_table_setting.sh"] | Makes Async Inserts a merge tree level setting |
**Use case**
One of the main challenges of supporting ClickHouse. This is the optimal user experience - rare for users need to mix insert workload types on the same table.
**Describe the solution you'd like**
Merge Tree level setting. Set on table creation time.
| https://github.com/ClickHouse/ClickHouse/issues/48493 | https://github.com/ClickHouse/ClickHouse/pull/49122 | 17d6e2cc667bfd058b6622f0d5993941bbdf5911 | 7896d307379bc813665fa5b11d08c202ea67f4fb | 2023-04-06T14:51:05Z | c++ | 2023-05-03T14:01:13Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,462 | ["src/AggregateFunctions/AggregateFunctionGroupArray.cpp", "src/AggregateFunctions/AggregateFunctionNull.cpp", "tests/queries/0_stateless/00529_orantius.reference", "tests/queries/0_stateless/01664_array_slice_ubsan.reference", "tests/queries/0_stateless/02713_group_array_nullable.reference", "tests/queries/0_stateless... | Should `returns_default_when_only_null` be true for `groupArray` | > Make sure to check documentation https://clickhouse.com/docs/en/ first. If the question is concise and probably has a short answer, asking it in [community Slack](https://join.slack.com/t/clickhousedb/shared_invite/zt-1gh9ds7f4-PgDhJAaF8ad5RbWBAAjzFg) is probably the fastest way to find the answer. For more complicat... | https://github.com/ClickHouse/ClickHouse/issues/48462 | https://github.com/ClickHouse/ClickHouse/pull/48593 | 73741650a7ddd6462d76f4a15cce2a9fe372855c | ea5339ed4a15d6dbda5d94a6bc174a280c276dca | 2023-04-06T09:16:43Z | c++ | 2023-04-14T19:31:08Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,460 | ["tests/queries/0_stateless/02834_analyzer_with_statement_references.reference", "tests/queries/0_stateless/02834_analyzer_with_statement_references.sql"] | Analyzer: With statements references not working | When using the analyzer I can't reference a CTE from another one. This works when disabling the analyzer:
Analyzer:
```sql
WITH
test_aliases AS
(
SELECT *
FROM numbers(20)
),
alias2 AS
(
SELECT *
FROM test_aliases
)
SELECT *
FROM alias2
FORMAT `N... | https://github.com/ClickHouse/ClickHouse/issues/48460 | https://github.com/ClickHouse/ClickHouse/pull/52875 | 762d5a2ce83c96e81d7cbd036cabe31ee931a2e0 | 8c485f315372c20031f11e10878188d1526516e8 | 2023-04-06T08:27:33Z | c++ | 2023-08-25T16:55:30Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,418 | ["base/base/IPv4andIPv6.h", "src/AggregateFunctions/Helpers.h", "src/Common/HashTable/Hash.h", "src/Common/HashTable/HashTable.h", "src/DataTypes/DataTypeIPv4andIPv6.h", "src/Processors/Merges/Algorithms/SummingSortedAlgorithm.cpp", "tests/queries/0_stateless/02710_aggregation_nested_map_ip_uuid.reference", "tests/quer... | On a SummingMergeTree, a Map with an IPv4/IPv6 field does not sum. | Hello and thanks for your work on ClickHouse!
**Describe what's wrong**
I have found a bug reproducible on the latest available CH build.
I don't know if it's related to #39965 since I don't have the exact same behaviour.
On a SummingMergeTree, a Map with an IPv4/IPv6 field does not sum.
```
ClickHouse cl... | https://github.com/ClickHouse/ClickHouse/issues/48418 | https://github.com/ClickHouse/ClickHouse/pull/48556 | 3993aef8e281815ac4269d44e27bb1dcdcff21cb | cd88024a33c0324e96e2736669ad4a134129a2ea | 2023-04-05T09:27:00Z | c++ | 2023-04-18T11:03:50Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,394 | ["docs/en/sql-reference/functions/type-conversion-functions.md", "src/Functions/parseDateTime.cpp", "tests/queries/0_stateless/02668_parse_datetime.reference", "tests/queries/0_stateless/02668_parse_datetime.sql"] | MySQL compatibility: format is not supported for fractional seconds | **Describe the unexpected behaviour**
ClickHouse complains about the usage of formatter `%f` which stands for fractional seconds (i.e. microseconds) in MySQL.
**How to reproduce**
* Which ClickHouse server version to use: the latest main branch version as of the 3th of April 2023 (`23.4.1.170`)
* Which interf... | https://github.com/ClickHouse/ClickHouse/issues/48394 | https://github.com/ClickHouse/ClickHouse/pull/48420 | f82d7789af05f04094025d7fbcc1a00d7697d00d | 4e52dc672eb4aee754f080d41daaaf2feb45b0bf | 2023-04-04T15:53:50Z | c++ | 2023-04-11T12:12:02Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,385 | ["src/Common/Exception.cpp"] | use-of-uninitialized-value in QueryCache::Writer | https://s3.amazonaws.com/clickhouse-test-reports/48122/e1e508f8ec200a0e5acd7e33726c36303032972d/stress_test__msan_.html
```
==1656==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x64215a7b in LZ4_count build_docker/./contrib/lz4/lib/lz4.c:625:13
#1 0x64215a7b in LZ4_compress_generic_validated bu... | https://github.com/ClickHouse/ClickHouse/issues/48385 | https://github.com/ClickHouse/ClickHouse/pull/49316 | 6d3559e8170f4d5fe34d481c8ed26ca2a8871491 | b5a57da4ce5223a994d585dc9a09a43440726b0f | 2023-04-04T13:08:04Z | c++ | 2023-05-04T13:17:30Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,380 | ["tests/queries/0_stateless/02432_s3_parallel_parts_cleanup.sql"] | Flaky test `02432_s3_parallel_parts_cleanup` | Link: https://s3.amazonaws.com/clickhouse-test-reports/0/77e0806ca43d59c4c5f50d3c001e96f5fd9db2fd/stateless_tests__release__databaseordinary_.html | https://github.com/ClickHouse/ClickHouse/issues/48380 | https://github.com/ClickHouse/ClickHouse/pull/48865 | 96d2482bff2100ffd0f0fb946cd509458feb16f4 | fe81b1f9c1b2eb5ef027723121fceb49e363e21b | 2023-04-04T12:10:06Z | c++ | 2023-05-02T09:37:00Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,367 | ["src/Interpreters/InterpreterSelectQuery.cpp", "src/Processors/QueryPlan/ReadFromMergeTree.cpp", "src/Storages/MergeTree/MergeTreeData.cpp", "tests/queries/0_stateless/02708_parallel_replicas_not_found_column.reference", "tests/queries/0_stateless/02708_parallel_replicas_not_found_column.sql", "tests/queries/0_statele... | Attempting to upgrade to 23.2 or 23.3.. version results in Not found column count() in block on aggregations | I was attempting to upgrade clickhouse from version 23.1 to either 23.2 or 23.3 but all aggregation queries are failing. select * works. Rolled back and it works fine. below is a result of doing a select count() from table..
```:Exception: Not found column count() in block. There are only columns: . (NOT_FOUND_CO... | https://github.com/ClickHouse/ClickHouse/issues/48367 | https://github.com/ClickHouse/ClickHouse/pull/48433 | 14d6373bc75b548e13d8f48dead3c8048ed19776 | 3ad0a6ac1861292ef3e74d2738a7c67f44b0932d | 2023-04-04T02:50:35Z | c++ | 2023-04-06T00:00:06Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,318 | ["src/Analyzer/Passes/QueryAnalysisPass.cpp", "tests/queries/0_stateless/02174_cte_scalar_cache.sql", "tests/queries/0_stateless/02483_elapsed_time.sh", "tests/queries/0_stateless/02841_with_clause_resolve.reference", "tests/queries/0_stateless/02841_with_clause_resolve.sql"] | [Analyzer] Bad cast in a simple query | **Describe what's wrong**
```
milovidov@milovidov-desktop:~$ clickhouse-local
ClickHouse local version 23.3.1.2537.
milovidov-desktop :) SET allow_experimental_analyzer = 1
SET allow_experimental_analyzer = 1
Query id: 857ffa3c-786e-4f98-832a-bc100a08dcce
Ok.
0 rows in set. Elapsed: 0.000 sec.
... | https://github.com/ClickHouse/ClickHouse/issues/48318 | https://github.com/ClickHouse/ClickHouse/pull/52947 | 109b0197d6fb9bbbe8384b5ab3bb0b3a0740e998 | 34b88721188618bf51d99cc5028873ba2018133c | 2023-04-01T21:43:26Z | c++ | 2023-08-04T10:29:01Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,272 | ["tests/queries/0_stateless/02789_jit_cannot_convert_column.reference", "tests/queries/0_stateless/02789_jit_cannot_convert_column.sql", "tests/queries/0_stateless/02790_jit_wrong_result.reference", "tests/queries/0_stateless/02790_jit_wrong_result.sql"] | 01680_date_time_add_ubsan is flaky (due to a bug in JIT) | Seems everything was fine until yesterday:
```
SELECT
toStartOfDay(check_start_time) as t,
count() as runs,
100 * countIf(test_status != 'OK') / runs as failure_percentage
FROM checks
WHERE
test_name = '01680_date_time_add_ubsan'
AND pull_request_number = 0
AND check_start_time > today() -... | https://github.com/ClickHouse/ClickHouse/issues/48272 | https://github.com/ClickHouse/ClickHouse/pull/51113 | db82e94e68c48dd01a2e91be597cbedc7b56a188 | e28dc5d61c924992ddd0066e0e5e5bb05b848db3 | 2023-03-31T07:41:19Z | c++ | 2023-12-08T02:27:29Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,260 | ["docs/en/sql-reference/functions/date-time-functions.md", "src/Functions/dateDiff.cpp", "src/Functions/trim.cpp", "tests/queries/0_stateless/02710_date_diff_aliases.reference", "tests/queries/0_stateless/02710_date_diff_aliases.sql", "tests/queries/0_stateless/02711_trim_aliases.reference", "tests/queries/0_stateless/... | Missing functions in system.functions | I was expecting to see every built-in function to be presented in `system.functions`.
However there are some functions like `date_add`, `timestamp_sub`, `timestamp_add` missing.
https://fiddle.clickhouse.com/a028f696-69fa-4192-842e-d5c9ba751a34
```sql
SELECT name
FROM system.functions
WHERE name ilike 'timest... | https://github.com/ClickHouse/ClickHouse/issues/48260 | https://github.com/ClickHouse/ClickHouse/pull/48489 | 17aecb797cb863ea02251b9f0daa4a4a12551de2 | dcfd843b2d029e00b8348e2fe20ec4b50ba451cc | 2023-03-30T20:59:46Z | c++ | 2023-04-11T17:53:44Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,228 | ["src/AggregateFunctions/AggregateFunctionKolmogorovSmirnovTest.cpp", "src/AggregateFunctions/AggregateFunctionKolmogorovSmirnovTest.h", "src/AggregateFunctions/registerAggregateFunctions.cpp", "tests/queries/0_stateless/02706_kolmogorov_smirnov_test.reference", "tests/queries/0_stateless/02706_kolmogorov_smirnov_test.... | Add statistical aggregate function `kolmogorovSmirnovTest` | **Use case**
https://en.wikipedia.org/wiki/Kolmogorov%E2%80%93Smirnov_test
This type of statistical test is useful to check the equality of two distributions. In addition it can be easily modified to check whether a sample comes from normal distribution by performing the test against a normally distributed sample... | https://github.com/ClickHouse/ClickHouse/issues/48228 | https://github.com/ClickHouse/ClickHouse/pull/48325 | db864891f88c17586ee5eb82ade693309a0371d0 | 6e8f77ee9cba381c5175b7b22ce0c6f6bb95d6b9 | 2023-03-30T14:39:03Z | c++ | 2023-04-04T23:18:54Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,201 | ["docs/en/sql-reference/statements/system.md"] | Reload config / reload users | Is the documentation correct here?
https://clickhouse.com/docs/en/sql-reference/statements/system#reload-config

| https://github.com/ClickHouse/ClickHouse/issues/48201 | https://github.com/ClickHouse/ClickHouse/pull/48383 | a416e46f35e8f6fcfc3fb488b2ce3368f699e7b0 | 634ab620a7238ff3302cd9308c63dd63ea3e3aba | 2023-03-30T09:22:06Z | c++ | 2023-04-04T13:38:13Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,173 | ["src/Common/MemoryTracker.cpp", "src/Interpreters/Aggregator.cpp", "src/Interpreters/Aggregator.h", "src/Processors/Transforms/AggregatingInOrderTransform.cpp", "tests/queries/0_stateless/02797_aggregator_huge_mem_usage_bug.reference", "tests/queries/0_stateless/02797_aggregator_huge_mem_usage_bug.sql"] | 02151_hash_table_sizes_stats triggers OOM | Examples:
https://s3.amazonaws.com/clickhouse-test-reports/0/5fa519d04311615433ad7e016d974de6f7af9860/stateless_tests__tsan__[3/3].html
https://s3.amazonaws.com/clickhouse-test-reports/0/278b8f74c2a54e832cb25c9cd629f6b1939dcfb6/stateless_tests__tsan__[3/3].html
See also https://github.com/ClickHouse/ClickHouse/pul... | https://github.com/ClickHouse/ClickHouse/issues/48173 | https://github.com/ClickHouse/ClickHouse/pull/51566 | 923ee958c7088b65d2b9af008c3a231f7abb80a3 | 2cbe79b529e84166055d2af469fde9c28d1757c0 | 2023-03-29T14:21:19Z | c++ | 2023-08-02T13:11:52Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 48,056 | ["src/Parsers/ASTAlterQuery.cpp", "tests/queries/0_stateless/01318_alter_add_constraint_format.reference"] | clickhouse-format formatting issues (minor) | `clickhouse-format --oneline --query "ALTER TABLE alter_test COMMENT COLUMN IF EXISTS ToDrop 'new comment'"`
should output one line:
`ALTER TABLE alter_test COMMENT COLUMN IF EXISTS ToDrop 'new comment'`
but outputs two lines:
```
ALTER TABLE alter_test
COMMENT COLUMN IF EXISTS ToDrop 'new comment'
`... | https://github.com/ClickHouse/ClickHouse/issues/48056 | https://github.com/ClickHouse/ClickHouse/pull/48289 | 3cb7d48b755e4b5707a68541bb473b51573dafca | b6adc258957fe66d7c9b28c8a791a8a65ad4b099 | 2023-03-27T14:02:23Z | c++ | 2023-04-03T10:35:58Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,988 | ["tests/queries/0_stateless/02967_fuzz_bad_cast.reference", "tests/queries/0_stateless/02967_fuzz_bad_cast.sql"] | Fuzzer: AggregateFunctionSum cast to const DB::ColumnVector<DB::UInt8> failure |
```
2023.03.21 19:50:56.131471 [ 478 ] {} <Fatal> BaseDaemon: (version 23.3.1.1, build id: 407FF80ECCF6B9FAFD4D413B1FC42FF659C967F1) (from thread 459) (query_id: dafe564f-2858-4242-a7f7-505eb3174fcf) (query: SELECT sum(0), NULL FROM t0__fuzz_29 FULL OUTER JOIN t1__fuzz_4 USING (x) PREWHERE NULL) Received signal sani... | https://github.com/ClickHouse/ClickHouse/issues/47988 | https://github.com/ClickHouse/ClickHouse/pull/58893 | c7016339551a901244fdc5d6319799228d0a1df0 | 339fcdcf98c25cbe63c4690d8880a6a41a99984d | 2023-03-24T18:46:06Z | c++ | 2024-01-17T15:21:18Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,952 | ["src/DataTypes/getLeastSupertype.cpp", "tests/queries/0_stateless/02713_ip4_uint_compare.reference", "tests/queries/0_stateless/02713_ip4_uint_compare.sql"] | using IPv4 field in WHERE clause gives "no supertype for types UInt32, IPv4" | (you don't have to strictly follow this form)
**Describe the issue**
In 19.5.3.8, we could do this:
WHERE ip = IPv4StringToNum('1.2.3.4')
for ip of type IPv4 or Nullable(IPv4)
In 22.12.5.34, it also works.
In 23.2.4.12, we get instead a DB::Exception
**How to reproduce**
* Which ClickHouse server vers... | https://github.com/ClickHouse/ClickHouse/issues/47952 | https://github.com/ClickHouse/ClickHouse/pull/48611 | 2e612c364462b10efc4a8c3fc636a58bc30b54f8 | 6232d17876fa266493373924d3bd6a4cdc3a95ee | 2023-03-23T18:29:57Z | c++ | 2023-04-11T13:53:33Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,947 | ["src/Storages/MergeTree/MergeTreeData.cpp", "tests/performance/set_disable_skip_index.xml", "tests/queries/0_stateless/02707_skip_index_with_in.reference", "tests/queries/0_stateless/02707_skip_index_with_in.sql"] | ClickHouse spends time in makeSetsForIndex for skip index with use_skip_indexes=0 | **Describe the situation**
When you have a skip index defined on a table and are using an `IN (...)` construction, ClickHouse will always spend time in `makeSetsForIndex` regardless of the value of `use_skip_indexes`.
For some of our queries, evaluating the skip index takes more time than just reading all the rows ... | https://github.com/ClickHouse/ClickHouse/issues/47947 | https://github.com/ClickHouse/ClickHouse/pull/48299 | 5495cb2935c3f4d9fc89e4fb78bda5c51fb07c8c | 3302f1ff909a798065e1a04151f260b62359fcea | 2023-03-23T16:32:04Z | c++ | 2023-04-08T19:25:06Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,923 | ["docs/en/engines/table-engines/mergetree-family/mergetree.md"] | Missing/unclear docs about multi-expression secondary indexes | The docs on [data skipping indices](https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/mergetree#table_engine-mergetree-data_skipping-indexes) state that they are build over an expression
```sql
INDEX index_name expr TYPE type(...) [GRANULARITY granularity_value]
```
"Expression" is used in t... | https://github.com/ClickHouse/ClickHouse/issues/47923 | https://github.com/ClickHouse/ClickHouse/pull/47961 | 76401dcd83dbf7755bf71e1441cbae9992c0cad6 | 7ecfd664d0478096e3f7eefec6e0b8ec6c20716c | 2023-03-23T10:16:56Z | c++ | 2023-03-23T22:43:15Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,891 | ["src/Interpreters/Aggregator.cpp", "tests/queries/0_stateless/02770_jit_aggregation_nullable_key_fix.reference", "tests/queries/0_stateless/02770_jit_aggregation_nullable_key_fix.sql"] | Logical error: Invalid number of rows in Chunk | ERROR: type should be string, got "https://s3.amazonaws.com/clickhouse-test-reports/0/4dc5a629c349dd88cd7728621223a62e9ed87a4a/fuzzer_astfuzzerdebug/report.html\r\n\r\n```\r\ndell9510 :) set group_by_use_nulls=1\r\n\r\nSET group_by_use_nulls = 1\r\n\r\nQuery id: 2069b36a-fe74-48ff-a0ed-934b6a6dd57e\r\n\r\nOk.\r\n\r\n0 rows in set. Elapsed: 0.003 sec. \r\n\r\ndell9510 :) SELECT count([NULL, NULL]), count([2147483646, -2147483647, 3, 3]), uniqExact(if(number >= 1048577, number, NULL), NULL) FROM numbers(1048577) GROUP BY if(number >= 2., number, NULL) format Null\r\n\r\nSELECT\r\n count([NULL, NULL]),\r\n count([2147483646, -2147483647, 3, 3]),\r\n uniqExact(if(number >= 1048577, number, NULL), NULL)\r\nFROM numbers(1048577)\r\nGROUP BY if(number >= 2., number, NULL)\r\nFORMAT `Null`\r\n\r\nQuery id: 749df7d1-2e9a-4ea8-a92b-295464433591\r\n\r\n[dell9510] 2023.03.22 14:23:52.856923 [ 246980 ] {749df7d1-2e9a-4ea8-a92b-295464433591} <Fatal> : Logical error: 'Invalid number of rows in Chunk column UInt64 position 1: expected 65409, got 65410'.\r\n[dell9510] 2023.03.22 14:23:52.858093 [ 246986 ] <Fatal> BaseDaemon: ########################################\r\n[dell9510] 2023.03.22 14:23:52.858298 [ 246986 ] <Fatal> BaseDaemon: (version 23.3.1.2537, build id: 3018790D95A6AA08FB81899667D886CA8AA05445) (from thread 246980) (query_id: 749df7d1-2e9a-4ea8-a92b-295464433591) (query: SELECT count([NULL, NULL]), count([2147483646, -2147483647, 3, 3]), uniqExact(if(number >= 1048577, number, NULL), NULL) FROM numbers(1048577) GROUP BY if(number >= 2., number, NULL) format Null) Received signal Aborted (6)\r\n[dell9510] 2023.03.22 14:23:52.858458 [ 246986 ] <Fatal> BaseDaemon: \r\n[dell9510] 2023.03.22 14:23:52.858626 [ 246986 ] <Fatal> BaseDaemon: Stack trace: 0x7efdba5928ec 0x7efdba543ea8 0x7efdba52d53d 0x22f756c3 0x22f75735 0x22f75b6c 0x19934d57 0x1a239a6e 0x2dda5f88 0x2dda5d5f 0x2e23e081 0x2e24d8b7 0x2e2498af 0x2ddfe250 0x2ddfdf40 0x2ddd967e 0x2ddd9a04 0x2dddb267 0x2dddb1b5 0x2dddb199 0x2dddb0fd 0x2dddaff0 0x2dddaf35 0x2dddaf15 0x2dddaef5 0x2dddaec0 0x22fcdcd6 0x22fcd115 0x230d23dc 0x230d9bd1 0x230d9b75 0x230d9a9d 0x230d954f 0x7efdba590bb5 0x7efdba612d90\r\n[dell9510] 2023.03.22 14:23:52.858820 [ 246986 ] <Fatal> BaseDaemon: 4. ? @ 0x7efdba5928ec in ?\r\n[dell9510] 2023.03.22 14:23:52.858944 [ 246986 ] <Fatal> BaseDaemon: 5. gsignal @ 0x7efdba543ea8 in ?\r\n[dell9510] 2023.03.22 14:23:52.859086 [ 246986 ] <Fatal> BaseDaemon: 6. abort @ 0x7efdba52d53d in ?\r\n[dell9510] 2023.03.22 14:23:52.925055 [ 246986 ] <Fatal> BaseDaemon: 7. /home/tavplubix/ch/ClickHouse/src/Common/Exception.cpp:41: DB::abortOnFailedAssertion(String const&) @ 0x22f756c3 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:52.989157 [ 246986 ] <Fatal> BaseDaemon: 8. /home/tavplubix/ch/ClickHouse/src/Common/Exception.cpp:64: DB::handle_error_code(String const&, int, bool, std::vector<void*, std::allocator<void*>> const&) @ 0x22f75735 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:53.047296 [ 246986 ] <Fatal> BaseDaemon: 9. /home/tavplubix/ch/ClickHouse/src/Common/Exception.cpp:92: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x22f75b6c in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:53.113924 [ 246986 ] <Fatal> BaseDaemon: 10. /home/tavplubix/ch/ClickHouse/src/Common/Exception.h:55: DB::Exception::Exception(String&&, int, bool) @ 0x19934d57 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:53.259355 [ 246986 ] <Fatal> BaseDaemon: 11. /home/tavplubix/ch/ClickHouse/src/Common/Exception.h:82: DB::Exception::Exception<String, String, String>(int, FormatStringHelperImpl<std::type_identity<String>::type, std::type_identity<String>::type, std::type_identity<String>::type>, String&&, String&&, String&&) @ 0x1a239a6e in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:53.308614 [ 246986 ] <Fatal> BaseDaemon: 12. /home/tavplubix/ch/ClickHouse/src/Processors/Chunk.cpp:73: DB::Chunk::checkNumRowsIsConsistent() @ 0x2dda5f88 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:53.344894 [ 246986 ] <Fatal> BaseDaemon: 13. /home/tavplubix/ch/ClickHouse/src/Processors/Chunk.cpp:17: DB::Chunk::Chunk(std::vector<COW<DB::IColumn>::immutable_ptr<DB::IColumn>, std::allocator<COW<DB::IColumn>::immutable_ptr<DB::IColumn>>>, unsigned long) @ 0x2dda5d5f in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:53.574894 [ 246986 ] <Fatal> BaseDaemon: 14. /home/tavplubix/ch/ClickHouse/src/Processors/Transforms/AggregatingTransform.cpp:33: DB::convertToChunk(DB::Block const&) @ 0x2e23e081 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:53.747205 [ 246986 ] <Fatal> BaseDaemon: 15. /home/tavplubix/ch/ClickHouse/src/Processors/Transforms/AggregatingTransform.cpp:487: DB::ConvertingAggregatedToChunksTransform::mergeSingleLevel() @ 0x2e24d8b7 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:53.917161 [ 246986 ] <Fatal> BaseDaemon: 16. /home/tavplubix/ch/ClickHouse/src/Processors/Transforms/AggregatingTransform.cpp:307: DB::ConvertingAggregatedToChunksTransform::work() @ 0x2e2498af in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:53.946018 [ 246986 ] <Fatal> BaseDaemon: 17. /home/tavplubix/ch/ClickHouse/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x2ddfe250 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:53.969305 [ 246986 ] <Fatal> BaseDaemon: 18. /home/tavplubix/ch/ClickHouse/src/Processors/Executors/ExecutionThreadContext.cpp:92: DB::ExecutionThreadContext::executeTask() @ 0x2ddfdf40 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:54.056526 [ 246986 ] <Fatal> BaseDaemon: 19. /home/tavplubix/ch/ClickHouse/src/Processors/Executors/PipelineExecutor.cpp:229: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x2ddd967e in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:54.131419 [ 246986 ] <Fatal> BaseDaemon: 20. /home/tavplubix/ch/ClickHouse/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x2ddd9a04 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:54.200003 [ 246986 ] <Fatal> BaseDaemon: 21. /home/tavplubix/ch/ClickHouse/src/Processors/Executors/PipelineExecutor.cpp:320: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x2dddb267 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:54.288523 [ 246986 ] <Fatal> BaseDaemon: 22. /home/tavplubix/ch/ClickHouse/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval<DB::PipelineExecutor::spawnThreads()::$_0&>()()) std::__invoke[abi:v15000]<DB::PipelineExecutor::spawnThreads()::$_0&>(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x2dddb1b5 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:54.378734 [ 246986 ] <Fatal> BaseDaemon: 23. /home/tavplubix/ch/ClickHouse/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]<DB::PipelineExecutor::spawnThreads()::$_0&, std::tuple<>&>(DB::PipelineExecutor::spawnThreads()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x2dddb199 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:54.473525 [ 246986 ] <Fatal> BaseDaemon: 24. /home/tavplubix/ch/ClickHouse/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]<DB::PipelineExecutor::spawnThreads()::$_0&, std::tuple<>&>(DB::PipelineExecutor::spawnThreads()::$_0&, std::tuple<>&) @ 0x2dddb0fd in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:54.547306 [ 246986 ] <Fatal> BaseDaemon: 25. /home/tavplubix/ch/ClickHouse/src/Common/ThreadPool.h:210: ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::PipelineExecutor::spawnThreads()::$_0>(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'()::operator()() @ 0x2dddaff0 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:54.654999 [ 246986 ] <Fatal> BaseDaemon: 26. /home/tavplubix/ch/ClickHouse/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval<DB::PipelineExecutor::spawnThreads()::$_0>()()) std::__invoke[abi:v15000]<ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::PipelineExecutor::spawnThreads()::$_0>(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'()&>(DB::PipelineExecutor::spawnThreads()::$_0&&) @ 0x2dddaf35 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:54.754550 [ 246986 ] <Fatal> BaseDaemon: 27. /home/tavplubix/ch/ClickHouse/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper<void, true>::__call<ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::PipelineExecutor::spawnThreads()::$_0>(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::PipelineExecutor::spawnThreads()::$_0>(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'()&) @ 0x2dddaf15 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:54.851812 [ 246986 ] <Fatal> BaseDaemon: 28. /home/tavplubix/ch/ClickHouse/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::PipelineExecutor::spawnThreads()::$_0>(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x2dddaef5 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:54.948638 [ 246986 ] <Fatal> BaseDaemon: 29. /home/tavplubix/ch/ClickHouse/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker<void ()>::__call_impl<std::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::PipelineExecutor::spawnThreads()::$_0>(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x2dddaec0 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:54.992659 [ 246986 ] <Fatal> BaseDaemon: 30. /home/tavplubix/ch/ClickHouse/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func<void ()>::operator()[abi:v15000]() const @ 0x22fcdcd6 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:55.035135 [ 246986 ] <Fatal> BaseDaemon: 31. /home/tavplubix/ch/ClickHouse/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function<void ()>::operator()() const @ 0x22fcd115 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:55.088978 [ 246986 ] <Fatal> BaseDaemon: 32. /home/tavplubix/ch/ClickHouse/src/Common/ThreadPool.cpp:315: ThreadPoolImpl<std::thread>::worker(std::__list_iterator<std::thread, void*>) @ 0x230d23dc in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:55.152437 [ 246986 ] <Fatal> BaseDaemon: 33. /home/tavplubix/ch/ClickHouse/src/Common/ThreadPool.cpp:145: void ThreadPoolImpl<std::thread>::scheduleImpl<void>(std::function<void ()>, long, std::optional<unsigned long>, bool)::'lambda0'()::operator()() const @ 0x230d9bd1 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:55.217272 [ 246986 ] <Fatal> BaseDaemon: 34. /home/tavplubix/ch/ClickHouse/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval<void>()()) std::__invoke[abi:v15000]<void ThreadPoolImpl<std::thread>::scheduleImpl<void>(std::function<void ()>, long, std::optional<unsigned long>, bool)::'lambda0'()>(void&&) @ 0x230d9b75 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:55.280495 [ 246986 ] <Fatal> BaseDaemon: 35. /home/tavplubix/ch/ClickHouse/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void ThreadPoolImpl<std::thread>::scheduleImpl<void>(std::function<void ()>, long, std::optional<unsigned long>, bool)::'lambda0'()>(std::tuple<void, void ThreadPoolImpl<std::thread>::scheduleImpl<void>(std::function<void ()>, long, std::optional<unsigned long>, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x230d9a9d in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:55.344584 [ 246986 ] <Fatal> BaseDaemon: 36. /home/tavplubix/ch/ClickHouse/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]<std::tuple<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void ThreadPoolImpl<std::thread>::scheduleImpl<void>(std::function<void ()>, long, std::optional<unsigned long>, bool)::'lambda0'()>>(void*) @ 0x230d954f in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.22 14:23:55.344808 [ 246986 ] <Fatal> BaseDaemon: 37. ? @ 0x7efdba590bb5 in ?\r\n[dell9510] 2023.03.22 14:23:55.344941 [ 246986 ] <Fatal> BaseDaemon: 38. ? @ 0x7efdba612d90 in ?\r\n[dell9510] 2023.03.22 14:23:55.345093 [ 246986 ] <Fatal> BaseDaemon: Integrity check of the executable skipped because the reference checksum could not be read.\r\n→ Progress: 1.11 million rows, 8.90 MB (203.62 thousand rows/s., 1.63 MB/s.) 99%Exception on client:\r\nCode: 32. DB::Exception: Attempt to read after eof: while receiving packet from localhost:9000. (ATTEMPT_TO_READ_AFTER_EOF)\r\n\r\n```\r\n" | https://github.com/ClickHouse/ClickHouse/issues/47891 | https://github.com/ClickHouse/ClickHouse/pull/50291 | e1d535c890279ac5de4cc5bf44c38b223505c6ee | 9647cfa33db8295a9e538fc1f492b9fb13627675 | 2023-03-22T13:25:31Z | c++ | 2023-05-28T23:08:02Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,865 | ["tests/queries/0_stateless/02794_pushdown_invalid_get.reference", "tests/queries/0_stateless/02794_pushdown_invalid_get.sql"] | Invalid Field get from type Int64 to type Int128 in `filterPushDown`/`cloneActionsForFilterPushDown` | https://s3.amazonaws.com/clickhouse-test-reports/0/3c550b4314c0e9c8834952f8ff0ce7fe4569284d/fuzzer_astfuzzerdebug/report.html
```
dell9510 :) set joined_subquery_requires_alias=0
SET joined_subquery_requires_alias = 0
Query id: f07ad367-a11e-447b-8ee9-ff8821b42941
Ok.
0 rows in set. Elapsed: 0.050 sec. ... | https://github.com/ClickHouse/ClickHouse/issues/47865 | https://github.com/ClickHouse/ClickHouse/pull/51306 | 4c8a4f54ce9a1ce58ea2a6f4c7b5f0ea804ac110 | 1ebfaafec8f9abebbc76e73f783287d3cf1240d5 | 2023-03-21T19:40:25Z | c++ | 2023-06-23T11:45:23Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,792 | ["docs/en/sql-reference/statements/alter/partition.md"] | Error during alter table move partition to table | Version 22.12.5.35
According to [documentation](https://clickhouse.com/docs/en/sql-reference/statements/alter/partition#move-partition-to-table) requarements are:
1. Both tables must have the same structure. ✅
2. Both tables must have the same partition key, the same order by key and the same primary key. ✅
... | https://github.com/ClickHouse/ClickHouse/issues/47792 | https://github.com/ClickHouse/ClickHouse/pull/49174 | 75f9a7f087eceecc05e04214ffc2616f7ce91aa0 | ddfbc61e99d25aff2ef67ec612f9105cf8b75345 | 2023-03-20T18:06:46Z | c++ | 2023-04-26T13:25:18Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,787 | ["tests/queries/0_stateless/02789_jit_cannot_convert_column.reference", "tests/queries/0_stateless/02789_jit_cannot_convert_column.sql", "tests/queries/0_stateless/02790_jit_wrong_result.reference", "tests/queries/0_stateless/02790_jit_wrong_result.sql"] | JIT compilation changes query result (both are correct) | ```
CREATE TABLE t2 (c0 Int32, c1 Int32, c2 String) ENGINE = Log() ;
INSERT INTO t2(c1, c0) VALUES (1697596429, 1259570390);
INSERT INTO t2(c1, c2) VALUES (-871444251, 's,');
INSERT INTO t2(c0, c2, c1) VALUES (-943999939, '', 1756486294);
```
Just changing `compile_expressions = 0` in a query changes the result... | https://github.com/ClickHouse/ClickHouse/issues/47787 | https://github.com/ClickHouse/ClickHouse/pull/51113 | db82e94e68c48dd01a2e91be597cbedc7b56a188 | e28dc5d61c924992ddd0066e0e5e5bb05b848db3 | 2023-03-20T16:18:56Z | c++ | 2023-12-08T02:27:29Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,756 | ["src/IO/ZlibInflatingReadBuffer.cpp", "src/IO/ZlibInflatingReadBuffer.h"] | insert from INFILE large than 4G causes "inflateReset failed: buffer error" | I recently found that when insert from **large gzip file (>4G)**, clickhouse will throw error like this:
`Code: 354. DB::Exception: inflateReset failed: buffer error: While executing ParallelParsingBlockInputFormat: While executing File: data for INSERT was parsed from file: (in query: insert into RAW from INFILE '201... | https://github.com/ClickHouse/ClickHouse/issues/47756 | https://github.com/ClickHouse/ClickHouse/pull/47796 | a2182f265985bafca4b710d01e274381c313ee3a | fd567e03a5207abbb4407601cafe729c8a4778b1 | 2023-03-20T11:58:37Z | c++ | 2023-03-24T14:36:21Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,730 | ["src/Analyzer/Passes/QueryAnalysisPass.cpp", "src/Interpreters/Context.cpp", "tests/queries/0_stateless/02458_use_structure_from_insertion_table.reference", "tests/queries/0_stateless/02458_use_structure_from_insertion_table.sql"] | Setting use_structure_from_insertion_table_in_table_functions doesn't work properly with virtual columns. | **Describe what's wrong**
The setting `set use_structure_from_insertion_table_in_table_functions=1` doesn't work properly
setting:
```
set use_structure_from_insertion_table_in_table_functions=1;
insert into function file(data.LineAsString) select 'Hello';
```
table with the same column name:
```
create ta... | https://github.com/ClickHouse/ClickHouse/issues/47730 | https://github.com/ClickHouse/ClickHouse/pull/47962 | 2cb82526763d9cfd90fe07c27ad3668a459c161b | 8d1924cc9a68083f063e637aa5021eb5213afc81 | 2023-03-19T21:37:43Z | c++ | 2023-04-06T23:01:00Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,715 | ["src/AggregateFunctions/AggregateFunctionFactory.cpp", "src/AggregateFunctions/AggregateFunctionFactory.h", "tests/queries/0_stateless/02688_long_aggregate_function_names.reference", "tests/queries/0_stateless/02688_long_aggregate_function_names.sql"] | This query is slow | ```
SELECT hex(unhex('0aaf0a0a0a0a0a0a0a0a0000724e756c6c2c1d4e756c6c61626c4c4f4e47424c4f42756c6c2c494e4554360a0aaf0a0a0a0a0a0a0a0a0000746f57746172 744f664d690a0a0a0a0a0000746f57746172744f664d696e757465724e756c6c4f724e756c6c4e724e756c6c4fca4e756c6c4f724e756c0700000000000000494e4554360a0aaf0a0a0a0a0a0a0a0a0000724e756c6c... | https://github.com/ClickHouse/ClickHouse/issues/47715 | https://github.com/ClickHouse/ClickHouse/pull/47716 | d8fb6a7878de2d91ba3564b91db620e5d2d9f71f | 02b8d2bbf8a3d30aae49f77b7e7d392ef51a5028 | 2023-03-19T08:27:56Z | c++ | 2023-03-19T14:38:53Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,679 | ["src/Storages/StorageS3Settings.cpp"] | SIGSEGV while uploading to S3 for part > INT_MAX | Reproducer:
```sql
INSERT INTO FUNCTION s3('https://test.s3.us-east-1.amazonaws.com/clickhouse/test.csv', '', '', 'TSV')
SETTINGS s3_truncate_on_insert = 1, s3_max_single_part_upload_size = '10Gi'
SELECT repeat('a', 1024)
FROM numbers((pow(2, 30) * 5) / 1024)
SETTINGS s3_truncate_on_insert = 1, s3_max_single_pa... | https://github.com/ClickHouse/ClickHouse/issues/47679 | https://github.com/ClickHouse/ClickHouse/pull/48816 | 000a63d61ca4b7c08dec68db8ef026f4557a8703 | 69cac0a7882192cc8b22bba2760574c6fae2e3c8 | 2023-03-17T13:26:57Z | c++ | 2023-04-16T12:46:02Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,643 | ["src/Core/Settings.h", "src/Storages/MergeTree/BackgroundJobsAssignee.cpp", "src/Storages/MergeTree/BackgroundJobsAssignee.h", "src/Storages/MergeTree/MergeTreeData.cpp", "src/Storages/MergeTree/MergeTreeData.h", "src/Storages/MergeTree/MergeTreePartsMover.h", "tests/integration/test_move_partition_to_volume_async/__i... | Make ALTER TABLE MOVE PARTITION TO DISK asynchronous | ClickHouse has particular settings to make ALTER DELETE or MODIFY COLUMN asynchronous, but there is no such setting for MOVE PARTITION TO DISK.
I believe it's a good idea to add such setting for MOVE PARTITION TO DISK
| https://github.com/ClickHouse/ClickHouse/issues/47643 | https://github.com/ClickHouse/ClickHouse/pull/56809 | 8fe093c355ce7513395622a1364e70d93ff37b5d | 437a911d7b995ed7b9822a2b73cdf2406b583a1f | 2023-03-16T09:21:01Z | c++ | 2023-11-16T11:47:31Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,574 | ["tests/queries/0_stateless/01300_client_save_history_when_terminated_long.expect"] | Flaky test 01300_client_save_history_when_terminated_long | 01300_client_save_history_when_terminated_long test is flaky [link](https://play.clickhouse.com/play?user=play#d2l0aCAKJyUwMTMwMF9jbGllbnRfc2F2ZV9oaXN0b3J5X3doZW5fdGVybWluYXRlZF9sb25nJScgYXMgbmFtZV9wYXR0ZXJuLAonJSUnIGFzIGNvbnRleHRfcGF0dGVybiwKJzIwMjItMDktMDEnIGFzIHN0YXJ0X2RhdGUsCig0NTQ2MSkgYXMgbm9pc3lfcHJzLAooJ1N0YXRlb... | https://github.com/ClickHouse/ClickHouse/issues/47574 | https://github.com/ClickHouse/ClickHouse/pull/47606 | 9d14c14a54c227dd37366b3adf3bcba800d341ea | e42238a4e728d0947b8697ca8f9a545a44839e0a | 2023-03-14T13:30:18Z | c++ | 2023-03-15T11:49:34Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,571 | ["programs/odbc-bridge/ColumnInfoHandler.cpp"] | ODBC: Columns definition was not returned. (LOGICAL_ERROR) | ```
/var/log/clickhouse-server/clickhouse-server.err.log:2023.03.14 00:29:07.031349 [ 166170 ] {110f8654-7d7d-4b47-b6b0-3ce83414a80f} <Error> ReadWriteBufferFromHTTP: HTTP request to `http://127.0.0.1:9018/columns_info?use_connection_pooling=1&version=1&connection_string=DSN%3D%7BClickHouse%20DSN%20%28ANSI%29%7D&schem... | https://github.com/ClickHouse/ClickHouse/issues/47571 | https://github.com/ClickHouse/ClickHouse/pull/47573 | 8456e5721d9d98b4910527e04e33516fe386ae85 | 9d14c14a54c227dd37366b3adf3bcba800d341ea | 2023-03-14T13:19:10Z | c++ | 2023-03-15T11:31:54Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,533 | ["src/Interpreters/ActionsVisitor.cpp", "src/Interpreters/evaluateConstantExpression.cpp", "src/Parsers/ASTSetQuery.cpp", "src/Parsers/ASTSetQuery.h", "tests/queries/0_stateless/02815_logical_error_cannot_get_column_name_of_set.reference", "tests/queries/0_stateless/02815_logical_error_cannot_get_column_name_of_set.sql... | trying to get name of not a column: Set for table function | ```sql
SELECT count() FROM mysql(mysql('127.0.0.1:9004', currentDatabase(), foo, 'default', '', SETTINGS connection_pool_size = 1), '127.0.0.1:9004', currentDatabase(), foo, '', '')
```
https://s3.amazonaws.com/clickhouse-test-reports/47316/027db789d6a40fa11a3dfbc93bbda1825a8371d6/fuzzer_astfuzzerasan/report.h... | https://github.com/ClickHouse/ClickHouse/issues/47533 | https://github.com/ClickHouse/ClickHouse/pull/52158 | 89552bbde5f7f452bb07c6b5c9fb1da324524620 | 482c8b5cde896ee4d84e4b8886c8a0726b4e0784 | 2023-03-13T14:18:11Z | c++ | 2023-07-18T19:17:51Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,530 | ["docs/en/sql-reference/functions/string-search-functions.md", "src/Parsers/ExpressionListParsers.cpp", "tests/queries/0_stateless/25401_regexp_operator.reference", "tests/queries/0_stateless/25401_regexp_operator.sql"] | MySQL compatibility: REGEXP operator support | **Use case**
_NB: [the cell towers dataset](https://clickhouse.com/docs/en/getting-started/example-datasets/cell-towers/) is used here as an example._
When using Looker Studio with ClickHouse as a pseudo-MySQL data source, the following generated query fails because [REGEXP](https://dev.mysql.com/doc/refman/8.0/e... | https://github.com/ClickHouse/ClickHouse/issues/47530 | https://github.com/ClickHouse/ClickHouse/pull/47869 | 41e3d876d59d495cd3c05f9a96e91cc3547d8dac | 784b34f5d86cb78cc0730944bbc6c96e59726d61 | 2023-03-13T12:17:32Z | c++ | 2023-03-22T09:31:25Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,529 | ["src/Functions/positionCaseInsensitive.cpp", "tests/queries/0_stateless/02680_instr_alias_for_position_case_insensitive.reference", "tests/queries/0_stateless/02680_instr_alias_for_position_case_insensitive.sql"] | MySQL compatibility: INSTR function support | **Use case**
_NB: [the cell towers dataset](https://clickhouse.com/docs/en/getting-started/example-datasets/cell-towers/) is used here as an example._
When using Looker Studio with ClickHouse as a pseudo-MySQL data source, the following query fails because [INSTR](https://dev.mysql.com/doc/refman/8.0/en/string-fu... | https://github.com/ClickHouse/ClickHouse/issues/47529 | https://github.com/ClickHouse/ClickHouse/pull/47535 | e443c4e68217c8264be9e3f2b78362f5b4b5e881 | 82a6d75050513be4f677e912b84a4eada0e94f27 | 2023-03-13T12:09:23Z | c++ | 2023-03-14T21:00:40Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,485 | ["src/Common/Config/ConfigProcessor.cpp", "src/Common/Config/ConfigProcessor.h"] | executable UDF config conflicts with files in `conf.d` directory | Hi there.
I have defined a external executable function in `/etc/clickhouse-server/myfunc_function.xml`, with content:
```xml
<functions>
<function>
<type>executable</type>
<name>myfunc</name>
<return_type>String</return_type>
<argument>
<type>String</type>
... | https://github.com/ClickHouse/ClickHouse/issues/47485 | https://github.com/ClickHouse/ClickHouse/pull/52770 | 91e67c105f6a39d08cd982d252a6a3b034ad4f4a | d8a55b25c00103faf55e768e38646142c223e32f | 2023-03-11T18:08:42Z | c++ | 2023-07-30T04:21:01Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,458 | ["src/Formats/ReadSchemaUtils.cpp"] | Allow empty column names in CSVWithNames/TSVWithNames | Sophia Air Quality Dataset
Download: https://www.kaggle.com/datasets/hmavrodiev/sofia-air-quality-dataset
License: https://opendatacommons.org/licenses/odbl/1-0/
`tar xvf sofia-air-quality-dataset.tar.zst`
CSV files have the following header:
```
,sensor_id,location,lat,lon,timestamp,pressure,temperature,hu... | https://github.com/ClickHouse/ClickHouse/issues/47458 | https://github.com/ClickHouse/ClickHouse/pull/47496 | 6d45d0c37404f4d3a7bd03c92e6a2f04adef7beb | 3460667cac732d3ab67a57b06a6d4cdbe81ffe76 | 2023-03-11T02:36:28Z | c++ | 2023-05-31T11:24:39Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,435 | ["src/Functions/URL/decodeURLComponent.cpp", "tests/queries/0_stateless/02677_decode_url_component.reference", "tests/queries/0_stateless/02677_decode_url_component.sql"] | encodeURLComponent makes incorrect results for cyrillic characters | **How to reproduce**
```SQL
SELECT
encodeURLComponent('кликхаус') AS encoded,
decodeURLComponent(encoded) = 'кликхаус' AS expected_EQ
```
**Actual result**
```
┌─encoded─────────────────────────────────────┬─expected_EQ─┐
│ %a0%A%a0%B%a0%8%a0%A%a1%g5%a0%0%a1%g3%a1%g1 │ 0 │
└─────────────... | https://github.com/ClickHouse/ClickHouse/issues/47435 | https://github.com/ClickHouse/ClickHouse/pull/47457 | 8e4112b1cea6c2ce13de644a9b8f967cfe5afbaf | 9de300d8f7e4b3d0532f3e4a587cef27c899cc8c | 2023-03-10T15:52:56Z | c++ | 2023-03-11T12:40:12Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,420 | ["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"] | Setup to implement "archive" merges that merges high level parts that are old | The current merge algorithm follows a tree approach. It works well, but this means that some data will not be merged for a very long period of time.
To force merging old data, there is a setting, min_age_to_force_merge_seconds that can be applied per table. On paper this setting works perfectly, but it is also a ti... | https://github.com/ClickHouse/ClickHouse/issues/47420 | https://github.com/ClickHouse/ClickHouse/pull/53405 | 75d32bfe771db20a2698d6a6e5d9484e3cf747f5 | cbbb81f5ccf94e7549fd5608f9c157adc63a8dbd | 2023-03-10T08:55:54Z | c++ | 2023-08-24T17:49:38Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,415 | ["docs/en/engines/table-engines/mergetree-family/mergetree.md", "src/Disks/StoragePolicy.cpp", "src/Disks/VolumeJBOD.cpp", "src/Disks/VolumeJBOD.h", "tests/integration/test_jbod_load_balancing/configs/config.d/storage_configuration.xml", "tests/integration/test_jbod_load_balancing/test.py"] | What's the time of disk swifting to another in least_used disk policy | HI:
We configed 2 disk in a volume and the load_balance is least_used.Our db have only mergetree engine table and
observed that the disk switch is performed only when one disk is about 50G more than the remaining space of the other disk. But I see the source code of clickhouse, when reserve new part, it will... | https://github.com/ClickHouse/ClickHouse/issues/47415 | https://github.com/ClickHouse/ClickHouse/pull/56030 | 3631e476eb3cdc438739d1bfb8cd351268391534 | 58824fb02b174c8ccfa5a14c7db238f43e228686 | 2023-03-10T02:50:19Z | c++ | 2023-10-30T08:04:38Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,393 | ["src/Storages/MergeTree/MutateTask.cpp", "tests/queries/0_stateless/02346_inverted_index_mutation.reference", "tests/queries/0_stateless/02346_inverted_index_mutation.sql"] | inverted index bug on segment id | **Describe what's wrong**
As in title.
**Does it reproduce on recent release?**
Yes.
**How to reproduce**
```sql
set allow_experimental_inverted_index=1;
CREATE TABLE t
(
`timestamp` UInt64,
`s` String,
INDEX idx lower(s) TYPE inverted(3) GRANULARITY 1
)
ENGINE = MergeTree
PARTITION BY t... | https://github.com/ClickHouse/ClickHouse/issues/47393 | https://github.com/ClickHouse/ClickHouse/pull/47663 | a02dedbb6a139de25ff1168a2c41d59b77b96032 | e633f36ce91a2ae335010548638aac79bca3aef9 | 2023-03-09T08:44:22Z | c++ | 2023-10-09T11:31:46Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,366 | ["tests/queries/0_stateless/02923_join_use_nulls_modulo.reference", "tests/queries/0_stateless/02923_join_use_nulls_modulo.sql"] | Logical error: 'Arguments of 'modulo' have incorrect data types (with `join_use_nulls`) | ERROR: type should be string, got "https://s3.amazonaws.com/clickhouse-test-reports/47310/86410a7a3f8a9241413f8a36d3bda04e003e17da/fuzzer_astfuzzerasan/report.html\r\n\r\n```\r\ndell9510 :) set join_use_nulls=1\r\n\r\nSET join_use_nulls = 1\r\n\r\nQuery id: 32112886-0261-4ec1-a16f-5445e1df1080\r\n\r\nOk.\r\n\r\n0 rows in set. Elapsed: 0.003 sec. \r\n\r\ndell9510 :) SELECT id % 255, toTypeName(d.id) FROM (SELECT toLowCardinality(1048577) AS id, toLowCardinality(9223372036854775807) AS value GROUP BY GROUPING SETS ((toLowCardinality(1024)), (id % 10.0001), ((id % 2147483646) != -9223372036854775807), ((id % -1) != 255))) AS a SEMI LEFT JOIN (SELECT toLowCardinality(9223372036854775807) AS id WHERE (id % 2147483646) != NULL) AS d USING (id)\r\n\r\nSELECT\r\n id % 255,\r\n toTypeName(d.id)\r\nFROM\r\n(\r\n SELECT\r\n toLowCardinality(1048577) AS id,\r\n toLowCardinality(9223372036854775807) AS value\r\n GROUP BY\r\n GROUPING SETS (\r\n (toLowCardinality(1024)),\r\n (id % 10.0001),\r\n ((id % 2147483646) != -9223372036854775807),\r\n ((id % -1) != 255))\r\n) AS a\r\nSEMI LEFT JOIN\r\n(\r\n SELECT toLowCardinality(9223372036854775807) AS id\r\n WHERE (id % 2147483646) != NULL\r\n) AS d USING (id)\r\n\r\nQuery id: ffb50b8f-4fb0-40bb-ac55-df2dc3e2b16d\r\n\r\n[dell9510] 2023.03.08 15:38:24.265166 [ 687205 ] {ffb50b8f-4fb0-40bb-ac55-df2dc3e2b16d} <Fatal> : Logical error: 'Arguments of 'modulo' have incorrect data types: 'id' of type 'UInt64', '255' of type 'UInt8''.\r\n[dell9510] 2023.03.08 15:38:24.266787 [ 687522 ] <Fatal> BaseDaemon: ########################################\r\n[dell9510] 2023.03.08 15:38:24.267509 [ 687522 ] <Fatal> BaseDaemon: (version 23.3.1.2537, build id: 70B15AC8648C7B6B98FA15EFE80C934F361370D2) (from thread 687205) (query_id: ffb50b8f-4fb0-40bb-ac55-df2dc3e2b16d) (query: SELECT id % 255, toTypeName(d.id) FROM (SELECT toLowCardinality(1048577) AS id, toLowCardinality(9223372036854775807) AS value GROUP BY GROUPING SETS ((toLowCardinality(1024)), (id % 10.0001), ((id % 2147483646) != -9223372036854775807), ((id % -1) != 255))) AS a SEMI LEFT JOIN (SELECT toLowCardinality(9223372036854775807) AS id WHERE (id % 2147483646) != NULL) AS d USING (id)) Received signal Aborted (6)\r\n[dell9510] 2023.03.08 15:38:24.267709 [ 687522 ] <Fatal> BaseDaemon: \r\n[dell9510] 2023.03.08 15:38:24.267898 [ 687522 ] <Fatal> BaseDaemon: Stack trace: 0x7f772f7b08ec 0x7f772f761ea8 0x7f772f74b53d 0x2303484c 0x230348b5 0x23034cec 0x19a05dd7 0x1b11e709 0x1fd4c5fc 0x1fd4a783 0x1fd490fd 0x19a08819 0x19a0680d 0x2a39ae0f 0x2a39ba01 0x2a39d049 0x2b0f2c51 0x2b0f2608 0x2e36f73a 0x2e5e87a8 0x2c2806fe 0x2c2737cc 0x2c26a96c 0x2c267876 0x2c35ac58 0x2c35b7fc 0x2c88d0f7 0x2c888a9b 0x2de4b24d 0x2de5dbd2 0x332c5e99 0x332c66e8 0x33546ea1 0x335437ba 0x33542355 0x7f772f7aebb5 0x7f772f830d90\r\n[dell9510] 2023.03.08 15:38:24.268093 [ 687522 ] <Fatal> BaseDaemon: 4. ? @ 0x7f772f7b08ec in ?\r\n[dell9510] 2023.03.08 15:38:24.268234 [ 687522 ] <Fatal> BaseDaemon: 5. raise @ 0x7f772f761ea8 in ?\r\n[dell9510] 2023.03.08 15:38:24.268412 [ 687522 ] <Fatal> BaseDaemon: 6. abort @ 0x7f772f74b53d in ?\r\n[dell9510] 2023.03.08 15:38:24.341671 [ 687522 ] <Fatal> BaseDaemon: 7. /home/tavplubix/ch/ClickHouse/src/Common/Exception.cpp:41: DB::abortOnFailedAssertion(String const&) @ 0x2303484c in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:24.413843 [ 687522 ] <Fatal> BaseDaemon: 8. /home/tavplubix/ch/ClickHouse/src/Common/Exception.cpp:64: DB::handle_error_code(String const&, int, bool, std::vector<void*, std::allocator<void*>> const&) @ 0x230348b5 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:24.476191 [ 687522 ] <Fatal> BaseDaemon: 9. /home/tavplubix/ch/ClickHouse/src/Common/Exception.cpp:92: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x23034cec in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:24.548421 [ 687522 ] <Fatal> BaseDaemon: 10. /home/tavplubix/ch/ClickHouse/src/Common/Exception.h:55: DB::Exception::Exception(String&&, int, bool) @ 0x19a05dd7 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:24.926032 [ 687522 ] <Fatal> BaseDaemon: 11. /home/tavplubix/ch/ClickHouse/src/Common/Exception.h:82: DB::Exception::Exception<String, String const&, String, String const&, String>(int, FormatStringHelperImpl<std::type_identity<String>::type, std::type_identity<String const&>::type, std::type_identity<String>::type, std::type_identity<String const&>::type, std::type_identity<String>::type>, String&&, String const&, String&&, String const&, String&&) @ 0x1b11e709 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:25.394235 [ 687522 ] <Fatal> BaseDaemon: 12. /home/tavplubix/ch/ClickHouse/src/Functions/FunctionBinaryArithmetic.h:1837: DB::FunctionBinaryArithmetic<DB::ModuloImpl, DB::NameModulo, false, true, false>::executeImpl2(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, DB::PODArray<char8_t, 4096ul, Allocator<false, false>, 63ul, 64ul> const*) const @ 0x1fd4c5fc in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:26.384509 [ 687522 ] <Fatal> BaseDaemon: 13. /home/tavplubix/ch/ClickHouse/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic<DB::ModuloImpl, DB::NameModulo, false, true, false>::executeImpl(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0x1fd4a783 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:27.476610 [ 687522 ] <Fatal> BaseDaemon: 14. /home/tavplubix/ch/ClickHouse/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants<DB::ModuloImpl, DB::NameModulo, false, true, false>::executeImpl(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0x1fd490fd in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:27.563563 [ 687522 ] <Fatal> BaseDaemon: 15. /home/tavplubix/ch/ClickHouse/src/Functions/IFunction.h:414: DB::IFunction::executeImplDryRun(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0x19a08819 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:27.651453 [ 687522 ] <Fatal> BaseDaemon: 16. /home/tavplubix/ch/ClickHouse/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0x19a0680d in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:27.724521 [ 687522 ] <Fatal> BaseDaemon: 17. /home/tavplubix/ch/ClickHouse/src/Functions/IFunction.cpp:247: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x2a39ae0f in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:27.794065 [ 687522 ] <Fatal> BaseDaemon: 18. /home/tavplubix/ch/ClickHouse/src/Functions/IFunction.cpp:282: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x2a39ba01 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:27.861171 [ 687522 ] <Fatal> BaseDaemon: 19. /home/tavplubix/ch/ClickHouse/src/Functions/IFunction.cpp:376: DB::IExecutableFunction::execute(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x2a39d049 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:29.030095 [ 687522 ] <Fatal> BaseDaemon: 20. /home/tavplubix/ch/ClickHouse/src/Interpreters/ActionsDAG.cpp:516: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>>) @ 0x2b0f2c51 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:29.708069 [ 687522 ] <Fatal> BaseDaemon: 21. /home/tavplubix/ch/ClickHouse/src/Interpreters/ActionsDAG.cpp:633: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x2b0f2608 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:29.751933 [ 687522 ] <Fatal> BaseDaemon: 22. /home/tavplubix/ch/ClickHouse/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x2e36f73a in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:29.841851 [ 687522 ] <Fatal> BaseDaemon: 23. /home/tavplubix/ch/ClickHouse/src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr<DB::ActionsDAG> const&) @ 0x2e5e87a8 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:30.343756 [ 687522 ] <Fatal> BaseDaemon: 24. /home/tavplubix/ch/ClickHouse/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if<DB::ExpressionStep>::__unique_single std::make_unique[abi:v15000]<DB::ExpressionStep, DB::DataStream const&, std::shared_ptr<DB::ActionsDAG> const&>(DB::DataStream const&, std::shared_ptr<DB::ActionsDAG> const&) @ 0x2c2806fe in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:30.724641 [ 687522 ] <Fatal> BaseDaemon: 25. /home/tavplubix/ch/ClickHouse/src/Interpreters/InterpreterSelectQuery.cpp:2671: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr<DB::ActionsDAG> const&, String const&) @ 0x2c2737cc in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:31.094562 [ 687522 ] <Fatal> BaseDaemon: 26. /home/tavplubix/ch/ClickHouse/src/Interpreters/InterpreterSelectQuery.cpp:1632: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional<DB::Pipe>) @ 0x2c26a96c in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:31.458915 [ 687522 ] <Fatal> BaseDaemon: 27. /home/tavplubix/ch/ClickHouse/src/Interpreters/InterpreterSelectQuery.cpp:786: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x2c267876 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:31.611916 [ 687522 ] <Fatal> BaseDaemon: 28. /home/tavplubix/ch/ClickHouse/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:308: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x2c35ac58 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:31.769888 [ 687522 ] <Fatal> BaseDaemon: 29. /home/tavplubix/ch/ClickHouse/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:382: DB::InterpreterSelectWithUnionQuery::execute() @ 0x2c35b7fc in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:31.964792 [ 687522 ] <Fatal> BaseDaemon: 30. /home/tavplubix/ch/ClickHouse/src/Interpreters/executeQuery.cpp:750: DB::executeQueryImpl(char const*, char const*, std::shared_ptr<DB::Context>, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x2c88d0f7 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:32.171746 [ 687522 ] <Fatal> BaseDaemon: 31. /home/tavplubix/ch/ClickHouse/src/Interpreters/executeQuery.cpp:1198: DB::executeQuery(String const&, std::shared_ptr<DB::Context>, bool, DB::QueryProcessingStage::Enum) @ 0x2c888a9b in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:32.379520 [ 687522 ] <Fatal> BaseDaemon: 32. /home/tavplubix/ch/ClickHouse/src/Server/TCPHandler.cpp:413: DB::TCPHandler::runImpl() @ 0x2de4b24d in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:32.612198 [ 687522 ] <Fatal> BaseDaemon: 33. /home/tavplubix/ch/ClickHouse/src/Server/TCPHandler.cpp:1997: DB::TCPHandler::run() @ 0x2de5dbd2 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:32.643756 [ 687522 ] <Fatal> BaseDaemon: 34. /home/tavplubix/ch/ClickHouse/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x332c5e99 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:32.669496 [ 687522 ] <Fatal> BaseDaemon: 35. /home/tavplubix/ch/ClickHouse/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x332c66e8 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:32.701959 [ 687522 ] <Fatal> BaseDaemon: 36. /home/tavplubix/ch/ClickHouse/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x33546ea1 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:32.725986 [ 687522 ] <Fatal> BaseDaemon: 37. /home/tavplubix/ch/ClickHouse/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x335437ba in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:32.747434 [ 687522 ] <Fatal> BaseDaemon: 38. /home/tavplubix/ch/ClickHouse/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x33542355 in /home/tavplubix/ch/ClickHouse/cmake-build-debug/programs/clickhouse\r\n[dell9510] 2023.03.08 15:38:32.747608 [ 687522 ] <Fatal> BaseDaemon: 39. ? @ 0x7f772f7aebb5 in ?\r\n[dell9510] 2023.03.08 15:38:32.747743 [ 687522 ] <Fatal> BaseDaemon: 40. ? @ 0x7f772f830d90 in ?\r\n[dell9510] 2023.03.08 15:38:32.747912 [ 687522 ] <Fatal> BaseDaemon: Integrity check of the executable skipped because the reference checksum could not be read.\r\nException on client:\r\nCode: 32. DB::Exception: Attempt to read after eof: while receiving packet from localhost:9000. (ATTEMPT_TO_READ_AFTER_EOF)\r\n\r\n```\r\n\r\ncc: @vdimir " | https://github.com/ClickHouse/ClickHouse/issues/47366 | https://github.com/ClickHouse/ClickHouse/pull/57200 | 8325d04313955510dc1267f6c9d0a64263e2e7c3 | ef9670b5deaa6913148742db50a7ed0db5adf1d1 | 2023-03-08T14:40:09Z | c++ | 2023-11-25T02:00:18Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,332 | ["src/Storages/AlterCommands.cpp", "src/Storages/ColumnsDescription.cpp", "src/Storages/ColumnsDescription.h", "tests/queries/0_stateless/02725_alias_columns_should_not_allow_compression_codec.reference", "tests/queries/0_stateless/02725_alias_columns_should_not_allow_compression_codec.sql"] | Alias columns should not allow codec | **Column ALIAS should not allow codec**
Alias column (as a non-materialized one) should probably not allow adding codec
**How to reproduce**
* server version: ClickHouse server version 22.12.3 revision 54461.
* client: ClickHouse client version 22.12.3.5 (official build).
* Non-default settings: seems none relev... | https://github.com/ClickHouse/ClickHouse/issues/47332 | https://github.com/ClickHouse/ClickHouse/pull/49363 | 03aa4f7f8a1d1120e48f9a53a7027236e7058a40 | ee9fae6aa219d257e59821a7c0603bb6bc1ce89b | 2023-03-08T10:52:51Z | c++ | 2023-05-03T00:37:48Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,317 | ["src/Interpreters/ActionsDAG.cpp", "tests/queries/0_stateless/01655_plan_optimizations.reference", "tests/queries/0_stateless/01655_plan_optimizations.sh", "tests/queries/0_stateless/02568_and_consistency.reference", "tests/queries/0_stateless/02568_and_consistency.sql"] | HAVING returning no result | ```
CREATE TABLE t1 (c0 Int32, PRIMARY KEY (c0)) ENGINE=MergeTree;
INSERT INTO t1 VALUES (1554690688);
```
```
SELECT MIN(t1.c0)
FROM t1
GROUP BY
(-sign(cos(t1.c0))) * (-max2(t1.c0, t1.c0 / t1.c0)),
t1.c0 * t1.c0,
sign(-exp(-t1.c0))
SETTINGS aggregate_functions_null_for_empty = 1, enable_optimi... | https://github.com/ClickHouse/ClickHouse/issues/47317 | https://github.com/ClickHouse/ClickHouse/pull/47584 | e4500a7f2ab82d4bab2c3f9d931c202e590d6907 | 9bf6175919406ca9cfec4a4ec4c3f6ad5f9d83c4 | 2023-03-07T20:46:56Z | c++ | 2023-05-11T12:03:46Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,311 | ["src/Interpreters/ThreadStatusExt.cpp", "src/Processors/Transforms/buildPushingToViewsChain.cpp", "tests/queries/0_stateless/02572_query_views_log_background_thread.reference", "tests/queries/0_stateless/02572_query_views_log_background_thread.sql"] | `query_views_log` does not get populated when using a Materialized View attached to a Kafka table | **Describe the unexpected behaviour**
Using a simple pipeline:
| Kafka engine table | ---> | Materialized View | ---> | Destination table |
- data is flowing correctly but `system.query_views_log` is not updated accordingly.
- `query_views_log` is correctly configured and working with other MVs.
Version... | https://github.com/ClickHouse/ClickHouse/issues/47311 | https://github.com/ClickHouse/ClickHouse/pull/46668 | 715ef4da6e0c9bc4f8c8e36c61d92080725789ce | 0503ed6fb826c566ce1f505bb2629905ad2e18ce | 2023-03-07T16:25:16Z | c++ | 2023-04-07T12:47:05Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,287 | ["src/Interpreters/InterpreterSelectQuery.cpp", "src/Storages/SelectQueryInfo.h", "src/Storages/StorageView.cpp", "src/Storages/StorageView.h", "tests/queries/0_stateless/02428_parameterized_view.reference", "tests/queries/0_stateless/02428_parameterized_view.sh"] | Parameterized View incorrect substitution when parameter name is substring of column name | When the name of the parameter (in this case `i`) is present (substring) in the column being filtered related to the create view, there is an incorrect parsing of the string substitution when executing the select statement
For example ( Fiddle -> https://fiddle.clickhouse.com/8e42a8f4-d1aa-4808-a40c-38e25f837aba )
... | https://github.com/ClickHouse/ClickHouse/issues/47287 | https://github.com/ClickHouse/ClickHouse/pull/47495 | 95e994a9cda18963a557648f2bca5a41dcf1f274 | 52b69768221a94c3b513c6408994889e246d11ba | 2023-03-07T03:00:33Z | c++ | 2023-03-14T13:33:44Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,267 | ["docs/en/operations/settings/settings.md"] | missing docs for connect_timeout_with_failover_secure_ms | (you don't have to strictly follow this form)
**Describe the issue**
A clear and concise description of what's wrong in documentation.
**Additional context**
Add any other context about the problem here.
| https://github.com/ClickHouse/ClickHouse/issues/47267 | https://github.com/ClickHouse/ClickHouse/pull/49751 | 9d3d2cf0a8ca7d712564eabc6304d38f654afc04 | 10bc3438ebabb69ba57fe4f696cf2ffe039ddd35 | 2023-03-06T14:47:05Z | c++ | 2023-05-10T19:46:28Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,247 | ["src/Interpreters/InterpreterSelectQuery.cpp", "src/Storages/SelectQueryInfo.h", "src/Storages/StorageView.cpp", "src/Storages/StorageView.h", "tests/queries/0_stateless/02428_parameterized_view.reference", "tests/queries/0_stateless/02428_parameterized_view.sh"] | parameterized view leads to segmentation fault |
I upgraded to Clickhouse 23.2.2.20 to use new parameterized views. Under load I began to get segmentation fault error. Here are few stack traces from logs:
2023.03.04 20:57:50.473964 [ 424295 ] {} <Fatal> BaseDaemon: ########################################
2023.03.04 20:57:50.474035 [ 424295 ] {} <Fatal> BaseD... | https://github.com/ClickHouse/ClickHouse/issues/47247 | https://github.com/ClickHouse/ClickHouse/pull/47495 | 95e994a9cda18963a557648f2bca5a41dcf1f274 | 52b69768221a94c3b513c6408994889e246d11ba | 2023-03-05T01:09:54Z | c++ | 2023-03-14T13:33:44Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,200 | ["src/Storages/MergeTree/PartMetadataManagerWithCache.cpp"] | Upgrade check: Index file `primary.cidx` is unexpectedly long (broken part) | https://s3.amazonaws.com/clickhouse-test-reports/47152/fdcbec4fee7df1bb5a51249cef96964b5245c822/stress_test__debug_.html
```
2023.03.03 01:35:43.985393 [ 221299 ] {} <Error> test_metadata_cache.check_part_metadata_cache: while loading part 201806_0_0_0_2 on path data/test_metadata_cache/check_part_metadata_cache/20... | https://github.com/ClickHouse/ClickHouse/issues/47200 | https://github.com/ClickHouse/ClickHouse/pull/48010 | 03f24ee8aef1998db05e5b08a52e80dd8806cc14 | 5ab99ec916f2527cae1ef1a3c2453aa0e817178b | 2023-03-03T13:40:16Z | c++ | 2023-03-26T21:16:56Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,185 | ["docs/en/sql-reference/functions/string-functions.md", "docs/en/sql-reference/functions/tuple-map-functions.md", "src/Functions/keyvaluepair/extractKeyValuePairs.cpp", "tests/queries/0_stateless/02499_extract_key_value_pairs_multiple_input.reference", "tests/queries/0_stateless/02499_extract_key_value_pairs_multiple_i... | Implement `string_to_map` function | Check https://docs.databricks.com/sql/language-manual/functions/str_to_map.html | https://github.com/ClickHouse/ClickHouse/issues/47185 | https://github.com/ClickHouse/ClickHouse/pull/49466 | 43a5eb0fafd68dcebe8da88638a40448bd7da38d | d8d2b0af7654e03e511f81e58a200c2bbb4f0799 | 2023-03-03T08:40:17Z | c++ | 2023-05-08T08:11:06Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,159 | ["src/Core/Settings.h", "src/Storages/StorageFile.cpp", "tests/queries/0_stateless/02497_storage_file_reader_selection.reference", "tests/queries/0_stateless/02497_storage_file_reader_selection.sh"] | SIGBUS in `segmentatorThreadFunction`/`fileSegmentationEngine*` | https://s3.amazonaws.com/clickhouse-test-reports/46681/ad4a44df52b6b04ac5977d12aa35b099a792133c/upgrade_check__asan_.html
```
2023-03-02 07:45:26 Thread 1305 "Segmentator" received signal SIGBUS, Bus error.
2023-03-02 07:45:26 [Switching to Thread 0x7f933171b700 (LWP 139986)]
2023-03-02 07:45:26 detail::find_fir... | https://github.com/ClickHouse/ClickHouse/issues/47159 | https://github.com/ClickHouse/ClickHouse/pull/49717 | 8997c6ef953cf96e6ed9e966d1ef034c19e1ec3d | ea979b40a962c1f7f30c8eeba8db6c0a55325906 | 2023-03-02T19:16:59Z | c++ | 2023-05-11T20:53:01Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 47,030 | ["docs/en/operations/system-tables/index.md"] | No documentation for `system.build_options` | https://clickhouse.com/docs/en/operations/system-tables/ does not have information about build options table. | https://github.com/ClickHouse/ClickHouse/issues/47030 | https://github.com/ClickHouse/ClickHouse/pull/47430 | 2575db15221dbe3ebbf3c109ea67c1255dfb7b1b | c2a5318df4a91678850cf8f493e75728264cf139 | 2023-02-28T16:27:41Z | c++ | 2023-07-04T23:51:55Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,975 | ["src/Interpreters/executeQuery.cpp", "tests/integration/test_log_levels_update/test.py", "tests/queries/0_stateless/00965_logs_level_bugfix.reference"] | Change log level for a particular message | ```
2023.02.24 09:19:12.816280 [ 27971 ] {08b03316-667a-481e-9169-5d457f636371} <Information> executeQuery: Read 4546 rows, 5.51 MiB in 0.05874 sec., 77391.89649302009 rows/sec., 93.77 MiB/sec.
```
Information -> Debug | https://github.com/ClickHouse/ClickHouse/issues/46975 | https://github.com/ClickHouse/ClickHouse/pull/46997 | 4f048ce535e80c9999a7e05f6e08d5fbe4b3c50c | cc5b97b62404dc297ba33b807b0bc321fa1592b4 | 2023-02-27T16:45:10Z | c++ | 2023-03-08T09:36:21Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,944 | ["docs/en/sql-reference/table-functions/index.md"] | The tabular on table function page is incomple | https://clickhouse.com/docs/en/sql-reference/table-functions/
Need complete or maybe we can just remove it? | https://github.com/ClickHouse/ClickHouse/issues/46944 | https://github.com/ClickHouse/ClickHouse/pull/47026 | fc619d06ba76fa20ea741c599aea597bcdbbaa2a | 476942ae833d52b24a471b03223779716ca48755 | 2023-02-27T10:52:50Z | c++ | 2023-02-28T15:27:09Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,874 | ["tests/integration/test_concurrent_queries_restriction_by_query_kind/test.py"] | Flaky test test_concurrent_queries_restriction_by_query_kind | https://s3.amazonaws.com/clickhouse-test-reports/46517/fb35a6852ea55a693250449dcc5a07fb30ac4c2e/integration_tests__asan__[3/6].html
https://play.clickhouse.com/play?user=play#d2l0aCAKJyV0ZXN0X2NvbmN1cnJlbnRfcXVlcmllc19yZXN0cmljdGlvbl9ieV9xdWVyeV9raW5kJScgYXMgbmFtZV9wYXR0ZXJuLAonJSUnIGFzIGNvbnRleHRfcGF0dGVybiwKJzIwMj... | https://github.com/ClickHouse/ClickHouse/issues/46874 | https://github.com/ClickHouse/ClickHouse/pull/46887 | 3a3a2f352c63b54de1b5fe082d57c1b6236e5500 | 936f57e7b2bca63539105e3d15db9e91fb9eab89 | 2023-02-25T18:45:40Z | c++ | 2023-02-26T01:30:51Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,855 | ["src/Functions/FunctionsHashing.h", "src/Functions/IFunction.cpp", "src/Functions/map.cpp", "tests/queries/0_stateless/02673_map_hashing_msan.reference", "tests/queries/0_stateless/02673_map_hashing_msan.sql"] | MSan report in ColumnUnique (LowCardinality) | **How to reproduce**
```
milovidov-desktop :) SET allow_suspicious_low_cardinality_types = 1
SET allow_suspicious_low_cardinality_types = 1
Query id: 74086d0f-0d7c-4ef1-beee-dfa586bd712f
Ok.
0 rows in set. Elapsed: 0.003 sec.
milovidov-desktop :) CREATE TEMPORARY TABLE datetime__fuzz_14 (`d` LowCardin... | https://github.com/ClickHouse/ClickHouse/issues/46855 | https://github.com/ClickHouse/ClickHouse/pull/46856 | 960a0b658264d2ee43360b6417412fcc24e692ce | 9183933330b6d29454b98d24ded2b2f5d05714cd | 2023-02-25T06:03:46Z | c++ | 2023-02-25T16:20:58Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,854 | ["utils/self-extracting-executable/decompressor.cpp"] | If `clickhouse` was run as self-extracting executable under sudo, keep the file uid/gid after extracting. | **Use case**
```
sudo ./clickhouse install
``` | https://github.com/ClickHouse/ClickHouse/issues/46854 | https://github.com/ClickHouse/ClickHouse/pull/47116 | a04b38db907b8e01760a45ab8cf7aa0acab45d5c | 65d671b7c72c7b1da23f831faa877565cf34f92c | 2023-02-25T02:29:09Z | c++ | 2023-03-09T06:10:28Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,852 | ["programs/local/LocalServer.cpp", "programs/server/Server.cpp", "src/IO/ReadWriteBufferFromHTTP.h"] | "Too many open files" in `clickhouse-local` leads to long backoff while reading from `web` table | **Describe the unexpected behaviour**
```
clickhouse-local
CREATE DATABASE test;
USE test;
SET max_threads = 96;
SET send_logs_level = 'trace';
ATTACH TABLE github_events UUID '127f4241-4a9b-4ecd-8a84-846b88069cb5'
(
`file_time` DateTime,
`event_type` Enum8('CommitCommentEvent' = 1, 'CreateEvent... | https://github.com/ClickHouse/ClickHouse/issues/46852 | https://github.com/ClickHouse/ClickHouse/pull/46853 | c4bf503690019227c9067d0e1343ea3038045728 | 1ca6156b07eaaea35dfece8eca7878ec22dfb60d | 2023-02-25T02:00:58Z | c++ | 2023-02-25T19:57:33Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,816 | ["src/IO/parseDateTimeBestEffort.cpp", "tests/queries/0_stateless/01442_date_time_with_params.reference", "tests/queries/0_stateless/01442_date_time_with_params.sql"] | Dec 15, 2021 support for parseDateTimeBestEffort function | **Use case**
```
SELECT parseDateTimeBestEffort('Dec 15, 2021')
Query id: b849327e-3893-4a97-9a6a-da59b61f4a7a
0 rows in set. Elapsed: 0.002 sec.
Received exception from server (version 22.13.1):
Code: 6. DB::Exception: Received from localhost:9000. DB::Exception: Cannot parse string 'Dec 15, 2021' as Dat... | https://github.com/ClickHouse/ClickHouse/issues/46816 | https://github.com/ClickHouse/ClickHouse/pull/47071 | ce8e49a9a0117d3906fc6d32bd23fb3bf288a4b5 | 16eedb004f58a3c8507cf605f8e563df84dcf1e5 | 2023-02-24T10:32:20Z | c++ | 2023-03-02T11:00:48Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,741 | ["src/Interpreters/InterpreterSelectQuery.cpp", "src/Interpreters/InterpreterSelectWithUnionQuery.cpp", "src/Interpreters/JoinedTables.cpp", "src/Interpreters/JoinedTables.h", "src/Interpreters/getTableExpressions.cpp", "src/Interpreters/getTableExpressions.h", "tests/queries/0_stateless/02428_parameterized_view.refere... | Parametrized view - what is the syntax to use in IN clause? Is it possible to use parameter in subquery? | It's not clear from the [documentation](https://clickhouse.com/docs/en/sql-reference/statements/create/view/) or [Altinity article](https://kb.altinity.com/altinity-kb-queries-and-syntax/altinity-kb-parameterized-views/) how to use parametrized views.
Parametrized view works fine with the equality clause:
```
create... | https://github.com/ClickHouse/ClickHouse/issues/46741 | https://github.com/ClickHouse/ClickHouse/pull/47725 | 069cac8d6ea186e3fae8a9172cc9f4d0da9c4edf | 464b166e91fcd0d02007b1c8b8b01a7c3b58e9b2 | 2023-02-22T16:32:19Z | c++ | 2023-03-22T08:05:26Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,733 | ["src/Compression/CompressionCodecT64.cpp", "tests/queries/0_stateless/25338_ipv4_codec_t64.reference", "tests/queries/0_stateless/25338_ipv4_codec_t64.sql"] | IPv4 Native Type Issues | The introduction of native IPv4 in release 23.1 (https://github.com/ClickHouse/ClickHouse/pull/43221) caused some backward compatability issues with:
- T64 Codec
- Bloom Filter for secondary (skip) index
To reproduce (https://fiddle.clickhouse.com/bf7da0b7-ec44-4bd1-978b-487dae5a62fd):
```
CREATE TABLE users... | https://github.com/ClickHouse/ClickHouse/issues/46733 | https://github.com/ClickHouse/ClickHouse/pull/46747 | b8b6d597aec37bbc2ec1d052516f8a4cd16c0bd4 | 71afa8d1879b1c01f3fd9599f7a37f084ddfb08d | 2023-02-22T15:40:27Z | c++ | 2023-02-23T13:34:34Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,726 | ["src/Interpreters/HashJoin.cpp"] | table with Join engine became 10x slower to load in 23.1 compared to 22.12 | Join tables was loading in ~10minutes in version 22.12 now takes 1h30 in 23.1, same dataset.
The table is has engine `Join(ANY, LEFT, single_field_pk)` with setting `join_use_nulls=1`
`
2023.02.22 12:51:42.631560 [ 1997740 ] {} <Information> StorageSetOrJoinBase: Loaded from backup file store/a2b/a2b1850a-e450-40e... | https://github.com/ClickHouse/ClickHouse/issues/46726 | https://github.com/ClickHouse/ClickHouse/pull/47647 | a72f0cae072ea6385259804c7a946688511a30e1 | ff56d49ce244ab5983786e793877c403a7aa346b | 2023-02-22T13:12:03Z | c++ | 2023-03-16T18:39:51Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,704 | ["src/Interpreters/inplaceBlockConversions.cpp", "tests/queries/0_stateless/02680_lc_null_as_default.reference", "tests/queries/0_stateless/02680_lc_null_as_default.sql"] | Logical error: block structure mismatch when inserting into Memory table with DEFAULT | ```
milovidov@milovidov-desktop:~/Downloads$ clickhouse-local
ClickHouse local version 23.2.1.1.
milovidov-desktop :) CREATE TABLE test_null_as_default__fuzz_46 (`a` Nullable(DateTime64(3)), `b` LowCardinality(Float32) DEFAULT a + 1000) ENGINE = Memory;
CREATE TABLE test_null_as_default__fuzz_46
(
`a` Nu... | https://github.com/ClickHouse/ClickHouse/issues/46704 | https://github.com/ClickHouse/ClickHouse/pull/47537 | d3a514d22175c3f756a969d99523b7472011d04a | be0ae6a23827e11d3169871d5cca1f5ebe45195f | 2023-02-22T02:01:03Z | c++ | 2023-03-14T10:45:39Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,694 | ["src/Analyzer/Passes/AggregateFunctionsArithmericOperationsPass.cpp", "src/Interpreters/ArithmeticOperationsInAgrFuncOptimize.cpp", "tests/queries/0_stateless/01271_optimize_arithmetic_operations_in_aggr_func_long.reference", "tests/queries/0_stateless/02498_analyzer_aggregate_functions_arithmetic_operations_pass_fix.... | optimize_arithmetic_operations_in_aggregate_functions cannot be used with max / min ... | ```sql
select max(100-c1), min(100-c1) from values ((0),(100))
settings optimize_arithmetic_operations_in_aggregate_functions=0;
┌─max(minus(100, c1))─┬─min(minus(100, c1))─┐
│ 100 │ 0 │ OK
└─────────────────────┴─────────────────────┘
select max(100-c1), min(100-c1) from valu... | https://github.com/ClickHouse/ClickHouse/issues/46694 | https://github.com/ClickHouse/ClickHouse/pull/46705 | 4c7ac6cd899417478ddfebc90eebd0ce42dfcbc0 | e800557743ba619f14eded421a7f295ad3b68a6f | 2023-02-21T22:38:12Z | c++ | 2023-03-01T05:49:34Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,614 | ["tests/queries/0_stateless/01710_projection_optimize_materialize.sql"] | Flaky test 01710_projection_optimize_materialize | https://s3.amazonaws.com/clickhouse-test-reports/46583/e5e102763710b30f739055b9120b452e1679c6d7/stateless_tests__debug__s3_storage__[3/6].html
https://play.clickhouse.com/play?user=play#c2VsZWN0IAp0b1N0YXJ0T2ZIb3VyKGNoZWNrX3N0YXJ0X3RpbWUpIGFzIGQsCmNvdW50KCksICBncm91cFVuaXFBcnJheShwdWxsX3JlcXVlc3RfbnVtYmVyKSwgIGFue... | https://github.com/ClickHouse/ClickHouse/issues/46614 | https://github.com/ClickHouse/ClickHouse/pull/48276 | 599d67c4eea6e5d11f3ada0859733e5240d747ca | 2933c6b9be6a6313f8224ec7c90e4508219199b7 | 2023-02-20T17:24:36Z | c++ | 2023-04-03T03:24:50Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,557 | ["src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp", "src/Storages/MergeTree/MergeTreeBaseSelectProcessor.h", "src/Storages/MergeTree/MergeTreeSource.cpp", "src/Storages/MergeTree/MergeTreeSource.h", "tests/queries/0_stateless/02666_progress_when_no_rows_from_prewhere.reference", "tests/queries/0_stateless/02666... | Zero CPU usage and no progress displayed when no blocks are returned if optimization of PREWHERE is performed. | ```
SELECT user_screen_name, text FROM twitter WHERE text LIKE '%fg;jkglmsdn874fdskjlsfdghn%'
```
| https://github.com/ClickHouse/ClickHouse/issues/46557 | https://github.com/ClickHouse/ClickHouse/pull/46611 | 49330b373c3315008016d444921b5c4bb394b305 | b61bb56a5abe0ab02fe15c893471a686182756e6 | 2023-02-19T00:09:20Z | c++ | 2023-02-21T20:27:56Z |
closed | ClickHouse/ClickHouse | https://github.com/ClickHouse/ClickHouse | 46,465 | ["src/Storages/MergeTree/DataPartsExchange.cpp", "tests/integration/test_zero_copy_fetch/__init__.py", "tests/integration/test_zero_copy_fetch/configs/storage_conf.xml", "tests/integration/test_zero_copy_fetch/test.py"] | New replica download parts to default disk instead of external disk | **Describe what's wrong**
Newly added replica downloads all data to default disk regardless of its location on other replicas.
**Does it reproduce on recent release?**
Experienced in our production on version 22.8.11.15
**How to reproduce**
Consider two replicas with following config for externa storage:... | https://github.com/ClickHouse/ClickHouse/issues/46465 | https://github.com/ClickHouse/ClickHouse/pull/47010 | b7370865a775cdf24f877a3855e2ed5e9644a2b2 | ebba37b18f28f162db6bc5e4bf92680dc5d54ad9 | 2023-02-16T07:59:04Z | c++ | 2023-03-01T14:55:00Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.