Commit Graph

89933 Commits

Author SHA1 Message Date
HeenaBansal2009
a061acadbe Remove std::move from trivially-copyable object 2022-05-27 11:04:29 -07:00
Alexey Milovidov
bf1ad458da Merge branch 'master' into time-zone-in-stateless-tests 2022-05-27 19:38:13 +02:00
mergify[bot]
f5ee337bab
Merge branch 'master' into revert-37545-revert-37424-fix_fetching_part_deadlock 2022-05-27 16:52:00 +00:00
mergify[bot]
923ad2e905
Merge branch 'master' into turn_on_s3_tests 2022-05-27 16:31:43 +00:00
alesapin
f63fa9bcc6
Merge pull request #37416 from Enmk/fix_ReplicatedMergeTree_comments
Implemented changing comment to a ReplicatedMergeTree table
2022-05-27 18:29:34 +02:00
Alexander Gololobov
9b1b30855c Fixed check for HUGE_VAL 2022-05-27 18:25:11 +02:00
Alexander Gololobov
6361c5f38c Fix for failed style check 2022-05-27 18:22:16 +02:00
alesapin
5f10c6e889
Merge pull request #37599 from ClickHouse/keeper-jepsen-ci-imporvements
Use Jepsen worklow directly in PR workflow
2022-05-27 18:01:13 +02:00
Kseniia Sumarokova
8099361cbc
Update FileCache.cpp 2022-05-27 17:48:14 +02:00
alesapin
0f5032c737
Merge pull request #37527 from ClickHouse/build-report
Add failed builds to the build report
2022-05-27 17:45:25 +02:00
Alexander Gololobov
540353566c Added LpNorm and LpDistance functions for arrays 2022-05-27 17:17:08 +02:00
Azat Khuzhin
8a224239c1 Prohibit optimize_aggregation_in_order with GROUPING SETS
AggregatingStep ignores it anyway, and it leads to the following error
in getSortDescriptionFromGroupBy(), like in [1]:

    2022.05.24 04:29:29.279431 [ 3395 ] {26543564-8bc8-4a3a-b984-70a2adf0245d} <Fatal> : Logical error: 'Trying to get name of not a column: ExpressionList'.

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/36914/67d3ac72d26ab74d69f03c03422349d4faae9e19/stateless_tests__ubsan__actions_.html

v2: revert change to getSortDescriptionFromGroupBy() after
    GroupingSetsRewriterVisitor had been introduced
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-27 17:44:57 +03:00
Azat Khuzhin
1f29b0a901 Rewrite queries GROUPING SETS (foo, bar) to GROUP BY foo, bar
This is better then introducing separate
SelectQueryExpressionAnalyzer::useGroupingSetKey(), since for
optimize_aggregation_in_order that method will not be enough, because
size of ManyExpressionActions will not match size of SortDescription, in
ReadInOrderOptimizer::ReadInOrderOptimizer()

And plus it is cleaner.

v2: fix clang-tidy
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-27 17:44:51 +03:00
Azat Khuzhin
2fb735ffc1 tests: add echo for 01883_grouping_sets_crash
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-27 17:44:50 +03:00
alesapin
5a296aec01 Fix build 2022-05-27 16:34:16 +02:00
Antonio Andelic
2ca5b7812d Ignore reusable workflow error 2022-05-27 14:15:34 +00:00
alesapin
be1c3c132b Fix some trash 2022-05-27 16:08:49 +02:00
Antonio Andelic
30f2c9ad58 Polish workflow 2022-05-27 13:54:53 +00:00
Antonio Andelic
fc3d39629e Temporarly remove dependancy on FastTest 2022-05-27 12:48:11 +00:00
Antonio Andelic
f8762667b0 Use jepsen CI directly in PR workflow 2022-05-27 12:47:40 +00:00
Anton Popov
abc90fad8d fix WITH FILL with negative itervals 2022-05-27 12:42:51 +00:00
alesapin
32167cb6fb Turn on s3 tests 2022-05-27 14:36:12 +02:00
Azat Khuzhin
735d2dfebd tests: fix 01317_no_password_in_command_line flakiness (and make it race free)
Before it was possible not to check if the query was gone already, also
it checks all processes not only the process of the client for the
possible password.

v2: make it parallel aware
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-27 15:27:48 +03:00
Anton Popov
d68c30a92e fix tests 2022-05-27 12:27:25 +00:00
alesapin
e5d7eeb5f9 Merge branch 'master' into turn_on_s3_tests 2022-05-27 14:27:24 +02:00
alesapin
6d6779f17a
Merge pull request #37139 from ClickHouse/i_object_storage
Separate object storage operations from disks
2022-05-27 13:59:50 +02:00
alesapin
c79600c4c8 Fix build 2022-05-27 13:44:29 +02:00
alesapin
461bb42fb8 Fix flaky test 2022-05-27 13:40:07 +02:00
alesapin
841858ec30
Revert "Revert "(only with zero-copy replication, non-production experimental feature not recommended to use) fix possible deadlock during fetching part"" 2022-05-27 13:13:36 +02:00
Azat Khuzhin
2613149f6b Fix converting types for UNION queries (may produce LOGICAL_ERROR)
CI founds [1]:

    2022.02.20 15:14:23.969247 [ 492 ] {} <Fatal> BaseDaemon: (version 22.3.1.1, build id: 6082C357CFA6FF99) (from thread 472) (query_id: a5187ff9-962a-4e7c-86f6-8d48850a47d6) (query: SELECT 0., round(avgWeighted(x, y)) FROM (SELECT toDate(toDate('214748364.8', '-922337203.6854775808', '-0.1', NULL) - NULL, 10.000100135803223, '-2147483647'), 255 AS x, -2147483647 AS y UNION ALL SELECT y, NULL AS x, 2147483646 AS y)) Received signal Aborted (6)

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/0/26d0e5438c86e52a145aaaf4cb523c399989a878/fuzzer_astfuzzerdebug,actions//report.html

The problem is that subqueries returns different headers:
- first query  -- x, y
- second query -- y, x

v2: Make order of columns strict only for UNION
    https://s3.amazonaws.com/clickhouse-test-reports/34775/9cc8c01a463d18c471853568b2f0af659a4e643f/stateless_tests__address__actions__[2/2].html
    Fixes: 00597_push_down_predicate_long
v3: add no-backward-compatibility-check for the test
Fixes: #37569
Resubmit: #34775
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
(cherry picked from commit a813f5996e)
2022-05-27 14:11:57 +03:00
Kseniia Sumarokova
141334448e
Merge pull request #37566 from kssenii/fix-assertion
Fix failed assertion in cache
2022-05-27 11:59:03 +02:00
Kseniia Sumarokova
2943d44bf1
Merge pull request #37554 from msaf1980/cleanup_hdfs
Cleanup StorageHDFS (unused variables prevent build with clang 12)
2022-05-27 11:57:18 +02:00
Kseniia Sumarokova
f5d69506b4
Merge pull request #37516 from KinderRiven/improve_local_cache
Control cache downloads to avoid negative optimization of local caches
2022-05-27 11:53:17 +02:00
Dmitry Novik
96ca23acd5
Merge pull request #37582 from ClickHouse/revert-34775-union-type-cast
Revert "RFC: Fix converting types for UNION queries (may produce LOGICAL_ERROR)"
2022-05-27 04:09:20 +02:00
Alexey Milovidov
393846e1ee Fix test 2022-05-27 04:08:04 +02:00
Dmitry Novik
3a9239b79f
Revert "RFC: Fix converting types for UNION queries (may produce LOGICAL_ERROR)" 2022-05-27 04:05:32 +02:00
Alexey Milovidov
faa519300e Fix more tests 2022-05-27 02:20:16 +02:00
Alexey Milovidov
d71780d34c Fix some tests 2022-05-27 02:18:38 +02:00
Alexey Milovidov
af4885d359 Merge branch 'time-zone-in-stateless-tests' of github.com:ClickHouse/ClickHouse into time-zone-in-stateless-tests 2022-05-27 02:04:23 +02:00
Alexey Milovidov
69a1a0c6d7
Merge branch 'master' into time-zone-in-stateless-tests 2022-05-27 03:04:42 +03:00
Alexey Milovidov
e1a76e51fb
Merge pull request #37575 from ClickHouse/security-generator
Add security generator
2022-05-27 02:22:33 +03:00
Alexey Milovidov
ce777ac1b5
Merge pull request #37579 from ClickHouse/remove-useless-files-3
Remove useless files
2022-05-27 02:21:51 +03:00
Alexey Milovidov
48ec7ceddb Remove useless files 2022-05-27 00:39:16 +02:00
Alexey Milovidov
8ba865bb60
Merge pull request #37344 from excitoon-favorites/fixs3colonandequalssign
Fixed error with symbols in key name in S3
2022-05-27 00:58:35 +03:00
Alexey Milovidov
86afa3a245
Merge pull request #37502 from ClickHouse/array_norm_dist_fixes
Renamed arrayXXNorm/arrayXXDistance functions to XXNorm/XXDistance and fixed some overflow cases
2022-05-27 00:56:29 +03:00
Alexey Milovidov
aeacfa0d7e Readability 2022-05-26 22:23:37 +02:00
Alexey Milovidov
434d8729de Readability 2022-05-26 22:22:14 +02:00
Alexey Milovidov
359e36f421 Readability 2022-05-26 22:21:49 +02:00
Alexey Milovidov
3074be8d17 Add security generator 2022-05-26 22:19:15 +02:00
Alexander Gololobov
e655863d53
Merge pull request #37528 from kitaisreal/normalize-utf8-performance-tests-fix
Functions normalizeUTF8 unstable performance tests fix
2022-05-26 20:49:10 +02:00