Maksim Kita
fe3eda4c2b
Added SumIfToCountIfPass
2022-10-24 10:22:37 +02:00
Maksim Kita
43ec5c830c
Added FunctionToSubcolumnsPass
2022-10-24 10:22:37 +02:00
Maksim Kita
98eba24a34
Fix LIMIT when query has WITH TOTALS
2022-10-24 10:22:37 +02:00
Maksim Kita
f4e59b217f
Added RBAC support
2022-10-24 10:22:37 +02:00
Maksim Kita
b50e2ce470
Added SETTINGS support
2022-10-24 10:22:37 +02:00
Maksim Kita
5a0298ea34
Fixed tests
2022-10-24 10:22:37 +02:00
Maksim Kita
da85af7e44
Added OrderByLimitByDuplicateEliminationPass
2022-10-24 10:22:37 +02:00
Maksim Kita
7851dfc324
Fixed tests
2022-10-24 10:22:37 +02:00
Maksim Kita
eba9607696
Analyzer move passes into separate folder
2022-10-24 10:22:37 +02:00
Maksim Kita
3a22e37691
Fix normalization of UNION inside DESCRIBE query
2022-10-24 10:22:37 +02:00
Maksim Kita
77ea9a11cd
Fixed code review issues
2022-10-24 10:22:21 +02:00
Maksim Kita
6ec5474466
Updated IQueryTreeNode interface with weak pointers array
2022-10-24 10:22:21 +02:00
Maksim Kita
2f282eeec9
Updated InDepthQueryTreeVisitor implementation
2022-10-24 10:22:21 +02:00
Maksim Kita
49a129008b
Fixed code review issues
2022-10-24 10:22:21 +02:00
Maksim Kita
239f1855aa
Updated projection names implementation
2022-10-24 10:22:21 +02:00
Maksim Kita
048e776c48
Fixed tests
2022-10-24 10:22:21 +02:00
Maksim Kita
400de59a37
Fixed style check
2022-10-24 10:22:21 +02:00
Maksim Kita
86896b76c5
Fix GROUP BY validation for subqueries
2022-10-24 10:22:21 +02:00
Maksim Kita
0892f485bb
Fix lambda tests
2022-10-24 10:22:21 +02:00
Maksim Kita
f2d801be2c
Added CustomizeFunctionsPass
2022-10-24 10:22:21 +02:00
Maksim Kita
b1471bdedf
Added CountDistinctPass
2022-10-24 10:22:21 +02:00
Maksim Kita
2aff015d29
Added NormalizeCountVariantsPass
2022-10-24 10:22:21 +02:00
Maksim Kita
54e2b6d28a
Added EXISTS support
2022-10-24 10:22:21 +02:00
Maksim Kita
f5ee7e0bee
Added IfChainToMultiIfPass
2022-10-24 10:22:21 +02:00
Maksim Kita
7c96c0afbd
Added OrderByTupleEliminationPass
2022-10-24 10:22:21 +02:00
Maksim Kita
11324aa4b4
Added IfConstantConditionPass
2022-10-24 10:22:21 +02:00
Maksim Kita
3d5b209861
Added support for dictGet, joinGet functions to handle identifier as first argument
2022-10-24 10:22:21 +02:00
Maksim Kita
7f26bcc275
Added unqualified matcher support for JOIN with USING
2022-10-24 10:22:21 +02:00
Maksim Kita
b7d0fd6bae
Added validation for subqueries and table functions in JOINs
2022-10-24 10:22:21 +02:00
Maksim Kita
d62bd792ac
Added positional arguments support
2022-10-24 10:22:21 +02:00
Maksim Kita
10438aea01
Added JOIN support for different algorithm
2022-10-24 10:22:21 +02:00
Maksim Kita
a0d9251f3a
Added ASOF join support
2022-10-24 10:22:21 +02:00
Maksim Kita
3782aed7a9
Separate planner expression analysis
2022-10-24 10:22:20 +02:00
Maksim Kita
8a39c3e1d5
Separate planner JOIN TREE processing
2022-10-24 10:22:20 +02:00
Maksim Kita
c7d51ca83d
Rename InterpolateColumnNode into InterpolateNode
2022-10-24 10:22:20 +02:00
Maksim Kita
2b2a70082e
Rename SortColumnNode into SortNode
2022-10-24 10:22:20 +02:00
Maksim Kita
fe84e871f8
Fixed build
2022-10-24 10:22:20 +02:00
Maksim Kita
8cadb1b318
Added WINDOW functions support
2022-10-24 10:22:20 +02:00
Maksim Kita
85ac02c9db
Planner improve action names
2022-10-24 10:22:20 +02:00
Maksim Kita
890d9678b9
Fixed tests
2022-10-24 10:22:20 +02:00
Maksim Kita
a06832508e
Fixed tests
2022-10-24 10:22:20 +02:00
Maksim Kita
4f68305dbe
Fixed tests
2022-10-24 10:22:20 +02:00
Maksim Kita
ca93ee7479
Fixed tests
2022-10-24 10:22:20 +02:00
Maksim Kita
fc860ec050
Planner collect table expression data
2022-10-24 10:22:20 +02:00
Maksim Kita
1844673aa8
Updated tests
2022-10-24 10:22:20 +02:00
Maksim Kita
fed146e198
Added SAMPLE BY support. Added SAMPLE BY, FINAL support for JOINS.
2022-10-24 10:22:20 +02:00
Maksim Kita
5128262129
Added GROUP BY with constant keys support
2022-10-24 10:22:20 +02:00
Maksim Kita
64c60718f8
Updated SORT COLUMN with fill
2022-10-24 10:22:20 +02:00
Maksim Kita
4110460bcd
Added LIMIT BY support
2022-10-24 10:22:20 +02:00
Maksim Kita
81e4c67f17
Added INTERPOLATE support
2022-10-24 10:22:20 +02:00
Maksim Kita
504cb2b38f
Added GROUPING function support
2022-10-24 10:22:20 +02:00
Maksim Kita
a5ce4d7823
Added GROUPING SETS support
2022-10-24 10:22:20 +02:00
Maksim Kita
63e48bd869
Added GROUP BY CUBE, ROLLUP, TOTALS support
2022-10-24 10:22:20 +02:00
Maksim Kita
216250824b
Added extremes support
2022-10-24 10:22:20 +02:00
Maksim Kita
80b77f4ccc
Added HAVING support
2022-10-24 10:22:20 +02:00
Maksim Kita
c087eff470
Perform GROUP BY and aggregates validation during analysis stage
2022-10-24 10:22:20 +02:00
Maksim Kita
ea44b4be5e
Added subquery_depth support
2022-10-24 10:22:20 +02:00
Maksim Kita
2b571004f3
Added support for projection names
2022-10-24 10:22:19 +02:00
Maksim Kita
efc2433347
Added IN function Set table support
2022-10-24 10:22:19 +02:00
Maksim Kita
de1f470cfe
Planner simplified creation of sets for IN function
2022-10-24 10:22:19 +02:00
Maksim Kita
1cbf96d165
Added LIMIT, OFFSET support
2022-10-24 10:22:19 +02:00
Maksim Kita
ce9ea7ca0b
Fixed tests
2022-10-24 10:22:19 +02:00
Maksim Kita
6aa166f366
Added ORDER BY support
2022-10-24 10:22:19 +02:00
Maksim Kita
03864790ad
Added DISTINCT support
2022-10-24 10:22:19 +02:00
Maksim Kita
5c6d175028
Added GROUP BY support
2022-10-24 10:22:19 +02:00
Maksim Kita
2995fb7944
Added support for building sets for IN function
2022-10-24 10:22:19 +02:00
Maksim Kita
44ada63a97
Added Planner
2022-10-24 10:22:19 +02:00
Maksim Kita
85193ede42
Added UNION support
2022-10-24 10:22:19 +02:00
Maksim Kita
0da0019634
Added ARRAY JOIN support
2022-10-24 10:22:19 +02:00
Maksim Kita
89e5b09e7f
Updated JOIN tests
2022-10-24 10:22:19 +02:00
Maksim Kita
b32092f24a
JOIN support join_use_nulls, USING
2022-10-24 10:22:19 +02:00
Maksim Kita
40cb904a3d
Added support for JOIN, ARRAY JOIN
2022-10-24 10:22:19 +02:00
Maksim Kita
1717d16fa4
Improved lambda matcher support
2022-10-24 10:22:19 +02:00
Maksim Kita
062e17052f
Added support for IN function
2022-10-24 10:22:19 +02:00
Maksim Kita
2148d0e58d
Added support for arrayJoin function
2022-10-24 10:22:19 +02:00
Maksim Kita
a9e1f74696
Added support for grouping function
2022-10-24 10:22:19 +02:00
Maksim Kita
635bd44413
Added support for table functions
2022-10-24 10:22:18 +02:00
Maksim Kita
569fb36097
Added support for table ALIAS columns
2022-10-24 10:22:18 +02:00
Maksim Kita
603c4febc3
Update explain query tree representation
2022-10-24 10:22:18 +02:00
Maksim Kita
dd28b58864
Added support for subqueries
2022-10-24 10:22:18 +02:00
Maksim Kita
6a5276e45e
Updated tests
2022-10-24 10:22:18 +02:00
Maksim Kita
2d61c45f94
Added support for multiple expressions with same alias
2022-10-24 10:22:18 +02:00
Maksim Kita
d835f70fdc
Added support for STRICT column transformers
2022-10-24 10:22:18 +02:00
Maksim Kita
9d4c508b39
Added lambda tests
2022-10-24 10:22:18 +02:00
Maksim Kita
75885ce2e1
Added Analyzer
2022-10-24 10:22:18 +02:00
Alexey Milovidov
f84ed91d10
Merge pull request #42598 from ClickHouse/evillique-patch-1
...
Fix possible segfault in expression parser
2022-10-24 09:26:42 +02:00
Antonio Andelic
e363e27eef
Merge pull request #42532 from ClickHouse/fix-data-race
...
Fix `KeeperTCPHandler` data race
2022-10-24 09:14:34 +02:00
Robert Schulze
c119cd2f00
Merge branch 'master' into update-libcxx-to-15
2022-10-24 08:29:37 +02:00
Azat Khuzhin
27494aea63
Make getResource() independent from the order of the sections
...
It is possible for end section goes before begin section for some
resource, and this case it will not find it.
This is what happens here [1]:
[1]: https://s3.amazonaws.com/clickhouse-test-reports/41988/053fec3f451e97ac41b6c223d95013b758a9a330/fast_test.html
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-24 07:10:45 +02:00
xiedeyantu
61563d4f19
better
2022-10-24 11:52:20 +08:00
Nikolay Degterinsky
6242e93c81
Fixes & better tests
2022-10-24 02:11:08 +00:00
Anton Popov
cf375c9732
better interface
2022-10-23 22:29:24 +00:00
Han Fei
4a8326ff0c
fix typo
2022-10-23 23:22:52 +02:00
Nikolay Degterinsky
dd98608b78
Fix segfault in expression parser
2022-10-23 19:49:00 +02:00
Anton Popov
b40d9200d2
better semantic of constsness of DataPartStorage
2022-10-23 15:24:20 +00:00
Igor Nikonov
c0d1be9cab
Merge pull request #42560 from ClickHouse/igor/replicated_merge_tree_some_polishing
...
Some polishing: replicated merge tree
2022-10-23 15:15:24 +02:00
Azat Khuzhin
bcc8d9f9d9
Merge remote-tracking branch 'upstream/master' into build/shorten-64-to-32
...
* upstream/master:
Fix strange code in date monotonicity
Add a test
Fix error
Add tests
Remove trash
2022-10-23 07:45:10 +02:00
Azat Khuzhin
f18ac40be5
Fix clang-tidy cert-dcl58-cpp in gtest_DecimalFunctions
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-23 07:44:37 +02:00
Quanfa Fu
b07f65343d
Add functions: domainRFC, topLevelDomainRFC, domainWithoutWWWRFC...
2022-10-23 12:01:26 +08:00
Alexey Milovidov
8eb751fbe5
Fix error
2022-10-23 05:28:28 +02:00
Alexey Milovidov
c386898268
Fix error
2022-10-23 04:46:07 +02:00
Anton Popov
56e5daba0c
remove DataPartStorageBuilder
2022-10-23 00:23:15 +00:00
Alexey Milovidov
409fb28d0c
Fix build
2022-10-23 01:52:30 +02:00
Alexey Milovidov
cd43595ea9
Merge branch 'master' into write-progress-to-tty
2022-10-23 01:41:17 +02:00
Alexey Milovidov
ebf330ca1a
Merge pull request #42573 from ClickHouse/remove-trash-6
...
Remove trash
2022-10-23 01:31:10 +02:00
Alexey Milovidov
6c69bdd34d
Merge pull request #42574 from ClickHouse/strange-date-monotonicity
...
Fix strange code in date monotonicity
2022-10-23 01:30:52 +02:00
Azat Khuzhin
3e5a90478e
Fix clang-tidy issue in gtest_DecimalFunctions
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-22 23:32:27 +02:00
Azat Khuzhin
a63dee2763
Merge remote-tracking branch 'upstream/master' into build/shorten-64-to-32
2022-10-22 23:32:15 +02:00
Igor Nikonov
730a3ba849
Merge branch 'master' into igor/replicated_merge_tree_some_polishing
2022-10-22 19:54:09 +02:00
Han Fei
2fc91fd338
fix behaviour of max_rows_to_read for trival limit queries
2022-10-22 18:27:24 +02:00
flynn
cd7a48215c
Fix create set with wrong header when data type is lowcardinality
2022-10-22 16:17:05 +00:00
Robert Schulze
b746224217
Merge pull request #42554 from arenadata/ADQM-604
...
Add support of Date32 arguments for dateName function
2022-10-22 17:20:10 +02:00
Azat Khuzhin
56bc85746f
Merge remote-tracking branch 'upstream/master' into build/shorten-64-to-32
...
Conflicts:
- src/Interpreters/ProcessList.cpp
2022-10-22 16:49:08 +02:00
JackyWoo
39c88c74e8
check whether last manually created snapshot is done
2022-10-22 22:31:17 +08:00
Nikolai Kochetov
06d46ca51b
Clear thread::id when ThreadFromGlobalPool exits.
2022-10-22 13:28:22 +00:00
Nikolai Kochetov
5c32cd157d
Merge pull request #42362 from ClickHouse/fix-race-condition-finish-cancel
...
Fix data race in query finish/cancel
2022-10-22 14:58:42 +02:00
Azat Khuzhin
e3e30a4457
Fix one clang-tidy issue
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-22 13:26:58 +02:00
JackyWoo
bf291790b7
Merge branch 'master' into manual_snapshot_for_keeper
2022-10-22 16:57:50 +08:00
Amos Bird
f104dd08cd
Only fix LowCardinality for now
2022-10-22 15:47:13 +08:00
Alexey Milovidov
7bf1f4cdfa
Fix strange code in date monotonicity
2022-10-22 09:02:20 +02:00
Azat Khuzhin
dbb4f8216f
Merge remote-tracking branch 'upstream/master' into build/shorten-64-to-32
...
Conflicts:
- src/Functions/GregorianDate.h
2022-10-22 08:20:05 +02:00
Alexey Milovidov
7fc3cd7fb0
Fix error
2022-10-22 07:38:22 +02:00
Alexey Milovidov
ef4b2b3f59
Remove trash
2022-10-22 07:25:37 +02:00
Nikolay Degterinsky
3f37636654
Merge branch 'master' into tuple-of-intervals
2022-10-22 02:44:35 +00:00
Alexey Milovidov
5fd7409ce1
Merge branch 'master' into morton_coding
2022-10-22 04:39:13 +02:00
Alexey Milovidov
acc96a5ace
Merge pull request #42464 from ClickHouse/julian_day_ubsan
...
Fix UBSan report in Julian Day functions
2022-10-22 04:15:12 +02:00
Nikolai Kochetov
80867cb1fe
Add more trash.
2022-10-21 22:19:06 +00:00
Azat Khuzhin
4eeb7337ed
Merge remote-tracking branch 'upstream/master' into build/shorten-64-to-32
...
Conflicts:
- src/Common/intExp.h
- src/Functions/DateTimeTransforms.h
- src/Functions/FunctionsConversion.h
2022-10-21 22:51:56 +02:00
Azat Khuzhin
bbcdedb945
Revert changes of hash functions signatures and fix callers
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 22:40:17 +02:00
Azat Khuzhin
905a95e166
Review fixes
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 22:40:13 +02:00
Alexey Milovidov
592fbb3eaf
Merge pull request #42367 from ClickHouse/revert-40217
...
Revert #40217
2022-10-21 21:56:15 +02:00
Alexey Milovidov
3beace607b
Merge pull request #42465 from ClickHouse/decimal-asan
...
Fix buffer overflow in Decimal scale
2022-10-21 21:55:20 +02:00
Arthur Passos
615b73773a
removing unwanted files
2022-10-21 14:46:10 -03:00
Arthur Passos
e2fcd51c93
what
2022-10-21 14:43:08 -03:00
Kseniia Sumarokova
c0889e5832
Merge pull request #42418 from KinderRiven/max_cache_download_limit
...
Supports limiting the size of cached data to avoid negative optimization
2022-10-21 19:36:08 +02:00
Arthur Passos
2c41c0357d
Make CaresPTRResolver completely thread-safe
2022-10-21 14:32:48 -03:00
Alexander Tokmakov
7d11054134
Merge branch 'master' into fix_ares_fd_process_race_condition
2022-10-21 18:27:22 +03:00
Vitaly Baranov
2033ea1216
Support subqueries in row policy filters.
2022-10-21 15:42:29 +02:00
Igor Nikonov
851f556d65
Remove unused parameter
2022-10-21 14:35:37 +02:00
Igor Nikonov
13d31eefbc
Replicated merge tree polishing
...
+ make read-only members const
+ reduce memory allocations
2022-10-21 14:02:52 +02:00
Azat Khuzhin
5094c0dd6d
Fix clang-tidy performance-inefficient-vector-operation
...
By some reason it appears only after static_cast<> was added [1]:
/build/src/Processors/Formats/Impl/AvroRowInputFormat.cpp
Oct 18 01:03:56 /build/src/Processors/Formats/Impl/AvroRowInputFormat.cpp:351:21: error: 'push_back' is called inside a loop; consider pre-allocating the container capacity before the loop [performance-inefficient-vector-operation,-warnings-as-errors]
Oct 18 01:03:56 symbols.push_back(root_node->nameAt(i));
Oct 18 01:03:56 ^
Oct 18 01:03:56 /build/src/Processors/Formats/Impl/AvroRowInputFormat.cpp:511:17: error: 'push_back' is called inside a loop; consider pre-allocating the container capacity before the loop [performance-inefficient-vector-operation,-warnings-as-errors]
Oct 18 01:03:56 union_skip_fns.push_back(createSkipFn(root_node->leafAt(i)));
Oct 18 01:03:56 ^
Oct 18 01:03:56 /build/src/Processors/Formats/Impl/AvroRowInputFormat.cpp:552:17: error: 'push_back' is called inside a loop; consider pre-allocating the container capacity before the loop [performance-inefficient-vector-operation,-warnings-as-errors]
Oct 18 01:03:56 field_skip_fns.push_back(createSkipFn(root_node->leafAt(i)));
Oct 18 01:03:56 ^
Oct 18 01:03:56 197965 warnings generated.
[1]: https://s3.amazonaws.com/clickhouse-builds/42190/453d91fa3539882dcef1d5ecd5097747499572d8/clickhouse_special_build_check/report.html
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:43 +02:00
Azat Khuzhin
3d400068fd
tests/gtest_compressionCodec: fix UBSAN report to avoid test failure
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:43 +02:00
Azat Khuzhin
2474303aef
tests/gtest_compressionCodec: Fix UBSAN report about signed integer overflow
...
UBSAN report:
$ UBSAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-14 UBSAN_OPTIONS=print_stacktrace=1 ./unit_tests_dbms --gtest_filter=*Gorilla*
../src/Compression/tests/gtest_compressionCodec.cpp:1216:47: runtime error: signed integer overflow: 23 * 100000000 cannot be represented in type 'int'
#0 0x14f67fd1 in auto (anonymous namespace)::$_6::operator()(int) const::'lambda'(auto)::operator()<int>(auto) const build_docker/../src/Compression/tests/gtest_compressionCodec.cpp:1216:47
#1 0x14f67fd1 in (anonymous namespace)::CodecTestSequence (anonymous namespace)::generateSeq<long, (anonymous namespace)::$_6::operator()(int) const::'lambda'(auto), int, int>((anonymous namespace)::$_6::operator()(int) const::'lambda'(auto), char const*, int, int) build_docker/../src/Compression/tests/gtest_compressionCodec.cpp:394:36
#2 0x14f67fd1 in auto (anonymous namespace)::GCompatibilityTestSequence<long>() build_docker/../src/Compression/tests/gtest_compressionCodec.cpp:1224:12
#3 0x14f3c7f3 in (anonymous namespace)::gtest_GorillaCodecTestCompatibility_EvalGenerator_() build_docker/../src/Compression/tests/gtest_compressionCodec.cpp:1227:1
#4 0x14f6bdb5 in testing::internal::ParameterizedTestSuiteInfo<(anonymous namespace)::CodecTestCompatibility>::RegisterTests() build_docker/../contrib/googletest/googletest/include/gtest/internal/gtest-param-util.h:553:45
#5 0x27d87988 in testing::internal::ParameterizedTestSuiteRegistry::RegisterTests() build_docker/../contrib/googletest/googletest/include/gtest/internal/gtest-param-util.h:726:24
#6 0x27d87988 in testing::internal::UnitTestImpl::RegisterParameterizedTests() build_docker/../contrib/googletest/googletest/src/gtest.cc:2805:34
#7 0x27d87988 in testing::internal::UnitTestImpl::PostFlagParsingInit() build_docker/../contrib/googletest/googletest/src/gtest.cc:5492:5
#8 0x27d9d002 in void testing::internal::InitGoogleTestImpl<char>(int*, char**) build_docker/../contrib/googletest/googletest/src/gtest.cc:6499:22
#9 0x14fd5495 in main build_docker/../src/Coordination/tests/gtest_coordination.cpp:2189:5
#10 0x7f8c29005209 (/lib/x86_64-linux-gnu/libc.so.6+0x29209) (BuildId: 71a7c7b97bc0b3e349a3d8640252655552082bf5)
#11 0x7f8c290052bb in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x292bb) (BuildId: 71a7c7b97bc0b3e349a3d8640252655552082bf5)
#12 0x14ce356d in _start (/work1/azat/tmp/42190/unit_tests_dbms+0x14ce356d) (BuildId: 482550e3f8d45f06e8c7f8147f427ee798c1f645)
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/Compression/tests/gtest_compressionCodec.cpp:1216:47 in
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:43 +02:00
Azat Khuzhin
784f7d988c
Fix -Wshorten-64-to-32 in examples
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:43 +02:00
Azat Khuzhin
b8ab686561
tests/gtest_compressionCodec: fix for darwin
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:43 +02:00
Azat Khuzhin
4412f66709
tests/gtest_DecimalFunctions: fix due to incorrect cast in wide_integer
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:43 +02:00
Azat Khuzhin
f14645a94f
tests/gtest_DecimalFunctions: fix operator<<
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:43 +02:00
Azat Khuzhin
15bcd6250a
Fix -Wshorten-64-to-32 for darwin builds
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:42 +02:00
Azat Khuzhin
3ccd5e8a18
Fix -Wshorten-64-to-32 with USE_BLAKE3
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:42 +02:00
Azat Khuzhin
089bf39132
Fix -Wshorten-64-to-32 for musl
...
On musl uint_fast32_t is uint32_t, while for glibc it is unsigned long
long.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:42 +02:00
Azat Khuzhin
4e76629aaf
Fixes for -Wshorten-64-to-32
...
- lots of static_cast
- add safe_cast
- types adjustments
- config
- IStorage::read/watch
- ...
- some TODO's (to convert types in future)
P.S. That was quite a journey...
v2: fixes after rebase
v3: fix conflicts after #42308 merged
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:19 +02:00
Robert Schulze
2d448c139c
Merge pull request #42308 from arenadata/ADQM-584
...
Add support of Date32 arguments for date_diff function
2022-10-21 13:18:44 +02:00
Nikita Taranov
abd585a38a
Increase threshold for using physical cores ( #42503 )
2022-10-21 12:52:46 +02:00
Antonio Andelic
f3016fb86b
Throw exception on invalid values
2022-10-21 09:15:24 +00:00
Antonio Andelic
3091d609fa
Merge branch 'master' into optimize-partitions-in-background
2022-10-21 11:01:41 +02:00
Antonio Andelic
13480f940b
Handle 4LW correctly
2022-10-21 07:29:00 +00:00
Antonio Andelic
73e16ad55a
Fix KeeperTCPHandler data race
2022-10-21 07:29:00 +00:00
Amos Bird
1a462fddea
Fix test
2022-10-21 13:28:24 +08:00
Suzy Wang
ca3b6f602f
Merge branch 'master' into formatIpv6_s390x_support
2022-10-21 00:28:50 -04:00
Alexey Milovidov
48694def2c
Merge branch 'master' into revert-40217
2022-10-21 05:49:34 +02:00
Alexey Milovidov
ee5f5a4cb4
Unfathomable amount of trash
2022-10-21 05:33:17 +02:00
Alexey Milovidov
ff26251477
Merge branch 'master' into fix-race-condition-finish-cancel
2022-10-21 04:14:21 +02:00
Alexey Milovidov
45dadd7c5b
Merge pull request #42516 from ClickHouse/settings-docs
...
Correct documentation for settings
2022-10-21 02:29:20 +02:00
Nikolay Degterinsky
fb67a2f2ce
Fixes & improvements
2022-10-21 00:16:24 +00:00
Nikolay Degterinsky
6e2cfde1ee
Merge remote-tracking branch 'upstream/master' into fix-aliases
2022-10-21 00:11:23 +00:00
Alexey Milovidov
a7d2fd2cc5
Merge branch 'master' into decimal-asan
2022-10-21 01:28:34 +02:00
Alexey Milovidov
6c31bcad0a
Merge pull request #42417 from amosbird/issue_42408
...
Correct implementation of AggregateState comparison
2022-10-21 01:20:50 +02:00
Alexey Milovidov
1a6fa07587
Fix clang-tidy
2022-10-21 00:08:17 +02:00
Nikolai Kochetov
d09a5e8fd7
Revert "Attempt to fix abort from parallel parsing ( #42496 )"
...
This reverts commit 4d703b792c
.
2022-10-20 21:46:26 +02:00
Alexey Milovidov
58f238007a
Merge pull request #42508 from ClickHouse/remove-database-macro-from-server-prompt
...
Remove support for the `{database}` macro from the client's prompt
2022-10-20 21:14:06 +02:00
Nikolai Kochetov
57ffcb7ed0
Revert "Merge pull request #41681 from ClickHouse/revert-41268-disable-s3-parallel-write-for-part-moves-to-disk-s3"
...
This reverts commit 7956c2becf
, reversing
changes made to 57be648984
.
2022-10-20 19:51:27 +02:00
Arthur Passos
50f9acb221
Merge branch 'master' into fix_ares_fd_process_race_condition
2022-10-20 13:35:58 -03:00
Robert Schulze
9b7294ef45
Merge remote-tracking branch 'origin/master' into revert-40217
2022-10-20 15:27:31 +00:00
Nikita Mikhaylov
9a73eb2fbb
Add functions to generate random values according to the distribution ( #42411 )
2022-10-20 17:25:28 +02:00
Alexander Tokmakov
0d8a814d80
Merge pull request #42254 from xinhuitian/optimize-selectPartsToMutate
...
Early return of corner cases in selectPartsToMutate function
2022-10-20 18:13:37 +03:00
Nikita Mikhaylov
4d703b792c
Attempt to fix abort from parallel parsing ( #42496 )
2022-10-20 17:13:18 +02:00
Kruglov Pavel
867bcdbb1c
Fix typo in setting name that led to bad usage of schema inference cache
2022-10-20 16:46:25 +02:00
Alexander Tokmakov
5b03bbce2e
Merge pull request #41981 from ClickHouse/fixes_for_replicated_merge_tree2
...
Some fixes for ReplicatedMergeTree
2022-10-20 16:57:51 +03:00
Nikolai Kochetov
0df9d2f5cc
Fix tests.
2022-10-20 13:41:27 +00:00
alesapin
24d02b5516
Merge pull request #42441 from ClickHouse/check_readonly_in_background_tasks
...
Deactivate tasks in ReplicatedMergeTree until startup
2022-10-20 15:36:20 +02:00
Robert Schulze
469d6ad624
Merge pull request #42485 from ClickHouse/fix-bad_cast-in-annoy
...
Fix bad_cast in Annoy index
2022-10-20 15:27:58 +02:00
Alexander Tokmakov
f814a17fa2
Merge branch 'master' into improve_replica_recovery
2022-10-20 15:52:48 +03:00
Alexander Tokmakov
68c18abfbb
Merge pull request #42406 from ClickHouse/template_format_better_error
...
Better error message for unsupported delimiters in custom formats
2022-10-20 15:52:08 +03:00
Alexander Tokmakov
d668a82829
Merge branch 'master' into improve_replica_recovery
2022-10-20 14:25:09 +03:00
Nikita Mikhaylov
0d07aeec2f
Fix logical error from welchTTest ( #42487 )
2022-10-20 13:09:02 +02:00
Roman Vasin
55df097ea3
Remove extra toString in Exception formatting
2022-10-20 11:06:06 +00:00
Roman Vasin
31ad33561c
Add Date32 for dateName function
2022-10-20 10:53:36 +00:00
Robert Schulze
820e6b4276
Build with libcxx(abi) 15
2022-10-20 10:52:43 +00:00
Amos Bird
2499ab3b3a
Use convertFieldToType
2022-10-20 17:53:52 +08:00
Antonio Andelic
7bb94b7643
Fix template typenames
2022-10-20 08:20:03 +00:00
Roman Vasin
885f71d5f5
Replace is_extended_result by ResultPrecision
2022-10-20 08:18:22 +00:00
Antonio Andelic
9d7e44409a
Merge pull request #41342 from ClickHouse/keeper-upload-snapshot-to-s3
...
Upload Keeper snapshots to S3
2022-10-20 09:14:59 +02:00
Antonio Andelic
3c931a3711
Merge pull request #42473 from ClickHouse/fix-quantile-type-deduction
...
Use correct type for `UInt128` in `AggregateFunctionQuantile`
2022-10-20 09:13:05 +02:00
Antonio Andelic
77eb353839
Merge pull request #42243 from ClickHouse/use-multiread-more
...
Use MultiRead where possible
2022-10-20 09:04:54 +02:00
Alexey Milovidov
00f9ae9924
Correct documentation for settings
2022-10-20 04:42:35 +02:00
Nikolay Degterinsky
159a251f78
Fix aliases
2022-10-19 23:39:35 +00:00
Nikolay Degterinsky
f485c32317
Small improvements
2022-10-19 23:38:44 +00:00
Alexey Milovidov
fabc8f5a18
Remove support for {database} macro from the client's prompt
2022-10-19 23:27:12 +02:00
Kruglov Pavel
1b27c7ebe0
Merge pull request #42130 from azat/dist/EINTR-fix
...
Fix possible timeout exception for distributed queries with use_hedged_requests=0
2022-10-19 22:00:38 +02:00
Kruglov Pavel
df96acc80f
Fix style
2022-10-19 21:48:45 +02:00
Kruglov Pavel
ae3fa70594
Fix style
2022-10-19 21:48:20 +02:00
Kruglov Pavel
830ab3a5a9
Fix style
2022-10-19 21:48:01 +02:00
Nikolai Kochetov
d85bfe6ea3
Merge pull request #42322 from ClickHouse/additional-filters-and-distributed
...
Fix additional_table_filters for Distributed.
2022-10-19 17:09:51 +02:00
Nikolai Kochetov
58b6194a2d
Fix another one case.
2022-10-19 15:08:00 +00:00
Alexey Milovidov
898c935d31
Update GregorianDate.h
2022-10-19 17:36:49 +03:00
Alexey Milovidov
b0dd95447d
Update src/Functions/GregorianDate.h
...
Co-authored-by: Antonio Andelic <antonio2368@users.noreply.github.com>
2022-10-19 17:36:08 +03:00
Nikolai Kochetov
c8f9e7bd1f
Update test.
2022-10-19 14:33:37 +00:00
Alexander Tokmakov
84ef32e33f
Merge branch 'master' into improve_replica_recovery
2022-10-19 16:28:01 +02:00
Alexander Tokmakov
f958c155f3
Merge branch 'master' into fixes_for_replicated_merge_tree2
2022-10-19 17:25:24 +03:00
Roman Vasin
4db28d0bd6
Add toStableRelativeHourNum to gtest_DateLUTImpl.cpp
2022-10-19 14:01:26 +00:00
Constantine Peresypkin
5b3b11b517
add Morton Coding (ZCurve)
2022-10-19 15:59:25 +02:00
Robert Schulze
42f680849c
Fix bad_cast in Annoy index
...
- Problem originally found by data type fuzzer
https://s3.amazonaws.com/clickhouse-test-reports/42180/2f83d8790581dce0ffeec56c137b1d13160cfa7b/fuzzer_astfuzzermsan//report.html
- This commit restricts which data types are allowed for Annoy indexes
(similar things are done for other index types).
2022-10-19 13:40:39 +00:00
Roman Vasin
c0f18f29bb
Remove toExtendedReplated; Add template argument is_extended_result
2022-10-19 13:23:21 +00:00
Antonio Andelic
05e6b94b54
Polishing
2022-10-19 12:59:28 +00:00
Nikolai Kochetov
010cdeb755
Merge pull request #42442 from ClickHouse/revert-revert-27787
...
Revert "Revert #27787 "
2022-10-19 14:38:33 +02:00
Antonio Andelic
e5408aac99
Simplify logic
2022-10-19 12:34:20 +00:00
Vitaly Baranov
f82dc5ba44
Merge pull request #42333 from vitlibar/backup-to-s3
...
Implement backup to S3
2022-10-19 13:32:22 +02:00
Nikolay Degterinsky
486780ba80
Merge pull request #42044 from zvonand/zvonand-csv-dates
...
Fix Date from CSV parsing
2022-10-19 13:10:12 +02:00
xiedeyantu
330777a0cc
fix
2022-10-19 17:44:36 +08:00
xiedeyantu
32ad28cbe5
optimize code
2022-10-19 17:37:26 +08:00
Antonio Andelic
98c34159ee
Use correct type for UInt128
2022-10-19 08:05:09 +00:00
KinderRiven
ae53ac63c4
fix bypass_cache_threshold
2022-10-19 06:53:44 +00:00
Quanfa Fu
dbe68ab0a8
Fix wrong behave of domain func with URLs contains UserInfo part and '@'
...
When UserInfo part and '@' appear in the URL, the host after @ should
be returned. For example, when url is "https://user:pass@clickhouse.com/ ",
start_of_host should be char 'c' after '@', end_of_host should be '/'
other than ':'.
2022-10-19 14:27:06 +08:00
Amos Bird
549597fe80
Fix misbehavior of key analysis.
...
When key types cannot be inside Nullable, it can break key analysis. See
https://github.com/ClickHouse/ClickHouse/issues/42456 .
2022-10-19 12:15:27 +08:00
Alexey Milovidov
148275ed64
Fix buffer overflow in Decimal scale
2022-10-19 04:15:26 +02:00
Alexey Milovidov
e5d1a1b293
Add a test
2022-10-19 03:34:16 +02:00
Alexey Milovidov
2e3a111c29
Fix UBSan in Modified Julian Day
2022-10-19 03:26:22 +02:00
Alexey Milovidov
dfa202a15d
Merge branch 'master' into fix-race-condition-finish-cancel
2022-10-19 02:35:42 +02:00
Vitaly Baranov
1365105bc4
Implement backup to S3
2022-10-19 00:04:41 +02:00
Alexey Milovidov
46917c023c
Update AlterCommands.cpp
2022-10-19 00:25:21 +03:00
Alexander Tokmakov
1d9d753167
fix
2022-10-18 18:13:18 +02:00
Nikolai Kochetov
216d671cdf
Update AlterCommands.cpp
2022-10-18 17:56:34 +02:00
Alexander Tokmakov
ea77ff9022
Merge branch 'master' into fixes_for_replicated_merge_tree2
2022-10-18 17:25:25 +02:00
Kruglov Pavel
ba3e213a83
Remove outdated comment
2022-10-18 17:03:04 +02:00
KinderRiven
de3728127c
fix
2022-10-18 14:52:58 +00:00
Nikolai Kochetov
b109767dda
Merge branch 'master' into fix-multi-arg-monotonicity
2022-10-18 14:47:33 +00:00
Alexey Milovidov
7befe2825c
Update StorageReplicatedMergeTree.cpp
2022-10-18 17:36:11 +03:00
Alexey Milovidov
0623ad4e37
Update StorageReplicatedMergeTree.cpp
2022-10-18 17:35:44 +03:00
Pablo Marcos
fbfa2a9885
Fix exception message to be in sync with code
2022-10-18 16:20:18 +02:00
Pablo Marcos
79231412c9
Fix minor typos in code documentation
2022-10-18 16:20:00 +02:00
zvonand
82c7228e53
fix
2022-10-18 17:03:31 +03:00
Nikolai Kochetov
a5711fda44
Revert "Revert #27787 "
...
This reverts commit c1cc04d44d
.
2022-10-18 14:00:50 +00:00
alesapin
9769057767
Deactivate all tasks
2022-10-18 15:53:52 +02:00
alesapin
ab8da5a539
Deactivate mutationsFinalizingTask until startup
2022-10-18 15:50:02 +02:00
Kruglov Pavel
29513f6a1f
Merge pull request #41885 from Avogar/with-names-error-message
...
Better exception message for duplicate column names in schema inference
2022-10-18 15:26:46 +02:00
Kruglov Pavel
25e13bdd2f
Merge pull request #41107 from Avogar/improve-combinators
...
Support all combinators combination in WindowTransform/arratReduce*/initializeAggregation/aggregate functions versioning
2022-10-18 15:24:49 +02:00
Kruglov Pavel
8af95a6fc2
Merge pull request #41912 from Avogar/better-datetime-inference
...
Improve DateTime type inference for text formats
2022-10-18 15:23:59 +02:00
avogar
3bb1161859
Better naming
2022-10-18 13:05:40 +00:00
avogar
9a7fbcecb0
Remove unneded include
2022-10-18 13:04:42 +00:00
avogar
2c2f977096
Make better
2022-10-18 13:03:55 +00:00
Nikita Mikhaylov
8755f94548
Added aggregate function analysisOfVariance
(anova
). Merging #37872 ( #42131 )
2022-10-18 14:57:56 +02:00
Anton Popov
c1e958a7d2
Merge pull request #42413 from CurtizJ/better-types-fuzzer
...
Replace table name in ast fuzzer more often
2022-10-18 14:54:08 +02:00
Alfred Xu
2ac5540d0e
Fixed a logical error in case of using runningDifference
with Date32
type ( #42143 )
2022-10-18 14:33:31 +02:00
Han Shukai
acf13a7b60
Merge branch 'master' into max_cache_download_limit
2022-10-18 20:28:04 +08:00
Antonio Andelic
d105796c91
Merge branch 'master' into optimize-partitions-in-background
2022-10-18 12:24:03 +00:00
Nikolai Kochetov
c457f7dff3
Fix and more tests.
2022-10-18 12:21:16 +00:00
Antonio Andelic
e828dce331
Disable auto optimize by default
2022-10-18 12:11:23 +00:00
avogar
75c4ef0be7
Merge branch 'master' of github.com:ClickHouse/ClickHouse into s3-cluster-schema-inference
2022-10-18 11:58:12 +00:00
Tian Xinhui
45c6974f7d
Use alias for std::shared_ptr<MergeMutateSelectedEntry> ( #42211 )
...
* use alias for MergeMutateSelectedEntry share ptr
* fix StorageMergeTree.cpp
2022-10-18 13:35:34 +02:00
Vladimir C
a298a5238b
Merge pull request #42217 from ClickHouse/vdimir/style-check-code-used-in-comment
2022-10-18 13:26:39 +02:00
Vladimir C
76b102024d
Merge pull request #42342 from canhld94/ch_canh_fix_aggregator_lc
2022-10-18 13:01:23 +02:00
Antonio Andelic
540728ab96
Simplify logic a bit
2022-10-18 10:58:25 +00:00
Vladimir C
155b3ad02f
Merge pull request #42407 from ClickHouse/vdimir/join_lc_issue_42380
2022-10-18 12:57:58 +02:00
alesapin
ec356972a7
Merge pull request #42392 from ClickHouse/alesapin-patch-1
...
Smaller threshold for multipart upload part size increase
2022-10-18 12:52:00 +02:00
alesapin
673adfbd5c
Merge pull request #42317 from ClickHouse/fix_another_trash_with_zero_cop
...
Fix another trash in zero-copy replication
2022-10-18 12:51:16 +02:00
Antonio Andelic
1275c464aa
Fix unit test build
2022-10-18 10:44:22 +00:00
Antonio Andelic
06b2eeb5a7
Small changes to settings
2022-10-18 09:31:16 +00:00
Antonio Andelic
bd2522fdd0
Merge branch 'master' into optimize-partitions-in-background
2022-10-18 09:13:59 +00:00
Roman Vasin
d9fcd91875
Add toStableRelativeHourNum
2022-10-18 09:07:12 +00:00
Alexander Gololobov
87d24b8f14
Merge pull request #42409 from CurtizJ/freeze-partition-formatting
...
Fix formatting of `ALTER FREEZE`
2022-10-18 10:39:44 +02:00
Antonio Andelic
ee2f5977d5
Merge branch 'master' into keeper-upload-snapshot-to-s3
2022-10-18 10:02:50 +02:00
Ilya Yatsishin
36b63badb3
Merge pull request #42223 from qoega/hdfs-empty-url
2022-10-18 09:34:10 +02:00
Amos Bird
6d32149fa6
Correct implementation of agg state comparison
2022-10-18 14:05:06 +08:00
Han Shukai
5f04304278
Merge branch 'master' into max_cache_download_limit
2022-10-18 13:44:52 +08:00
KinderRiven
f94f491679
impl max_cache_download_limit
2022-10-18 05:05:32 +00:00
Vitaly Baranov
eb637a6f81
Merge pull request #42232 from azat/backups/s3
...
Support BACKUP to S3 with as-is path/data structure
2022-10-18 02:37:07 +02:00
Anton Popov
1a9d190788
replace table name in fuzzer more often
2022-10-17 21:08:27 +00:00
Nikolai Kochetov
f67b5182ea
Add test with different databases.
2022-10-17 19:05:15 +00:00
Suzy Wang
c8642514d0
format ipv6 in s390x, endianess support
2022-10-17 12:02:28 -07:00
Nikolai Kochetov
3d1ed2969a
Fix possible LOGICAL_ERROR in binary ariphmetics monotonicity. Fix invalid evaluation of binary monotonic function in KeyCondition.
2022-10-17 18:21:03 +00:00
Anton Popov
d8501c7f6a
fix formatting of ALTER FREEZE
2022-10-17 18:10:22 +00:00
Alexey Milovidov
e014293fe8
Fix tidy
2022-10-17 19:29:14 +02:00
Alexander Tokmakov
57f6e27300
Merge branch 'master' into improve_replica_recovery
2022-10-17 18:37:31 +02:00
vdimir
597544a15b
Fix assert cast in join on falsy condition
2022-10-17 16:12:00 +00:00
Alexander Tokmakov
fffecbb9ad
better error message for unsupported delimiters in custom formats
2022-10-17 18:08:52 +02:00
Alexey Milovidov
830fda0b77
Merge branch 'master' into ch_canh_fix_aggregator_lc
2022-10-17 17:58:28 +02:00
Yakov Olkhovskiy
3ce1fa09d6
Merge pull request #41198 from ClickHouse/composable-protocol
...
Composable protocol
2022-10-17 11:23:12 -04:00
xiedeyantu
b26361c647
fix test
2022-10-17 23:02:39 +08:00
xiedeyantu
9e62570d61
fix test
2022-10-17 22:57:11 +08:00
Antonio Andelic
8157fd0595
fix build
2022-10-17 14:16:56 +00:00
alesapin
db6524bb3b
Smaller thrashold for multipart upload part size increase
2022-10-17 15:44:17 +02:00
Nikolai Kochetov
b8eb02e239
Add a comment.
2022-10-17 12:30:10 +00:00
Duc Canh Le
9af817bb43
Fix read from buffer with read in order ( #42236 )
2022-10-17 14:25:31 +02:00
Anton Popov
26e8d0a93d
Merge pull request #42345 from CurtizJ/better-async-insert-logging
...
Better logging for asynchronous inserts
2022-10-17 13:50:38 +02:00
Antonio Andelic
238f86d892
Small refactoring
2022-10-17 11:06:33 +00:00
Antonio Andelic
7c7395575f
Merge branch 'master' into keeper-upload-snapshot-to-s3
2022-10-17 11:02:36 +00:00
Ilya Yatsishin
dd0fc2435e
Merge remote-tracking branch 'origin/master' into hdfs-empty-url
2022-10-17 12:48:42 +02:00
Nikolai Kochetov
c9aa6a655c
Merge pull request #42319 from ClickHouse/fix-alter-update-wrong-type
...
Fix an invalid type of a column after attach and alter.
2022-10-17 12:44:16 +02:00
Duc Canh Le
d95fb5ffb3
Merge branch 'master' into ch_canh_fix_aggregator_lc
2022-10-17 18:29:41 +08:00
alesapin
051e3a0db5
Fix if
2022-10-17 12:27:05 +02:00
alesapin
cf6442fa65
Merge pull request #42222 from ClickHouse/disable_concurrent_parts_removal
...
Disable concurrent parts removal
2022-10-17 12:17:55 +02:00
Antonio Andelic
125501b36a
Merge branch 'master' into use-multiread-more
2022-10-17 07:32:30 +00:00
Antonio Andelic
f3c4d0eff2
Fix keeperMap test
2022-10-17 07:29:22 +00:00
Smita Kulkarni
91433e5b9c
Added ** glob support for recursive directory traversal to filesystem and S3.
...
Implementation:
* Updated parseGlob to not add ‘/‘ restriction when ** is used.
* Updated S3 & filesystem to fetch files and not use regex match if glob is **.
Testing:
* Added a test for filesystem tests/queries/0_stateless/02459_glob_for_recursive_directory_traversal.sh
2022-10-17 09:04:25 +02:00
Alexey Milovidov
d1f0c80ffe
Revert "Merge pull request #40217 from zvonand/zvonand-minmax"
...
This reverts commit df934d8762
, reversing
changes made to d3a7945b1b
.
2022-10-17 04:57:15 +02:00
Alexey Milovidov
e93b8d1618
Fix trash
2022-10-17 04:44:58 +02:00
Alexey Milovidov
f88ed8195b
Fix trash
2022-10-17 04:21:08 +02:00
Duc Canh Le
40ca01d099
Merge branch 'master' into ch_canh_fix_aggregator_lc
2022-10-17 09:00:13 +08:00
Duc Canh Le
c05429574d
add exception
2022-10-17 08:59:39 +08:00
Alexey Milovidov
17d4862336
Fix data race in query finish/cancel
2022-10-17 02:29:54 +02:00
Alexey Milovidov
1113fe4a8d
Fix data race in query finish/cancel
2022-10-17 02:27:10 +02:00
Alexey Milovidov
c6b2ee47df
Fix data race in query finish/cancel
2022-10-17 02:10:36 +02:00
Alexey Milovidov
191158f93b
Merge pull request #42314 from HarryLeeIBM/hlee-s390x-t64-codec
...
Fix Codec T64 on s390x
2022-10-17 01:13:57 +02:00
Anton Popov
ec81d61f48
better logging for async insert
2022-10-16 12:45:02 +00:00
Kseniia Sumarokova
3338d76708
Merge pull request #42321 from ClickHouse/filimonov-request_timeout_ms
...
Increase request_timeout_ms for s3 disks.
2022-10-16 14:03:31 +02:00
xiedeyantu
9ec206f8f7
fix test
2022-10-16 19:52:53 +08:00
Duc Canh Le
5526e05aac
remove junk log
2022-10-16 17:19:40 +08:00
Duc Canh Le
2b82205590
Merge branch 'master' into ch_canh_fix_aggregator_lc
2022-10-16 16:59:12 +08:00
Duc Canh Le
9e9e967f1f
choose correct aggregation method for lc128 and lc512
2022-10-16 16:57:15 +08:00
xiedeyantu
2a356715da
fix test
2022-10-16 16:46:00 +08:00
chen
0e86976e2b
Merge branch 'master' into system_table_add_column
2022-10-16 13:17:45 +08:00
Ilya Yatsishin
165785f716
mErge remote-tracking branch 'origin/master' into hdfs-empty-url
2022-10-15 19:13:59 +02:00
Ilya Yatsishin
7fa7e1d822
Merge pull request #38519 from qoega/ast-fuzzer-where
2022-10-15 14:30:40 +02:00
Vitaly Baranov
91c438eebe
Merge pull request #42263 from vitlibar/refactor-udf
...
Refactor the implementation of user-defined functions
2022-10-15 12:33:10 +02:00
Alexey Milovidov
bfd8811a4d
Update CompressionCodecT64.cpp
2022-10-15 00:32:37 +03:00
Alexey Milovidov
4608b70dda
Update CompressionCodecT64.cpp
2022-10-15 00:31:33 +03:00
Kruglov Pavel
3d9f46a1e7
Merge branch 'master' into s3-cluster-schema-inference
2022-10-14 22:07:54 +02:00
Kruglov Pavel
6fc12dd922
Merge pull request #41703 from Avogar/json-object-each-row
...
Add setting to obtain object name as column value in JSONObjectEachRow format
2022-10-14 20:11:04 +02:00
avogar
52427e6028
Remove code duplication
2022-10-14 18:07:02 +00:00
Kruglov Pavel
b4e327d9e0
Merge pull request #42313 from ClickHouse/Avogar-patch-2
...
Remove forgotten debug logging
2022-10-14 19:23:06 +02:00
nvartolomei
7d9f097d3b
Fix bad copy & paste when loading background_merges_mutations_concurrency_ratio setting ( #42315 )
2022-10-14 19:19:14 +02:00
Nikolai Kochetov
b98b1759c8
Fix additional_table_filters for Distributed.
2022-10-14 17:04:42 +00:00
Arthur Passos
78202f9660
Merge branch 'master' into fix_ares_fd_process_race_condition
2022-10-14 12:56:39 -03:00
Kruglov Pavel
ff11904850
Merge branch 'master' into improve-combinators
2022-10-14 17:19:31 +02:00
filimonov
cd9afdcb7c
Increase request_timeout_ms for s3 disks.
2022-10-14 17:19:14 +02:00
Nikolay Degterinsky
c11e4bfbbf
Fix build
2022-10-14 15:13:26 +00:00
Nikolai Kochetov
b18c6fd8e6
Fix an invalid type of a column after attach and alter.
2022-10-14 14:52:26 +00:00
alesapin
e0c2518416
Fix another trash in zero-copy replication
2022-10-14 16:50:48 +02:00
HarryLeeIBM
6cdb7b5a94
Fix Codec T64 on s390x
2022-10-14 07:16:18 -07:00
chen
1acfabcc98
Merge branch 'master' into system_table_add_column
2022-10-14 21:58:50 +08:00
Kruglov Pavel
d43b5bbcd0
Remove forgotten debug logging
2022-10-14 15:47:46 +02:00
Kseniia Sumarokova
555d275920
Update src/Storages/MergeTree/DataPartStorageOnDisk.h
2022-10-14 15:18:53 +02:00
Ilya Yatsishin
3361b27965
less
2022-10-14 14:27:52 +02:00
vdimir
ad255206f4
Exclude comments from style-check defined extern
2022-10-14 11:42:18 +00:00
alesapin
fd718c0d00
Merge branch 'master' into disable_concurrent_parts_removal
2022-10-14 13:32:11 +02:00
alesapin
4e1a10fb34
better check
2022-10-14 13:32:08 +02:00
Alexander Tokmakov
9b7edd4f13
Merge pull request #42106 from ClickHouse/fix_loading_dependencies
...
Fixes for loading dependencies
2022-10-14 14:31:31 +03:00
Azat Khuzhin
8830f0608d
Support BACKUP to S3 with as-is path/data structure
...
Right now backup to S3 does not make a lot of sense, since:
- it has random names, and to decoding them
- requires metadata from local disk (/var/lib/disks/DISK/BACKUP_NAME)
- or send_metadata (but it is also tricky even with it)
So this patch adds simpler interface for S3, it is only suitable for
BACKUP/RESTORE, so don't try to use it for MergeTree engine.
It is done by adding separate disk - `s3_plain` for this, that:
- does not support any extended features, like renames/hardlinks/attrs/...
(so basically everything that MergeTree requires)
- only write/read/unlink/list files
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-14 12:59:25 +02:00
Roman Vasin
040d61e047
Use {} in error message formatting
2022-10-14 08:13:04 +00:00
chen
e82ae0ffce
Merge branch 'master' into system_table_add_column
2022-10-14 11:50:47 +08:00
xiedeyantu
8ebe01d9cf
system.detached_parts add column bytes_on_disk and path
2022-10-14 11:43:42 +08:00
Nikolay Degterinsky
cf6471c6b9
Fix style
2022-10-14 02:48:04 +00:00
Nikolay Degterinsky
af1d306b12
Add Interval arithmetics
2022-10-14 02:16:12 +00:00
Alexey Milovidov
018c68b36d
Merge pull request #42198 from ClickHouse/fix-projections
...
Fix a bug with projections and the `aggregate_functions_null_for_empty` setting
2022-10-14 03:14:19 +02:00
Nikolay Degterinsky
509f0426a9
Merge pull request #42279 from sperlingxx/intv_op_date32
...
Fix Date Interval add/minus over DataTypeDate32
2022-10-13 23:50:35 +02:00
Vladimir C
cf78c70bdd
Merge pull request #41544 from lhuang09287750/master
2022-10-13 17:47:41 +02:00
Roman Vasin
14ba9fa51d
Fix Date32 argument in dispatchConstForSecondColumn
2022-10-13 13:35:14 +00:00
Roman Vasin
4cf2913054
Fix message about allowed argument types
2022-10-13 12:58:22 +00:00
kssenii
f65d3b6d3a
Merge remote-tracking branch 'upstream/master' into fit-http-buffer-retries
2022-10-13 13:41:24 +02:00
sperlingxx
a901faeb84
Fix add/minus Date Interval over Date32 type
...
Signed-off-by: sperlingxx <lovedreamf@gmail.com>
2022-10-13 18:00:54 +08:00
Ilya Yatsishin
bbf88b66a0
more
2022-10-13 11:42:35 +02:00
Vitaly Baranov
2e59d671fc
Split UserDefinedSQLObjectsLoader to interface and implementation.
2022-10-13 10:32:32 +02:00
Ilya Yatsishin
e7ca30cd11
fix typo
2022-10-13 10:10:13 +02:00
Arthur Passos
91560dd607
working on style
2022-10-12 21:28:32 -03:00
Alexey Milovidov
96332d9159
Merge branch 'master' into fix-projections
2022-10-13 02:23:32 +02:00
Arthur Passos
f588830e24
working on style
2022-10-12 20:35:17 -03:00
Arthur Passos
72ba210b24
working on style
2022-10-12 20:23:29 -03:00
Arthur Passos
d98eac11eb
remove mutex declaration
2022-10-12 17:47:56 -03:00
Arthur Passos
9abf13bf78
Use poll instead of select for c-ares
2022-10-12 13:56:00 -03:00
Roman Vasin
590ed7b640
Add transforms for other arguments lke year, quarter etc
2022-10-12 15:16:09 +00:00
Vitaly Baranov
9cb2052c7f
Consider Poco::Net::HostNotFoundException as ZCONNECTIONLOSS.
2022-10-12 15:52:55 +02:00
Nikolay Degterinsky
87b77094f0
Merge pull request #42187 from FArthur-cmd/add_default_support_for_settings
...
Add support for keyword DEFAULT in the set query
2022-10-12 15:30:30 +02:00
lhuang09287750
215acf5e5b
check the result of conversion for decimal IN float
2022-10-12 15:28:27 +02:00
lhuang09287750
4b0ac268e8
delete an unusable include
2022-10-12 15:28:27 +02:00
lhuang09287750
cab0291873
for checkstyle:use a internal function to get field string ,instead of std::stringstream
2022-10-12 15:28:27 +02:00
lhuang09287750
338f41913c
add a function to process floating point literal comparing with decimal type in IN opertor
2022-10-12 15:28:27 +02:00
vdimir
0178307c27
Followup for TemporaryDataOnDisk
2022-10-12 15:25:23 +02:00
xinhuitian
daaf01c344
early return
2022-10-12 12:18:17 +08:00
flynn
312afdc280
remove useless code
2022-10-12 03:48:37 +00:00
Nikolay Degterinsky
896e3c47f7
Merge pull request #42135 from ClibMouse/add-null-pointer-checks
...
Add null pointer checks
2022-10-12 01:22:55 +02:00
Alexey Milovidov
bbd1196a96
Update MergeTreeData.cpp
2022-10-12 00:57:02 +03:00
FArthur-cmd
b6304c46d4
move default settings to different part of ast
2022-10-11 18:25:28 +00:00
Arthur Passos
6dae76ff88
add mutex include for release builds
2022-10-11 12:47:27 -03:00
Azat Khuzhin
688edafcc6
Disks/ObjectStorages: add comments for some classes
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-11 17:21:26 +02:00
Azat Khuzhin
f3833e3a53
Introduce StaticDirectoryIterator
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-11 17:19:35 +02:00
ltrk2
15aa8a88dc
Throw an exception in case of inconsistent state
2022-10-11 05:04:47 -07:00
Ilya Yatsishin
3201c08bb5
style
2022-10-11 13:54:03 +02:00
AlfVII
5b2703c412
Merge branch 'master' into fix-slow-json-extract-with-low-cardinality
2022-10-11 13:28:07 +02:00
Ilya Yatsishin
28c7a22428
address review comments
2022-10-11 11:59:48 +02:00
Antonio Andelic
5e6a7c1678
Use multiread where possible
2022-10-11 09:27:46 +00:00
Kseniia Sumarokova
3819a21033
Merge pull request #42078 from azat/insert-progress
...
Fix progress for INSERT SELECT
2022-10-11 10:56:20 +02:00
Alexey Milovidov
56e59dd536
Merge branch 'master' into fix-projections
2022-10-11 02:24:12 +03:00
Arthur Passos
0a26afd1c8
Add mutex around ares fd processing
2022-10-10 18:54:35 -03:00
kssenii
0a702d9520
Fix
2022-10-10 17:23:09 +02:00
Alexander Tokmakov
4b371bd20c
fix
2022-10-10 16:38:35 +02:00
Alexander Tokmakov
fa1134f299
Merge branch 'master' into fix_loading_dependencies
2022-10-10 16:30:52 +02:00
Ilya Yatsishin
95c5c8a744
Fail fast on empty URL
2022-10-10 14:50:09 +02:00
alesapin
f6b0dc168d
Disable concurrent parts removal
2022-10-10 14:10:04 +02:00
Yakov Olkhovskiy
b5808a3f00
Merge branch 'master' into composable-protocol
2022-10-10 08:07:48 -04:00
Nikolai Kochetov
dac71f445b
Merge pull request #42186 from ClickHouse/igor/distinct_in_order_fix
...
Fix: DISTINCT in order fails with LOGICAL_ERROR
2022-10-10 09:51:29 +02:00
alesapin
8a2ba6cd81
Add logging during merge tree startup ( #42163 )
2022-10-10 09:32:13 +02:00
Duc Canh Le
f823b9a177
add not like to atom map
2022-10-10 13:31:10 +08:00
Alexey Milovidov
e27dbf4369
Update MergeTreeDataSelectExecutor.cpp
2022-10-09 18:27:47 +03:00
Maksim Kita
2f5b2d782c
Merge pull request #42063 from kitaisreal/function-name-normalization-header-functions
...
Function name normalization fix functions header
2022-10-09 14:19:33 +03:00
Alexey Milovidov
cebc38fa6e
Fix a bug with projections and aggregate_functions_null_for_empty setting
2022-10-09 05:30:25 +02:00
Yakov Olkhovskiy
b74783455f
Update Settings.h
...
fix dialect description
2022-10-08 21:57:05 -04:00
Yakov Olkhovskiy
6c8e52eb67
Merge branch 'master' into composable-protocol
2022-10-08 20:33:32 -04:00
Alexey Milovidov
8cd9878c83
Merge pull request #41921 from ucasfl/remove
...
remove unused code
2022-10-09 03:13:50 +03:00
Nikolay Degterinsky
68abf43767
Better INTERVAL parsing and execution
2022-10-09 00:00:14 +00:00
Alexey Milovidov
9ee6896916
Merge pull request #42002 from ClickHouse/relax-too-many-parts-threshold
...
Relax "too many parts" threshold
2022-10-08 20:17:01 +03:00
Alexey Milovidov
a9cbdeec24
Merge pull request #42180 from ClickHouse/unique-thread-ids
...
Make thread ids in the process list and query_log unique to avoid waste
2022-10-08 20:06:02 +03:00
Alexander Tokmakov
bd10a9d2d4
Merge pull request #42168 from ClickHouse/unreachable_macro
...
Abort instead of `__builtin_unreachable` in debug builds
2022-10-08 19:05:57 +03:00
Alexey Milovidov
9bf5fe728b
Merge pull request #42173 from ClickHouse/remove-temporary-live-view
...
Remove TEMPORARY LIVE VIEW
2022-10-08 19:05:33 +03:00
FArthur-cmd
2bef2b09de
improve test and simplify code
2022-10-08 11:07:46 +00:00
FArthur-cmd
e07a3e1193
add default
2022-10-08 10:33:37 +00:00
Igor Nikonov
f4792c37ef
Fix #42185 : DISTINCT in order fails with LOGICAL_ERROR
...
... if first column in sorting key contains function
2022-10-08 10:13:12 +00:00
alesapin
f695b75eef
Merge pull request #42147 from ClickHouse/more_logs_for_parent_parts
...
Fix checking parent for old-format parts
2022-10-08 12:08:15 +02:00
Ilya Yatsishin
f764f4ce19
Update src/Client/QueryFuzzer.cpp
2022-10-08 08:20:17 +02:00
Alexey Milovidov
2f83d87905
Make thread_ids unique
2022-10-08 02:42:41 +02:00
Alexey Milovidov
ec5a32f534
Make thread_ids unique
2022-10-08 02:05:36 +02:00
Alexey Milovidov
36df8cf785
Merge pull request #42144 from kssenii/fix-non-async-buffer
...
Follow up for #42129
2022-10-08 01:54:38 +03:00
Alexey Milovidov
e4ac4a29a9
Fix error
2022-10-08 00:24:51 +02:00
Alexey Milovidov
a45f7c3023
Relax "too many parts" thresholds
2022-10-08 00:24:51 +02:00
Alexey Milovidov
169c505603
Relax "too many parts" thresholds
2022-10-08 00:24:51 +02:00
Vitaly Baranov
69ebf12dab
Merge pull request #42146 from azat/backups/metadata-overflow-fix
...
Fix reusing of files > 4GB from base backup
2022-10-08 00:22:28 +02:00
Alexey Milovidov
b9159db82f
Remove temporary live views
2022-10-08 00:16:36 +02:00
Alexander Tokmakov
4175f8cde6
abort instead of __builtin_unreachable in debug builds
2022-10-07 21:49:08 +02:00
Maksim Kita
53b655bfa9
Merge pull request #42123 from kitaisreal/jit-compilation-migration-to-llvm-15
...
JIT compilation migration to LLVM 15
2022-10-07 22:02:19 +03:00
Nikolai Kochetov
eccee280a2
Merge pull request #42136 from ClickHouse/revert-27787
...
Revert #27787
2022-10-07 20:38:38 +02:00
Alexander Tokmakov
1a78e8a817
fix
2022-10-07 20:22:03 +02:00
Alexander Tokmakov
a1ff835894
fix
2022-10-07 19:52:34 +02:00
Alexander Tokmakov
014784a9ca
Merge branch 'master' into fix_loading_dependencies
2022-10-07 18:58:11 +02:00
Sergei Trifonov
a313aa4ede
Merge pull request #41908 from AlfVII/remove-table-is-dropped-exception-when-not-needed
...
Don't report TABLE_IS_DROPPED exception in order to skip table in case is was just dropped
2022-10-07 18:40:08 +02:00
Maksim Kita
930bda9c72
Merge branch 'master' into jit-compilation-migration-to-llvm-15
2022-10-07 18:45:53 +03:00
Alexander Tokmakov
ed76584876
fix
2022-10-07 16:52:04 +02:00
Alexander Tokmakov
ec2bca51ca
Merge branch 'master' into improve_replica_recovery
2022-10-07 16:35:57 +02:00
Alexander Tokmakov
b8d9066004
Revert "Resurrect parallel distributed insert select with s3Cluster ( #41535 )"
...
This reverts commit 860e34e760
.
2022-10-07 15:53:30 +02:00
Vitaly Baranov
26b2db2c94
Merge pull request #42073 from BoloniniD/BLAKE3_fixes
...
Minor fixes for BLAKE3
2022-10-07 15:00:13 +02:00
Azat Khuzhin
dae8d6b316
Convert backup version from UInt64 to int
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-07 14:59:38 +02:00
Azat Khuzhin
94566abda9
Fix reusing of files > 4GB from base backup
...
Previosly u64 numbers was truncated to u32 numbers during writing to the
mdatadata xml file, and further incremental backup cannot reuse them,
since the file in base backup is smaller.
P.S. There can be other places, I thought about enabling
-Wshorten-64-to-32, but there are lots of warnings right now.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-07 14:56:09 +02:00
alesapin
f1d93d52d1
Fix checking parent for old-format parts
2022-10-07 14:49:25 +02:00
Yatsishin Ilya
e1859e9ee8
fix style
2022-10-07 12:43:20 +00:00
Azat Khuzhin
2c84ad30ba
Fix double "file" in "Writing backup for file" message
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-07 14:27:11 +02:00
Yatsishin Ilya
f545aa1415
Merge remote-tracking branch 'origin/master' into ast-fuzzer-where
2022-10-07 12:12:27 +00:00
Yatsishin Ilya
81aec3c340
Grouping sets, rollup, cube, totals can be only with GROUP BY
2022-10-07 11:39:47 +00:00
kssenii
53d54ae6c9
Fix
2022-10-07 12:26:54 +02:00
Kseniia Sumarokova
eb6e60753d
Merge pull request #42129 from kssenii/fix-non-async-buffer
...
Fix buffer resize with `remote_filesystem_read_method=read` + fs cache
2022-10-07 12:05:53 +02:00
Maksim Kita
76d6204f99
JIT compilation migration to LLVM 15
2022-10-07 10:53:38 +02:00
Yakov Olkhovskiy
2229087896
Merge branch 'master' into composable-protocol
2022-10-07 02:23:26 -04:00
Yakov Olkhovskiy
997fa5e295
review suggestions
2022-10-07 01:16:22 +00:00