Commit Graph

1223 Commits

Author SHA1 Message Date
Alexey Milovidov
cd4f93ff2a Added missing glibc compatibility functions 2019-01-20 00:41:59 +03:00
Alexey Milovidov
68af2eaf00 Merge remote-tracking branch 'origin/master' into fix-glibc-compatibility-2 2019-01-20 00:37:42 +03:00
Alexey Milovidov
e22e19ddc9 Added missing glibc compatibility functions 2019-01-20 00:35:46 +03:00
Alexey Milovidov
f1bb9fc05a Removed useless code 2019-01-20 00:05:20 +03:00
Alexey Milovidov
37f8d20181 Fix glibc compatibility, part 2 2019-01-19 20:14:57 +03:00
alexey-milovidov
d54a019456
Merge branch 'master' into fix-glibc-compatibility 2019-01-18 21:21:47 +03:00
Alexey Milovidov
ed124c955a Link all libraries to "glibc-compatibility" 2019-01-18 21:20:07 +03:00
Alexey Milovidov
112f62f49f Fixed linking order of glibc-compatibility library 2019-01-18 19:36:10 +03:00
proller
0939387514
Build fixes (#4076)
Move copy_headers.sh and formath.sh from root.
Debian: use default build dir (obj-x86_64-linux-gnu)
Debian: add test after build (GLIBC_required_version)
cmake: dont run copy headers if already copied
2019-01-18 18:19:53 +03:00
Alexey Milovidov
a7c468da8e Merge remote-tracking branch 'origin/master' into global-thread-pool 2019-01-17 21:57:01 +03:00
Alexey Milovidov
4b84f2c781 Miscellaneous 2019-01-16 02:56:54 +03:00
Alexey Milovidov
f40e0fcd8e Revert "Attempt to implemnt global thread pool #4018"
This reverts commit 510b15540c.
2019-01-15 21:57:42 +03:00
Alexey Milovidov
f6b9b06307 Attempt to implemnt global thread pool #4018 2019-01-14 22:22:09 +03:00
Alexey Milovidov
a6bf5a7e28 Addition to prev. revision 2019-01-13 20:49:21 +03:00
Alexey Milovidov
abcd5a2a49 Attempt to implemnt global thread pool #4018 2019-01-11 22:12:36 +03:00
Alexey Milovidov
13dd877026 Attempt to implemnt global thread pool #4018 2019-01-11 21:38:11 +03:00
Alexey Milovidov
43774a38b8 Attempt to implemnt global thread pool #4018 2019-01-11 20:20:06 +03:00
Alexey Milovidov
9031be381a Attempt to implemnt global thread pool #4018 2019-01-11 19:59:15 +03:00
Alexey Milovidov
510b15540c Attempt to implemnt global thread pool #4018 2019-01-11 19:58:43 +03:00
Alexey Milovidov
6cfa68d9da Investigation of performance degradation of jemalloc 2019-01-10 18:01:22 +03:00
Alexey Milovidov
7fc85d1ff0 Investigation of performance degradation of jemalloc 2019-01-10 16:26:57 +03:00
Alexey Milovidov
b4a310b22e Investigation of performance degradation of jemalloc 2019-01-10 16:22:37 +03:00
Alexey Milovidov
c93b54a88d Removed obsolete tweak, because KDevelop has migrated to clang parser long time ago 2019-01-09 19:32:34 +03:00
Alexey Milovidov
43bd57eaf1 Addition to prev. revision 2019-01-09 18:47:25 +03:00
Alexey Milovidov
19f4652959 Fixed bugs found by PVS-Studio 2019-01-09 18:44:20 +03:00
Amos Bird
8ea4d7987b Add join_overwrite settings for StorageJoin.
This makes using StorageJoin as dictionary more flexible.
2019-01-07 01:23:26 +08:00
Alexey Milovidov
afda68d25c Added some warnings from clang's -Weverything 2019-01-04 17:18:49 +03:00
Alexey Milovidov
1d4701b0bc Added some warnings from clang's -Weverything 2019-01-04 15:10:00 +03:00
Amos Bird
df5b735894 Better writeInt 2019-01-01 19:36:50 +08:00
alesapin
34e4f8e0c1 Move docker images to 18.10 and add compatibility file for glibc >= 2.28 2018-12-29 13:10:35 +03:00
Alexey Milovidov
3c82dd8809 Fixed exception safety of ThreadPool constructor [#CLICKHOUSE-4113] 2018-12-28 20:15:42 +03:00
Alexey Milovidov
701dfd83bf Addition to prev. revision #3926 2018-12-27 03:02:38 +03:00
Alexey Milovidov
2e323192a2 Addition to prev. revision #3926 2018-12-27 03:02:11 +03:00
Alexey Milovidov
732f60c8be Allowed some UB under UBSan #3926 2018-12-27 02:55:09 +03:00
Alexey Milovidov
0d03fa8573 Fixed error #3924 2018-12-27 00:13:21 +03:00
Alexey Milovidov
14e1dfa0ea Fixed UB #3926 2018-12-26 08:11:53 +03:00
Alexey Milovidov
ee953b4653 Fixed UB (requires performance testing) #3569 2018-12-26 03:31:51 +03:00
alexey-milovidov
add2c0a6fc
Merge branch 'master' into int-round-overflow 2018-12-24 15:50:13 +03:00
Alexey Milovidov
4f9630fd03 Fixed error #3913 2018-12-24 05:57:22 +03:00
Alexey Milovidov
80f155cfda Fixed overflow in rounding functions with integer argument and large negative scale [#CLICKHOUSE-2] 2018-12-24 02:12:30 +03:00
Alexey Milovidov
344d610ef0 DateLUT: simpler, safer and more efficient [#CLICKHOUSE-2] 2018-12-24 00:45:28 +03:00
Alexey Milovidov
8367c99720 DateLUT: simpler, safer and more efficient [#CLICKHOUSE-2] 2018-12-24 00:38:19 +03:00
Alexey Milovidov
86c2d0f329 Fixed buffer overflow in function addDays [#CLICKHOUSE-2] 2018-12-23 23:01:17 +03:00
alexey-milovidov
f85857d8ff
Merge pull request #3826 from yandex/missing-sql-compatibility-functions
Additional functions for SQL compatibility
2018-12-20 20:51:05 +03:00
proller
c63ca042ba
Fix macos build (#3861) 2018-12-18 16:37:00 +03:00
Ivan Blinkov
362948e891 Introduce quarter interval kind as 3 months (in preparation for #3705) 2018-12-18 16:16:48 +03:00
alexey-milovidov
9eca78e764
Merge pull request #3819 from yandex/fix-tehran-time
Fix daylight saving time conversion if it was at midnight and clock was adjusted backwards.
2018-12-13 00:06:50 +03:00
Alexey Milovidov
bc165e4504 Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-13 00:05:56 +03:00
alesapin
282b303a1c Link libglibc-compatibility to dbms at last position (#3816)
* Link libglibc-compatibility to dbms at last position

* Don't replace getrandom if it doesn't exists in libc
2018-12-12 15:51:40 +03:00
Alexey Milovidov
8b7a71d6c6 Attempt to fix #3220 2018-12-12 13:08:53 +03:00
Alexey Milovidov
43d922cc37 Fix for Tehran time #3220 2018-12-11 22:13:44 +03:00
alexey-milovidov
84d617c50e
Merge pull request #3808 from yandex/add_getrandom_from_musl
Add getrandom from musl
2018-12-10 22:32:34 +03:00
Alexey Milovidov
ae1b748bdf Fixed global variable buffer read overflow [#CLICKHOUSE-4191] 2018-12-10 21:18:50 +03:00
alesapin
182adf1e40 Spaces instead of tab 2018-12-10 21:17:35 +03:00
alesapin
ca9d6d83b5 Add getrandom.c from musl 2018-12-10 21:16:15 +03:00
alexey-milovidov
acb4feef26
Merge pull request #3760 from yandex/fix-database-ordinary-load-table-deadlock
Fix database ordinary load table deadlock
2018-12-07 07:13:58 +03:00
alexey-milovidov
7030b9be00
Update ThreadPool.h 2018-12-07 07:13:50 +03:00
proller
61328a2c9b
ARM build fixes (#3754) 2018-12-05 16:41:29 +03:00
Nikolai Kochetov
c6ad3a7189 Fix deadlock in DatabaseOrdinary in case of exception while loading tables. 2018-12-05 15:50:23 +03:00
Nikolai Kochetov
715d120ed9 Fix deadlock in DatabaseOrdinary in case of exception while loading tables. 2018-12-05 15:46:32 +03:00
proller
2221638ade Fix presence of both libc++ and -static-libstdc++ link flags (#3706)
* Fix precence of both libc++ and -static-libstdc++ link flags

* cmake: NO_WERROR for ARCH_ARM

* Try fix test link

* revert

* Update CMakeLists.txt
2018-12-01 01:30:34 +03:00
Alexey Milovidov
f59bf174d7 Fixed build of "widechar_width" library on ARM [#CLICKHOUSE-2] 2018-11-30 16:37:36 +03:00
proller
f1791e94e2
Do not write preprocessed configs to /etc/ (#2443) 2018-11-27 19:11:46 +03:00
Alexey Milovidov
141e9799e4 Fixed error with "extractURLParameter" function (read after buffer); improved performance; added support for zero bytes in URLs; renamed Chars_t type [#CLICKHOUSE-2] 2018-11-25 03:08:50 +03:00
alexey-milovidov
2c2d75cceb
Don't allow exceptions without code (#3645)
* Don't allow exceptions without code #3633

* Don't allow exceptions without code #3633
2018-11-23 00:19:58 +03:00
Alexey Milovidov
ab5d76fc42 Fixed error introduced in #3553 and prevent it happening 2018-11-21 23:56:37 +03:00
proller
1d40c2c871 Better link and deps (#3631)
* try fix 1

* Better deps

* fix

* fix

* fix

* Update CMakeLists.txt

* Update CMakeLists.txt

* fix

* fix

* fix

* disable old

* Update find_odbc.cmake
2018-11-21 22:20:27 +03:00
Alexey Milovidov
06187e9a98 Comments [#CLICKHOUSE-2] 2018-11-21 20:27:13 +03:00
proller
5678d1ed98 Build fixes (#3545)
* StorageSystemContributors clean

* Fix

* ARM fixes

* Fix arm compile

* fix

* Fix macos?

* Fix includes

* fix

* fix

* Try fix apple build part 1

* Fix identation

* Fix static libc++ in clang

* fix arm build

* better

* fix

* fix

*  better check-include
2018-11-10 23:09:07 +03:00
alexey-milovidov
b1db9ec23c
Merge pull request #3436 from amosbird/master
Flexible fields assignment
2018-11-01 20:22:28 +03:00
proller
f86d1a7034 CONTRIB-254 Arcadia fixes (#3475)
* Macos: set ENABLE_EMBEDDED_COMPILER=0 by default (because contrib/llvm temporary broken under macos)

* \n

* arcadia fix

* fix arcadia link

* wip

* wip

* wip

* fix

* wip

* wip

* fix

* try use users from server dir

* Revert "try use users from server dir"

This reverts commit 79b2c6fd9c.

* Fix logging

* fix

* Update ZooKeeperImpl.h
2018-11-01 20:07:20 +03:00
proller
71403c3ff8 StorageSystemContributors.sh debug (#3491)
* Sql fuzzy test

* wip

* wip

* wip

* wip

* wip

* Build fixes

* better

* bugs

* wip

* fix

* Fix test

* build fixes

* better

* wip

* fix test

* StorageSystemContributors.sh debug

* debug

* wip

* more

* Fix jemalloc include

* more
2018-11-01 17:07:14 +03:00
abyss7
d538f70679 Fix build and tests on Fedora (#3496)
* Fix some tests and build on Fedora 28

* Update contrib/ssl

* Try `sudo` first, then without `sudo`.
2018-10-30 17:05:44 +03:00
Amos Bird
3cf2177268 Flexible fields assignment
Field f;

before:

f = Int64(-42);

after:

f = -42;
2018-10-24 08:47:33 +08:00
Amos Bird
dc8b3a7791 Fix build without jemalloc
```
libs/libglibc-compatibility/libglibc-compatibility.a(glibc-compatibility.c.o): In function `explicit_bzero':
/home/amos/git/chorigin/build-dev/../libs/libglibc-compatibility/glibc-compatibility.c:151: multiple definition of `explicit_bzero'
contrib/ssl/crypto/libcrypto.a(explicit_bzero.c.o):/home/amos/git/chorigin/build-dev/../contrib/ssl/crypto/compat/explicit_bzero.c:16: first defined here
collect2: error: ld returned 1 exit status
```
2018-10-22 23:34:15 +08:00
avsharapov
11da23f153 Fix typo in readme 2018-10-13 15:28:08 +03:00
alexey-milovidov
147a2a13c2
Merge pull request #3257 from amosbird/master
Correct wcwidth computation for pretty outputs.
2018-10-02 16:23:41 +03:00
Amos Bird
7df73088ab Correct wcwidth computation for pretty outputs. 2018-10-02 10:06:18 +08:00
proller
49bb0652a8 enable_local_infile 2018-10-01 19:01:09 +03:00
proller
ca03cd6606 Sync with arcadia 2018-10-01 18:43:48 +03:00
proller
ec11bef633
Build fixes (#3181) 2018-09-28 17:53:20 +03:00
Alexey Milovidov
5c386ea3cd Always write query_id field in log #3203 2018-09-24 21:44:40 +03:00
cekc
76c79929c3
fix typo in BaseDaemon doc
daemon has --errorlog-file cmd option, not --error-file
2018-09-21 16:42:32 +03:00
Alexey Milovidov
5e3b507bd6 Added functions "toISOWeek", "toISOYear", "toStartOfISOYear" [#CLICKHOUSE-3988] 2018-09-17 06:09:56 +03:00
Alexey Milovidov
55bc0bb46b Added function "toDayOfYear" [#CLICKHOUSE-3716] 2018-09-17 04:27:34 +03:00
Alexey Milovidov
adb0f65bee Added functions "toISOWeek", "toISOYear", "toStartOfISOYear" [#CLICKHOUSE-3988] 2018-09-17 04:00:55 +03:00
Alexey Milovidov
4cf73d607c Added functions "toISOWeek", "toISOYear", "toStartOfISOYear" [#CLICKHOUSE-3988] 2018-09-17 03:42:39 +03:00
alexey-milovidov
13406d876c
Merge pull request #3130 from yandex/fix-dependency-on-new-libc
Fix dependency on too new libc
2018-09-16 05:24:09 +03:00
proller
d752d5d62d Prepare to new poco, build fixes (#3072)
* WIp

* fix

* fix

* test

* fix poco netssl find

* clean

* fixes

* wip

* wip

* new poco

* fixes

* Fixes

* wip

*  clean

* clean

*     clean

* clean

* Update HTTPHandlerFactory.h
2018-09-14 22:48:51 +03:00
Alexey Milovidov
38534bba80 Removed GLIBC_2.10 [#CLICKHOUSE-3989] 2018-09-14 05:48:24 +03:00
Alexey Milovidov
7c675aac45 Addition to prev. revision [#CLICKHOUSE-3989] 2018-09-14 05:11:54 +03:00
Alexey Milovidov
c155564235 Addition to prev. revision [#CLICKHOUSE-3989] 2018-09-14 05:08:24 +03:00
Alexey Milovidov
20ffe8a70c More simple [#CLICKHOUSE-3989] 2018-09-14 05:00:40 +03:00
Alexey Milovidov
17f91c3949 More simple [#CLICKHOUSE-3989] 2018-09-14 04:59:05 +03:00
Alexey Milovidov
db0c854026 More simple [#CLICKHOUSE-3989] 2018-09-14 04:56:56 +03:00
Alexey Milovidov
dbf3ccdcb8 More simple [#CLICKHOUSE-3989] 2018-09-14 04:53:50 +03:00
Alexey Milovidov
3342b422a3 Fixed build [#CLICKHOUSE-3989] 2018-09-14 04:48:56 +03:00
Alexey Milovidov
b2faf857bb Renamed README.md to .txt [#CLICKHOUSE-3989] 2018-09-14 03:03:28 +03:00
Alexey Milovidov
4308f3e3a2 Added more info in README [#CLICKHOUSE-3989] 2018-09-14 03:00:51 +03:00
Alexey Milovidov
53d816f23f Added dummy implementation of __cxa_thread_atexit_impl [#CLICKHOUSE-3989] 2018-09-14 03:00:24 +03:00