Commit Graph

1574 Commits

Author SHA1 Message Date
proller
4bb320627c Merge remote-tracking branch 'upstream/master' into fix27 2020-01-02 14:29:48 +03:00
proller
5b9c12ba3b Merge remote-tracking branch 'upstream/master' into fix27 2020-01-02 14:29:22 +03:00
Ivan Lezhankin
13b88886d4 [WIP] 2020-01-01 22:22:57 +03:00
alexey-milovidov
14563da602
Merge pull request #8447 from amosbird/c++20
C++20
2019-12-31 21:06:41 +03:00
Weiqing Xu
de122fc282 Fix it removes PID file by mistake In Daemon
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

In Daemon mode, when the user start a new clickhouse, if there is old
runing process and the pid is same with the value in PID file, it will
not start. However it also remove the PID file of the old runing process by
mistake.

In this fix, it will not remove the pid file of old runing process when
it start failed.
2019-12-31 16:52:25 +08:00
alexey-milovidov
17b413fd2e
Merge pull request #8458 from vitlibar/separate-variables-for-database-and-name
Separate variables for database and name in dictionaries.
2019-12-31 07:39:01 +03:00
Vitaly Baranov
f3ff3f0732 Improve ext::scope_guard, now it's a moveable object which can be returned
from function.
2019-12-31 06:17:28 +07:00
alexey-milovidov
e6ea59c84a
Merge pull request #8460 from mnach/master
refs #8443 fix logging
2019-12-30 20:29:01 +03:00
Alexey Milovidov
d4689532b1 Disable mysql client on Mac OS 2019-12-29 20:39:05 +03:00
Mikhail Nacharov
d6cd202860 refs #8443 fix logging 2019-12-29 18:08:33 +05:00
Amos Bird
bbc736f2d9
c++20! 2019-12-29 03:08:25 +08:00
Ivan Lezhankin
212a3234c1 Support Ctrl+C like shell does. 2019-12-27 16:17:36 +03:00
Ivan Lezhankin
bf22e12e4e Initial replacement readline → replxx 2019-12-27 16:17:36 +03:00
Alexey Milovidov
bdfa8f2ed0 Enable internal MySQL library on non-Linux system, because usage of OS packages is very fragile and usually doesn't work at all 2019-12-26 22:49:34 +03:00
proller
c3ea8783ef Build fixes 2019-12-25 15:31:49 +00:00
Alexey Milovidov
2befa5aec5 Fixed build on old systems 2019-12-24 19:51:37 +03:00
Alexey Milovidov
f7d9ada51c Addition to prev. revision 2019-12-23 23:26:11 +03:00
Alexey Milovidov
9d631c2c77 Add query_id to crash messages 2019-12-23 23:19:49 +03:00
Alexey Milovidov
239451a24d Merge branch 'master' into system-stack-trace 2019-12-23 19:41:23 +03:00
alesapin
4555d1398c
Merge pull request #8267 from ClickHouse/fix_coverage_one_more_time
More strict coverage flush.
2019-12-23 11:43:49 +03:00
Alexey Milovidov
48d126e88a Removed unrelated changes 2019-12-22 23:19:29 +03:00
Alexey Milovidov
9c868c910a Simplification 2019-12-22 23:17:16 +03:00
Alexey Milovidov
e0000bef98 Added "system.stack_trace" table (development) 2019-12-22 20:20:33 +03:00
alexey-milovidov
b864bc49b9
Merge pull request #8310 from ClickHouse/remove-tcmalloc
Remove support for tcmalloc
2019-12-20 05:04:19 +03:00
Alexey Milovidov
cea2903e72 Fixed build: set compile flags only when appropriate 2019-12-20 03:35:35 +03:00
Alexey Milovidov
0d089700fa Remove support for tcmalloc 2019-12-20 02:56:40 +03:00
Alexey Milovidov
36feb8d804 More compatibility functions for glibc 2019-12-18 22:35:56 +03:00
alesapin
a175ea5b73 Add coverage file flush for clickhouse-server when std::atexit is not called. Also slightly improved logging in stateless tests with coverage. 2019-12-18 13:43:40 +03:00
kreuzerkrieg
9612bb0e79 More GCC warnings 2019-12-16 23:19:50 +02:00
Alexey Milovidov
677ca84824 Silent warnings about unused command line args when building ASM source 2019-12-15 09:18:08 +03:00
Vasily Nemkov
f8fec0402b Merge commit 'e7540dcf686936a490f89d0735f74c2f5f009821' into DateTime64 2019-12-11 17:38:32 +03:00
alexey-milovidov
074aeb2bb8
Merge pull request #8054 from amosbird/glibc2.30
porting clock_gettime and clock_nanosleep
2019-12-09 23:11:10 +03:00
Amos Bird
30a085db7e
omit frame pointers for libc code 2019-12-09 21:38:20 +08:00
Amos Bird
e69c0a0126
Get rid of getauxval dep 2019-12-09 20:59:08 +08:00
Amos Bird
44b66da298
porting musl vdso implementation 2019-12-09 10:34:23 +08:00
Amos Bird
113e1932aa
porting clock_gettime and clock_nanosleep. 2019-12-07 00:11:50 +08:00
Vitaly Baranov
e3594bec5f Add function ext::range_with_static_cast(). 2019-12-05 21:03:57 +03:00
Vitaly Baranov
c733e5b50b Add functions for writing std::chrono to string. 2019-12-05 21:03:57 +03:00
Vitaly Baranov
44f3ab5f96 Extend typeid_cast() for shared_ptr. 2019-12-05 21:03:57 +03:00
Ivan Lezhankin
2118b33d9a Replace SIGRTMIN with SIGTSTP 2019-12-02 20:29:19 +03:00
Ivan Lezhankin
0e276ad887 Fix build 2019-12-02 14:29:52 +03:00
Ivan Lezhankin
4f56e03729 Use SIGRTMIN instead of SIGPROF for user debugging purposes 2019-12-02 13:50:57 +03:00
Vasily Nemkov
70512f8289 Merge remote-tracking branch 'upstream/master' into DateTime64 2019-11-30 21:49:15 +03:00
alexey-milovidov
c1039ed0f3
Update bitops.h 2019-11-28 13:48:29 +03:00
Vitaly Baranov
681f03c625
Merge pull request #7653 from vitlibar/skip-unknown-settings-with-warnings
Skip unknown settings with warnings.
2019-11-18 13:50:52 +03:00
Vitaly Baranov
ff6cba192b Replace pointer with reference in SettingsCollection<T>::MemberInfos::findStrict().
Rename SettingsCommon.h -> SettingsCollection.h for consistency.
2019-11-17 03:51:51 +03:00
Amos Bird
309d7270d0
fix ADL failure 2019-11-15 14:03:58 +08:00
Vasily Nemkov
c6eb0fcff7 Merge remote-tracking branch 'upstream/master' into DateTime64 2019-11-04 17:06:22 +03:00
Amos Bird
ad12099642
ubsan fix 2019-11-02 17:00:03 +08:00
Vasily Nemkov
d6ff36c760 Merge remote-tracking branch 'upstream/master' into DateTime64 2019-10-24 07:52:50 +03:00
Amos Bird
a860ee7891
Fix preciseExp10 2019-10-22 00:05:57 +08:00
Amos Bird
b0d4baccc8 Enable musl and jemalloc for arm.
Can generate better arm packages.
2019-10-14 00:06:54 +08:00
proller
594c535bd4 Build fixes (#7063)
* Build fixes

*            fix

* Fix

* fix

* Fix install(export..

* Freebsd fixes

* Freebsd fixes

* Fix warning

* fix

* More PRIVATE linking

* Fix review

* Timmy

* fix

* fix
2019-10-05 22:25:31 +03:00
Vasily Nemkov
31d5730513 Merge remote-tracking branch 'upstream/master' into DateTime64 2019-10-02 13:54:59 +03:00
alexey-milovidov
e19d47c4c4
Merge pull request #7142 from amosbird/more-libc-comp
glibc 2.29 compatibility
2019-09-30 14:58:58 +03:00
Amos Bird
dadc613072 Get rid of malloc symbols in libcommon (#7134) 2019-09-30 14:58:32 +03:00
Amos Bird
dbc352fdf9 glibc 2.29 compatibility 2019-09-30 12:28:50 +08:00
Ivan
e5a5091556
Revert "Get rid of malloc symbols in libcommon (#7065)" (#7131)
This reverts commit 4cb53093a0.
2019-09-27 16:16:53 +03:00
Amos Bird
4cb53093a0 Get rid of malloc symbols in libcommon (#7065) 2019-09-27 15:19:26 +03:00
Vasily Nemkov
9cc2baf05c DataType64 as decimal
compiles
2019-09-26 18:12:40 +03:00
Yuriy
dfb762d93c Revert "Revert "Updated MariaDB""
This reverts commit f8b7cc8693.
2019-09-25 01:28:59 +03:00
Yuriy Baranov
f8b7cc8693
Revert "Updated MariaDB" 2019-09-24 05:11:52 +03:00
alexey-milovidov
2f195ddb03
Merge pull request #7028 from abyss7/issue-6459
Implement cross-compilation support Linux → Darwin
2019-09-24 02:20:17 +03:00
alexey-milovidov
4602de0e2c
Merge pull request #6945 from yurriy/mysql
Updated MariaDB
2019-09-24 02:16:12 +03:00
Ivan Lezhankin
4b143c3e0f Merge remote-tracking branch 'upstream/master' into issue-6459 2019-09-23 16:07:19 +03:00
alexey-milovidov
ab02aad198
Update sleep.cpp 2019-09-21 23:44:56 +03:00
Silviu Caragea
1fbd2fb6a8 Fix osx build 2019-09-21 21:30:01 +03:00
Ivan Lezhankin
9e46118edd Merge remote-tracking branch 'upstream/master' into issue-6459 2019-09-20 21:25:55 +03:00
proller
5d08a7b353 Remove gcc-7 from build scripts 2019-09-17 13:37:35 +03:00
Yuriy Baranov
2d53ab3f18 Merge remote-tracking branch 'origin/master' into mysql 2019-09-16 01:29:09 +00:00
Yuriy
fd0c76131f removed contrib/mariadb-connector-c-cmake 2019-09-15 23:44:34 +03:00
Yuriy
84cfbb8e69 simplified mariadb-connector-c compilation and fixed caching_sha2_password plugin 2019-09-15 23:09:09 +03:00
Ivan Lezhankin
787c2b8d83 WIP 2019-09-15 13:35:19 +03:00
Ivan Lezhankin
01fdb802d4 Useful changes 2019-09-15 13:35:12 +03:00
Ivan Lezhankin
1b5192706e Some fixes for OS X build. 2019-09-13 17:56:26 +03:00
Alexander Kuzmenkov
f4da0399c0 Some MemorySanitizer fixes. 2019-09-13 14:49:29 +03:00
Amos Bird
a1310ffbe6 Split libdbms.so using object library
Now the linking time of incremental builds are around 1-2 seconds
2019-09-11 01:56:01 +08:00
filimonov
526afd44ed Make SensitiveDataMasker a singleton. (#6810)
Among other things, it is used to filter logs, which are being written even after the global server context is deinitialized, so we can't keep masker there.
2019-09-06 20:48:27 +03:00
alexey-milovidov
b2e80b0cd9
Merge branch 'master' into query_masking 2019-09-03 22:58:15 +03:00
alexey-milovidov
766dcc98ae
Update Loggers.h 2019-09-03 22:48:29 +03:00
alexey-milovidov
70c7926acf
Update Loggers.cpp 2019-09-03 22:47:48 +03:00
alexey-milovidov
7a6a6e093b
Update Loggers.cpp 2019-09-03 22:46:49 +03:00
Alexey Milovidov
ace08fa344 Merge branch 'master' into time-zone-configuration 2019-08-30 19:27:08 +03:00
Ivan
b4339f266d
Make a better build scheme (#6500)
* Fix shared build
* Major default libs refactor
* Fix build with gcc_eh
* Link all libraries as a big group.
* Use global interface library as a group
* Build capnproto using our cmake
* Use only internal libunwind
2019-08-28 23:49:37 +03:00
Alexey Milovidov
216b05b71b Fixed build 2019-08-28 21:33:24 +03:00
Alexey Milovidov
cf57a88495 Added a way to forbid static initialization of a class 2019-08-28 20:13:29 +03:00
Alexey Milovidov
d5f8e0347f Better setup of default time zone from configuration file 2019-08-28 20:11:11 +03:00
Alexey Milovidov
6d6c53d42b Style 2019-08-28 19:15:57 +03:00
Alexey Milovidov
0eec226c9a Simplify shared_ptr_helper 2019-08-26 22:07:29 +03:00
Alexey Milovidov
720bb3ac08 Added a test 2019-08-24 14:53:48 +03:00
Alexey Milovidov
d38e9ee229 Fixed "trim" functions (in progress) 2019-08-23 23:32:31 +03:00
Rafael David Tinoco
17a7cb8735 MySQL 8 integration requires previous declaration checks
C and C++ differ in the form of types being defined. While C++ structs
are defined also as new types, in C you have to explicitly typedef the
struct to have a new type.

Fir this case, it was enough to check if MySQL header was already
defined in order not to re-declare MYSQL, MYSQL_RES, MYSQL_ROW and
MYSQL_FIELD.

Signed-off-by: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
2019-08-20 09:48:50 -03:00
Ivan
a502424c33
Implement support for insertion into Kafka tables (#6012)
* Add write-callback on each row for RowOutputStream
* Fix build of new rdkafka library
* Poll messages if Kafka outgoing queue is full
* Add test
* Add test producer-consumer
* Truncate delimiter from last row in message
2019-08-20 14:17:57 +03:00
alexey-milovidov
f36d20915b
Merge pull request #6529 from yandex/better-signals
Better debug-ability of fault signals.
2019-08-18 16:44:54 +03:00
proller
d09c5c871b Build fixes (#6491)
* Fix build

* cmake: fix cpuinfo

* Fix includes after processors merge

Conflicts:
	dbms/src/Processors/Formats/Impl/CapnProtoRowInputFormat.cpp
	dbms/src/Processors/Formats/Impl/ParquetBlockOutputFormat.cpp
	dbms/src/Processors/Formats/Impl/ProtobufRowInputFormat.cpp
	dbms/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp

* Fix build in gcc8

* fix test link

* fix test link

* Fix test link

* link fix

* Fix includes after processors merge 2

Conflicts:
	dbms/src/Processors/Formats/Impl/ParquetBlockInputFormat.cpp

* Fix includes after processors merge 3

* link fix

* Fix likely/unlikely conflict with cython

* Fix conflict with protobuf/stubs/atomicops.h

* remove unlikely.h

* Fix macos build (do not use timer_t)
2019-08-18 01:53:46 +03:00
Alexey Milovidov
306878c7a0 Write symbolized stack trace on failure one line at a time and uncached 2019-08-18 01:39:26 +03:00
Alexey Milovidov
cf525890da Handle faults in printing stack trace 2019-08-18 00:42:47 +03:00
Alexey Milovidov
71dc0f29c2 Always print non-symbolized stack trace in addition to the full stack trace. 2019-08-18 00:27:25 +03:00
Alexey Milovidov
081f1bedc2 Allowed to use SIGPROF to print stack traces for debugging purposes 2019-08-18 00:13:38 +03:00
Alexey Milovidov
2cd669fa1d Minor improvement 2019-08-17 23:33:50 +03:00