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
35,707
["programs/keeper/keeper_config.xml", "src/Coordination/KeeperStateManager.cpp", "tests/integration/test_keeper_incorrect_config/test.py"]
Cannot mix loopback and non-local hostnames in raft_configuration (ClickHouse-Keeper)
Hi! I heard on the last release meetup that ClickHouse-Keeper was ready for production and I wanted to try it out. However, I am running into some issues that I cannot really explain. My staging setup is 3 VMs running Ubuntu 20.04 in Vagrant (Virtualbox). I am deploying ClickHouse-Keeper into the VMs as docker co...
https://github.com/ClickHouse/ClickHouse/issues/35707
https://github.com/ClickHouse/ClickHouse/pull/36492
9fa1edd6ef331d0ae1473036c9a73fb7c3263520
f0f92341e0da459ad9ec66e74cc7aaf18ce9f4a5
2022-03-29T08:47:56Z
c++
2022-04-23T11:54:57Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,641
["docs/en/sql-reference/statements/create/table.md", "docs/ru/sql-reference/statements/create/table.md", "src/Interpreters/InterpreterCreateQuery.cpp", "src/Parsers/ASTColumnDeclaration.cpp", "src/Parsers/ParserCreateQuery.h", "tests/queries/0_stateless/02205_ephemeral_1.reference", "tests/queries/0_stateless/02205_eph...
Allow EPHEMERAL column implicit default
ref #9436 Currently EPHEMERAL column requires an explicit default value provided on CREATE TABLE - we can allow implicit default there
https://github.com/ClickHouse/ClickHouse/issues/35641
https://github.com/ClickHouse/ClickHouse/pull/35706
b56beeca9d78569a48092ab43facc892cf8dbbce
38993f215f9186c1ac3505b1e09697cd9a468b5d
2022-03-27T02:10:40Z
c++
2022-04-01T14:49:29Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,632
["docs/en/operations/server-configuration-parameters/settings.md", "docs/en/sql-reference/dictionaries/external-dictionaries/external-dicts-dict-sources.md", "docs/en/sql-reference/functions/index.md", "docs/ru/operations/server-configuration-parameters/settings.md", "docs/ru/sql-reference/functions/index.md"]
user-defined-functions doesn't work
The example in https://clickhouse.com/docs/en/sql-reference/functions/#executable-user-defined-functions still doesn't work. I got this error: Received exception from server (version 22.3.2): Code: 46. DB::Exception: Received from localhost:9000. DB::Exception: Unknown function test_function_python: While processi...
https://github.com/ClickHouse/ClickHouse/issues/35632
https://github.com/ClickHouse/ClickHouse/pull/36757
d8fa806fca1e2130ad43977db9b5bf16e8f94a2d
c8178f88df9152252e699f57e7a00b471000dc4f
2022-03-26T03:10:29Z
c++
2022-04-28T20:10:58Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,625
["tests/queries/0_stateless/02887_tuple_element_distributed.reference", "tests/queries/0_stateless/02887_tuple_element_distributed.sql"]
Incorrect processing of queries with aliasing on tuples with distributed tables
**Describe the issue** Running the following query on a distributed table engine leads to a bad query on the remote table. This works on Clickhouse version 20.7. `SELECT equals(tupleElement(tuple('a', 10) AS x, 1), 'a') FROM transactions_dist LIMIT 1` **How to reproduce** * Which ClickHouse server versions are i...
https://github.com/ClickHouse/ClickHouse/issues/35625
https://github.com/ClickHouse/ClickHouse/pull/54960
aa37814b3a5518c730eff221b86645e153363306
ca7796ba85d0757071daad8ac1b3109fbcbd6309
2022-03-25T18:04:21Z
c++
2023-09-24T21:17:03Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,567
["src/Functions/caseWithExpression.cpp", "tests/queries/0_stateless/02244_casewithexpression_return_type.reference", "tests/queries/0_stateless/02244_casewithexpression_return_type.sql"]
Got wrong result for nested case when expression
**If we use nested case when expression, it may store data with wrong data type.** > How to reproduce - release version: 21.13.1.1 - execute following sql with clickhouse client: ```sql SELECT "number", CASE "number" WHEN 3 THEN 55 WHEN 6 THEN 77 WHEN 9 THEN 95 E...
https://github.com/ClickHouse/ClickHouse/issues/35567
https://github.com/ClickHouse/ClickHouse/pull/35576
cfb12aff6f6976a33f665c8c74684c8a2971482e
e27a68ef8ce1f1c5f1e02d3c337fe16c011de6c8
2022-03-24T08:53:22Z
c++
2022-03-25T15:01:31Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,548
["src/Interpreters/HashJoin.cpp", "src/Interpreters/join_common.cpp", "tests/queries/0_stateless/02244_lowcardinality_hash_join.reference", "tests/queries/0_stateless/02244_lowcardinality_hash_join.sql"]
Unable to use LowCardinality column in JOIN ON condition containing OR operator
**Describe what's wrong** Including a LowCardinality column in an `ON` clause containing an `OR` operator results in this exception: ``` DB::Exception: Expected ColumnLowCardinality, got String: While executing JoiningTransform. (ILLEGAL_COLUMN) ``` **Does it reproduce on recent release?** 22.1.2 **How...
https://github.com/ClickHouse/ClickHouse/issues/35548
https://github.com/ClickHouse/ClickHouse/pull/35616
0f9cc9f924957ac619eb49f5fd71466e600d9664
c4d0cc7c848cd9d9a1475332440b3dba48c1cd60
2022-03-23T19:19:38Z
c++
2022-03-28T06:28:28Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,528
["src/Functions/FunctionsConversion.h", "tests/queries/0_stateless/02243_in_ip_address.reference", "tests/queries/0_stateless/02243_in_ip_address.sql"]
Invalid IPv6 value (CANNOT_PARSE_DOMAIN_VALUE_FROM_STRING) with subquery
Inclusion (`IN`/`NOT IN`) test does not work when the subquery returns IPv6 values. **Does it reproduce on recent release?** Yes, on version `22.3.2`. **How to reproduce** On a stock Docker container (`clickhouse/clickhouse-server:22`): ```sql CREATE TABLE IF NOT EXISTS test_ipv6 (a IPv6) ENGINE = MergeTr...
https://github.com/ClickHouse/ClickHouse/issues/35528
https://github.com/ClickHouse/ClickHouse/pull/35534
1df1721648367cd2194cb89389afcd93485bed40
4b88c6f934832df517607d30f82bd40d4494095c
2022-03-23T12:36:03Z
c++
2022-03-24T00:26:25Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,521
["src/Dictionaries/FlatDictionary.cpp", "src/Dictionaries/HashedArrayDictionary.cpp", "src/Dictionaries/HashedDictionary.cpp", "src/Dictionaries/HierarchyDictionariesUtils.cpp", "src/Dictionaries/HierarchyDictionariesUtils.h", "src/Dictionaries/tests/gtest_hierarchy_dictionaries_utils.cpp", "src/Functions/FunctionsExte...
HIERARCHICAL dictionary not support nullable parent_id with function dictGetDescendants
``` create table default.test_parent ( id UInt64, parent_id Nullable(UInt64) ) engine = MergeTree create dictionary default.d4test_parent ( id UInt64, parent_id Nullable(UInt64) HIERARCHICAL ) PRIMARY KEY id SOURCE (CLICKHOUSE(DB 'default' TABLE 'test_parent')) LIFE...
https://github.com/ClickHouse/ClickHouse/issues/35521
https://github.com/ClickHouse/ClickHouse/pull/37805
9fdc783eacdfae7fbf224fa2bda4e982aaeb5c13
4e160105b9cab498bf7381c89e0de72b55efa56c
2022-03-23T10:07:59Z
c++
2022-06-08T10:36:09Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,505
["src/Interpreters/InterpreterSelectQuery.cpp", "tests/queries/0_stateless/02242_optimize_to_subcolumns_no_storage.reference", "tests/queries/0_stateless/02242_optimize_to_subcolumns_no_storage.sql"]
The fuzzer error
(you don't have to strictly follow this form) **Describe the bug** A link to the report: https://s3.amazonaws.com/clickhouse-test-reports/35466/d81c58b5d9be45ac69c3859b5cbe97080711f6d9/fuzzer_astfuzzerubsan,actions//report.html The commit: https://github.com/ClickHouse/ClickHouse/commit/d81c58b5d9be45ac69c3859b5cb...
https://github.com/ClickHouse/ClickHouse/issues/35505
https://github.com/ClickHouse/ClickHouse/pull/35512
89e06308989337321046e33597be39b94c6c456f
1f940f9e3b503693dd020aa652692029f46dc6d5
2022-03-22T15:16:22Z
c++
2022-03-23T10:31:32Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,483
["src/Common/ProfileEvents.cpp", "src/IO/ReadBufferFromS3.cpp", "src/IO/WriteBufferFromS3.cpp", "tests/integration/test_profile_events_s3/test.py"]
it looks like S3 profile events numbers are inflated
ProfileEvents S3ReadMicroseconds RealTimeMicroseconds looks inconsistent. Elapsed: 0.193 sec. / query_duration_ms = 192 VS S3ReadMicroseconds = 350736 / RealTimeMicroseconds = 383210. ```sql INSERT INTO FUNCTION s3(s3_mydata, url = 'https://s3.us-east-1.amazonaws.com/test..../test_file22222.tsv', struc...
https://github.com/ClickHouse/ClickHouse/issues/35483
https://github.com/ClickHouse/ClickHouse/pull/36572
02291d14645b3b893eadc45b3a81cb777595f239
7e3a805ae3fca0b1a3a2143206be566f8dbffa29
2022-03-21T17:49:36Z
c++
2022-05-05T09:44:02Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,432
["src/Functions/h3kRing.cpp", "tests/queries/0_stateless/01042_h3_k_ring.reference", "tests/queries/0_stateless/01042_h3_k_ring.sql"]
Illegal type UInt8 of argument 2 of function h3kRing.
**Describe the unexpected behaviour** When I use function h3kRing,illegal type error occured. On issue [34708](https://github.com/ClickHouse/ClickHouse/issues/34708),h3 functions have illegal parameter type.Old problem resolved in ClickHouse 22.3.2.1.But error occured when I execute query: ```sql select AAA,BBB,C...
https://github.com/ClickHouse/ClickHouse/issues/35432
https://github.com/ClickHouse/ClickHouse/pull/37189
fe2aa1861f38d754c9f4671ced85a423bdd1acdd
3f18d7da33aa49e933667ba45ca8076df3cd7893
2022-03-19T18:27:28Z
c++
2022-05-13T20:53:20Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,407
["src/Storages/MergeTree/IMergeTreeDataPart.cpp", "src/Storages/MergeTree/IMergeTreeDataPart.h", "src/Storages/MergeTree/MergeTreeBlockReadUtils.cpp", "src/Storages/MergeTree/MergeTreeBlockReadUtils.h", "src/Storages/MergeTree/MergeTreeSequentialSource.cpp", "src/Storages/StorageSnapshot.cpp", "src/Storages/StorageSnap...
MergeTreeThread - Can't adjust last granule with Object('JSON') datatype
**Describe what's wrong** When inserting data to a table with `Object('JSON')` datatype, querying it might raise an error from MergeTreeThread. After calling `OPTIMIZE TABLE test_json FINAL` the issue goes away. **Does it reproduce on recent release?** It reproduces on `22.3.2 revision 54455.` **How ...
https://github.com/ClickHouse/ClickHouse/issues/35407
https://github.com/ClickHouse/ClickHouse/pull/35687
e3d772abd09eff38827f4d05df257240e945dd33
1cba31c3059cd1814795eb3502df5fab90780c06
2022-03-18T13:50:43Z
c++
2022-03-29T22:21:32Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,359
["src/AggregateFunctions/AggregateFunctionMap.h", "tests/queries/0_stateless/02351_Map_combinator_dist.reference", "tests/queries/0_stateless/02351_Map_combinator_dist.sql"]
sumMap values return strangely huge number when query on distributed table with long data range
Hi , I'm trying to use sumMap function to do a 'word count' compute but find something strange. The data field formart looks like below , `switch_pcpBuckets1Min Array(Int32)` represent which minute user is active druing this hour. ``` SELECT interval_startTimeMs, switch_pcpBuckets1Min FROM test_all L...
https://github.com/ClickHouse/ClickHouse/issues/35359
https://github.com/ClickHouse/ClickHouse/pull/38748
2577b59f4c94e87ed57dce9706d53f15f36b2f29
1ee752b9a599dffea4c5d3d20aa7e1f90c9ae381
2022-03-17T11:46:26Z
c++
2022-07-03T16:32:17Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,283
["contrib/arrow-cmake/CMakeLists.txt"]
ArrowStream inputData compression over gRPC broken in v22.2.2.1+
Using compression in ArrowStream format using the InputData field of the gRPC interface has stopped working in v22.2.2.1 and v22.2.3.5 **Does it reproduce on recent release?** yes **Enable crash reporting** n/a **How to reproduce** * using docker container artifacts `docker.io/clickhouse/clickhouse:22.2.2.1...
https://github.com/ClickHouse/ClickHouse/issues/35283
https://github.com/ClickHouse/ClickHouse/pull/35486
d0bb66604c0173d8352a8d951a8179510b891008
fe5afa6b3759affe6ce4a317e36b5c84527dba09
2022-03-14T21:55:39Z
c++
2022-05-09T11:41:08Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,238
["docs/en/sql-reference/functions/array-functions.md", "src/Functions/array/arrayFirstLast.cpp", "tests/queries/0_stateless/02241_array_first_last_or_null.reference", "tests/queries/0_stateless/02241_array_first_last_or_null.sql"]
ArrayFirstOrDefault function
For example, we have table like this ![image](https://user-images.githubusercontent.com/4305175/158013399-debd6796-1cee-4026-b78d-58fb94be3cb9.png) and i run query like this ``` select arrayFirst((i, v)->(v = 'a'), ids, values) as a_id, arrayFirst((i, v)->(v = 'c'), ids, values) as c_id ``` ![image](htt...
https://github.com/ClickHouse/ClickHouse/issues/35238
https://github.com/ClickHouse/ClickHouse/pull/35414
021f6b8c21872142a51956ee6e73f94be8f68eee
9a4686adac98ab97fab3e2cda052cbff16e108c3
2022-03-12T10:01:06Z
c++
2022-03-18T23:03:11Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,192
["src/Storages/MergeTree/checkDataPart.cpp", "tests/queries/0_stateless/02235_check_table_sparse_serialization.reference", "tests/queries/0_stateless/02235_check_table_sparse_serialization.sql"]
There is no column a in serialization infos
cc @CurtizJ STR: ```sql create table test (a UInt8) ENGINE = MergeTree Order By (a) SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9 insert into test values ('1') SET check_query_single_value_result = 0; check table test ``` the check table command output is ``` There is no column a in serializ...
https://github.com/ClickHouse/ClickHouse/issues/35192
https://github.com/ClickHouse/ClickHouse/pull/35274
4e2ec66b92b5338d00d1ef92c05d4c1dc103a5a6
fbb1ebd9b87306f91adbc2163c8987107e51a8f9
2022-03-10T17:43:12Z
c++
2022-03-14T20:56:04Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,188
["programs/server/play.html"]
Play UI Could Be More Clear About Showing it is in the Middle of a Long Running Query
**Describe the issue** Context when I noticed it: I was following the bootcamp and got to the insert data step https://clickhouse.com/learn/lessons/bootcamp/lab/#3-insert-data Here's a screenshot of what it looked like while my long query ran <img width="1535" alt="Screen Shot 2022-03-10 at 11 48 32 AM" src="https...
https://github.com/ClickHouse/ClickHouse/issues/35188
https://github.com/ClickHouse/ClickHouse/pull/35860
97f29ac0fea4c7e414f59123f6ebd7c766b70474
a7c6d78ee1bc56a72a84f32dfcec0ee9a469533c
2022-03-10T17:07:01Z
c++
2022-04-01T23:54:44Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,156
["src/Functions/CastOverloadResolver.h", "tests/queries/0_stateless/02316_cast_to_ip_address_default_column.reference", "tests/queries/0_stateless/02316_cast_to_ip_address_default_column.sql"]
CAST to IPv6 on empty strings changed between 21.x and 22.x
**Describe the issue** On empty strings, the behaviour of the function `CAST('', 'IPv6')` changed between the versions 21.x and 22.x **How to reproduce** On 21.8.14.5: ``` SELECT CAST('', 'IPv6'); Returns: :: ``` On 22.2.2.1: ``` SELECT CAST('', 'IPv6'); Triggers error: Code: 441. DB::Exception:...
https://github.com/ClickHouse/ClickHouse/issues/35156
https://github.com/ClickHouse/ClickHouse/pull/37761
929ab8202483c62b1d831464d9fe74c79f772a19
2ac5f5bc60991bf8608d3f35754562dfdced62bf
2022-03-09T14:55:44Z
c++
2022-06-08T21:22:16Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,153
["src/Storages/Kafka/StorageKafka.cpp", "tests/integration/test_storage_kafka/test.py"]
kafka_num_consumers setting doesn't work without kafka_thread_per_consumer
I have Kafka engine table, MV and destination MT table. Kafka table create query: ``` CREATE TABLE abc.Kafka_TestSource (...) ENGINE = Kafka SETTINGS kafka_broker_list = '...' , format_avro_schema_registry_url = '...' , kafka_topic_list = '...' , kafka_group_name = 'Test_KafkaToCH' , kafka_format = 'AvroConf...
https://github.com/ClickHouse/ClickHouse/issues/35153
https://github.com/ClickHouse/ClickHouse/pull/35973
2f11c5323e30f910fda56992cc5cd7a84a4165e1
ac74757f923402d67afa6202a7d8b46b9d2eedce
2022-03-09T12:32:19Z
c++
2022-04-11T13:30:52Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,131
["src/Interpreters/OptimizeShardingKeyRewriteInVisitor.cpp", "tests/queries/0_stateless/01756_optimize_skip_unused_shards_rewrite_in.reference", "tests/queries/0_stateless/01756_optimize_skip_unused_shards_rewrite_in.sql", "tests/queries/0_stateless/01930_optimize_skip_unused_shards_rewrite_in.reference"]
optimize_skip_unused_shards + Int32 + negative ids from different shards
```sql CREATE TABLE local_test_int32 ( id String, id_hash Int32) ENGINE = MergeTree ORDER BY (id_hash, id); create table test_int32 as local_test_int32 ENGINE = Distributed('test_cluster_two_shards' , currentDatabase(), local_test_int32, id_hash); SELECT count() FROM test_int32 PREWHERE id_hash IN ( -2146...
https://github.com/ClickHouse/ClickHouse/issues/35131
https://github.com/ClickHouse/ClickHouse/pull/35134
15e4978a3f622164094d31ca55e314a81c6033f4
58e53b06a6875efc748fb0b25eed8f2a5b2a3841
2022-03-08T18:40:29Z
c++
2022-03-10T20:12:05Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,128
["src/Common/mysqlxx/PoolWithFailover.cpp"]
MySQL errors are unclear if password / user are incorrect.
```sql apt-get install mysql-server create database db; create table db.test(a Int); CREATE USER 'myuser'@'%' IDENTIFIED BY 'mypass'; GRANT ALL ON *.* TO 'myuser'@'%'; FLUSH PRIVILEGES; ``` mysql client shows different error messages in case the wrong password/user VS host:port ``` # mysql -h 127.0.0.1 ...
https://github.com/ClickHouse/ClickHouse/issues/35128
https://github.com/ClickHouse/ClickHouse/pull/35234
dc205d44da22f1cd5c1cd306b0ac9ba62d17d45d
5c66030b465342061665f3726e39c4be2645f8b0
2022-03-08T15:48:54Z
c++
2022-03-18T20:41:35Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,121
["docs/_includes/install/deb.sh"]
Unable to install under Ubuntu
`apt-get update` with new repo `packages.clickhouse.com` causes error ``` ubuntu@ch:~$ sudo apt-get update Hit:1 http://nova.clouds.archive.ubuntu.com/ubuntu hirsute InRelease Hit:2 http://security.ubuntu.com/ubuntu hirsute-security InRelease Hit:3 http://nova.clouds.archive.ubuntu.com/ubuntu hirsute-updates InR...
https://github.com/ClickHouse/ClickHouse/issues/35121
https://github.com/ClickHouse/ClickHouse/pull/35125
a871036361ea8e57660ecd88f1da5dea29b5ebf4
b1b10d72089eeec62d99ecd75120960edf2572d9
2022-03-08T13:14:22Z
c++
2022-03-08T16:06:27Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,117
["src/Functions/ReplaceRegexpImpl.h", "tests/queries/0_stateless/02151_replace_regexp_all_empty_match_alternative.reference", "tests/queries/0_stateless/02151_replace_regexp_all_empty_match_alternative.sql"]
Bug in `replaceRegexpAll`
```sql SELECT replaceRegexpAll('a', 'z*', '') ``` ``` ┌─replaceRegexpAll('a', 'z*', '')─┐ │ │ └─────────────────────────────────┘ ``` ```sql SELECT replaceRegexpAll('aaaa', 'z*', '') ``` ``` ┌─replaceRegexpAll('aaaa', 'z*', '')─┐ │ aaa │ ...
https://github.com/ClickHouse/ClickHouse/issues/35117
https://github.com/ClickHouse/ClickHouse/pull/35182
585a9edd32e2f9daa19319ad3c28d1af92005a19
38fa55fff04bc270cba86e2a2ae67a0d94f12162
2022-03-08T09:36:46Z
c++
2022-03-11T22:36:18Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
35,076
["src/Functions/filesystem.cpp", "tests/fuzz/dictionaries/functions.dict", "tests/queries/0_stateless/00824_filesystem.sql", "tests/queries/0_stateless/02345_filesystem_local.sh", "tests/queries/0_stateless/02415_all_new_functions_must_be_documented.reference", "tests/queries/0_stateless/02457_filesystem_function.refer...
`filesystemAvailable` and similar functions should take optional argument with disk name.
When disk name is not specified, it should use the default disk. They should return max UInt64 for "infinite" virtual filesystems. **Use case** ClickHouse cloud.
https://github.com/ClickHouse/ClickHouse/issues/35076
https://github.com/ClickHouse/ClickHouse/pull/42064
581e57be9fa4ee68e507fe0eb4f33bf787423119
5532e3db95550d383bb965cbe8cb8cb51c54165d
2022-03-05T22:27:56Z
c++
2022-11-21T18:23:11Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,970
["src/Functions/FunctionsExternalDictionaries.h", "tests/queries/0_stateless/02231_hierarchical_dictionaries_constant.reference", "tests/queries/0_stateless/02231_hierarchical_dictionaries_constant.sql"]
HIERARCHICAL dictionary does not support constant keys.
22.2.2 ```sql create table source (a UInt64, b UInt64, c String) Engine= Memory; insert into source select number, number, 'attr-'||toString(number) from numbers(10); CREATE DICTIONARY dict1 ( a UInt64 , b UInt64 HIERARCHICAL, c String ) PRIMARY KEY a SOURCE(clickhouse(DB 'default' TABLE 'source')) LIFET...
https://github.com/ClickHouse/ClickHouse/issues/34970
https://github.com/ClickHouse/ClickHouse/pull/35027
7a9b3ae50db22b0cc21778635636960c1be62a9b
672222740727712d89dd40ac2baa07f5c2d6d0fc
2022-03-01T16:53:24Z
c++
2022-03-04T09:45:37Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,953
["src/Compression/CompressedReadBufferFromFile.cpp", "tests/queries/0_stateless/02267_empty_arrays_read_reverse.reference", "tests/queries/0_stateless/02267_empty_arrays_read_reverse.sql"]
Attempt to read after eof
DB::Exception: Attempt to read after eof: (while reading column http_user): (while reading from part /xxxxx/01/store/b4f/b4f7cad2-943c-49b4-b8e1-44399bcc45a6/457190_82_107_4/ from mark 0 with max_rows_to_read = 8192): While executing MergeTreeReverse. (ATTEMPT_TO_READ_AFTER_EOF), Stack trace (when copying this message...
https://github.com/ClickHouse/ClickHouse/issues/34953
https://github.com/ClickHouse/ClickHouse/pull/36215
791454678b27ca2c8a1180065c266840c823b257
c76b9cc9f5c1c7454ae5992f7aedd4ed26f2dd13
2022-03-01T02:02:17Z
c++
2022-04-14T11:51:48Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,948
["README.md", "docs/en/development/browse-code.md", "docs/en/whats-new/changelog/2020.md", "docs/ja/development/browse-code.md", "docs/ru/development/browse-code.md", "docs/zh/changelog/index.md", "docs/zh/development/browse-code.md", "docs/zh/whats-new/changelog/2020.md", "website/sitemap-static.xml"]
Woboq online code browser stopped working
[**https://clickhouse.com/codebrowser/html_report/ClickHouse/src/index.html** ](https://clickhouse.com/codebrowser/html_report/ClickHouse/src/index.html) returns the following message: ```xml <Error> <Code>NoSuchKey</Code> <Message>The specified key does not exist.</Message> <Resource>/codebrowser/html...
https://github.com/ClickHouse/ClickHouse/issues/34948
https://github.com/ClickHouse/ClickHouse/pull/34971
8c533b23820be54901fa06401e6699074bb893a2
9e44390974942c243963c87b5f5378114c58affd
2022-02-28T14:31:46Z
c++
2022-03-02T12:42:32Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,929
["src/Interpreters/SystemLog.cpp", "src/Storages/StorageFile.h"]
clickhouse creates lots of system log tables if config storage settings for system log table
**Describe what's wrong** clickhouse creates lots of system log tables if config storage settings for system log table **Does it reproduce on recent release?** 22.1 **How to reproduce** * Which ClickHouse server version to use 22.1 * Non-default settings, if any config query_log table as below: ``` quer...
https://github.com/ClickHouse/ClickHouse/issues/34929
https://github.com/ClickHouse/ClickHouse/pull/34949
af4362e40a995af76be449dc87728b0a1c174028
4b61e4795c2e18b9cd479c906542fd81a8edd97e
2022-02-27T04:24:27Z
c++
2022-03-01T10:15:19Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,864
["src/Interpreters/AsynchronousInsertQueue.cpp", "src/Interpreters/InterpreterInsertQuery.cpp", "tests/queries/0_stateless/02226_async_insert_table_function.reference", "tests/queries/0_stateless/02226_async_insert_table_function.sql"]
async_insert to table function gives exception 'Both table name and UUID are empty'
``` create table test (x UInt64) engine=Null; insert into function remote('127.0.0.1',default,test) values (1); -- ok set async_insert=1; insert into function remote('127.0.0.1',default,test) values (1); -- fail ``` exception ``` Received exception from server (version 22.3.1): Code: 60. DB::Exception: R...
https://github.com/ClickHouse/ClickHouse/issues/34864
https://github.com/ClickHouse/ClickHouse/pull/34866
ef9bf92a286a0b939fc6e28a70549b49e274afa0
82d24f06eb256597a5995938479bd982b8e47a2a
2022-02-24T08:51:39Z
c++
2022-03-01T16:45:22Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,812
["src/Formats/CMakeLists.txt", "src/Formats/configure_config.cmake", "src/Storages/System/CMakeLists.txt", "src/Storages/System/StorageSystemBuildOptions.generated.cpp.in"]
build_options stopped to show that some options are enabled
```sql ClickHouse client version 22.2.2.1. Connecting to localhost:9000 as user default. Connected to ClickHouse server version 22.2.2 revision 54455. SELECT * FROM system.build_options WHERE name LIKE 'USE%'; ┌─name────────────────────┬─value─┐ │ USE_EMBEDDED_COMPILER │ 1 │ │ USE_GLIBC_COMPATIBILITY │ O...
https://github.com/ClickHouse/ClickHouse/issues/34812
https://github.com/ClickHouse/ClickHouse/pull/34823
115c0c2aba7a8bb9e24d4f1cf369d229a42bd3a9
c037adb060aff46935373694965fc17026ed6f37
2022-02-22T14:48:15Z
c++
2022-03-04T18:17:24Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,810
["src/Functions/in.cpp", "tests/queries/0_stateless/02226_in_untuple_issue_34810.reference", "tests/queries/0_stateless/02226_in_untuple_issue_34810.sql"]
Incorrect error message: Number of columns in section IN doesn't match.
If there is an `IN` condition with a tuple and types don't match, CH throws `DB::Exception: Number of columns in section IN doesn't match. 2 at left, 1 at right.` **Affected versions**: From 19.17.6.36 to 22.2.2.1 **How to reproduce** ```sql CREATE TABLE calendar ( `year` Int64, `month` Int64 ) E...
https://github.com/ClickHouse/ClickHouse/issues/34810
https://github.com/ClickHouse/ClickHouse/pull/34836
1f92fb5b40c27271c73f023f873e29744d473a6a
9ba0cb547a5dbe06b2133456844cb3cf9844cc23
2022-02-22T12:19:39Z
c++
2022-02-25T08:58:28Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,799
["src/Core/Settings.h", "src/Core/SettingsEnums.cpp", "src/DataTypes/Serializations/SerializationDateTime.cpp", "src/DataTypes/Serializations/SerializationDateTime64.cpp", "src/Formats/FormatSettings.h"]
date_time_input_format = 'best_effort_us'
**Use case** Like `date_time_input_format = 'best_effort'` but with disambiguation to American mm/dd/yyyy style.
https://github.com/ClickHouse/ClickHouse/issues/34799
https://github.com/ClickHouse/ClickHouse/pull/34982
7d90afb3b0960fbf7fab9c81cd341795ce45f650
f1b1baf56e681ae4b93de0424ea349bf2f7faae3
2022-02-21T22:06:35Z
c++
2022-03-03T08:22:57Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,798
["src/Storages/MergeTree/MergeTreeData.cpp", "tests/queries/0_stateless/02455_improve_feedback_when_replacing_partition_with_different_primary_key.reference", "tests/queries/0_stateless/02455_improve_feedback_when_replacing_partition_with_different_primary_key.sql"]
Improve feedback when replacing partition with diffent primary key
**Describe the issue** Improve feedback when trying to replace a partition with a different index **Which ClickHouse server version to use** 21.9.5 **How to reproduce** ``` DROP DATABASE IF EXISTS test; CREATE DATABASE test; CREATE TABLE test.A (id UInt32, company UInt32, total UInt64) ENGINE=Su...
https://github.com/ClickHouse/ClickHouse/issues/34798
https://github.com/ClickHouse/ClickHouse/pull/41838
1d9e126f941f81f1839c465f1f8840d22ebd450b
072c19ba96236a9dc3a8a613afe607c3c7cf6aa9
2022-02-21T15:53:39Z
c++
2022-09-28T13:33:11Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,787
["src/Common/QueryProfiler.cpp"]
22.1 and 22.2 server crashed on VirtualBox VM
I was using 50 concurrent users kept sending query `select number, toDateTime(number), toString(number) from numbers(10000)` using JDBC driver to ClickHouse http interface. After running the test for 10 minutes or so, ClickHouse server crashed leaving below error logs. I'll restart the container and re-run the test. ...
https://github.com/ClickHouse/ClickHouse/issues/34787
https://github.com/ClickHouse/ClickHouse/pull/35032
4f665eb01d42bbd839170ea214eb18d8ef1380c3
83de2f66d108c20c373505aa4b0e7ae25b2478f9
2022-02-21T09:03:03Z
c++
2022-03-10T16:49:27Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,785
["programs/client/Client.cpp", "tests/queries/0_stateless/02100_multiple_hosts_command_line_set.reference", "tests/queries/0_stateless/02100_multiple_hosts_command_line_set.sh"]
clickhouse-client doesn't load the host/port config from disk anymore
**Describe what's wrong** Since the upgrade to `v22.2.2.1` the host/port configuration for the `clickhouse-client` is not loaded from disk anymore. **Does it reproduce on recent release?** Reproduces on v22.2.2.1. **How to reproduce** * Which ClickHouse server version to use v22.2.2.1 * Which interface...
https://github.com/ClickHouse/ClickHouse/issues/34785
https://github.com/ClickHouse/ClickHouse/pull/34791
90ae785e539f3f443f97c9c308c426de73e47049
fac232842a734cdeb71997020f38f401db4d23b7
2022-02-21T07:31:06Z
c++
2022-02-22T08:46:09Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,776
["programs/client/Client.cpp", "tests/queries/0_stateless/02100_multiple_hosts_command_line_set.reference", "tests/queries/0_stateless/02100_multiple_hosts_command_line_set.sh"]
clickhouse-client ignores port parameter from config file, ClickHouse 22.2.2
**Describe the issue** In the latest version (22.2.2.1) clickhouse-client ignores `port` parameter from config file. **How to reproduce** Create `config.xml` with arbitrary value for `port` parameter. ``` <config> <port>9001</port> </config> ``` Run `clickhouse-client` with custom config file ``` #...
https://github.com/ClickHouse/ClickHouse/issues/34776
https://github.com/ClickHouse/ClickHouse/pull/34791
90ae785e539f3f443f97c9c308c426de73e47049
fac232842a734cdeb71997020f38f401db4d23b7
2022-02-20T19:59:39Z
c++
2022-02-22T08:46:09Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,769
["src/Interpreters/Cluster.cpp"]
It's inconvenient that we require to specify `<port>` in `<remote_servers>` cluster configuration.
**Describe the issue** ``` remote_servers.play.shard.replica.port ``` Should use server's TCP port by default.
https://github.com/ClickHouse/ClickHouse/issues/34769
https://github.com/ClickHouse/ClickHouse/pull/34772
fbcc27a339358331eed2ef4bda26b733903d8335
8a04ed72af3a60fbd3f3b97f7cdc3c27ebc553c0
2022-02-20T16:08:54Z
c++
2022-03-21T13:45:24Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,763
["docker/test/performance-comparison/report.py", "tests/ci/performance_comparison_check.py"]
Performance tests should always turn red if there are "Run errors"
[Run Errors](https://s3.amazonaws.com/clickhouse-test-reports/33057/5a8cf3ac98808dadf125068a33ed9c622998a484/performance_comparison__actions__[4/4]/report.html#run-errors)
https://github.com/ClickHouse/ClickHouse/issues/34763
https://github.com/ClickHouse/ClickHouse/pull/34797
9c1a06703a2f4cae38060534511ce5468d86ff87
0b3aac5660080373f6af54b903502675d2772276
2022-02-20T11:17:32Z
c++
2022-05-04T18:45:32Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,755
["docker/packager/binary/build.sh", "docker/test/fuzzer/run-fuzzer.sh", "docker/test/performance-comparison/compare.sh"]
Make `clickhouse` binary a self extracting executable.
**Use case** 1. More quick downloads but without the need of unpacking or installing any separate tools. 2. Include `odbc-bridge` and `library-bridge` in single-binary ClickHouse downloads despite the fact that they are separate binaries. 3. Maybe the size will be ok to always include debug info, even in .deb/.rpm...
https://github.com/ClickHouse/ClickHouse/issues/34755
https://github.com/ClickHouse/ClickHouse/pull/39617
5a82119fd0765de7b2ac1dadbbac76195befd510
cb7f072fe88a66387a0f990920db626c1774741f
2022-02-19T18:03:07Z
c++
2022-08-08T05:19:15Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,742
["tests/ci/git_helper.py", "tests/ci/git_test.py", "tests/ci/release.py"]
Add a `patch AKA stable` release to the release script
null
https://github.com/ClickHouse/ClickHouse/issues/34742
https://github.com/ClickHouse/ClickHouse/pull/34740
eeea322556dc3b0c84a67caab0164e2de301d614
c44aeda23cb26e643cabee01682688c131c364c8
2022-02-18T23:42:42Z
c++
2022-02-22T10:39:23Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,724
["tests/queries/0_stateless/02513_insert_without_materialized_columns.reference", "tests/queries/0_stateless/02513_insert_without_materialized_columns.sh"]
Can't import data from a file into a table with materialized columns.
I can't import data from a file into a table with materialized columns. ```sql create table test ( a Int64, b Int64 materialized a ) engine = MergeTree() primary key tuple(); insert into test values (1); select * from test into outfile '/tmp/test.native.zstd' format Native; truncate table test; ...
https://github.com/ClickHouse/ClickHouse/issues/34724
https://github.com/ClickHouse/ClickHouse/pull/44360
58d849d73229a73e479dcc3a426e0c5943c527dc
21d9e7ebc3a01bded5c616cf339c6ac4c7a8df68
2022-02-18T12:09:32Z
c++
2022-12-27T11:53:34Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,719
["src/Client/ClientBase.cpp"]
print-profile-events not always do proper summary
With ` --profile-events-delay-ms=-1` i expect to see only `[ 0 ]` (i.e. summary) rows in the output. But for some queries, it prints also some per-thread stats. ``` clickhouse-client --query='CREATE TABLE test.aaaa Engine = MergeTree ORDER BY (ac, nw) AS SELECT toUInt64(rand(1) % 20000000) as ac, toFloat32(1) as...
https://github.com/ClickHouse/ClickHouse/issues/34719
https://github.com/ClickHouse/ClickHouse/pull/34749
c15b5c2cc1ee8bde59b6f491f46ca39e9442a680
90ae785e539f3f443f97c9c308c426de73e47049
2022-02-18T10:29:14Z
c++
2022-02-22T01:05:34Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,708
["tests/queries/0_stateless/02509_h3_arguments.reference", "tests/queries/0_stateless/02509_h3_arguments.sql"]
h3ToParent() issue on latest stable release 22.2.2.1
Latest stable release 22.2.2.1 This query works fine: ```sql select h3ToParent(641573946153969375, 1); ``` This doesn't. It used to work on 22.1.3.7 ```sql select h3ToParent(641573946153969375, arrayJoin([1,2])); ``` Error message: ``` Code: 44. DB::Exception: Received from localhost:9000. DB::Except...
https://github.com/ClickHouse/ClickHouse/issues/34708
https://github.com/ClickHouse/ClickHouse/pull/44356
8d23d2f2f28bbccec309205d77f32d1388f78e03
58d849d73229a73e479dcc3a426e0c5943c527dc
2022-02-18T03:24:48Z
c++
2022-12-27T11:48:58Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,682
["tests/queries/0_stateless/02234_column_function_short_circuit.reference", "tests/queries/0_stateless/02234_column_function_short_circuit.sql"]
Column Function is not a contiguous block of memory
**Describe what's wrong** Query: ``` select float64Field1 * if(strField1 != '', 1.0, dictGetFloat64('sandbox.dict', 'float64Field', (strField1, toDate('2021-01-01')))) + if(strField2 != '', 1.0, dictGetFloat64('sandbox.dict', 'float64Field', (strField2, toDate('2021-01-01')))) * if(isFinite(float64Field2), floa...
https://github.com/ClickHouse/ClickHouse/issues/34682
https://github.com/ClickHouse/ClickHouse/pull/35247
eb1192934cb49f81c2d05a7c5771130cf5cccf83
4712499b83cee3f1514e54999409188c5347b7a0
2022-02-17T12:37:21Z
c++
2022-03-14T01:26:33Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,669
["tests/queries/0_stateless/02512_array_join_name_resolution.reference", "tests/queries/0_stateless/02512_array_join_name_resolution.sql"]
Cannot find column in source stream with array join
```sql CREATE TABLE x ( `arr.key` Array(String), `arr.value` Array(String), `n` String ) ENGINE = Memory; 20.8.17.25 / OK SELECT key, any(toString(n)) FROM ( SELECT arr.key AS key, n FROM x ARRAY JOIN arr ) GROUP BY key Ok. 0 rows in set. Elapsed: 0.002 sec. ...
https://github.com/ClickHouse/ClickHouse/issues/34669
https://github.com/ClickHouse/ClickHouse/pull/44359
2eb6e87f59bb8c61ea78517b9f36b6e8700040b0
6ace8f13dbae6e9533c23f3a8b74c38a6bc6c540
2022-02-17T00:23:07Z
c++
2022-12-20T10:12:34Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,660
["src/Storages/AlterCommands.cpp"]
Alter table drop alias column takes a lot of time and mutates all parts
22.2.1.4422. ``` create table test_alias (K Int64, D Date, S String, B Int64 Alias length(S)) Engine=MergeTree order by K; insert into test_alias select number, today(), 'sdfsdfsdfsdfsdfds' from numbers(10000000); session1: clickhouse-benchmark -c 10 <<< "insert into test_alias select number, today(), 'sdfsdf...
https://github.com/ClickHouse/ClickHouse/issues/34660
https://github.com/ClickHouse/ClickHouse/pull/34786
a3e6552fa598c310a55ad0a12acc714da290353d
5ac8cdbc69c12ab1d95efefbc3c432ee319f4107
2022-02-16T18:59:39Z
c++
2022-02-21T13:11:55Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,647
["src/Compression/CompressedReadBufferFromFile.cpp", "tests/queries/0_stateless/02267_empty_arrays_read_reverse.reference", "tests/queries/0_stateless/02267_empty_arrays_read_reverse.sql"]
Column compression broken few minutes after data inserted
Clickhouse version: 22.1.3. I'm creating and importing data to the new table based on join from two tables like this: `insert into my_database_{country_iso}.fulltext_new select keyword, stems, search_volumes.search_volume, difficulty, cpc, monthly_sv, peak_month, yoy_change, serp_features from my_database_{country_...
https://github.com/ClickHouse/ClickHouse/issues/34647
https://github.com/ClickHouse/ClickHouse/pull/36215
791454678b27ca2c8a1180065c266840c823b257
c76b9cc9f5c1c7454ae5992f7aedd4ed26f2dd13
2022-02-16T13:13:47Z
c++
2022-04-14T11:51:48Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,626
["tests/queries/0_stateless/02808_aliases_inside_case.reference", "tests/queries/0_stateless/02808_aliases_inside_case.sql"]
alias into CASE
> the CASE statement allows you to assign an alias inside yourself, which is not described in the SQL standards ``` with arrayJoin([1,2]) as arg select arg, (case when arg = 1 then 1 as one when arg = 2 then one / 2 end) as imposible --arg;imposible ...
https://github.com/ClickHouse/ClickHouse/issues/34626
https://github.com/ClickHouse/ClickHouse/pull/51357
1eef5086d465e7c365678a5dc333de3e240c148d
ea158254941bf00b5934efaf7dfef87fd0780519
2022-02-16T02:25:03Z
c++
2023-07-11T21:47:07Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,604
["docs/en/sql-reference/functions/index.md", "docs/ru/sql-reference/functions/index.md", "src/Interpreters/ExternalUserDefinedExecutableFunctionsLoader.cpp", "src/Interpreters/UserDefinedExecutableFunction.h", "src/Interpreters/UserDefinedExecutableFunctionFactory.cpp", "tests/integration/test_executable_user_defined_f...
Executable UDF: read / write other data formats than TabSeparated
Hi, I'm trying to figure out how read / write some data formats that are not TabSeparated (e.g. [Native](https://clickhouse.com/docs/en/interfaces/formats/#native) or [JSONEachRow](https://clickhouse.com/docs/en/interfaces/formats/#jsoneachrow)) in my EUDF - C++ script. Context: I already succeed to implement s...
https://github.com/ClickHouse/ClickHouse/issues/34604
https://github.com/ClickHouse/ClickHouse/pull/34653
1df43a7f57abc0b117056000c8236545a7c55b2b
174257dad098c24b48639ff9153cd6bdb8fba351
2022-02-15T12:09:08Z
c++
2022-02-21T23:02:14Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,586
["src/Storages/System/attachInformationSchemaTables.cpp", "tests/queries/0_stateless/02206_information_schema_show_database.reference", "tests/queries/0_stateless/02206_information_schema_show_database.sql"]
Wrong create_table_query for INFORMATION_SCHEMA
``` SELECT create_table_query FROM system.tables WHERE table = 'usual_view' Query id: f9ef8cf7-25ee-42af-bafa-26d506332c35 ┌─create_table_query────────────────────────────────────────────────────────────┐ │ CREATE VIEW default.usual_view (`number` UInt64) AS SELECT * FROM numbers(10) │ └─────────────────────...
https://github.com/ClickHouse/ClickHouse/issues/34586
https://github.com/ClickHouse/ClickHouse/pull/35480
778416f5764072179b5f4bbdef655b7a62a55c59
2fdc937ae17c97fcf966ba5b1819a83091c0e590
2022-02-14T14:21:06Z
c++
2022-03-21T19:20:34Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,546
["src/Storages/StorageLog.cpp"]
Data race in `FileChecker` in `StorageLog::truncate`
#34528 **Describe the bug** [A link to the report](https://s3.amazonaws.com/clickhouse-test-reports/34528/6a8e35930ffc25f0574179c5ad93635cfe073121/stress_test__thread__actions_.html)
https://github.com/ClickHouse/ClickHouse/issues/34546
https://github.com/ClickHouse/ClickHouse/pull/34558
380d9afb2c0ef438d0afc245b381b0b32d8061ca
ae1da31d199eae3ed7c9db6cc8b59a34839e9fe3
2022-02-12T07:17:41Z
c++
2022-02-13T13:33:36Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,531
["docs/en/interfaces/http.md", "docs/ru/interfaces/http.md", "src/Server/HTTPHandler.cpp", "src/Server/HTTPHandler.h", "tests/integration/test_http_handlers_config/test.py", "tests/integration/test_http_handlers_config/test_dynamic_handler/config.xml", "tests/integration/test_http_handlers_config/test_predefined_handle...
A setting `content_type` to force specified `Content-Type` in output.
I want to add a `predefined_query_handler` to serve a single JSON from my query. For example ```xml <rule> <url>/my/url</url> <methods>GET</methods> <handler> <type>predefined_query_handler</type> <query>select '{"my": "json"}' format JSONAsString</query> </handler> ...
https://github.com/ClickHouse/ClickHouse/issues/34531
https://github.com/ClickHouse/ClickHouse/pull/34916
333cbe4a3f8818e851bdad436d7033541a403dd4
3755466e8dd82c816a9e2f71d28d3fdb958fbe01
2022-02-11T15:07:44Z
c++
2022-05-08T13:36:21Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,525
["src/Client/MultiplexedConnections.cpp", "tests/queries/0_stateless/02221_parallel_replicas_bug.reference", "tests/queries/0_stateless/02221_parallel_replicas_bug.sh"]
Logical error: 'Coordinator for parallel reading from replicas is not initialized'.
How to reproduce: run test 01099_parallel_distributed_insert_select.sql with enabled setting `allow_experimental_parallel_reading_from_replicas`: ``` ch-client --allow_experimental_parallel_reading_from_replicas=1 -nmT < 01099_parallel_distributed_insert_select.sql > /dev/null [avogar-dev.vla.yp-c.yandex.net] 2022.0...
https://github.com/ClickHouse/ClickHouse/issues/34525
https://github.com/ClickHouse/ClickHouse/pull/34613
72e75fdaf57678d94a4774af35ac2922888d12cb
22821ccac9bfc890a3124ec594c93ff6d0af4439
2022-02-11T13:14:37Z
c++
2022-02-15T20:29:41Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,514
["src/Parsers/ASTSystemQuery.cpp", "src/Parsers/ParserSystemQuery.cpp"]
Reload Function bug report
hi, v21.12.3.1-stable clickhouse-client execute 'system RELOAD FUNCTION on cluster cluster test_function;' Actual execution differs from expectations. ![image](https://user-images.githubusercontent.com/35019926/153533788-53ed9c1f-d383-4bc8-b85e-d1828328ad7e.png)
https://github.com/ClickHouse/ClickHouse/issues/34514
https://github.com/ClickHouse/ClickHouse/pull/34696
6280efc0eb73fe4412241b7c4207af68f21c54a1
14c54c40f6c1ec1b8e01930235758d0e7f5aafc1
2022-02-11T03:35:19Z
c++
2022-02-21T07:24:55Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,493
["src/Storages/MergeTree/KeyCondition.cpp", "tests/queries/0_stateless/02207_key_condition_floats.reference", "tests/queries/0_stateless/02207_key_condition_floats.sql"]
wrong float comparison with constant for Float32
create table test1 (a Float32, b Float32 ) engine = MergeTree order by a ; insert into test1 values (0.1,0.1), (0.2,0.2); select count() from test1 where b = 0.1; 0 select count() from test1 where b = toFloat32(0.1); 1 select count() from test1 where a > 0; 0 select count() from test1 where a > 0.0; 2 sel...
https://github.com/ClickHouse/ClickHouse/issues/34493
https://github.com/ClickHouse/ClickHouse/pull/34528
ea71dc9d110113f0afa1e2044cd5c90bf7abbbd3
747b6b20584fd2b619d2977543e2e1a8fb12b447
2022-02-10T11:22:03Z
c++
2022-02-12T07:19:09Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,428
["src/Storages/System/StorageSystemAsynchronousInserts.h", "tests/queries/0_stateless/02117_show_create_table_system.reference"]
system.asynchronous_inserts engine lacks System prefix
``` SELECT name, engine FROM system.tables WHERE (engine NOT LIKE '%MergeTree') AND (database = 'system') Query id: 7db15642-bff0-4d07-b3af-9a2495ca9185 ┌─name───────────────────────────┬─engine─────────────────────────────┐ │ aggregate_function_combinators │ SystemAggregateFunctionCombinators │ │ ...
https://github.com/ClickHouse/ClickHouse/issues/34428
https://github.com/ClickHouse/ClickHouse/pull/34429
d680a017e09f409da64a71f994a3a49ec5b8f2ab
9bb2eba281d77d104b90c19163bfb267df5027f6
2022-02-08T18:21:28Z
c++
2022-02-12T07:08:04Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,407
["src/AggregateFunctions/AggregateFunctionNull.cpp", "tests/queries/0_stateless/02888_single_state_nullable_type.reference", "tests/queries/0_stateless/02888_single_state_nullable_type.sql"]
-SimpleState with nullable argument creates Nullable(SimpleAggregateFunction(...))
``` SELECT toTypeName(minSimpleState(toNullable(0))) Query id: ca70501a-76f0-400e-89c2-3539a7ce6740 ┌─toTypeName(minSimpleState(toNullable(0)))─────┐ │ Nullable(SimpleAggregateFunction(min, UInt8)) │ └───────────────────────────────────────────────┘ ``` Should be ``` SimpleAggregateFunction(min, Nullabl...
https://github.com/ClickHouse/ClickHouse/issues/34407
https://github.com/ClickHouse/ClickHouse/pull/55030
c90dbe94ea966166174eda25c74094940cc8792a
ce734149f7190021a0c3fa628d4623027074a867
2022-02-08T12:04:49Z
c++
2023-09-28T02:01:52Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,400
["src/Processors/Formats/Impl/TSKVRowInputFormat.cpp", "src/Processors/Transforms/CreatingSetsTransform.h"]
AddressSanitizer: heap-use-after-free DB::ExecutingGraph::updateNode
query: ``` SELECT number FROM remote('127.0.0.{3|2}', numbers(256)) WHERE number GLOBAL IN (SELECT number FROM numbers(9223372036854775807)) SETTINGS async_socket_for_remote = 1, use_hedge d_requests = 1, sleep_in_send_data_ms = 10, receive_data_timeout_ms = 1 ``` Log ``` 2022.02.07 16:15:09.686401 [ 461 ] {} ...
https://github.com/ClickHouse/ClickHouse/issues/34400
https://github.com/ClickHouse/ClickHouse/pull/34406
fe7cdd14f71b9eedf5c5ed8c00a21ca7848c1ad5
7a30d490a18299543a4e8e22cc0b5b9905df8db5
2022-02-08T08:18:14Z
c++
2022-02-10T10:24:18Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,362
["src/Server/GRPCServer.cpp", "src/Server/grpc_protos/clickhouse_grpc.proto", "tests/integration/test_grpc_protocol/test.py"]
Return format in gRPC response
Hi @vitlibar, In http implementation, ClickHouse will return format of query result in header `X-ClickHouse-Format`. Can we return format in gRPC response as well? This helps client like JDBC driver for deserialization(without the need for parsing the query).
https://github.com/ClickHouse/ClickHouse/issues/34362
https://github.com/ClickHouse/ClickHouse/pull/34499
340614e5eca00ecf9452da0dcd19f041f6f0b40a
91bc9cd4cf7ecc8435b1250e497ecad22dc7ed42
2022-02-07T04:52:04Z
c++
2022-02-13T14:34:32Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,350
["src/Disks/S3/DiskS3.cpp", "src/Interpreters/threadPoolCallbackRunner.cpp", "src/Interpreters/threadPoolCallbackRunner.h", "src/Storages/StorageS3.cpp"]
StorageS3 does not perform parallel multipart upload.
**Describe the situation** The author implemented it but enabled only for DiskS3. CC @excitoon
https://github.com/ClickHouse/ClickHouse/issues/34350
https://github.com/ClickHouse/ClickHouse/pull/35343
66a6352378fe495b1fef550a3c5e084de4aa29df
a90e83665dda049c4f9e89093dd081ddf9cf3508
2022-02-06T03:28:15Z
c++
2022-03-24T14:58:29Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,335
["src/Databases/DatabaseMemory.cpp", "tests/queries/0_stateless/01069_database_memory.reference", "tests/queries/0_stateless/02021_create_database_with_comment.reference", "tests/queries/0_stateless/02206_information_schema_show_database.reference", "tests/queries/0_stateless/02206_information_schema_show_database.sql"...
SHOW CREATE DATABASE information_schema return wrong SQL `ENGINE=Memory()` instead of `ENGINE=Memory`
**Describe what's wrong** inconsistent behavior ```sql SHOW CREATE DATABASE information_schema ``` returns the following SQL statement ```sql CREATE DATABASE information_schema ENGINE = Memory() ``` but when you try to run these queries ```sql DROP DATABASE information_schema; CREATE DATABASE info...
https://github.com/ClickHouse/ClickHouse/issues/34335
https://github.com/ClickHouse/ClickHouse/pull/34345
43ee8ddb5bbc1c2807f2d5a5d9e5b9627e1bb7b4
51c767d107ce691e5700bf1c11ca2bbb6f141d6f
2022-02-05T13:03:35Z
c++
2022-02-07T23:45:46Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,324
["src/Common/ProgressIndication.cpp"]
22.1: progress bar is jumping forward when around 50%
**Describe the issue** Maybe it's a bug in my implementation of #33271 **How to reproduce** Run some long query and look carefully with full attention.
https://github.com/ClickHouse/ClickHouse/issues/34324
https://github.com/ClickHouse/ClickHouse/pull/34801
f85d8cd3b3c8b729b81a434e7b85baba2e77ee77
5621c334e4b8b1950264101106a8de7ce3fe7288
2022-02-04T19:35:16Z
c++
2022-02-22T21:37:36Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,303
["src/IO/ReadHelpers.cpp", "src/IO/ReadHelpers.h", "src/Processors/Formats/Impl/LineAsStringRowInputFormat.cpp", "src/Processors/Formats/Impl/RawBLOBRowInputFormat.cpp"]
`ProfileEvents::increment` can be in top if you run a query with huge number of threads.
**Describe the situation** https://markify.dev/p/zfrQMV2/text **How to reproduce** On aws `c5ad.24xlarge` run a query: ``` SET max_memory_usage = '100G', max_threads = 1000, max_insert_threads = 96 INSERT INTO wikistat WITH parseDateTimeBestEffort(extract(toLowCardinality(_path), 'pageviews-([\\d\\-]+)...
https://github.com/ClickHouse/ClickHouse/issues/34303
https://github.com/ClickHouse/ClickHouse/pull/34306
ab696e6b59456b30385fa66d9f6c5822e8998c5e
074b827cf35a1d6700ed3f472b9067ee5bf32308
2022-02-03T20:30:00Z
c++
2022-02-04T12:11:27Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,302
["src/Interpreters/InterpreterDropQuery.cpp"]
TRUNCATE TABLE does not cancel merges
**Describe the situation** ``` ip-172-31-22-38.eu-central-1.compute.internal :) TRUNCATE wikistat TRUNCATE TABLE wikistat Query id: 3a045ee6-201c-4551-9bc1-3cda53376ec2 0 rows in set. Elapsed: 120.008 sec. Received exception from server (version 22.2.1): Code: 473. DB::Exception: Received from local...
https://github.com/ClickHouse/ClickHouse/issues/34302
https://github.com/ClickHouse/ClickHouse/pull/34304
cf8c76f85976debf341a609fc3ee5cc85a3ed650
ea3ccd2431c810dd0d28234d5e71959aefae4ee8
2022-02-03T19:49:01Z
c++
2022-02-04T09:32:00Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,301
["src/Storages/HDFS/StorageHDFS.cpp", "src/Storages/StorageS3.cpp"]
Query metrics are not shown on progress bar for INSERT SELECT.
This query does not show realtime metrics: ``` INSERT INTO wikistat WITH parseDateTimeBestEffort(extract(toLowCardinality(_path), 'pageviews-([\\d\\-]+)\\.gz$')) AS time, splitByChar(' ', line) AS values, splitByChar('.', values[1]) AS projects SELECT time, projects[1] AS project, pro...
https://github.com/ClickHouse/ClickHouse/issues/34301
https://github.com/ClickHouse/ClickHouse/pull/34539
c2f6d803f79db80b2c2d16e2a85b6c5ab5614a86
d680a017e09f409da64a71f994a3a49ec5b8f2ab
2022-02-03T19:36:35Z
c++
2022-02-11T23:36:03Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,300
["src/DataTypes/DataTypeLowCardinality.h", "src/Storages/FileLog/StorageFileLog.cpp", "src/Storages/HDFS/StorageHDFS.cpp", "src/Storages/HDFS/StorageHDFSCluster.cpp", "src/Storages/Hive/StorageHive.cpp", "src/Storages/Kafka/StorageKafka.cpp", "src/Storages/StorageDistributed.cpp", "src/Storages/StorageS3.cpp", "src/Sto...
`_path` virtual column should be `LowCardinality`
``` ubuntu@ip-172-31-79-147:/opt/downloads$ clickhouse-local --max_threads 8 --query "WITH parseDateTimeBestEffort(extract(_path, 'pageviews-([\\d\\-]+)\\.gz$')) AS time, splitByChar(' ', line) AS values, splitByChar('.', values[1]) AS projects SELECT time, projects[1] AS project, projects[2] AS subproject, values[2] ...
https://github.com/ClickHouse/ClickHouse/issues/34300
https://github.com/ClickHouse/ClickHouse/pull/34333
1482d61bef01cad3b7ab6951e908d67fe8c578ae
58bb0eb2d1bad5785e9a2e4c05e3b485127caa3a
2022-02-03T19:03:13Z
c++
2022-02-06T23:55:51Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,281
["src/Access/Common/AccessType.h", "src/Access/ContextAccess.cpp", "src/Access/tests/gtest_access_rights_ops.cpp", "tests/queries/0_stateless/01271_show_privileges.reference"]
Wrong privelege level for CREATE / DROP FUNCTION in system.privileges
**Describe what's wrong** UDF functions are global objects. Creating or dropping them requires global level privilege. - https://clickhouse.com/docs/en/sql-reference/statements/create/function/ - https://github.com/ClickHouse/ClickHouse/blob/14811a357e2136ff2940d791f2dbe59c65e87601/tests/integration/test_access_...
https://github.com/ClickHouse/ClickHouse/issues/34281
https://github.com/ClickHouse/ClickHouse/pull/34404
691cb3352b607b5c028be2481d7f730d8d85fb2f
10439c9d3f444bfa71974db9110970699a31455d
2022-02-03T10:47:13Z
c++
2022-02-10T23:21:28Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,244
["src/Core/Settings.h", "src/Disks/S3/DiskS3.cpp", "src/Disks/S3/DiskS3.h", "src/Disks/S3/registerDiskS3.cpp", "src/IO/WriteBufferFromS3.cpp", "src/IO/WriteBufferFromS3.h", "src/Storages/StorageS3.cpp", "src/Storages/StorageS3.h", "src/TableFunctions/TableFunctionS3.cpp", "src/TableFunctions/TableFunctionS3Cluster.cpp"...
S3 table function can't upload file while aws s3 CLI can
I have insert to s3 6bil rows table: ``` INSERT INTO FUNCTION s3('https://s3.us-east-1.amazonaws.com/my-bucket/data.csv', 'DFGHJ', 'FGHJIJH, 'CSVWithNames', 'time DateTime, exchangeId UInt16, pairId UInt16, id String, price Decimal(38, 18), volume Decimal(38, 18)') SELECT * FROM trade; ``` but it fails trying to ...
https://github.com/ClickHouse/ClickHouse/issues/34244
https://github.com/ClickHouse/ClickHouse/pull/34422
05b89ee865a82fd714e9b331201c7beb6d00bb9a
437940b29d2e8e95d214ecfbdfcb66b52c7b2cdd
2022-02-02T08:30:41Z
c++
2022-02-09T09:51:20Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,239
["src/IO/ReadWriteBufferFromHTTP.h", "tests/queries/0_stateless/02205_HTTP_user_agent.python", "tests/queries/0_stateless/02205_HTTP_user_agent.reference", "tests/queries/0_stateless/02205_HTTP_user_agent.sh"]
forbidden requests due to missing user-agent header in URL engine
Some URLs expect a User-Agent header. Example (version 22.2.1.3767): ```sql SELECT * FROM url('https://api.github.com/users/clickhouse','JSONAsString'); ``` Results in: ``` Code: 86. DB::Exception: Received error from remote server /users/clickhouse. HTTP status code: 403 Forbidden, body: Request forbidden b...
https://github.com/ClickHouse/ClickHouse/issues/34239
https://github.com/ClickHouse/ClickHouse/pull/34330
4a2c69c0735cacf3ae1c97d0766134cc11934f76
03f81c86855883450c0224b76867d6b8b0e2c5c7
2022-02-01T20:39:59Z
c++
2022-02-12T21:40:11Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,206
["src/IO/parseDateTimeBestEffort.cpp", "tests/queries/0_stateless/02191_parse_date_time_best_effort_more_cases.reference", "tests/queries/0_stateless/02191_parse_date_time_best_effort_more_cases.sql"]
parseDateTimeBestEffort can support format `yymmdd-hhmmss`
**Describe the issue** ``` milovidov-desktop :) SELECT parseDateTimeBestEffort('20220101-010203') SELECT parseDateTimeBestEffort('20220101-010203') 0 rows in set. Elapsed: 0.153 sec. Received exception: Code: 41. DB::Exception: Cannot read DateTime: unexpected number of decimal digits for time zone offse...
https://github.com/ClickHouse/ClickHouse/issues/34206
https://github.com/ClickHouse/ClickHouse/pull/34208
798e0e8242a7125cfca2c0362e8de201b1d92482
2b1d1a9a6f00a1267d0814b349e87fde936a7842
2022-02-01T00:01:26Z
c++
2022-02-01T13:22:52Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,204
["src/Parsers/ExpressionListParsers.cpp", "src/Parsers/ExpressionListParsers.h", "tests/queries/0_stateless/01852_cast_operator_4.reference", "tests/queries/0_stateless/01852_cast_operator_4.sql"]
Casting and array index operators are not composable
**Describe the issue** ``` SELECT x[1]::UInt64 Syntax error: failed at position 12 ('::') ```
https://github.com/ClickHouse/ClickHouse/issues/34204
https://github.com/ClickHouse/ClickHouse/pull/34229
1c461e9ed1e051efc5ab546200f56ac23550dcac
b21adb8e110f5c74206a1cb1ab87fc2e690b5f43
2022-01-31T23:41:22Z
c++
2022-02-08T00:17:00Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,200
["src/Processors/Formats/Impl/RegexpRowInputFormat.cpp", "src/Processors/Formats/Impl/RegexpRowInputFormat.h", "tests/queries/0_stateless/02190_format_regexp_cr_in_the_middle.reference", "tests/queries/0_stateless/02190_format_regexp_cr_in_the_middle.sh", "utils/CMakeLists.txt", "utils/convert-month-partitioned-parts/C...
Format `Regexp` is unusable
``` clickhouse-local \ --format_regexp_escaping_rule 'Raw' \ --format_regexp_skip_unmatched 1 \ --format_regexp '^([^ \.]+)(\.[^ ]+)? +([^ ]+) +(\d+) +(\d+)$' \ --query " SELECT replaceRegexpOne(_path, '^.+pageviews-(\\d{4})(\\d{2})(\\d{2})-(\\d{2})(\\d{2})(\\d{2}).gz$', '\1-\2-\3 \4-\5-\6')::Date...
https://github.com/ClickHouse/ClickHouse/issues/34200
https://github.com/ClickHouse/ClickHouse/pull/34205
a93aecf1cb9fc03bc6c71a1b860efda5edc5ba66
798e0e8242a7125cfca2c0362e8de201b1d92482
2022-01-31T22:47:55Z
c++
2022-02-01T13:22:02Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,155
["docs/en/sql-reference/functions/array-functions.md", "src/Functions/array/arrayFold.cpp", "tests/performance/array_fold.xml", "tests/queries/0_stateless/02718_array_fold.reference", "tests/queries/0_stateless/02718_array_fold.sql", "utils/check-style/aspell-ignore/en/aspell-dict.txt"]
`arrayFold` function
See #21589 #23248 #27270
https://github.com/ClickHouse/ClickHouse/issues/34155
https://github.com/ClickHouse/ClickHouse/pull/49794
e633f36ce91a2ae335010548638aac79bca3aef9
624dbcdb4f95acb5400523b6189e74f761ffa6bd
2022-01-30T15:15:18Z
c++
2023-10-09T11:38:35Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,148
["src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp", "src/Storages/MergeTree/MergeTreeBackgroundExecutor.h"]
"Cancelled merging parts" is not an error.
I see this in logs on server shutdown: ``` 2022.01.30 02:51:22.856463 [ 755777 ] {} <Error> void DB::MergeTreeBackgroundExecutor<DB::MergeMutateRuntimeQueue>::routine(DB::TaskRuntimeDataPtr) [Queue = DB::MergeMutateRuntimeQueue]: Code: 236. DB::Exception: Cancelled merging parts. ``` but it's not an error. L...
https://github.com/ClickHouse/ClickHouse/issues/34148
https://github.com/ClickHouse/ClickHouse/pull/34232
eeae89388b7747c299c12b8829ac11b8d3da682a
47d538b52f7009806064b905256140d0e57f9cda
2022-01-29T23:53:30Z
c++
2022-02-02T07:29:07Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,135
["src/Parsers/ParserDictionary.cpp", "tests/queries/0_stateless/02188_parser_dictionary_primary_key.reference", "tests/queries/0_stateless/02188_parser_dictionary_primary_key.sql"]
Dictionaries complex primary key does not allow ( )
`PRIMARY KEY (key1,key2,key3)` VS `PRIMARY KEY key1,key2,key3` ``` create database test; use test; create table dict_table ( key1 UInt64, key2 String, key3 String, S String) Engine MergeTree order by (key1, key2, key3); CREATE DICTIONARY item_dict ( key1 UInt64, key2 String, key3 String, S String ) PRIMAR...
https://github.com/ClickHouse/ClickHouse/issues/34135
https://github.com/ClickHouse/ClickHouse/pull/34141
6319d47a7f909f38a31d50635fb8ca1a9dab8bb0
a5fc8289ae4ccf11f8d82bbdec03042853d6d4d2
2022-01-29T02:05:51Z
c++
2022-01-29T18:55:32Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,091
["src/QueryPipeline/RemoteInserter.cpp", "src/QueryPipeline/RemoteInserter.h", "src/Storages/Distributed/DirectoryMonitor.cpp", "tests/integration/test_distributed_insert_backward_compatibility/__init__.py", "tests/integration/test_distributed_insert_backward_compatibility/configs/remote_servers.xml", "tests/integratio...
unknown serialization kind on distributed table
**Describe the unexpected behaviour** After upgraded to ClickHouse 22.1.3 revision 54455,when using distributed table to insert data,errors occured in log. **How to reproduce** Version:ClickHouse 22.1.3.7 **Expected behavior** After upgraded to ClickHouse 22.1.3 revision 54455,when using distributed table to...
https://github.com/ClickHouse/ClickHouse/issues/34091
https://github.com/ClickHouse/ClickHouse/pull/34132
9f29c977debd3c99543fdb0a2d2561f9f1c4eafe
822b58247a7edfb5c612ed3e32b04027920189d1
2022-01-28T10:45:12Z
c++
2022-02-09T11:58:44Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,089
["src/Interpreters/InterpreterSelectQuery.cpp", "src/Storages/MergeTree/MergeTreeData.cpp", "tests/integration/test_part_moves_between_shards/test.py"]
Data duplication in `PART MOVE TO SHARD` feature
I wrote a test for `PART MOVE TO SHARD` runs multiple times and received some unexpected behavior. **Test description:** 1) Create a table 2) Make 2 rows insert on one shard and 1 row insert on some other 3) Stop Merges 4) Create Distributed table 5) Receive part UUID 6) Move this part multiple times 7) Make...
https://github.com/ClickHouse/ClickHouse/issues/34089
https://github.com/ClickHouse/ClickHouse/pull/34385
065305ab65d2733fea463e863eeabb19be0b1c82
1df43a7f57abc0b117056000c8236545a7c55b2b
2022-01-28T10:36:32Z
c++
2022-02-21T16:53:09Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,073
["src/DataTypes/Serializations/ISerialization.cpp", "tests/queries/0_stateless/02191_nested_with_dots.reference", "tests/queries/0_stateless/02191_nested_with_dots.sql"]
Get Exception while query from Nested Array table in CH version 21.11.2.2 and upper
Clickhouse version 21.10.6.2,21.10.5.3 and lower: ``` CREATE TABLE repro ( `id` UInt64, `version` UInt16, `conversations.id` Array(UInt64), `conversations.routings.id` Array(Array(UInt64)) ) ENGINE = ReplacingMergeTree(version) ORDER BY (id) SETTINGS min_bytes_for_wide_part = 0, min_rows_for_wide_part = 0; ...
https://github.com/ClickHouse/ClickHouse/issues/34073
https://github.com/ClickHouse/ClickHouse/pull/34228
ee67071201562706f257b416434de83afc89dd58
b633a916afa86eb0669662c95afc0e52288ecdc8
2022-01-27T21:55:45Z
c++
2022-02-07T16:01:33Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,044
["src/Functions/FunctionsTimeWindow.cpp", "src/Storages/WindowView/StorageWindowView.cpp", "src/Storages/WindowView/StorageWindowView.h"]
Windowed Materialized View using hop does not create overlapping windows.
Hello. Given the following schema, I would expect a Materialized View with hop defined to "hop" the "window interval" every "hop interval". Presently it seems to just hop the window interval instead of hopping the hop interval. You will see from my data below that from my windowed view, I am seeing only window_i...
https://github.com/ClickHouse/ClickHouse/issues/34044
https://github.com/ClickHouse/ClickHouse/pull/36861
5877d0038882a94d83fce3e6ea1ea4388282f360
376e5564742537ac974e6471c1e437c5fd47ae6e
2022-01-27T00:24:45Z
c++
2022-05-10T07:25:24Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,014
["src/Interpreters/ProcessList.cpp", "src/Interpreters/ProcessList.h", "tests/queries/0_stateless/02190_current_metrics_query.reference", "tests/queries/0_stateless/02190_current_metrics_query.sql"]
system.metrics name='Query' and system.metric_log CurrentMetric_Query gauge doesn't calculate anymore
**Describe what's wrong** Query metric doesn't calculate anymore ```sql SELECT * FROM system.metrics WHERE metric='Query' ``` always return value=0 ```sql SELECT event_time, CurrentMetrics_Query FROM system.metric_log WHERE CurrentMetrics_Query>0 ``` always return 0 rows I check these queries during run ...
https://github.com/ClickHouse/ClickHouse/issues/34014
https://github.com/ClickHouse/ClickHouse/pull/34224
56ac75a6e9e87f9f60daf6c8c4ed9f9e15ec9304
7304fd654a56bc04ab18a887f5c970ebf927c145
2022-01-26T12:38:46Z
c++
2022-02-02T10:39:07Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
34,010
["src/Functions/array/arrayCompact.cpp", "tests/queries/0_stateless/01020_function_array_compact.sql", "tests/queries/0_stateless/01025_array_compact_generic.reference", "tests/queries/0_stateless/01025_array_compact_generic.sql"]
arrayCompact: higher-order ?
**Describe the unexpected behaviour** Current implementation of arrayCompact does not behave as other higher-order functions: it accepts lambda function as its first argument, but then it compacts array returned by lambda, not original array (see below for example). **How to reproduce** * Which ClickHouse serv...
https://github.com/ClickHouse/ClickHouse/issues/34010
https://github.com/ClickHouse/ClickHouse/pull/34795
aea7bfb59aa23432b7eb6f69c4ce158c40f65c11
7d01516202152c8d60d4fed6b72dad67357d337f
2022-01-26T11:05:09Z
c++
2022-03-03T18:25:43Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,982
["src/Functions/FunctionStartsEndsWith.h", "src/Functions/GatherUtils/Algorithms.h", "src/Functions/GatherUtils/GatherUtils.h", "src/Functions/GatherUtils/ends_with.cpp", "src/Functions/GatherUtils/starts_with.cpp", "tests/queries/0_stateless/02206_array_starts_ends_with.reference", "tests/queries/0_stateless/02206_arr...
startsWith function for arrays
Support for arrays in `startsWith` (and, maybe, `endsWith`) **Use case** Would be quite useful for handling tree-like structured data where the node paths are specified as arrays of names or IDs. **Describe the solution you'd like** The desired behavior would be like this: ``` startsWith([1, 2, 3, 4], [1,...
https://github.com/ClickHouse/ClickHouse/issues/33982
https://github.com/ClickHouse/ClickHouse/pull/34368
e845a68eebdd2e85963267337d262f1d55e2f9ec
c09275f0dae654c954d5ea2ade98164d3490b940
2022-01-25T11:09:42Z
c++
2022-02-18T05:34:48Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,973
["programs/keeper/Keeper.cpp", "programs/server/Server.cpp", "tests/integration/test_keeper_and_access_storage/__init__.py", "tests/integration/test_keeper_and_access_storage/configs/keeper.xml", "tests/integration/test_keeper_and_access_storage/test.py"]
ClickHouse server fails to start when both Keeper and user replication enabled
**Describe what's wrong** ClickHouse server fails to start with the following config: ``` <keeper_server> <tcp_port>2181</tcp_port> <server_id>1</server_id> <log_storage_path>/var/lib/clickhouse/coordination/log</log_storage_path> <snapshot_storage_path>/var/lib/clickhouse/coordination/snapsh...
https://github.com/ClickHouse/ClickHouse/issues/33973
https://github.com/ClickHouse/ClickHouse/pull/33988
0d6032f0fe361d157370eabee08ed24edbbe4494
0105f7e0bccb074904ed914222ddc53bb0beca0c
2022-01-25T08:02:22Z
c++
2022-01-25T19:54:43Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,964
["docker/test/stateless/Dockerfile", "docker/test/stateless/setup_minio.sh", "src/IO/WriteBufferFromS3.cpp", "tests/queries/0_stateless/02207_s3_content_type.reference", "tests/queries/0_stateless/02207_s3_content_type.sh"]
Wrong s3 object content type for large files
Connected to ClickHouse server version 21.13.1 revision 54455. ``` INSERT INTO FUNCTION s3('https://s3.us-east-1.amazonaws.com/dzhuravlev/small_file.xml.gz', 'XML', 'number UInt64', 'gz') SELECT * FROM numbers(10); INSERT INTO FUNCTION s3('https://s3.us-east-1.amazonaws.com/dzhuravlev/large_file.xml.gz','XML',...
https://github.com/ClickHouse/ClickHouse/issues/33964
https://github.com/ClickHouse/ClickHouse/pull/34433
7411178064218abc4eec790f98bad3b892439695
6df2c9c2d87a3cbbcb2cea68f1f2a8f419384530
2022-01-24T21:37:36Z
c++
2022-02-17T10:11:14Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,945
["src/CMakeLists.txt", "src/Storages/StorageDistributed.cpp", "src/TableFunctions/CMakeLists.txt", "src/TableFunctions/TableFunctionView.cpp", "src/TableFunctions/TableFunctionView.h", "tests/queries/0_stateless/02225_parallel_distributed_insert_select_view.reference", "tests/queries/0_stateless/02225_parallel_distribu...
parallel_distributed_insert_select + cluster('xxx',view())
**Use case** Run view on each shard individually and insert into local node. **Describe the solution you'd like** ```sql INSERT INTO FUNCTION cluster('all-sharded', map, output, key_2) SELECT * FROM cluster('all-sharded', view( SELECT * FROM map.input WHERE (key_1 % 2) = toUInt32(getMacro('a...
https://github.com/ClickHouse/ClickHouse/issues/33945
https://github.com/ClickHouse/ClickHouse/pull/35132
c364908061ff76d82fa7076e327ddc8a191a2712
6bfee7aca2bbe1cda17525b8aec38da5ffbbca00
2022-01-24T11:04:41Z
c++
2022-03-09T08:10:34Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,944
["src/Functions/array/mapPopulateSeries.cpp", "tests/performance/map_populate_series.xml", "tests/queries/0_stateless/01318_map_populate_series.reference", "tests/queries/0_stateless/01318_map_populate_series.sql", "tests/queries/0_stateless/01925_map_populate_series_on_map.reference", "tests/queries/0_stateless/01925_...
mapPopulateSeries LOGICAL_ERROR
**Describe what's wrong** **How to reproduce** ```sql SELECT mapPopulateSeries(range(10), range(10), toUInt8(number)) FROM numbers(10) LIMIT 1 Query id: 5eb2e3fb-26a0-4a17-8a37-9714d35095bd ┌─mapPopulateSeries(range(10), range(10), toUInt8(number))─┐ │ ([0],[0]) ...
https://github.com/ClickHouse/ClickHouse/issues/33944
https://github.com/ClickHouse/ClickHouse/pull/34318
47e2b3a35ae90fa860a3a16b211a049b28a4516b
eff16baaf369ca8ad94d1d4ab5517f7766c7eeb1
2022-01-24T10:59:47Z
c++
2022-02-05T11:51:02Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,923
["src/Interpreters/InterpreterCreateFunctionQuery.cpp", "tests/queries/0_stateless/02181_sql_user_defined_functions_invalid_lambda.sql"]
std::out_of_range on CREATE FUNCTION
https://s3.amazonaws.com/clickhouse-test-reports/33889/3a252cd3a0966f5bf882e2b302999e123b9301d2/fuzzer_astfuzzerdebug,actions//report.html ``` 2022.01.22 00:39:21.673579 [ 472 ] {} <Fatal> BaseDaemon: ######################################## 2022.01.22 00:39:21.675012 [ 472 ] {} <Fatal> BaseDaemon: (version 22.2.1...
https://github.com/ClickHouse/ClickHouse/issues/33923
https://github.com/ClickHouse/ClickHouse/pull/33924
57dae1e3084b76a8a12b2a705f2088fdd50389dd
7fffe5846f07882c41a25175eaea159fb2309eb4
2022-01-23T13:56:47Z
c++
2022-01-23T21:06:49Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,906
["src/Interpreters/convertFieldToType.cpp", "tests/queries/0_stateless/02286_convert_decimal_type.reference", "tests/queries/0_stateless/02286_convert_decimal_type.sql"]
Integer from VALUES cannot be parsed as Decimal256
`SELECT * FROM values('x Decimal256(0)', (1))` ``` Code: 53. DB::Exception: Type mismatch in IN or VALUES section. Expected: Decimal(76, 0). Got: UInt64. (TYPE_MISMATCH) ```
https://github.com/ClickHouse/ClickHouse/issues/33906
https://github.com/ClickHouse/ClickHouse/pull/36489
0fa63a8d65937b39f3f4db5d133b2090dfd89f12
2106a7b895e54071d3490c2acd020b62b57748a4
2022-01-22T09:31:13Z
c++
2022-04-25T11:23:54Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,838
["src/DataTypes/DataTypeTuple.cpp", "src/DataTypes/Serializations/SerializationNamed.h", "tests/queries/0_stateless/02184_nested_tuple.reference", "tests/queries/0_stateless/02184_nested_tuple.sql"]
Null pointer exception - server crash selecting Tuple
**Describe the unexpected behaviour** Have a table with the following column definition: ``` endUserIDs Tuple( _experience Tuple( aaid Tuple( id Nullable(String), namespace Tuple( code LowCardinality(Nullable(String)) ), ...
https://github.com/ClickHouse/ClickHouse/issues/33838
https://github.com/ClickHouse/ClickHouse/pull/33956
2c85373966055351fdafe4b52440ea551844031d
cd2305eb57d02a0ef17a2ce0f39d905b83d8a080
2022-01-20T15:37:37Z
c++
2022-01-27T19:58:11Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,834
["tests/queries/0_stateless/02181_dictionary_attach_detach.reference", "tests/queries/0_stateless/02181_dictionary_attach_detach.sql"]
dictionary table detached earlier, could not attach it now.
i tried to drop the dictionary table and detached the table. and now i could not attach it. i have shard the image of outputs. ![image (2)](https://user-images.githubusercontent.com/84307751/150354052-43fcde20-b7ba-4b09-b1ac-c48924551ffe.png)
https://github.com/ClickHouse/ClickHouse/issues/33834
https://github.com/ClickHouse/ClickHouse/pull/33870
e9c46b51f1b510f8f41b9119df75791caa2ab9b4
1b5a67517bd520a0bbd2e39e51de71e32798e747
2022-01-20T14:09:22Z
c++
2022-01-21T19:17:04Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,820
["src/Dictionaries/CacheDictionary.cpp", "src/Dictionaries/FlatDictionary.cpp", "src/Dictionaries/FlatDictionary.h", "src/Dictionaries/HashedArrayDictionary.cpp", "src/Dictionaries/HashedDictionary.cpp", "src/Dictionaries/HashedDictionary.h", "src/Dictionaries/RangeHashedDictionary.cpp", "src/Dictionaries/RangeHashedDi...
Server crash when accessing a dictionary without attributes
When creating a dictionary without attributes in the database with the Ordinary engine and querying the dictionary, the clickhouse server crashes ``` SELECT version() ┌─version()──┐ │ 21.12.3.32 │ └────────────┘ CREATE DATABASE test ENGINE = Ordinary; CREATE TABLE test.dict_src_test ( `StartDate` D...
https://github.com/ClickHouse/ClickHouse/issues/33820
https://github.com/ClickHouse/ClickHouse/pull/33918
edc8568b2f186b5a77114619a0898349cede2e92
2d84d5f74d4f932999ad2900f2a2c219b3995b81
2022-01-20T08:32:42Z
c++
2022-01-22T23:56:10Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,806
["src/Interpreters/InterpreterSystemQuery.cpp", "src/Storages/StorageReplicatedMergeTree.cpp", "src/Storages/StorageReplicatedMergeTree.h"]
RESTORE REPLICA fails with "It's a bug: replica is not readonly"
Under some circumstances, an attempt to `RESTORE REPLICA` will fail with the log message `It's a bug: replica is not readonly` even though the table shows as `read_only` in the `system.replicas` table. **Expected behavior** The expected behavior is that RESTORE REPLICA will either execute as expected if the tabl...
https://github.com/ClickHouse/ClickHouse/issues/33806
https://github.com/ClickHouse/ClickHouse/pull/33847
caa9cc499293cdedfefe70b67b9d50b0dc0591e7
da9a38655b3f99a5d5e78b4008d7f65905e77a10
2022-01-20T01:04:45Z
c++
2022-01-24T10:28:37Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,798
["src/Interpreters/RewriteFunctionToSubcolumnVisitor.cpp", "tests/queries/0_stateless/02232_functions_to_subcolumns_alias.reference", "tests/queries/0_stateless/02232_functions_to_subcolumns_alias.sql"]
optimize_functions_to_subcolumns count(null_column) doesn't use alias for column name
**Describe what's wrong** In case of using `optimize_functions_to_subcolumns` ClickHouse doesn't use alias for column name. **How to reproduce** ClickHouse 21.13 ``` CREATE TABLE test ( `key` UInt32, `value` Nullable(UInt32) ) ENGINE = MergeTree ORDER BY key INSERT INTO test SELECT nu...
https://github.com/ClickHouse/ClickHouse/issues/33798
https://github.com/ClickHouse/ClickHouse/pull/35079
733789da1fea0e23e1f129194882d1f746301694
5f8900cee6ebbbf409eccc9c729d1819ddb659b0
2022-01-19T17:50:30Z
c++
2022-03-11T10:55:49Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,768
["src/Interpreters/SystemLog.cpp", "tests/integration/test_system_logs_comment/__init__.py", "tests/integration/test_system_logs_comment/test.py"]
clickhouse server can not start up when set comment for query_log
**Describe the unexpected behaviour** clickhouse server(22.1.1.2542) can not start up when set comment for query_log **How to reproduce** add comment for query_log in config.xml ``` <query_log> <database>system</database> <table>query_log</table> <engine>ENGINE = MergeTree PARTITION BY (event_dat...
https://github.com/ClickHouse/ClickHouse/issues/33768
https://github.com/ClickHouse/ClickHouse/pull/34536
944111183330f3e5941ce3760bca6473ff0e14c5
da235f9cda6eca4081658032ba62fc4c8aced11a
2022-01-19T07:16:32Z
c++
2022-03-23T14:06:05Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,746
["src/Dictionaries/ExternalQueryBuilder.cpp", "tests/integration/test_dictionaries_update_field/test.py"]
{condition} placeholder does not work for external dictionaries with custom query and `update_field`
Use of custom query/placeholder for external dictionaries. The `placeholder` is similar to `update_field` Current implementation supports only simple table field like `SOURCE(CLICKHOUSE(... update_field 'added_time' update_lag 15))` but miss support for complex/compound expressions (that for example could use in...
https://github.com/ClickHouse/ClickHouse/issues/33746
https://github.com/ClickHouse/ClickHouse/pull/37947
3b344a3d263d367b0420912f92584e9c8afe6a2a
aa5293da5df10f0703ef04912158bf7e087f658f
2022-01-18T17:54:16Z
c++
2022-06-09T14:31:07Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,734
["tests/queries/0_stateless/02154_dictionary_get_http_json.reference", "tests/queries/0_stateless/02154_dictionary_get_http_json.sh"]
Http query get dictionary in JSON format
**Describe what's wrong** Clickhouse server crashes when sending http request for dictionary with json return format. **Does it reproduce on recent release?** version: 21.11.5.33 In version: 21.10.5.3 the problem is not reproducing. **How to reproduce** ``` CREATE DICTIONARY geo_city_en ( `geon...
https://github.com/ClickHouse/ClickHouse/issues/33734
https://github.com/ClickHouse/ClickHouse/pull/34454
4ec8da73c4446e4f94bd6c3428608fe793cd1a25
e0dfc9cd3888d50e49913cf11cee2286dcdcbfe5
2022-01-18T10:19:56Z
c++
2022-02-09T16:21:03Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,603
["src/Interpreters/RewriteSumIfFunctionVisitor.cpp", "tests/queries/0_stateless/02177_sum_if_not_found.reference", "tests/queries/0_stateless/02177_sum_if_not_found.sql"]
DB::Exception: Unknown function sumIF: While processing t, sumIF(n, 0)
```sql SELECT sumIF(1, 0) Query id: 3a3db9bd-b0ad-4d2f-bd8b-39daeda0546c ┌─countIf(0)─┐ │ 0 │ └────────────┘ 1 rows in set. Elapsed: 0.244 sec. ``` is OK. ```sql CREATE TABLE agg ENGINE = AggregatingMergeTree ORDER BY tuple() AS SELECT t, sumIF(n, 0) FROM data GROUP BY t Qu...
https://github.com/ClickHouse/ClickHouse/issues/33603
https://github.com/ClickHouse/ClickHouse/pull/33677
539b4f9b23de17837f05ab248f098c5b685c8e10
d7a63dfda6b4d364a2d60429fb669bcac1c8dd1f
2022-01-13T14:34:27Z
c++
2022-01-22T14:12:13Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,592
["tests/queries/0_stateless/02176_toStartOfWeek_overflow_pruning.reference", "tests/queries/0_stateless/02176_toStartOfWeek_overflow_pruning.sql"]
Wrong result for query with minimal timestamp 1970-01-01 00:00:00
During evaluation if `v21.12.3.32` is compatible with our current used release `v20.12.8.2` we observed that some queries does not return the expected rows anymore. **Version** ``` SELECT version() ┌─version()──┐ │ 21.12.3.32 │ └────────────┘ ``` **How to reproduce** ``` CREATE TABLE Test.A ( ...
https://github.com/ClickHouse/ClickHouse/issues/33592
https://github.com/ClickHouse/ClickHouse/pull/33658
8aed06c9227e3815d8793415ff2c815e14fd2f14
998b330507261606eb8bf4c95006d3463f3dd4bc
2022-01-13T11:18:47Z
c++
2022-01-15T13:31:21Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,536
["src/Processors/Formats/Impl/NativeFormat.cpp", "tests/queries/0_stateless/02187_async_inserts_all_formats.python", "tests/queries/0_stateless/02187_async_inserts_all_formats.reference", "tests/queries/0_stateless/02187_async_inserts_all_formats.sh", "tests/queries/0_stateless/helpers/pure_http_client.py"]
INSERT INTO FORMAT Native with async_insert=1 appears to succeed, but does nothing
I am trying to move to `async_insert` to avoid having a batching component merge many small inserts (the exact use case of `async_insert`). It works as intended over the HTTP protocol using both row-based input formats (CSV, TSV) and the column-based Parquet format (for testing, I generate Parquet data by piping CSV th...
https://github.com/ClickHouse/ClickHouse/issues/33536
https://github.com/ClickHouse/ClickHouse/pull/34068
379f8d3d7e531840503456c84cf000c14df578b0
b950a12cb3d688453e9c916e2bb6f6e43ddd0013
2022-01-11T21:38:46Z
c++
2022-01-28T22:24:53Z
closed
ClickHouse/ClickHouse
https://github.com/ClickHouse/ClickHouse
33,390
["docs/en/sql-reference/functions/array-functions.md", "src/Functions/array/arrayFirst.cpp", "tests/queries/0_stateless/02161_array_first_last.reference", "tests/queries/0_stateless/02161_array_first_last.sql"]
Add arrayLast function (same as arrayFirst, but get the last element instead of the first)
Currently we need to write smth like `select arrayFilter(...)[-1]` to get the last element. At the same time, we have `arrayFirst` function for the first element of array. I think clickhouse community need analogy of function arrayFirst, but for last element. My proposal is arrayLast function: ``` select ra...
https://github.com/ClickHouse/ClickHouse/issues/33390
https://github.com/ClickHouse/ClickHouse/pull/33415
6a89ca58e37f07d8cb70d7906c12a3e0681ca770
140d64f7854fdf688bd8720dea8947ee1df71d2a
2022-01-04T12:38:57Z
c++
2022-01-07T17:37:06Z