Commit Graph

56851 Commits

Author SHA1 Message Date
Daria Mozhaeva
bee65d8236 Edit 2021-02-07 20:21:34 +03:00
alexey-milovidov
6325b15a63
Update CHANGELOG.md 2021-02-07 18:19:10 +03:00
alexey-milovidov
f018545679
Merge pull request #20185 from ClickHouse/changelog-21.2
Add changelog for 21.2
2021-02-07 18:17:40 +03:00
Alexey Milovidov
06a92e4973 Add changelog for 21.2 2021-02-07 18:17:13 +03:00
robot-clickhouse
e814db6836 Update version_date.tsv after release 21.2.2.8 2021-02-07 17:18:18 +03:00
alexey-milovidov
3b43b0a1be
Merge pull request #20131 from azat/DateTime64-fix
DateTime64 fixes
2021-02-07 16:55:28 +03:00
alexey-milovidov
5c120d5f2d
Merge pull request #20125 from qoega/add-benchmark-8cpu-s3
Add benchmark results for Broadwell 8vCPU S3/SSD in Yandex.Cloud
2021-02-07 16:51:26 +03:00
Alexey Milovidov
0145be85df Do not spill warnings suppressions from ANTLR 2021-02-07 16:50:57 +03:00
Alexey Milovidov
c941d3bf20 Renew Slack link 2021-02-07 16:14:44 +03:00
alexey-milovidov
b26ebd6df8
Slack link was expired 2021-02-07 16:13:23 +03:00
vdimir
ea6f0fecfc
Merge pull request #20163 from bharatnc/ncb/docs_date_sub 2021-02-07 15:17:14 +03:00
alexey-milovidov
0b043c41b6
Merge pull request #20160 from ClickHouse/cumulative-sum-normalized
Fix UBSan report in arrayCumSum
2021-02-07 14:28:16 +03:00
vdimir
38a7248d3a
Minor changes in date_sub doc 2021-02-07 14:01:00 +03:00
Maksim Kita
6b5146c885
Merge pull request #20177 from kitaisreal/fix-mac-os-build-docs
Fix macOS build docs
2021-02-07 13:33:26 +03:00
Maksim Kita
db04af3dce Fix macOS build docs 2021-02-07 13:06:34 +03:00
Ivan
4181f8d9b7
Fix segfault using ANTLR parser (#20156)
* Fix build of utils

* Fix visitor
2021-02-07 11:06:39 +03:00
alexey-milovidov
ed5a81ab59
Merge pull request #20078 from abyss7/better-read-buffers-4
LimitReadBuffer: check that position always advances
2021-02-07 07:33:08 +03:00
Azat Khuzhin
46ff7d2ab0 Fix DateTime64 overflows 2021-02-07 02:24:31 +03:00
alexey-milovidov
75f3ca8e34
Merge pull request #20150 from ClickHouse/useless-changes
Useless changes
2021-02-07 01:40:12 +03:00
alexey-milovidov
f2ab4f2ce9
Merge pull request #20037 from abyss7/better-read-buffers-2
ReadBuffer: check for unread data on next()
2021-02-07 01:33:06 +03:00
alexey-milovidov
417cfcd698
Update ReadBuffer.h 2021-02-07 01:31:20 +03:00
alexey-milovidov
66b868d865
Merge pull request #20153 from zlobober/customize_prewhere_optimizer
Allow using MergeTreeWhereOptimizer not only with MergeTree-based storages
2021-02-07 01:10:11 +03:00
alexey-milovidov
44b44c1fe7
Update InterpreterSelectQuery.cpp 2021-02-07 01:09:55 +03:00
alexey-milovidov
f5a853381b
Merge pull request #20152 from ucasFL/remove-useless-code
remove some useless code
2021-02-07 00:58:34 +03:00
bharatnc
5ddcbe8b90 Docs - minor unrelated fix to date_trunc 2021-02-06 13:05:06 -08:00
bharatnc
4514c06c2f Docs - date_sub 2021-02-06 12:59:31 -08:00
alexey-milovidov
d0a1e69e99
Merge pull request #20094 from ClickHouse/columns-description-fuzzer
Add fuzzer for ColumnsDescription
2021-02-06 23:21:41 +03:00
Alexey Milovidov
1209c02869 Fix overflow in mapPopulateSeries 2021-02-06 23:18:42 +03:00
Alexey Milovidov
d9d49a4d30 Fix UBSan report in arrayCumSum 2021-02-06 22:22:21 +03:00
Alexey Milovidov
65902f4c6e Fix UBSan report in arrayCumSum 2021-02-06 22:21:22 +03:00
Alexey Milovidov
fd899daa00 Fix UBSan report in arrayCumSum 2021-02-06 22:17:19 +03:00
alexey-milovidov
b0f201df72
Merge pull request #20155 from abyss7/fix-utils-build
Fix build of utils
2021-02-06 21:38:28 +03:00
Ivan Lezhankin
ab55556c5e Fix build of utils 2021-02-06 20:24:52 +03:00
Ivan Lezhankin
8953fe1eb2 Fix seekable buffer 2021-02-06 19:30:46 +03:00
Maxim Akhmedov
0cd3601928 Allow using MergeTreeWhereOptimizer not only with MergeTree-based storages 2021-02-06 18:08:42 +03:00
feng lv
529fb1ea49 remove some useless code 2021-02-06 14:59:48 +00:00
Kruglov Pavel
c92d468b6f
Merge pull request #19792 from gyuton/gyuton-DOCSUP-5909-Document_array_aggregation_functions
DOCSUP-5909: Documented array aggregation functions
2021-02-06 16:52:50 +03:00
George
73b7540ebe Merge branch 'gyuton-DOCSUP-5909-Document_array_aggregation_functions' of https://github.com/gyuton/ClickHouse into gyuton-DOCSUP-5909-Document_array_aggregation_functions 2021-02-06 16:37:53 +03:00
George
a790cd9bc5 Fixes 2021-02-06 16:37:12 +03:00
Alexey Milovidov
4092916db6 Useless changes 2021-02-06 14:56:10 +03:00
tavplubix
1c5d6bbe44
Merge pull request #20051 from stigsb/materializemysql-system-tables-fix
Show details of MaterializeMySQL tables in `system.tables`
2021-02-06 14:50:11 +03:00
vdimir
6922aa4db5
Merge pull request #20107 from bharatnc/ncb/docs_date_funcs 2021-02-06 14:48:33 +03:00
Alexey Milovidov
26d4d52b9b Merge branch 'master' into columns-description-fuzzer 2021-02-06 13:31:50 +03:00
Azat Khuzhin
c4b5eed4ff Fix DateTime64 initialization (to match DateTime behaviour)
There was no specializations for toDateTime64(<numeric>), and because of
this default decimal conversion was used, however this is not enough for
DateTime/DateTime64 types, since the date may overflow and the proper
check is required (like DateTime has), and this what UBsan found [1]:

    ../src/IO/WriteHelpers.h:812:33: runtime error: index 508 out of bounds for type 'const char [201]' Received signal -3 Received signal Unknown signal (-3)

Backtrace:

    (gdb) bt
    0  LocalDateTime::LocalDateTime (this=0x7fffffff8418, year_=1970, month_=1 '\001', day_=1 '\001', hour_=2 '\002', minute_=0 '\000', second_=254 '\376') at LocalDateTime.h:83
    1  0x00000000138a5edb in DB::writeDateTimeText<(char)45, (char)58, (char)32, (char)46> (datetime64=..., scale=7, buf=..., date_lut=...) at WriteHelpers.h:852
    2  0x0000000019c379b4 in DB::DataTypeDateTime64::serializeText (this=0x7ffff5c4b0d8, column=..., row_num=0, ostr=..., settings=...) at DataTypeDateTime64.cpp:66
    3  0x0000000019d297e4 in DB::IDataType::serializeAsText (this=0x7ffff5c4b0d8, column=..., row_num=0, ostr=..., settings=...) at IDataType.cpp:387

  [1]: https://clickhouse-test-reports.s3.yandex.net/19527/cea8ae162ffbf92e5ed29304ab010704c5d611c8/fuzzer_ubsan/report.html#fail1

Also fix CAST for DateTime64
2021-02-06 13:04:53 +03:00
Azat Khuzhin
0627ba0e36 Fix timezone argument for DateTime64
It should be marked with always const, otherwise it will bail:

    Code: 44, e.displayText() = DB::Exception: Illegal column String of time zone argument of function, must be constant string: While processing toDateTime(-1, 1, 'GMT'), Stack trace (when copying this message, always include the lines below):
2021-02-06 13:04:53 +03:00
Azat Khuzhin
f4c2048bf2 Fix toDateTime64(toDate()/toDateTime()) for DateTime64
Maybe this is even does not worth it, but at least there was code that
assume that this should work - ToDateTime64Transform in
FunctionsConversion.h.
2021-02-06 13:04:53 +03:00
vdimir
af26ad6df9
Minor changes in missed out date time functions 2021-02-06 12:49:04 +03:00
alesapin
31b4e1619c
Merge pull request #20120 from ClickHouse/update_poco_logging
Add logging if Poco cannot allocate thread in tcp server
2021-02-06 10:25:00 +03:00
alexey-milovidov
5c281bd2f1
Merge pull request #20133 from ClickHouse/fix_if_tuple
Fix if with tuple then/else arguments
2021-02-06 09:52:54 +03:00
alexey-milovidov
dee8f1fbf2
Merge pull request #20132 from ClickHouse/fix-data-type-parser-exponential
Fix the case when DataType parser may have exponential complexity
2021-02-06 08:42:40 +03:00