Alexey Milovidov
093108bf81
Normalize BigInt implementation
2021-01-27 03:54:57 +03:00
Alexey Milovidov
f3929b151a
Remove even more code
2021-01-26 22:04:03 +03:00
Azat Khuzhin
f4a4d33c2d
Suppress UBsan reports in addYears()
...
https://clickhouse-test-reports.s3.yandex.net/19528/1c364b6ee3a44487529954cf2792e615f7de0f82/fuzzer_ubsan/report.html#fail1
2021-01-26 01:12:40 +03:00
tavplubix
9fc1eba0bc
Update DateLUTImpl.h
2021-01-25 12:40:49 +03:00
alexey-milovidov
77af612bc5
Merge pull request #19466 from azat/UBsan-report-fixes
...
UBsan report fixes (arraySlice, addMinutes/addHours/addWeeks/addDays, sumWithOverflow(Decimal))
2021-01-24 22:27:15 +03:00
Azat Khuzhin
cb30a02540
Fix UBsan report in addDays(INT64_MAX)
...
https://clickhouse-test-reports.s3.yandex.net/19466/df53438a66ee95de790b60d35f36eca986590027/fuzzer_ubsan/report.html#fail1
2021-01-24 13:51:05 +03:00
Alexey Milovidov
505898747e
Fix buffer overflow in DateLUT
2021-01-23 01:58:41 +03:00
alexey-milovidov
303db08231
Merge pull request #19369 from filimonov/kafka_for_arm64
...
Kafka for arm64
2021-01-23 01:52:07 +03:00
Mikhail Filimonov
066fbfff0e
librdkafka support for arm64
2021-01-21 16:04:55 +01:00
Alexey Milovidov
4968f1733e
Annotations for DateLUT
2021-01-21 15:01:24 +03:00
Alexander Tokmakov
6847fdf772
fix
2021-01-20 14:12:33 +03:00
Ivan Lezhankin
3fb50dfa1b
Initial implementation of inline frames
2021-01-19 15:34:27 +03:00
Alexander Tokmakov
e2467427d1
Merge branch 'master' into update_cassandra
2021-01-19 14:10:15 +03:00
Alexey Milovidov
98a8a20b70
Fix MSan error in rocksdb #19213
2021-01-17 21:30:02 +03:00
Alexander Tokmakov
e57e242482
fix
2021-01-16 22:56:07 +03:00
Alexander Tokmakov
ff6c3c75c2
add protection from unsafe allocations
2021-01-12 18:41:24 +03:00
alexey-milovidov
a55260fa5c
Merge pull request #18871 from azat/fix-integrity-check
...
Fix integrity check
2021-01-08 22:32:39 +03:00
alexey-milovidov
4a54916733
Merge pull request #18858 from ClickHouse/better-strsignal
...
Import strsignal from Musl
2021-01-08 22:26:00 +03:00
Azat Khuzhin
6dba945a2e
untrap setenv() call (used for timezone)
...
This will also fix integrity check (#18811 ), the reason it does not pops
up on CI during PR testing because CI does not set
YANDEX_OFFICIAL_BUILD, while it does set it for commits merged into
upstream commits, and hence once it was merged the special build was
failed.
Follow-up for: #16366
2021-01-08 15:26:35 +03:00
Alexey Milovidov
10ea06edad
Import strsignal from Musl
2021-01-08 08:09:30 +03:00
alexey-milovidov
98bd7fb653
Merge branch 'master' into better-kill
2021-01-08 07:27:00 +03:00
Alexey Milovidov
32d8785a26
Better kill #18847
2021-01-07 21:36:38 +03:00
Alexey Milovidov
6f481d7512
Add integrity checks for ClickHouse binary
2021-01-07 05:56:57 +03:00
Azat Khuzhin
d7fb61dce4
Use sigdescr_np() over sys_siglist (fixes glibc 2.32+ unbundled build)
...
glibc 2.32 [1]:
- The functions sigabbrev_np and sigdescr_np have been added
- They should be used instead of sys_siglist or sys_sigabbrev and they
are both thread and async-signal safe. These functions are GNU
extensions.
[1]: https://sourceware.org/pipermail/libc-announce/2020/000029.html
2021-01-06 00:17:25 +03:00
Alexey Milovidov
98687ff8f4
Merge branch 'master' into harmful
2020-12-31 02:25:28 +03:00
Anton Popov
27e8fc0c8d
Merge pull request #18565 from hexiaoting/dev_date
...
Make Date larger then 2106-02-07 overflow as 0(1970-01-01)
2020-12-30 22:53:25 +03:00
hexiaoting
a2e5f7693a
Fix condition error
2020-12-30 11:20:38 +08:00
Alexey Milovidov
48605e7a30
Fixed exit code of watchdog
2020-12-29 20:36:10 +03:00
hexiaoting
ccaea5fa42
Make Date > 2106-02-07 overflow as 0
2020-12-28 19:09:41 +08:00
Yatsishin Ilya
ce1e2b18a3
Fix codespell warnings. Split style checks. Update style checks docker
2020-12-24 13:17:52 +03:00
Nikolai Kochetov
8ffadac2a3
Try disable ucontect for arcadia
2020-12-23 19:49:36 +03:00
Nikolai Kochetov
e56a1c442c
Use ucontext fir arcadia build.
2020-12-23 18:20:52 +03:00
Nikolai Kochetov
af7f5c9518
Merge pull request #17868 from ClickHouse/async-read-from-socket
...
Async read from socket
2020-12-23 12:20:42 +03:00
Alexey Milovidov
062c226498
Fix Darwin build
2020-12-22 20:13:18 +03:00
Alexey Milovidov
674d0083d9
Remove unused code; fix clang tidy; fix old comments
2020-12-22 20:10:10 +03:00
Alexey Milovidov
ea3db22c1a
Merge branch 'master' into watchdog
2020-12-22 19:54:57 +03:00
Alexey Milovidov
100f9d5de3
Fix error and remove useless code
2020-12-22 10:38:39 +03:00
alexey-milovidov
f0dc3ec152
Merge pull request #17665 from amosbird/clientedit
...
clickhouse-client editor
2020-12-22 09:53:54 +03:00
Alexey Milovidov
3dafd4bb49
Minor changes
2020-12-22 09:45:08 +03:00
Alexey Milovidov
f977184028
Slightly better
2020-12-22 06:17:31 +03:00
Alexey Milovidov
f9012b12fb
Proper implementation
2020-12-22 06:01:51 +03:00
Alexey Milovidov
bbc676d821
Adjustments
2020-12-22 00:03:02 +03:00
Alexey Milovidov
157c66ebdb
Merge branch 'master' into harmful
2020-12-21 10:57:50 +03:00
alexey-milovidov
578d2f4442
Merge pull request #17269 from ucasFL/fix
...
Avoid bigint_cast stack overflow
2020-12-21 10:38:16 +03:00
Amos Bird
fe16aec48b
add .sql suffix
2020-12-21 14:43:06 +08:00
Amos Bird
0d89e4aac6
correct write
2020-12-21 14:43:06 +08:00
Amos Bird
86aa155e62
Cleaner
2020-12-21 14:43:05 +08:00
Amos Bird
a3d52dd6a0
Don't shallow errors.
2020-12-21 14:43:05 +08:00
Amos Bird
91e8b35977
clickhouse-client editor
2020-12-21 14:43:05 +08:00
alexey-milovidov
b932b984a0
Update wide_integer_impl.h
2020-12-21 04:02:49 +03:00
Alexey Milovidov
0b556444a3
Add comments
2020-12-21 03:36:18 +03:00
Alexey Milovidov
79aa18cf88
Add comments
2020-12-21 03:35:43 +03:00
Alexey Milovidov
bd9ac84038
Update function blocklist
2020-12-21 03:28:19 +03:00
Alexey Milovidov
ceb644db18
Update function blocklist
2020-12-21 03:22:07 +03:00
Alexey Milovidov
b99634dc5d
Merge branch 'master' into harmful
2020-12-21 03:03:10 +03:00
Alexey Milovidov
ff82176933
Add powf and powl to glibc-compatibility
2020-12-21 02:54:05 +03:00
Alexey Milovidov
a159fc0a90
Merge branch 'master' into ucasFL-fix
2020-12-20 22:29:43 +03:00
alexey-milovidov
55ed2ab563
Update wide_integer_impl.h
2020-12-20 09:46:43 +03:00
Amos Bird
c447628d42
Add connection thread metrics
2020-12-18 15:22:55 +08:00
alexey-milovidov
6ee2ada592
Merge pull request #18204 from ClickHouse/remove-strerror
...
Do not use non thread-safe function `strerror`
2020-12-18 08:07:46 +03:00
Alexey Milovidov
ec5b030928
More functions
2020-12-17 21:39:04 +03:00
Alexey Milovidov
fb3d235e84
Do not use strerror
2020-12-17 21:25:12 +03:00
Alexey Milovidov
aa9dda5d9a
Do not use strerror
2020-12-17 21:08:42 +03:00
Maksim Kita
fd7fe0f84c
Updated ya.make
2020-12-17 12:10:46 +03:00
Alexey Milovidov
bef492240c
Apply harmful library only for clickhouse binary
2020-12-17 06:45:46 +03:00
Alexey Milovidov
42a4e38f08
Merge branch 'master' into harmful
2020-12-17 06:28:55 +03:00
Maksim Kita
685099af7f
Move getPageSize in common
2020-12-17 00:23:41 +03:00
Nikolai Kochetov
af83d82a84
Try use tsan annotated boost fibre.
2020-12-16 20:06:04 +03:00
alexey-milovidov
0d7e27d93f
Merge branch 'master' into fix
2020-12-14 23:02:14 +03:00
Nikolai Kochetov
8de5cd5bc7
Merge branch 'master' into async-read-from-socket
2020-12-14 17:45:38 +03:00
Nikolai Kochetov
e295dfe6e3
Use ucontext for asan
2020-12-14 17:42:08 +03:00
Nikolai Kochetov
dd6b5baa59
Add timerfd from musl
2020-12-14 17:41:59 +03:00
Amos Bird
88341fec82
client SIGWINCH fix
2020-12-12 00:34:40 +08:00
alesapin
dd9f4bfc8a
Merge pull request #16877 from ClickHouse/complete_zk_api
...
Fake in-memory ZooKeeper server inside ClickHouse
2020-12-10 10:47:54 +03:00
Nikita Mikhaylov
80d4af9a73
Merge pull request #17874 from nikitamikhaylov/calendar-date
...
Merging #17750
2020-12-10 00:19:04 +03:00
tavplubix
f13de96afc
Merge pull request #17366 from zhang2014/fix/ISSUES-16835
...
ISSUES-16835 try fix miss match header with MySQL SHOW statement
2020-12-09 23:12:47 +03:00
zhang2014
2f735aa61d
ISSUES-16835 try fix review comment
2020-12-09 16:19:09 +08:00
alesapin
3d0dbbe411
Fix build
2020-12-08 17:49:18 +03:00
alexey-milovidov
d9b52f94f7
Merge pull request #17637 from amosbird/buildid
...
reload symbols and fix build-id
2020-12-08 14:55:35 +03:00
Alexander Kazakov
0e41af11c7
Fixed typo in message format ( #17900 )
2020-12-08 14:28:35 +03:00
Winter Zhang
972cb41fae
Merge branch 'master' into fix/ISSUES-16835
2020-12-08 15:32:58 +08:00
PHO
d014ac4ce2
Provide a default constructor for wide::integer
...
The implicit one provided by compiler does not initialize its member
variable "items" because it's a POD array. GCC emits a warning about this.
2020-12-07 16:00:32 +03:00
fenglv
ff4ffd2c6d
Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix
2020-12-07 04:39:49 +00:00
Alexey Milovidov
a63d4f0db3
Merge branch 'master' into amosbird-buildid
2020-12-07 02:17:29 +03:00
alesapin
278bbf6d51
Merge branch 'master' into complete_zk_api
2020-12-04 16:48:19 +03:00
Ivan
315ff4f0d9
ANTLR4 Grammar for ClickHouse and new parser ( #11298 )
2020-12-04 05:15:44 +03:00
Alexander Kazakov
81d9d3237f
In mysqlxx::Pool: fix for reconnection problem ( #17681 )
...
Remove stalled unrecoverable connections from myqsl connections pool
2020-12-03 23:36:10 +03:00
Ilya Yatsishin
9b72323594
Try fix arcadia build ( #17720 )
...
* Try fix arcadia build
* fix
2020-12-02 17:54:52 +03:00
alesapin
93ea2f5b1f
Merge branch 'master' into complete_zk_api
2020-12-02 11:30:09 +03:00
alexey-milovidov
c0489ce537
Merge pull request #17543 from ClickHouse/sentry-official-cpu-ram
...
Sentry: send info about official build, memory, cpu and free disk space.
2020-12-01 10:33:10 +03:00
Yuriy Chernyshov
a6e66fc3b5
Use feature testing macro to test if char8_t is supported
2020-11-30 22:36:30 +03:00
Amos Bird
310918b06a
reload symbols and fix build-id
2020-11-30 22:30:55 +08:00
alexey-milovidov
81e4885664
Merge pull request #17556 from ClickHouse/memory-amount-worse
...
getMemoryAmount: make code worse
2020-11-30 12:53:50 +03:00
alesapin
6d2a007b79
Merge branch 'master' into complete_zk_api
2020-11-30 10:58:25 +03:00
Alexey Milovidov
97242e1fee
Merge branch 'master' into sentry-official-cpu-ram
2020-11-30 09:40:10 +03:00
Alexey Milovidov
f80ae936ad
Fix parsing of multiline queries in interactive mode #13654
2020-11-29 17:50:42 +03:00
Alexey Milovidov
7627f4f371
getMemoryAmount: make code worse
2020-11-29 15:13:10 +03:00
Alexey Milovidov
c516b96b00
Add comment
2020-11-29 11:34:42 +03:00
Alexey Milovidov
a8937ca792
Send info about official build, memory and cpu to Sentry
2020-11-29 11:31:06 +03:00
Alexey Milovidov
448ef3aca1
Send info about official build, memory and cpu to Sentry
2020-11-29 11:25:38 +03:00
fenglv
5c5d72379a
Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix
2020-11-28 03:38:29 +00:00
alesapin
89c292f5b7
Fix response pipe read
2020-11-27 13:12:11 +03:00
alexey-milovidov
d3b10c91f0
Update wide_integer_impl.h
2020-11-26 08:03:54 +03:00
Vitaly Baranov
08b3707842
Merge pull request #15111 from vitlibar/grpc-protocol
...
Implement GRPC protocol.
2020-11-25 09:00:32 +03:00
zhang2014
a74235397e
ISSUES-16835 try fix miss match header with MySQL SHOW statement
2020-11-24 23:31:43 +08:00
Vitaly Baranov
7b0f94b5f2
glibc-compatibility: Add secure_getenv().
2020-11-24 17:55:02 +03:00
Vitaly Baranov
3253a525e2
glibc-compatibility: Add getauxval().
2020-11-24 17:55:02 +03:00
Vitaly Baranov
a61359c224
glibc-compatibility: Add accept4() from musl 1.2.1.
2020-11-24 17:55:02 +03:00
Vitaly Baranov
fc67aaec20
glibc-compatibility: Add epoll_create1() from musl 1.2.1.
2020-11-24 17:55:02 +03:00
Vitaly Baranov
d949898890
glibc-compatibility: Add eventfd(), eventfd_read(), eventfd_write() from musl 1.2.1.
2020-11-24 17:55:02 +03:00
Alexander Tokmakov
60a5782c75
fix AST formatting in log messages
2020-11-22 20:23:12 +03:00
fenglv
615287ae75
Avoid bigint_cast stack overflow
2020-11-22 03:42:16 +00:00
Matwey V. Kornilov
9d509cfc56
Add missed <stdexcept>
...
std::logic_error is used at line 294, so the appropriate header is required.
2020-11-21 13:26:38 +03:00
alexey-milovidov
b494b18748
Merge pull request #17108 from ClickHouse/ya-make-owners
...
Add "OWNER" to ya.make files.
2020-11-17 05:19:46 +03:00
Alexey Milovidov
24f4fa6edf
Follow Arcadia ya.make rules
2020-11-17 00:16:50 +03:00
Alexey Milovidov
3df04ce0c2
Follow Arcadia ya.make rules
2020-11-16 21:24:58 +03:00
myrrc
2430d9d20d
fixed the UB when casting from double to int64_t
...
Corresponding upstream fix: https://github.com/cerevra/int/pull/24
2020-11-13 18:13:15 +03:00
Ivan
902091cc07
Slightly better miniselect usage ( #16896 )
...
* Slightly better miniselect usage
* Update ColumnDecimal.cpp
2020-11-13 14:28:18 +03:00
sundyli
5ef809931e
Merge branch 'master' into storage-rocksdb
2020-11-12 08:26:27 +08:00
sundy-li
c7617173c4
add sync_file_range for glibc-compatibility
2020-11-11 09:08:52 +08:00
Alexander Tokmakov
b94cc5c4e5
remove more stringstreams
2020-11-10 21:22:26 +03:00
Alexander Tokmakov
5cdfcfb307
remove other stringstreams
2020-11-09 22:12:44 +03:00
Alexander Tokmakov
a06be511df
pcg serialization
2020-11-09 16:07:38 +03:00
Alexey Milovidov
b56486510f
Improve Arcadia
2020-11-05 12:55:01 +03:00
Alexey Milovidov
53ef792fe5
Fix gcc build
2020-10-28 02:00:16 +03:00
Alexey Milovidov
91e80598cd
Add "harmful" library
2020-10-28 02:00:16 +03:00
Mikhail Filimonov
41971e073a
Fix typos reported by codespell
2020-10-27 12:04:03 +01:00
nikitamikhaylov
8a39b65fa2
fix build and tests
2020-10-19 19:15:22 +03:00
nikitamikhaylov
7a97329209
Merge branch 'master' of github.com:ClickHouse/ClickHouse into welch-t-test
2020-10-19 18:54:26 +03:00
nikitamikhaylov
ff7601a52c
add python test and fix build
2020-10-14 21:41:35 +03:00
nikitamikhaylov
252b9b2ec1
better
2020-10-14 16:54:55 +03:00
nikitamikhaylov
f9204135d8
add lgammal.c
2020-10-14 16:54:02 +03:00
Alexey Milovidov
87fe8f2a00
Merge branch 'master' into filipecaixeta-master
2020-10-14 15:27:58 +03:00
Azat Khuzhin
f7bf94b5d3
Check return value of the history_save/history_load
...
The coding style is different and this is the intention, to make look
like surrounding code.
2020-10-12 23:57:00 +03:00
Azat Khuzhin
f211d33841
Avoid creating separate replxx instance
...
This replxx object is pretty heavy and in debug build may slow down [1]
(although I cannot confirm 0.5s delay for each query in debug build) the
client and besides it is not required since ClickHouse-Extras/replxx#10 ,
which changes the behaviour of history_save(), and now it will not
update current session anymore, only save the history to the disk.
[1]: https://github.com/ClickHouse/ClickHouse/pull/13086#issuecomment-667719026
2020-10-12 23:56:29 +03:00
Alexey Milovidov
a171af157e
Remove seven years old trash
2020-10-11 18:52:33 +03:00
Alexey Milovidov
269b6383f5
Check for #pragma once in headers
2020-10-10 21:37:02 +03:00
alesapin
16fa71a4c9
Missed comment
2020-10-08 20:46:59 +03:00
alesapin
70f2a3328d
Better atomic operations on refcount
2020-10-08 20:45:18 +03:00
alesapin
de722cd57c
Fix race condition in MySQL pool
2020-10-08 18:50:09 +03:00
alesapin
c5df9433f0
Merge pull request #15239 from ClickHouse/100_percent_lld_11_for_clang_11
...
Build ClickHouse for release with clang-11
2020-10-02 14:59:29 +03:00
Amos Bird
7c9bbe4c29
Neutrialize thinlto's memcpy libcall gen.
...
(cherry picked from commit 8ffa4d395c
)
2020-10-01 22:22:32 +03:00
alesapin
38e50d1078
Revert "enable FastMemcpy properly"
...
This reverts commit 6e23901227
.
2020-10-01 10:38:06 +03:00
Amos Bird
6e23901227
enable FastMemcpy properly
2020-09-30 18:52:49 +03:00
Artem Zuikov
4fd1db73a1
Faster 256-bit multiplication ( #15418 )
2020-09-29 20:52:34 +03:00
tavplubix
421d3b0b86
Merge pull request #14760 from bharatnc/ncb/event_time_microsec_p2
...
add event_time_microseconds field for system.{trace,text,query,query_thread}_log tables
2020-09-28 18:34:21 +03:00
alesapin
071ff6c9af
Merge pull request #15063 from azat/symbolizers-settings-for-non-server
...
Set sanitizers options in the current shell too
2020-09-28 17:44:39 +03:00
alesapin
1adc0a8205
Fix race condition in client suggestions
2020-09-28 12:58:42 +03:00
Artem Zuikov
b4f1eb07ff
slightly better bigint plus/minus ( #15320 )
2020-09-28 12:07:45 +03:00
bharatnc
a351980717
TextLog - add event_time_microseconds field
2020-09-25 10:39:37 -07:00
alexey-milovidov
31ece3bda5
Merge pull request #15145 from 4ertus2/debt
...
Better min/max for Int128
2020-09-23 02:03:51 +03:00
Artem Zuikov
2e6edc250c
better min/max for Int128
2020-09-22 14:35:46 +03:00
Alexander Kuzmenkov
dde4cf70e1
Merge remote-tracking branch 'origin/master' into HEAD
2020-09-22 14:03:59 +03:00
Alexey Milovidov
ef5363b87f
Fix terribly wrong code
2020-09-19 02:05:13 +03:00
Alexey Milovidov
37facf4482
Fix clang-tidy
2020-09-19 02:05:13 +03:00
alexey-milovidov
456c970929
Merge pull request #14808 from ClickHouse/remove-header
...
Remove one header
2020-09-18 21:57:00 +03:00
Artem Zuikov
0520b05001
Speedup wide integers ( #14859 )
2020-09-18 12:51:44 +03:00
Alexey Milovidov
9df338f37b
Merge branch 'master' into remove-header
2020-09-18 01:18:53 +03:00
Alexander Kuzmenkov
fb64cf210a
straighten the protocol version
2020-09-17 17:37:29 +03:00
Artem Zuikov
51ba12c2c3
Try speedup build ( #14809 )
2020-09-15 12:55:57 +03:00
Alexey Milovidov
3795dfed14
Remove one header
2020-09-14 16:34:44 +03:00
Artem Zuikov
d274125c74
Fix wide integer left shift + refactoring ( #14697 )
2020-09-14 14:56:43 +03:00
Alexey Milovidov
4e197cf069
Remove unused headers
2020-09-10 19:41:46 +03:00
Vasily Nemkov
3973a17530
MySql datatypes dateTime64 and decimal ( #11512 )
2020-09-09 15:18:02 +03:00
Alexey Milovidov
e3924b8057
Fix "Arcadia"
2020-09-08 01:14:13 +03:00
Artem Zuikov
7c20aa2c62
Another 256-bit integers (strict 32 bytes) ( #14229 )
2020-09-04 16:33:02 +03:00
Artem Zuikov
d304d522cc
Refactoring: rename types to allow change bigint library ( #14219 )
2020-09-01 12:54:50 +03:00
Yatsishin Ilya
a47ffd191d
Change my_bool to bool.
...
The my_bool type no longer exists, and people may have been using it in their own code since some mysql.h functions have been returning that. The recommended fix is to use bool or int, which will work both in 8.0 and older versions.
https://bugs.mysql.com/bug.php?id=85131
2020-08-28 11:59:50 +03:00
Konstantin Podshumok
ef858027d4
unbundled: fix detection of mariadb headers
...
Squashed:
- unbundled: add warning about mariadbclient dependencies
Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
2020-08-25 20:16:42 +03:00
alexey-milovidov
7ea5364299
Merge pull request #13648 from filimonov/tzdata_version2
...
tzdata improvements
2020-08-24 23:07:37 +03:00
myrrc
d298409660
Merge remote-tracking branch 'upstream/master' into bug/low-cardinality-arrays-optimisations
2020-08-20 12:07:02 +03:00
Artem Zuikov
becc186c91
Add support for extended precision integers and decimals ( #13097 )
2020-08-19 14:52:17 +03:00
Alexey Milovidov
eeb769d2d4
Remove useless code around zkutil
2020-08-18 22:02:07 +03:00
Alexey Milovidov
5ac2ed9e5b
Generate ya.make #13572
2020-08-18 12:53:21 +03:00
Alexey Milovidov
b5af14d6a0
Generate ya.make
2020-08-18 12:47:29 +03:00
alexey-milovidov
1e80318b94
Merge pull request #13600 from amosbird/rlfix
...
Readline fix
2020-08-16 17:41:50 +03:00
alexey-milovidov
6ac1534f21
Merge pull request #13684 from azat/exceptions-from-signal-handlers
...
Reset signal handlers just before closing signal pipe to avoid EBADF after
2020-08-14 04:37:54 +03:00
Mikhail Filimonov
fe55ef6b2c
Trying to fix TZ with plus sign inside
2020-08-13 23:28:56 +02:00
Azat Khuzhin
b7ba0b64dc
Reset signal handlers just before closing signal pipe to avoid EBADF after
...
stack trace:
(gdb) bt
0 0x00007ffff7dda355 in raise () from /usr/lib/libc.so.6
1 0x00007ffff7dc3853 in abort () from /usr/lib/libc.so.6
2 0x0000000013a78180 in abort_message (format=format@entry=0x5781e10 "terminate_handler unexpectedly threw an exception") at abort_message.cpp:76
3 0x0000000013a899ff in std::__terminate (func=<optimized out>) at cxa_handlers.cpp:67
4 0x0000000013a771a1 in __cxxabiv1::call_terminate (native_exception=native_exception@entry=true, unwind_exception=unwind_exception@entry=0x7ffff70e9060) at cxa_personality.cpp:323
5 0x0000000013a77669 in __cxxabiv1::scan_eh_tab (results=..., actions=<optimized out>, native_exception=native_exception@entry=true, unwind_exception=0x7ffff70e9060, context=context@entry=0x7fffffffc3a0) at cxa_personality.cpp:887
6 0x0000000013a77bde in __cxxabiv1::__gxx_personality_v0 (version=<optimized out>, actions=<optimized out>, exceptionClass=<optimized out>, unwind_exception=0x7ffff70e9060, context=0x7fffffffc3a0) at cxa_personality.cpp:969
7 0x0000000013a962d7 in unwind_phase1 (exception_object=0x7ffff70e9060, cursor=0x7fffffffc3a0, uc=0x7fffffffc2f0) at UnwindLevel1.c:98
8 _Unwind_RaiseException (exception_object=exception_object@entry=0x7ffff70e9060) at UnwindLevel1.c:363
9 0x0000000013a8929b in __cxxabiv1::__cxa_rethrow () at cxa_exception.cpp:607
10 0x000000000f170ad2 in DB::WriteBuffer::next (this=0x7fffffffc510) at WriteBuffer.h:52
11 writeSignalIDtoSignalPipe (sig=<optimized out>) at BaseDaemon.cpp:111
12 <signal handler called>
13 0x00007ffff7e9895b in munmap () from /usr/lib/libc.so.6
14 0x00007ffff7f7e255 in free_stacks () from /usr/lib/libpthread.so.0
15 0x00007ffff7f7e6aa in __deallocate_stack () from /usr/lib/libpthread.so.0
16 0x00007ffff7f80898 in __pthread_clockjoin_ex () from /usr/lib/libpthread.so.0
17 0x0000000013a759f7 in std::__1::__libcpp_thread_join (__t=0x7fff0aa2b090) at __threading_support:409
18 std::__1:🧵 :join (this=this@entry=0x7fff0aa2b090) at thread.cpp:56
19 0x000000000a4c9399 in ThreadPoolImpl<std::__1::thread>::finalize (this=this@entry=0x7ffff7053900) at list:355
20 0x000000000a4c9426 in ThreadPoolImpl<std::__1::thread>::~ThreadPoolImpl (this=0x7ffff7053900, __in_chrg=<optimized out>) at ThreadPool.cpp:172
21 0x000000000a4c8a9c in GlobalThreadPool::~GlobalThreadPool (this=0x7ffff7053900, __in_chrg=<optimized out>) at ThreadPool.h:132
22 std::__1::default_delete<GlobalThreadPool>::operator() (__ptr=0x7ffff7053900, this=<optimized out>) at memory:2363
23 std::__1::unique_ptr<GlobalThreadPool, std::__1::default_delete<GlobalThreadPool> >::reset (__p=0x0, this=<optimized out>) at memory:2618
24 std::__1::unique_ptr<GlobalThreadPool, std::__1::default_delete<GlobalThreadPool> >::~unique_ptr (this=<optimized out>, __in_chrg=<optimized out>) at memory:2572
25 0x00007ffff7ddcc57 in __run_exit_handlers () from /usr/lib/libc.so.6
26 0x00007ffff7ddcdfe in exit () from /usr/lib/libc.so.6
27 0x00007ffff7dc5009 in __libc_start_main () from /usr/lib/libc.so.6
28 0x000000000a48702e in _start () at new:340
2020-08-13 23:12:36 +03:00
myrrc
e2e38e30d0
Merge remote-tracking branch 'upstream/master' into bug/low-cardinality-arrays-optimisations
2020-08-12 19:12:08 +03:00
myrrc
82206e89dd
fixed perftest long test and StringRef assert
2020-08-12 17:07:56 +03:00
myrrc
67d716b5cc
revert accidental changes
2020-08-11 16:36:28 +03:00
Alexander Kazakov
6e0d536327
Merge branch 'master' into bug/low-cardinality-arrays-optimisations
2020-08-11 16:25:20 +03:00
Amos Bird
1eda00d27d
Readline fix
2020-08-11 17:49:39 +08:00
Alexey Milovidov
16b9d77ebf
Merge branch 'master' of github.com:yandex/ClickHouse into clickhouse-install
2020-08-11 00:41:35 +03:00
Ivan
c8d3999693
Enable Poco::NetSSL support in ya.make
2020-08-10 14:18:57 +03:00
Alexey Milovidov
6716e442f9
Merge branch 'master' of github.com:yandex/ClickHouse into clickhouse-install
2020-08-10 02:20:37 +03:00
Vitaly Baranov
2e6ba2a05d
Merge pull request #13496 from vitlibar/compound-identifiers-for-custom-settings
...
Support compound identifiers for custom settings.
2020-08-10 01:03:02 +03:00
Alexey Milovidov
0eac2d4054
Merge branch 'embed-configs' into clickhouse-install
2020-08-09 02:42:06 +03:00
Alexey Milovidov
182e2929f3
Merge branch 'master' into embed-configs
2020-08-09 02:41:44 +03:00
Alexey Milovidov
b4ac900462
Fix "Arcadia" build
2020-08-09 02:38:53 +03:00
alexey-milovidov
ba5988dcf6
Merge pull request #13446 from ClickHouse/fix-netloc
...
Function "netloc": fix wrong code.
2020-08-09 01:39:46 +03:00
Alexey Milovidov
d9db0a3442
Add simple "clickhouse-install" tool
2020-08-08 21:38:34 +03:00
Vitaly Baranov
5401694138
splitInto() now can put result into a vector of std::string_view.
2020-08-08 19:35:53 +03:00
Alexey Milovidov
0d70393bac
Fix build
2020-08-08 07:55:33 +03:00
Alexey Milovidov
0f79eb3cc5
Embed configs into binary
2020-08-08 06:42:42 +03:00
Alexey Milovidov
0cbbe153cd
Fix typos, the last 1%
2020-08-08 04:21:04 +03:00
Alexey Milovidov
d1ed1fb83a
Fix error
2020-08-07 04:04:37 +03:00
alesapin
aa7d5adf11
Merge pull request #13379 from ClickHouse/remove-recursive-submodules
...
Remove recursive submodules
2020-08-06 11:50:40 +03:00
Nikita Mikhaylov
fa51f15f00
fix style
2020-08-05 19:23:14 +03:00
Nikita Mikhaylov
b80677fdb3
Update OwnSplitChannel.cpp
2020-08-05 18:12:06 +03:00
Alexey Milovidov
2cd811975a
Update Sentry
2020-08-05 17:41:27 +03:00
nikitamikhaylov
4e3c7c60b7
fix build
2020-08-05 16:39:14 +03:00
nikitamikhaylov
264320a82c
done
2020-08-05 16:33:04 +03:00
Alexander Kuzmenkov
0eaab3d095
Merge pull request #13191 from ClickHouse/aku/semicolon-cleanup
...
Cleanup for #12999 . NFC
2020-08-05 14:53:27 +03:00
myrrc
98119af9de
Merge remote-tracking branch 'upstream/master' into bug/low-cardinality-arrays-optimisations
2020-08-04 15:01:27 +03:00
Alexander Kuzmenkov
e7744cc15c
Merge remote-tracking branch 'origin/master' into HEAD
2020-08-03 16:35:42 +03:00
Alexey Milovidov
d3c0635fc0
Merge branch 'master' into stack-frams-size-limit
2020-08-02 04:35:09 +03:00
Alexey Milovidov
64d91d0f90
Fix build; fix errors
2020-08-01 18:54:44 +03:00
Alexey Milovidov
9ef9d31f03
Crash log: development
2020-07-31 23:16:31 +03:00
Alexander Kuzmenkov
efb09d7ff5
Cleanup for #12999 . NFC.
2020-07-31 17:53:41 +03:00
Alexey Milovidov
c202691319
Merge branch 'master' into stack-frams-size-limit
2020-07-30 23:53:52 +03:00
Azat Khuzhin
b7eee3afe0
Add a comment of explicit flock() in ReplxxLineReader::addToHistory()
2020-07-29 21:00:46 +03:00
Azat Khuzhin
d6102869e5
Avoid re-loading completion from the history file after each query
...
By default replxx reload history from the file in
replxx::Replxx::history_save(), and this will overlaps current session
history with the history from other sessions, and this does not looks a
great idea (bash and other interpreters don't do this).
So to avoid this, use separate replxx::Replxx instance.
2020-07-29 21:00:46 +03:00
myrrc
0f5b089270
fix: ubsan, EMPTY_STRING_REF constant
2020-07-29 01:08:09 +03:00
myrrc
da9502e496
Merge remote-tracking branch 'upstream/master' into bug/low-cardinality-arrays-optimisations
2020-07-28 15:06:39 +03:00
alexey-milovidov
da32e62daa
Fix comment (tnx Pavel Belikov) ( #12957 )
2020-07-28 11:58:26 +03:00
myrrc
61ef8852a1
reverting explicit fix
2020-07-22 23:13:57 +03:00
myrrc
586ecf0a0b
fixed 2 explicit constructors
2020-07-22 23:10:12 +03:00
myrrc
1d0bf93444
added perftest, fixed style check and PVS bugs
2020-07-22 22:44:11 +03:00
myrrc
222eb7fba3
fixed result column overwriting
2020-07-22 16:18:21 +03:00
Alexey Milovidov
50bbfc848d
Merge branch 'master' into stack-frams-size-limit
2020-07-21 14:45:15 +03:00
Vitaly Baranov
0b17595a91
Merge pull request #12423 from vitlibar/update-simdjson
...
Update simdjson
2020-07-20 10:15:38 +03:00
Vitaly Baranov
61e43c3ef9
Make conversion std::string_view => StringRef explicit.
2020-07-19 12:50:24 +03:00
Alexander Kuzmenkov
f785837b1d
Merge pull request #12518 from ClickHouse/aku/android
...
Some provisions for Android build
2020-07-15 22:05:41 +03:00
Alexander Kuzmenkov
3e6b9f297f
Some provisions for Android build
2020-07-15 14:16:00 +03:00
Alexey Milovidov
360bf61639
Fix error
2020-07-13 03:45:18 +03:00
Alexey Milovidov
f2fe419ca9
Saturate negative unix timestamp to zero instead of overflow
2020-07-13 01:48:22 +03:00
Alexey Milovidov
d07af62370
Log sanitizer trap messages from separate thread
2020-07-09 05:00:48 +03:00
alexey-milovidov
4f63af957d
Merge pull request #12145 from ClickHouse/fix-suggest-word-break-chars
...
Remove underscore as word-break character.
2020-07-06 08:51:35 +03:00
alexey-milovidov
1719ab1ec5
Merge pull request #12041 from azat/curl-proper-cmake
...
Rewrite curl dependency in a more ch compatible way
2020-07-06 06:31:51 +03:00
Alexey Milovidov
5eb60d5bd3
Remove underscore as word-break character. This partially reverts #11975
2020-07-06 01:16:32 +03:00
Alexey Milovidov
10c40f4b11
Attempt to fix "Arcadia" build
2020-07-05 03:48:00 +03:00
Alexey Milovidov
96e8e93c64
Fix warnings from CodeQL
2020-07-05 02:16:16 +03:00
Alexey Milovidov
176a7f2f72
Normalize "pid" file handling #3501
2020-07-04 16:54:24 +03:00
Azat Khuzhin
0700a705bc
Rewrite curl dependency in a more ch compatible way
...
- add support of unbundled curl
- add CURL::libcurl libraries
- avoid explicit linkage of daemon with curl (added with sentry)
- set CACHE variables for non-direct users:
- mariadb-connector-c
- aws-s3-cmake
- sentry-native
Cc: @alexey-milovidov
Cc: @alesapin (requires docker image update)
Cc: @abyss7
Refs: #11300
Refs: #8011
Refs: #8905
v2: replace cmake/find/curl.cmake with proper contrib/curl-cmake (as
pointed by @abyss7, cmake/find/*.cmake is deprecated)
2020-07-03 00:57:08 +03:00
alexey-milovidov
77c4861430
Merge pull request #11975 from oandrew/fix-word-breaks
...
Extend word break config to all non-alphanumeric chars
2020-06-27 19:13:44 +03:00
Andrew Onyshchuk
80c0676031
Extend word break config to all non-alphanumeric chars
2020-06-25 20:36:09 -05:00
Ivan Blinkov
db568b477e
lost unused
2020-06-24 11:12:47 +03:00
Ivan Blinkov
3ed76a388e
send build_id to sentry as well + fix some minor issues
2020-06-24 00:27:04 +03:00
Ivan Blinkov
45d1ca2567
merge master
2020-06-24 00:18:16 +03:00
Ivan Blinkov
87d56d700f
restore old toStringImpl signature
2020-06-24 00:15:54 +03:00
Alexey Milovidov
b50b4b14de
Merge branch 'master' into send-logs-on-fatal-errors
2020-06-22 15:48:46 +03:00
Ivan Blinkov
2c0ff29c48
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-22 10:06:36 +03:00
Alexey Milovidov
fe71a8eb8c
Merge branch 'master' into send-logs-on-fatal-errors
2020-06-21 13:55:11 +03:00
Alexey Milovidov
ea35829481
Fix build
2020-06-21 13:46:41 +03:00
Alexey Milovidov
7f05d2bac0
Merge branch 'master' into print-build-id
2020-06-21 13:44:32 +03:00
alexey-milovidov
45fbc96f19
Merge pull request #11827 from ClickHouse/remove-tzdata-dependency
...
Remove dependency on tzdata
2020-06-21 00:20:01 +03:00
Alexey Milovidov
581d1a4470
Fix build
2020-06-20 21:05:44 +03:00
Alexey Milovidov
6eda152726
Remove dependency on tzdata
2020-06-20 15:26:44 +03:00
Alexey Milovidov
b2d1e08dd6
Fix build
2020-06-20 14:31:38 +03:00
Alexey Milovidov
7ba25bd799
Make it work
2020-06-20 14:17:15 +03:00
Alexey Milovidov
beae4d5db1
Fix sleep in signal handler
2020-06-20 13:15:53 +03:00
Alexey Milovidov
9f42e81ef9
Send logs on fatal errors (development)
2020-06-20 13:10:18 +03:00
Alexey Milovidov
2897a54072
Fix build
2020-06-20 12:17:31 +03:00
Alexey Milovidov
7fcdfa1f88
Print build id on startup
2020-06-20 12:13:11 +03:00
Alexey Milovidov
ead4a2cfd9
Print build id in crash messages
2020-06-20 12:07:05 +03:00
Ivan Blinkov
102628ff09
remove extra line
2020-06-17 10:54:06 +03:00
Ivan Blinkov
8b50e3450b
move the default endpoint to config
2020-06-16 23:01:15 +03:00
Ivan Blinkov
1fd0f0ff07
Merge branch 'sentry' of github.com:blinkov/ClickHouse into sentry
2020-06-16 16:02:44 +03:00
Ivan Blinkov
0e77692a27
improvements after review comments
2020-06-16 15:56:28 +03:00
alexey-milovidov
92c7760c6e
Update CMakeLists.txt
2020-06-16 02:51:33 +03:00
alexey-milovidov
977fd3e44f
Update CMakeLists.txt
2020-06-16 02:45:05 +03:00
Ivan Blinkov
395ef1ecaf
experiment
2020-06-12 09:35:31 +03:00
Ivan Blinkov
e92641858e
fixes
2020-06-12 01:00:35 +03:00
Ivan Blinkov
bbeb768a19
use the sentry logger hook
2020-06-11 21:12:48 +03:00
Ivan Blinkov
fa47fc3f30
fix address formatting
2020-06-11 15:34:02 +03:00
Ivan Blinkov
5fa4401991
fix
2020-06-10 21:18:34 +03:00
Ivan Blinkov
0a74c9373e
less confusing
2020-06-10 19:48:08 +03:00
Ivan Blinkov
60b40f0403
Lost part of refactoring
2020-06-10 17:51:25 +03:00
Ivan Blinkov
6191d33bd9
Do not cache frames inside StackTrace
2020-06-10 16:30:12 +03:00
Ivan Blinkov
6f7064928f
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-09 19:07:57 +03:00
Ivan
47ad338cb2
Refactor CMake build files ( #11390 )
...
* Get rid of lib_name.cmake
* Refactor Boost and HyperScan libraries
* Refactor lz4
* Fix build with xxHash
2020-06-09 13:54:49 +03:00
Ivan Blinkov
5b3fef526e
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-09 11:51:29 +03:00
Alexey Milovidov
9b53cb052f
Limit stack frame size in tests
2020-06-09 01:45:38 +03:00
Matwey V. Kornilov
269bf6f5ef
Fix missed #include <functional>
...
<functional> is required for std::hash
2020-06-08 19:25:21 +03:00
Matwey V. Kornilov
339703d1b8
Fix missed #include <utility>
...
<utility> is required for std::move
2020-06-08 18:03:54 +03:00
alexey-milovidov
ce4f528b73
Merge branch 'master' into kuskarov-add_syntax_highlighting
2020-06-08 02:14:09 +03:00
Alexey Milovidov
df19db1509
Added a test for history in clickhouse-client
2020-06-07 20:29:34 +03:00
alexey-milovidov
6b97fd6378
Update ReplxxLineReader.cpp
2020-06-06 12:51:42 +03:00
alexey-milovidov
7003fe8258
Update ReplxxLineReader.cpp
2020-06-06 12:49:15 +03:00
Ivan Blinkov
653a9afda0
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-05 22:51:28 +03:00
Alexey Milovidov
e1b5ee51c1
Better way to plug in the code
2020-06-05 01:45:04 +03:00
Alexey Milovidov
275075b6f7
Revert all changes but save commit history from @kuskarov
2020-06-05 01:44:29 +03:00
Tagir Kuskarov
d0312bf1fe
Fix
2020-06-05 02:36:40 +04:00
Alexey Milovidov
fcd7fd8e7c
Updates for #11422
2020-06-05 01:31:19 +03:00
Tagir Kuskarov
d916d0849d
Add diagnostic messages
2020-06-05 02:10:22 +04:00
Tagir Kuskarov
83ba86c5f6
Fix history bug
2020-06-05 01:31:51 +04:00
Tagir Kuskarov
fed90652c9
Move files
2020-06-04 05:04:57 +04:00
Ivan Blinkov
921b7c7480
partial revert
2020-06-02 22:25:34 +03:00
Ivan Blinkov
711e7d101d
experiment
2020-06-02 21:50:55 +03:00
Tagir Kuskarov
643c3cd153
Add syntax highlighting first version
2020-06-02 16:08:09 +04:00
Ivan Blinkov
280eea1e12
fix compiling when disabled
2020-06-02 10:33:11 +03:00
Ivan Blinkov
40f6e559e2
fix compiling when disabled
2020-06-02 08:29:29 +03:00
alexey-milovidov
73a05d9b6d
Update LineReader.h
2020-06-02 06:30:00 +03:00
Alexey Milovidov
38829beb1c
Minor updates
2020-06-02 06:28:59 +03:00
Alexey Milovidov
1bbbfc6e1b
Fix \G in clickhouse-client multiline mode #9933
2020-06-02 06:25:19 +03:00
Ivan Blinkov
e9a04f7741
more build fixes
2020-06-01 23:48:42 +03:00
Ivan Blinkov
6bd4282727
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-01 21:49:56 +03:00
Ivan Blinkov
1797a47a9f
fix clang warnings
2020-06-01 21:25:25 +03:00
Alexey Milovidov
7fcfcf201d
Fix unit tests under MSan
2020-06-01 20:07:27 +03:00
Ivan Blinkov
acf22bfb19
fix sanitizers build
2020-06-01 19:42:59 +03:00
Ivan Blinkov
3e0811f297
Adapt to recent logging changes
2020-06-01 17:15:14 +03:00
Ivan Blinkov
fcc7ff0ef9
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-01 08:42:03 +03:00
alexey-milovidov
9984e989c1
Merge pull request #11317 from ClickHouse/logger-fmt-2
...
Preparation for structured logging
2020-06-01 00:11:29 +03:00
Alexey Milovidov
d2eb58142e
Fix build
2020-05-31 16:51:37 +03:00
Alexey Milovidov
e3dc1d6734
Fix build
2020-05-31 16:50:40 +03:00
Alexey Milovidov
669a15b943
Whitespaces
2020-05-31 16:48:43 +03:00
Alexey Milovidov
b444615404
Compatibility with Arcadia build
2020-05-31 16:47:58 +03:00
Alexey Milovidov
25f941020b
Remove namespace pollution
2020-05-31 00:57:37 +03:00
Ivan Blinkov
be94d8454d
fix Arcadia build
2020-05-30 13:54:57 +03:00
Ivan Blinkov
52f7b9545b
Add http_proxy option
2020-05-30 11:24:21 +03:00
Ivan Blinkov
77d8c9baca
Add anonymize option and version tag
2020-05-30 11:02:13 +03:00
Ivan Blinkov
f88b85625a
style
2020-05-30 00:36:47 +03:00
Ivan Blinkov
69dedcbe21
Move sending crash reports below logging
2020-05-30 00:28:55 +03:00
Ivan Blinkov
a84123195b
adjust comments
2020-05-29 23:08:05 +03:00
Ivan Blinkov
95ee742ee7
merge master
2020-05-29 22:56:10 +03:00
Ivan Blinkov
d9bb3ef91b
Add logging and adjust initialization
2020-05-29 22:48:32 +03:00
Alexey Milovidov
e8f52337aa
Fix incorrect usage of fmtlib
2020-05-29 03:09:12 +03:00
Ivan Blinkov
52e4a0293d
Keep sentry-native in debug mode only under setting
2020-05-27 23:21:53 +03:00
Ivan Blinkov
31123236cb
Settings for crash report opt-in
2020-05-27 23:15:33 +03:00
Ivan Blinkov
709b4f42c8
Prototype sending crash reports on segfaults
2020-05-27 22:11:04 +03:00
Alexey Milovidov
2fd48696dc
Fix build
2020-05-24 12:50:30 +03:00
Alexey Milovidov
5388693343
Fix Arcadia build
2020-05-24 01:33:29 +03:00
Alexey Milovidov
7e1813825b
Return old names of macros
2020-05-24 01:24:01 +03:00
Alexey Milovidov
61cc605ee7
Remove old method
2020-05-24 01:21:29 +03:00
Alexey Milovidov
cd6d3c7509
Progress on task
2020-05-23 22:55:06 +03:00
Alexey Milovidov
f13ccfc8e8
Progress on task
2020-05-23 22:43:13 +03:00
Alexey Milovidov
7e2fb9ad65
Apply all transformations again
2020-05-23 22:38:30 +03:00
Alexey Milovidov
29762240de
Remove duplicate whitespaces (preparation)
2020-05-23 22:31:54 +03:00
Alexey Milovidov
1f13515a65
Make all LOG in single line (preparation)
2020-05-23 21:31:37 +03:00
Alexey Milovidov
3a09f9ca1c
find {base,src,programs} -name '*.h' -or -name '*.cpp' | xargs grep -l -P 'LOG_[^\W_]+\([^,]+, [^<+)"]+\);' | xargs sed -i -r -e 's/(LOG_[^\W_]+)\(([^,]+), ([^<+)"]+)\);/\1_FORMATTED(\2, \3);/'
2020-05-23 20:29:56 +03:00
Alexey Milovidov
f69cbdcbfc
find {base,src,programs} -name '*.h' -or -name '*.cpp' | xargs grep -l -P 'LOG_\w+\([^,]+, "[^"]+" \+ [^+]+\);' | xargs sed -i -r -e 's/(LOG_\w+)\(([^,]+), "([^"]+)" \+ ([^+]+)\);/\1_FORMATTED(\2, "\3{}", \4);/'
2020-05-23 20:09:37 +03:00
Alexey Milovidov
8042e5febe
find {base,src,programs} -name '*.h' -or -name '*.cpp' | xargs grep -l -P 'LOG_\w+\([^,]+, "[^"]+" << [^<]+ << "[^"]+" << [^<]+\);' | xargs sed -i -r -e 's/(LOG_\w+)\(([^,]+), "([^"]+)" << ([^<]+) << "([^"]+)" << ([^<]+)\);/\1_FORMATTED(\2, "\3{}\5{}", \4, \6);/'
2020-05-23 19:58:15 +03:00
Alexey Milovidov
e391b77d81
find {base,src,programs} -name '*.h' -or -name '*.cpp' | xargs grep -l -P 'LOG_\w+\([^,]+, "[^"]+" << [^<]+ << "[^"]+"\);' | xargs sed -i -r -e 's/(LOG_\w+)\(([^,]+), "([^"]+)" << ([^<]+) << "([^"]+)"\);/\1_FORMATTED(\2, "\3{}\5", \4);/'
2020-05-23 19:56:05 +03:00
Alexey Milovidov
979e5d77c1
Fix build
2020-05-23 19:53:51 +03:00
Alexey Milovidov
ee4ffbc332
find {base,src,programs} -name '*.h' -or -name '*.cpp' | xargs grep -l -P 'LOG_\w+\([^,]+, "[^"]+" << [^<]+\);' | xargs sed -i -r -e 's/(LOG_\w+)\(([^,]+), "([^"]+)" << ([^<]+)\);/\1_FORMATTED(\2, "\3{}", \4);/'
2020-05-23 19:47:56 +03:00
Alexey Milovidov
8d2e80a5e2
find {base,src,programs} -name '*.h' -or -name '*.cpp' | xargs grep -l -P 'LOG_\w+\([^,]+, "[^"]+"\)' | xargs sed -i -r -e 's/(LOG_\w+)\(([^,]+, "[^"]+")\)/\1_FORMATTED(\2)/'
2020-05-23 19:42:39 +03:00
Alexey Milovidov
3c582fc96f
Fix error
2020-05-23 19:42:16 +03:00
Alexey Milovidov
35d79e1252
fmt-style logging, part 1
2020-05-23 19:33:07 +03:00
Vitaly Baranov
d92ac9ea47
Merge branch 'master' into RBAC-10
2020-05-15 14:12:43 +03:00
Ivan
21ce8dbbc3
Fix CH-over-YDB build ( #10921 )
2020-05-14 22:56:10 +03:00
Vitaly Baranov
6f15a0d443
Improve the function range() to allow iterating through enum values.
2020-05-13 19:40:48 +03:00
Alexey Milovidov
2864012d1b
Better support for sanitizers
2020-05-12 06:36:09 +03:00
Alexey Milovidov
365acc65ea
Better support for sanitizers
2020-05-12 06:31:53 +03:00
alexey-milovidov
61496384b6
Merge pull request #10809 from Enmk/DateLUTImpl_ctor_fix
...
Fixed DateLUTImpl constructors to avoid accidental copying
2020-05-11 20:19:44 +03:00
Vasily Nemkov
776ce03777
Fixed DateLUTImpl constructors to avoid accidental copying
...
Fixed one case of copying DateLUTImpl
2020-05-11 10:42:47 +03:00
Alexey Milovidov
e2b3cf2b52
Remove obsolete suppression
2020-05-11 09:50:38 +03:00
Alexey Milovidov
8db5dcd106
Fix UBSan and MSan report in DateLUT
2020-05-11 07:25:46 +03:00
Alexey Milovidov
6b38005575
Fix build
2020-05-11 01:17:28 +03:00
Alexey Milovidov
3b97b41188
Fix build
2020-05-10 22:28:40 +03:00
Alexey Milovidov
20808de08c
Merge remote-tracking branch 'origin/master' into even-more-warnings
2020-05-10 22:28:16 +03:00
Alexey Milovidov
f9ad1e612a
Fix build
2020-05-10 08:24:01 +03:00
Alexey Milovidov
bd26547f99
Fix warning
2020-05-10 06:08:56 +03:00
Alexey Milovidov
a7681933cb
Asserts in DateLUTImpl
2020-05-10 04:43:26 +03:00
Alexey Milovidov
45b65a462e
Better code
2020-05-10 02:33:11 +03:00
Alexey Milovidov
715b6f3617
Better code
2020-05-10 02:31:44 +03:00
Alexey Milovidov
eeaab4ba11
Fix build
2020-05-10 02:22:51 +03:00
Alexey Milovidov
1155b74214
Fixed build
2020-05-10 02:18:18 +03:00
Alexey Milovidov
a576a4fbcd
Enable extra warnings for base, utils, programs
2020-05-10 01:59:34 +03:00
Azat Khuzhin
150dd81e3b
Fix build with unbundled Poco
2020-05-09 01:22:12 +03:00
Ivan
85d783c247
Poco contrib refactoring ( #10396 )
...
* Remove config_common.h
* Refactor libcpuid contrib
* Remove support for libcpuinfo
* Define USE_CPUID in Arcadia
* Refactor Poco libraries
2020-05-08 17:11:19 +03:00
Azat Khuzhin
ed4c7820be
Disable buffering of the stderr
...
There are some 3d party libs that are used by clickhouse that uses
stderr, for example rdkafka, and buffering of rdkafka logs may be a
problem in tests at least.
2020-05-04 18:57:06 +03:00
Azat Khuzhin
f767309574
Ability to set logger level for loggers that have non allowed in xml tags symbols
2020-04-27 21:30:29 +03:00
Alexey Milovidov
08d8c350b7
Fix overflow at beginning of unix epoch for fractional timezones #9335
2020-04-26 19:22:44 +03:00
Alexey Milovidov
58a4d29f40
Fix "odbc-bridge" test
2020-04-25 23:52:45 +03:00
Azat Khuzhin
ac8fb14350
Allow fallback for timezones with unbundled CCTZ in debug
...
Follow-up-for: #10425
2020-04-23 01:21:50 +03:00
alexey-milovidov
4f6bb00424
Merge pull request #10420 from ClickHouse/clang-tidy-8
...
Fixes for clang-tidy on clang-10
2020-04-23 00:33:41 +03:00
Alexey Milovidov
3e2b247b6b
Check that only embedded timezones are used in Debug build
2020-04-22 20:15:26 +03:00
Alexey Milovidov
91f966610e
Do not embed timezones on alien platforms
2020-04-22 20:11:36 +03:00
Alexey Milovidov
45b5afa131
Avoid dependency on system tzdata
2020-04-22 06:17:29 +03:00
Alexey Milovidov
09f91cddae
Fixes for clang-tidy on clang-10
2020-04-22 01:04:19 +03:00
alexey-milovidov
fea7ee800a
Merge pull request #10369 from ClickHouse/fix-weird-timezones
...
Fix for weird timezones
2020-04-20 23:21:52 +03:00
Alexey Milovidov
09dedaeac3
Fix error
2020-04-20 10:49:00 +03:00
Amos Bird
2d08c8e4ab
clang-10 fix
2020-04-20 15:45:37 +08:00
Alexey Milovidov
48d6eb719a
Fix error
2020-04-20 10:41:03 +03:00
Alexey Milovidov
860c4a27bd
Fix for weird timezones
2020-04-20 10:10:25 +03:00
alexey-milovidov
a551e1f33b
Merge pull request #10343 from azat/colored-logger-name
...
[RFC] Make logger name colored
2020-04-18 04:15:48 +03:00
Azat Khuzhin
2dbf8ba219
Make logger name colored
2020-04-18 02:32:22 +03:00
alexey-milovidov
17e7d4d88a
Merge pull request #10307 from abyss7/arcadia-4
...
Changes for auto-sync with Arcadia
2020-04-17 05:08:34 +03:00
Ivan Lezhankin
e230632645
Changes required for auto-sync with Arcadia
2020-04-16 15:31:57 +03:00
Ivan Lezhankin
871d3f2aa0
Move contrib/widecharwidth → base/widechar_width
2020-04-13 18:55:48 +03:00
Ivan Lezhankin
910ab8a265
Move contrib/libpcg-random → base/pcg-random
2020-04-13 18:42:58 +03:00
Alexey Milovidov
860e9092f1
Fixed another inconsistency in partition names
2020-04-13 01:25:41 +03:00
Ivan
f6b31f344d
Add cross-compile build for FreeBSD ( #9643 )
...
* Add toolchain to Docker image
2020-04-07 11:33:49 +03:00
Alexey Milovidov
646f409b8e
Fix "check style" tool
2020-04-06 02:51:26 +03:00
alexey-milovidov
dffa053471
Merge pull request #9727 from abyss7/jemalloc
...
Improve jemalloc contrib
2020-04-01 05:37:08 +03:00
alexey-milovidov
4b2edd16ec
Merge pull request #9888 from ClickHouse/better-check-instructions
...
Better check for available CPU instructions.
2020-03-28 04:28:30 +03:00
Alexey Milovidov
25f08e83c7
Fixed build
2020-03-27 01:28:28 +03:00
alexey-milovidov
f3975e000e
Update BaseDaemon.cpp
2020-03-27 00:03:02 +03:00
Alexey Milovidov
72327d4836
Better check for supported instructions
2020-03-26 13:33:53 +03:00
Alexander Kuzmenkov
1726404625
Some MemorySanitizer fixes
2020-03-26 12:59:25 +03:00
Alexey Milovidov
32652200bf
Fix glibc compatibility
2020-03-23 19:51:06 +03:00
alexey-milovidov
c7863e1ac6
Clang Tidy, part 7 ( #9799 )
...
* Attempt to enable identifier naming check
* Attempt to enable identifier naming check, continue
* Progress on identifier names
* Adopt identifier names check
* Fixed error
* Merge with master
* Fixed build
* Fixed build
* Fixed build
* Fixed build
* Fixed build
* Fixed error
* Fixed error
* Fixed error
2020-03-23 05:12:31 +03:00
Vitaly Baranov
5eb79c2303
Cast "const char *" to StringRef is now implicit and constexpr.
2020-03-22 11:05:42 +03:00
Vitaly Baranov
598b373b35
Improve ext::scope_guard.
2020-03-22 11:05:42 +03:00
Ivan Lezhankin
362aca365f
Merge branch 'master' into jemalloc
2020-03-21 22:50:48 +03:00
Ivan Lezhankin
86cb4811b5
Build shared jemalloc in splitted mode
2020-03-21 22:49:26 +03:00
alexey-milovidov
5645c202e6
Merge pull request #9790 from amosbird/cg
...
Better cli client
2020-03-21 16:05:20 +03:00
Amos Bird
6fe1839f9e
Better cli client
2020-03-21 13:17:12 +08:00
Alexey Milovidov
fea3ceca05
Fixed error; added a test
2020-03-21 05:52:37 +03:00
Alexey Milovidov
f90f53c986
Fixed error
2020-03-20 21:53:35 +03:00
Alexey Milovidov
a5e3d4efb7
Added most of clang-static-analyzer checks
2020-03-20 21:53:35 +03:00
Alexey Milovidov
3f13464e3d
clang-tidy, part 5
2020-03-20 21:53:35 +03:00
Alexander Kuzmenkov
9d9ae00956
Relax a test due to Poco regression.
...
Poco 1.9.3 has one second precision for mtime, because of this we can
miss an update of a dictionary file if it happens in the same second
we've read the file.
Should probably be fixed by switching to std::filesystem.
Also add some logs because finding out what's going on with dictionary
reloading is borderline impossible.
2020-03-19 19:05:41 +03:00
Alexander Kuzmenkov
1879ac4477
Use strsignal.
2020-03-19 19:05:41 +03:00
Alexander Kuzmenkov
e864b6f338
More logs + build fix.
2020-03-19 19:05:41 +03:00
Ivan
571d0d541c
Improve CCTZ contrib ( #9687 )
...
* common/Types.h → common/types.h
Also split Core/Defines.h and merge with common/likely.h
* Improve cctz contrib
* Fix ALWAYS_INLINE and unbundled build
* Update Dockerfile from master
* Fix test for unbundled library
2020-03-19 13:38:34 +03:00
alexey-milovidov
638d1e6466
Merge pull request #9726 from ClickHouse/text-log-fix-race
...
Fixed race condition in text_log
2020-03-19 12:52:32 +03:00
alexey-milovidov
a3e78a3b86
Merge pull request #9721 from amosbird/cc
...
Always prefer case insensitive suggestions
2020-03-19 12:34:16 +03:00
Alexey Milovidov
9cc463b1af
Merge branch 'master' of github.com:yandex/ClickHouse into clang-tidy-4
2020-03-18 22:16:07 +03:00
Ivan
38b2dec354
Arcadia ( #9729 )
...
* Move getFQDNOrHostName to base/common/
* Add argsToConfig to ya.make
* Add coverage.cpp to ya.make
Also remove WITH_COVERAGE from config file
2020-03-18 21:54:27 +03:00
Alexey Milovidov
93466ce097
Added even more clang-tidy checks
2020-03-18 19:51:20 +03:00
Ivan Lezhankin
528e42bc4c
Improve jemalloc contrib
2020-03-18 15:29:51 +03:00
Alexey Milovidov
36aab47149
Fixed race condition in text_log
2020-03-18 14:59:40 +03:00
Amos Bird
adf4ad6ce3
Always prefer case insensitive suggestions
2020-03-18 13:27:56 +08:00
Alexey Milovidov
1bd7e594b0
clang-tidy, part 2
2020-03-18 03:57:00 +03:00
Ivan
23c617cfea
Add stubs for ya.make ( #9644 )
...
Mirror from arcadia
2020-03-13 16:07:23 +03:00
Ivan
b7ef5a699c
Move FastMemcpy to contribs ( #9219 )
...
* Get rid of non-existent vectorclass
* Move FastMemcpy to contribs
* Restore comments
* Disable FastMemcpy on non-Linux
* Fix cmake file
* Don't build FastMemcpy for ARM64
* Replace FastMemcpy submodule with its contents
* Fix cmake file
* Move widechar_width to contrib/
* Move sumbur to contrib/
* Move consistent-hashing to contrib/
* Fix UBSan tests
2020-03-13 01:26:16 +03:00
Alexey Milovidov
9f38cb768f
Fixed build
2020-03-11 10:19:44 +03:00
Alexey Milovidov
d3aa0e8ed8
clang-tidy, part 14
2020-03-09 04:59:08 +03:00
Alexey Milovidov
7334c13de9
clang-tidy, part 13
2020-03-09 04:50:33 +03:00
Alexey Milovidov
7a7e45e248
clang-tidy, part 1
2020-03-09 00:04:10 +03:00
Alexey Milovidov
de67bd78bd
Added some clang-tidy checks
2020-03-08 23:17:49 +03:00
Alexey Milovidov
c968e55da7
Miscellaneous #9409
2020-03-05 23:00:49 +03:00
Alexey Milovidov
5696806426
Translate a comment in mysqlxx #4904
2020-03-05 22:55:39 +03:00
alexey-milovidov
3645375f71
Merge pull request #9409 from clemrodriguez/mysqlxx-share-connection
...
Mysqlxx share connection for external dictionaries only
2020-03-05 22:43:23 +03:00
alexey-milovidov
2cfe26c3d3
Merge pull request #9472 from ClickHouse/memory-profiler-fix
...
Fixed wrong code around Memory Profiler
2020-03-03 15:16:45 +03:00
Alexey Milovidov
5b06842723
Remove excessive empty lines
2020-03-03 05:43:59 +03:00
Alexey Milovidov
8d679b570a
Implemented unwind info for __syscall function
2020-03-03 05:29:51 +03:00
Alexey Milovidov
826f6a65c4
Remove weak aliases from musl
2020-03-03 04:59:57 +03:00
Alexey Milovidov
dc086b20a9
Fixed wrong code around Memory Profiler
2020-03-03 03:24:44 +03:00
Clément Rodriguez
3f82059536
Fixed some encoding style issues
2020-03-02 18:21:46 +01:00
Alexey Milovidov
7c13b65e41
Save errno in signal handlers
2020-03-01 17:23:43 +03:00
alexey-milovidov
c402cb5951
Merge pull request #9450 from azat/replxx-readline-compat
...
clickhouse-client: bind C-p/C-n to history-previous/history-next (like readline)
2020-02-29 20:54:06 +03:00
Azat Khuzhin
4fe24488e8
Bind C-p/C-n to history-previous/history-next like readline in clickhouse-client with replxx
...
It is not easy to keep in mind that C-p/C-n is not
history-previous/history-next in replxx, thus it is pretty easy to
mistype.
Previous COMPLETE_NEXT/COMPLETE_PREV bindings has been binded to the
M-P/M-N (that was used for HISTORY_COMMON_PREFIX_SEARCH before, but it
also binded to M-p/M-n).
Plus clickhouse-client can be compiled with readline, so it is better to
make bindings the same.
2020-02-28 23:50:46 +03:00
Alexey Milovidov
8d51824ddc
getThreadId for FreeBSD
2020-02-28 14:24:56 +03:00
Clément Rodriguez
491f454b54
MySQL connection mutualize connection + integration test
2020-02-27 10:34:06 +01:00
Amos Bird
ce28d2eb82
Better cmdline client
2020-02-26 02:40:52 +08:00
Clément Rodriguez
94d3802baa
Merge branch 'master' of https://github.com/clemrodriguez/ClickHouse
2020-02-24 15:28:46 +01:00
Clément Rodriguez
a978662a01
Merge remote-tracking branch 'upstream/master'
2020-02-24 15:28:24 +01:00
Amos Bird
e23b15f78e
add USE_DEBUG_HELPERS flag to enable DUMP
2020-02-24 08:44:38 +08:00
Amos Bird
693cf211fa
Build fix
2020-02-22 16:44:23 +08:00
Amos Bird
f5d6043a5d
Strict aliasing in c++20
2020-02-22 13:46:35 +08:00
Alexey Milovidov
b55ba35731
More strict aliasing
2020-02-22 10:17:25 +08:00
Alexey Milovidov
e1b3c58746
More strict aliasing
2020-02-22 10:17:24 +08:00
Alexey Milovidov
5f9a56a38a
Colorize logs that are send to client with "send_logs_level" setting
2020-02-21 23:01:38 +03:00
Alexey Milovidov
430c02d477
Do not color logs by default if stderr is not a tty
2020-02-21 22:17:03 +03:00
Clément Rodriguez
1f275c965f
Rebase with upstream/master
2020-02-20 16:32:05 +01:00
Clément Rodriguez
cdd99d7f23
Merge
2020-02-19 15:23:17 +01:00
Alexey Milovidov
d79b526cdb
Merge branch 'master' of github.com:yandex/ClickHouse
2020-02-17 23:54:57 +03:00
Alexey Milovidov
c76ff369bb
Fix check-style #9161
2020-02-17 22:09:56 +03:00
Ivan Lezhankin
102dad0ca0
Merge branch 'master' into arcadia
2020-02-17 17:37:10 +03:00
Ivan Lezhankin
39ea079034
More clean-up
2020-02-17 17:27:09 +03:00
Ivan Lezhankin
4cedd4619d
Code clean-up
2020-02-16 11:04:03 +03:00
Ivan Lezhankin
2d44fa59b5
libs/ → base/
2020-02-14 17:48:30 +03:00