Commit Graph

115289 Commits

Author SHA1 Message Date
AVMusorin
418a61a68c
Allow using Alias column type for KafkaEngine
```
create table kafka
(
 a UInt32,
 a_str String Alias toString(a)
) engine = Kafka;

create table data
(
  a UInt32;
  a_str String
) engine = MergeTree
order by tuple();

create materialized view data_mv to data
(
  a UInt32,
  a_str String
) as
select a, a_str from kafka;
```
Alias type works as expected in comparison with MATERIALIZED/EPHEMERAL
or column with default expression.

Ref: https://github.com/ClickHouse/ClickHouse/pull/47138

Co-authored-by: Azat Khuzhin <a3at.mail@gmail.com>
2023-05-15 15:39:58 +02:00
Sema Checherinda
dccdb3e678 work with comments on PR 2023-05-15 14:41:51 +02:00
Arthur Passos
e8f971aa2b use LIMIT_EXCEEDED instead of TOO_LARGE_MAP_SIZE 2023-05-15 09:25:10 -03:00
Azat Khuzhin
424a20ee1c Log with warning if the server was terminated forcefully
In case of it is terminated forcefully it will not be terminated
gracefully (i.e. run dtors and stuff), and by using warning log level
those messages will go to clickhouse-server.err.log, in which messages
are kept for a longer period then in clickhouse-server.log (at least
because it contains only warnings, errors and fatals only).

This will help with investigating some obscure issues.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-15 14:20:42 +02:00
Arthur Passos
c16cba48b1 remove old / debug comment in tests 2023-05-15 13:52:47 +02:00
Arthur Passos
fff0cf28b7 address pr comments 2023-05-15 13:52:47 +02:00
Arthur Passos
b06e34a77f Accept key value delimiter as part of value 2023-05-15 13:52:47 +02:00
Azat Khuzhin
665545ec45 Fix "reference to local binding" after fixes for clang-17
Follow-up for: #49851 (cc @alexey-milovidov)
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-15 12:45:20 +02:00
Alexander Tokmakov
25912a2673
Merge pull request #49876 from JackyWoo/fix_typo
fix typo
2023-05-15 13:32:58 +03:00
Kruglov Pavel
558eda4146
Merge pull request #49412 from azat/block-use-dense-hash-map
Switch Block::NameMap to google::dense_hash_map over HashMap
2023-05-15 12:22:55 +02:00
Alexander Gololobov
5aff9001bd
Merge pull request #49834 from ClickHouse/randomize_enable_multiple_prewhere_read_steps
Randomize enable_multiple_prewhere_read_steps setting
2023-05-15 12:08:49 +02:00
JackyWoo
8d1bcb5c2f fix typo 2023-05-15 16:51:20 +08:00
Diego Nieto
52fdc49ef3
Merge branch 'master' into master 2023-05-15 10:28:31 +02:00
Amos Bird
4764259f60
Fix a bug with projections and the aggregate_functions_null_for_empty
setting (for query_plan_optimize_projection)

Fix a bug with projections and the aggregate_functions_null_for_empty
setting. This was already fixed in PR #42198 but got forgotten after
using query_plan_optimize_projection.
2023-05-15 14:17:16 +08:00
Alexey Milovidov
8b630f90c4
Merge pull request #49867 from ClickHouse/bitcount-big-int
Add support for big integers in function `bitCount`
2023-05-15 07:43:40 +03:00
Alexey Milovidov
1db35384d9 Support bitCount for big integers 2023-05-15 03:30:03 +02:00
alekar
528e68bfc4
Merge branch 'master' into fix-osx-setsockopt-errors 2023-05-14 15:35:55 -07:00
robot-clickhouse
bec4edad65
Merge pull request #49856 from darkkeks/fix-date-time-functions-toc
[docs] Remove "example" section from date-time-functions page toc
2023-05-14 23:43:00 +02:00
Sergei Trifonov
8f20085d9a
Merge pull request #48923 from ClickHouse/async-loader
Add AsyncLoader with dependency tracking and runtime prioritization
2023-05-14 15:12:39 +02:00
Alexey Milovidov
be41ef82c3
Merge pull request #49828 from aiven-sal/aiven-sal/testontmpfs
Make 01533_multiple_nested test more reliable
2023-05-14 12:13:33 +03:00
robot-clickhouse
33ca77b4ca
Merge pull request #49843 from azat/joinGet-non-deterministic
[RFC] Mark joinGet() as non deterministic (so as dictGet)
2023-05-14 11:12:12 +02:00
alekar
2631d3db20
Merge branch 'master' into fix-osx-setsockopt-errors 2023-05-13 23:03:17 -07:00
Manas Alekar
c87b33a24d Fix error on OS X regarding resetting timeouts.
This happens when remote disconnects due to inactivity. It seems
to work on Linux, likely due to difference in SO_LINGER, maybe a
different default timeout on Darwin.

Verified manually using clickhouse cloud using following process:

1. Connect to instance.
2. Run `show tables`.
3. Wait 6 minutes.
4. Run `show tables`.

With this fix, the EINVAL is not reported, and client will simply
reconnect.
2023-05-13 22:55:27 -07:00
Alexey Milovidov
4f7bcf01f6
Merge pull request #49858 from ucasfl/bit-hamming
bitHammingDistance support String and FixedString data type
2023-05-14 08:28:01 +03:00
Alexey Milovidov
caee95b89b
Merge pull request #49851 from ClickHouse/clang-17
Fixes for clang-17
2023-05-14 08:24:26 +03:00
Alexey Milovidov
8d057e0f39 Merge branch 'clang-17' of github.com:ClickHouse/ClickHouse into clang-17 2023-05-14 02:52:41 +02:00
Alexey Milovidov
b4b5b4dcc5 Amend 2023-05-14 02:52:23 +02:00
Alexey Milovidov
0ca36d4f89 Merge branch 'master' into clang-17 2023-05-14 01:57:40 +02:00
Alexey Milovidov
016bf9516a
Merge branch 'master' into aiven-sal/testontmpfs 2023-05-14 02:56:55 +03:00
Ilya Golshtein
47e7e7e60a row_policy_template - test for asterisk table in a dedicated file 2023-05-13 22:33:28 +00:00
Ilya Golshtein
ad8e114bcf row_policy_template - row policies not in query log if analyzer used 2023-05-13 22:33:11 +00:00
Ilya Golshtein
ccd82842a0 row_policy_template - rollback tweaking found policy for database 2023-05-13 22:30:02 +00:00
Ilya Golshtein
9ef610040f row_policy_template - table * is respected 2023-05-13 22:30:02 +00:00
Ilya Golshtein
1027db6aca row_policy_template - minor change, reference test file fix 2023-05-13 22:30:02 +00:00
Ilya Golshtein
9685aa0c91 row_policy_template - minor changes, test renamed 2023-05-13 22:30:02 +00:00
Ilya Golshtein
d54a62e8e9 row_policy_template - forgotten reference test file 2023-05-13 22:30:02 +00:00
Ilya Golshtein
6852ae0d93 row_policy_template - external code review changes 2023-05-13 22:30:02 +00:00
Ilya Golshtein
2ed8e318cf row policy template - tests renumbered to keep monotony 2023-05-13 22:30:02 +00:00
Ilya Golshtein
28c6d4fb63 row policy template - rollback old test to make stylecheck happy 2023-05-13 22:30:02 +00:00
Ilya Golshtein
7fa6ea4ccc row policy template: tests and code cleanup, code review changes 2023-05-13 22:30:02 +00:00
Ilya Golshtein
f0d21a9100 row policy template: initial, works, restrictive rules fix 2023-05-13 22:30:02 +00:00
Nikolay Degterinsky
a2e7c77fe2
Merge pull request #49860 from ucasfl/doc
update doc
2023-05-13 23:26:40 +02:00
Robert Schulze
d8da94d4da
Merge pull request #49861 from rschu1ze/clang-tidy-follow-up
Follow-up for clang-tidy
2023-05-13 22:32:58 +02:00
Robert Schulze
804276ffe6
readability-identifier-names: adjust invalid options
The check is disabled, anyways ...
- remove UsingCase (it is probably subsumed by TypedefCase)
- rename TemplateCase to TemplateParameterCase
2023-05-13 20:28:55 +00:00
Robert Schulze
14d831e3bf
zirkon --> zircon 2023-05-13 20:18:24 +00:00
flynn
f775a466f7 update doc 2023-05-13 16:12:51 +00:00
Robert Schulze
212aef3dc2
Merge pull request #49859 from rschu1ze/clang-tidy-update
Small-ish .clang-tidy update
2023-05-13 17:32:09 +02:00
Robert Schulze
7e0bf3b8b2
Small-ish .clang-tidy update 2023-05-13 15:29:45 +00:00
flynn
2f88605c3d remove space
format
2023-05-13 14:03:21 +00:00
flynn
2ffd00df8a bitHammingDistance support String and FixedString data type 2023-05-13 13:56:36 +00:00