Commit Graph

956 Commits

Author SHA1 Message Date
Alexey Milovidov
798299ba89 Merge branch 'aavdonkin-master' 2017-12-28 07:33:55 +03:00
Alexey Milovidov
104b09604a Merging [#CLICKHOUSE-3114] 2017-12-28 00:45:05 +03:00
proller
68850012bd Embedded compiler fixes 2017-12-27 23:07:16 +03:00
proller
da1233fe3f Fix missing includes 2017-12-26 22:02:00 +03:00
proller
3c54be8d5b Add hostname_in_path=true option to garaphite config (#1701)
* Add hostname_in_path=true option to garaphite config

* fix style

* Update config.xml
2017-12-25 23:36:24 +03:00
Kirill Shvakov
af400da8eb add toStartOfFifteenMinutes function 2017-12-22 13:04:24 +02:00
Alexey Milovidov
0972d7586a Added support for toQuarter, toRelativeQuarterNum functions. Enabled toRelativeHour/Minute/Second for Date arguments. Made function 'now' case insensitive. Added function 'dateDiff' that is needed for ODBC driver [#CLICKHOUSE-2]. 2017-12-22 04:54:29 +03:00
Alexey Milovidov
74f191dfd3 Introduced intExp functions; using it where appropriate; make them available in SQL [#CLICKHOUSE-3]. 2017-12-22 02:46:34 +03:00
Alexey Milovidov
fca5d5f2c7 Use better implementation for exp10 [#CLICKHOUSE-2]. 2017-12-22 02:00:32 +03:00
Amos Bird
e7af27c4e0 Better iostream debugger with adl.
This patch fixes some issues related to DUMP() debugging. Opening std and
placing all Core related classed inside DB namespace enable proper adl support.
It also adds better sfinae guards to Field constructor which somehow breaks <<
overloads.
2017-12-20 21:44:42 +03:00
Alexey Milovidov
99a19de80e Translated comment [#CLICKHOUSE-2]. 2017-12-19 22:32:13 +03:00
Alexey Milovidov
7dfd3a2c3a Translated comment [#CLICKHOUSE-2]. 2017-12-19 22:30:25 +03:00
Alexey Milovidov
6f7d2b99ea Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 13:14:12 +03:00
Alexey Milovidov
a6fef4f398 Miscellaneous [#CLICKHOUSE-2]. 2017-12-13 23:22:23 +03:00
Alexey Milovidov
ca38cf198c Whitespaces [#CLICKHOUSE-2]. 2017-12-13 22:55:45 +03:00
proller
741117a390
Fix freebsd build. Little cmake fixes. (#1634) 2017-12-13 22:07:12 +03:00
Alexey Milovidov
4a51a7bb22 Fixed bad translation [#CLICKHOUSE-2]. 2017-12-13 21:42:13 +03:00
Alexey Milovidov
7d04e67262 Merge branch 'write-buffer-from-arena' 2017-12-11 21:25:03 +03:00
Alexey Milovidov
22d90fcc41 Miscellaneous [#CLICKHOUSE-2]. 2017-12-11 21:07:08 +03:00
Alexey Milovidov
3b65d95525 Translated comments and by the way made code better [#CLICKHOUSE-2]. 2017-12-11 21:05:16 +03:00
Alexey Milovidov
9b81c1ea66 Fixed error with underflow when subtracting months [#CLICKHOUSE-3486]. 2017-12-06 07:16:01 +03:00
Alexey Milovidov
4488783072 Better [#CLICKHOUSE-2]. 2017-12-02 06:01:41 +03:00
Alexey Milovidov
c748493a86 Better [#CLICKHOUSE-2]. 2017-12-02 05:47:12 +03:00
Alexey Milovidov
431da20d99 Better [#CLICKHOUSE-2]. 2017-12-01 23:21:35 +03:00
Alexey Milovidov
bdd25b15bd Better [#CLICKHOUSE-2]. 2017-12-01 22:34:51 +03:00
Alexey Milovidov
1a6cb2989b Better [#CLICKHOUSE-2]. 2017-12-01 21:36:55 +03:00
Vitaliy Lyudvichenko
b738d1baed Add multi index for data_parts storage. And fixed bugs. [#CLICKHOUSE-3452]
Fixed handling of obsolete parts.
Fixed conflict resolution between simultaneous PreCommitted covering parts.
Fixed memory leak caused by ordinary MergeTree parts stucked in Deleting state.
Added hidden _state column into system.parts.
2017-11-29 14:25:11 +03:00
proller
34eef961de ENABLE_LIBTCMALLOC -> ENABLE_TCMALLOC (#1558)
* Cmake: clang + libc++ fixes

* Cmake: fix link of some tests (missing pthread)

* Use -pthread flag for compile

* ENABLE_LIBTCMALLOC -> ENABLE_TCMALLOC
2017-11-28 22:57:15 +03:00
Alexey Vasiliev
6cb97b9221 ConfigProcessor: do not create config-preprocessed before setting umask [#MOBMET-7044] 2017-11-25 02:00:10 +03:00
Andrey Urusov
d21a2a057b Graphite simplification 2017-11-23 13:29:11 +03:00
proller
411202d5ad Zlib: as submodule, fix compile options; config: add logger options: logger.flush logger.rotateOnOpen 2017-11-21 23:10:37 +03:00
Alexey Milovidov
e4d354e39a Fixed error when using libressl instead of openssl #1466 2017-11-21 03:32:05 +03:00
Alexey Milovidov
a78871f065 Fixed build [#CLICKHOUSE-2]. 2017-11-20 08:55:19 +03:00
Alexey Milovidov
01e8adbfff Removed "experimental" namespace [#CLICKHOUSE-2]. 2017-11-20 07:15:43 +03:00
Alexey Milovidov
f0b60b013b Little better [#CLICKHOUSE-2]. 2017-11-18 02:48:55 +03:00
Alexey Milovidov
655565466c Merge remote-tracking branch 'origin/master' into better-date-parsing-formatting 2017-11-18 02:45:17 +03:00
Silviu Caragea
f7181b4c68 Fix clang error on osx regression from a2b8ae3100 2017-11-17 14:37:17 +03:00
Orivej Desh
bedec3a0f4 Fix detection of the compatible libunwind
Broken since 07c964ef3b.
2017-11-16 23:59:43 +03:00
Alexey Milovidov
a2b8ae3100 Fixed tiny error [#CLICKHOUSE-2]. 2017-11-16 23:17:57 +03:00
proller
fa65bdcf48 Fix realloc on freebsd and macos (#1494) 2017-11-16 22:17:09 +03:00
proller
ef1b559845 Check pid file contents inside clickhouse server (#1498)
* Check pid file contents inside clickhouse (allow run with exists pid file but not exists process)

* fix

* fix

* eol

* wip
2017-11-16 22:09:08 +03:00
Alexey Milovidov
ee48dea0d3 Attempt to improve performance of formatting Date and DateTime [#CLICKHOUSE-2]. 2017-11-16 05:07:19 +03:00
Alexey Milovidov
040b4bd47e Attempt to improve performance of parsing Dates [#CLICKHOUSE-2]. 2017-11-16 01:58:50 +03:00
Alexey Milovidov
b19b476cc6 Accept part of pull request [#CLICKHOUSE-2]. 2017-11-15 00:13:23 +03:00
alexey-milovidov
9b18c6cb76
Embedded compiler (#1484)
* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].
2017-11-12 15:58:40 +03:00
Alexey Milovidov
60477a9aaa Enhanced time zones support: the DateTime data type can track time zone [#CLICKHOUSE-3402]. 2017-11-09 22:25:21 +03:00
Alexey Milovidov
a9ebc23599 Added comment [#CLICKHOUSE-2]. 2017-11-04 23:57:10 +03:00
Alexey Milovidov
4e04c4da5f Attempt to change ext::shared_ptr_helper (incomplete) [#CLICKHOUSE-2]. 2017-11-04 06:56:31 +03:00
Alexey Milovidov
974a1e4fa5 Attempt to change ext::shared_ptr_helper (incomplete) [#CLICKHOUSE-2]. 2017-11-04 06:56:31 +03:00
proller
702c68959a contrib: cctz as submodule. update cctz. 2017-11-03 00:34:32 +03:00
Alexey Milovidov
e29604b7f9 Updated test [#CLICKHOUSE-2099]. 2017-10-30 09:27:21 +03:00
Alexey Milovidov
5a447fe661 Fixed error [#CLICKHOUSE-3331]. 2017-10-30 08:55:22 +03:00
Alexey Milovidov
ba435d3d4c Fixed build [#CLICKHOUSE-2]. 2017-10-30 02:10:22 +03:00
Alexey Milovidov
3571c13e06 Functions for interval arithmetic on DateTime and Date: development, cleanups [#CLICKHOUSE-3331]. 2017-10-30 01:55:27 +03:00
Alexey Milovidov
2040fb49fa Functions for interval arithmetic on DateTime and Date: development, cleanups [#CLICKHOUSE-3331]. 2017-10-30 01:51:00 +03:00
Alexey Milovidov
c367d513f0 Functions for interval arithmetic on DateTime and Date: development, cleanups [#CLICKHOUSE-3331]. 2017-10-30 01:38:06 +03:00
Alexey Milovidov
9f4a3a5e7c Functions for interval arithmetic on DateTime and Date: development [#CLICKHOUSE-2]. 2017-10-29 09:32:21 +03:00
Alexey Milovidov
9b4f299cee Functions for interval arithmetic on DateTime and Date: development [#CLICKHOUSE-2]. 2017-10-29 07:50:32 +03:00
Alexey Milovidov
7ecc63fe71 Functions for interval arithmetic on DateTime and Date: development [#CLICKHOUSE-2]. 2017-10-29 07:18:48 +03:00
Alexey Milovidov
7bdbd71d7c Additions to prev. revision [#CLICKHOUSE-2099]. 2017-10-29 04:13:28 +03:00
Alexey Milovidov
4236bcbfa2 Fixed year 2038 problem. Added support for timezones with fractional offset from UTC. [#CLICKHOUSE-2099] [#CLICKHOUSE-3392]. 2017-10-29 03:51:40 +03:00
Alexey Milovidov
f02b63fc39 Simplified build on Mac OS [#CLICKHOUSE-2]. 2017-10-29 03:00:32 +03:00
Alexey Milovidov
33f56fc035 Fixed build [#CLICKHOUSE-2]. 2017-10-28 06:44:06 +03:00
Alexey Milovidov
9e3daca437 Fixed build [#CLICKHOUSE-2]. 2017-10-28 00:36:43 +03:00
alexey-milovidov
3b99b723d7
Merge pull request #1245 from yandex/CLICKHOUSE-3178
Atomic parts addition and removing
2017-10-27 23:03:33 +03:00
Vitaliy Lyudvichenko
b5c7eaa80e Force data parts cleanup before repeat fetch. [#CLICKHOUSE-3178] 2017-10-26 17:16:06 +03:00
Vitaliy Lyudvichenko
db3a67a421 Add clearer RangeFiltered implementation. [#CLICKHOUSE-3178] 2017-10-26 17:16:06 +03:00
Vitaliy Lyudvichenko
e2a12d1088 Introduced logic for MergeTree parts states. [#CLICKHOUSE-3178] 2017-10-26 17:16:06 +03:00
Alexey Milovidov
84d966f0d3 Fixed overflow in function toRelativeWeekNum with argument of first week of unix epoch; result values changed by 1 [#CLICKHOUSE-3384]. 2017-10-25 21:53:35 +03:00
alexey-milovidov
8c327e9378 Revert "Make gperftools (libtcmalloc) as submodule and update. (#1381)"
This reverts commit fa2484ea90.
2017-10-24 22:18:15 +03:00
proller
fa2484ea90 Make gperftools (libtcmalloc) as submodule and update. (#1381)
* Update tcmalloc and make submodule

* wip

* wip

* wip

* wip

* clean

* fix

* fix

* fix

* Fix tests
2017-10-24 22:11:42 +03:00
Alexey Milovidov
7c99e50a2f Fixed build [#CLICKHOUSE-2]. 2017-10-24 21:28:20 +03:00
proller
443088ce31 Use c++11 thread_local instaed of gcc's __thread 2017-10-19 22:36:37 +03:00
Alexey Vasiliev
7ec4530354 Added explicit copy constructor for mysqlxx::Null 2017-10-17 20:01:01 +03:00
Alexey Vasiliev
59309432f9 Updated copy/move operations for some types, https://nda.ya.ru/3TWvPE 2017-10-17 14:58:08 +03:00
Alexey Milovidov
10392d5452 Fixed build on Mac OS X [#CLICKHOUSE-2]. 2017-10-14 02:12:06 +03:00
proller
64194c9b03 Updating poco and making submodule (#1263)
* Updating poco part 1: use submodule

* switch to tmp submodule

* update submodule

* wip

* wip

* wip

* wip

* wip

* fix

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* test

* wip

* wip

* wip

* wip

* wip

* wip

* Remove werror

* wip

* wip

* wip

* wip

* wip

* Block pipe signal

* Update poco

* Update and fix poco

* Better sigpipe handler

* Better block sigpipe

* Update BaseDaemon.cpp
2017-10-13 21:58:19 +03:00
proller
49f8080e52 Small debud improvement 2017-10-13 21:44:26 +03:00
proller
56f7f1df72 fix cmake 2017-10-09 20:41:27 +03:00
Vladimir Chebotarev
31d2ed2982 libglibc-compatibility: Changed musl longjmp to work with glibc setjmp. [#METR-21516] 2017-10-09 00:39:00 +03:00
Vladimir Chebotarev
3a7f4f04e2 libglibc-compatibility: Added longjmp tests and fixed longjmp problem. [#METR-21516] 2017-10-09 00:39:00 +03:00
alexey-milovidov
3382a730b8 Merge pull request #1315 from yandex/libunwind-fix
Libunwind fix
2017-10-03 17:06:37 +03:00
proller
4e4355a210 Prevent infinite recursion in faultSignalHandler (#CLICKHOUSE-3304) (#1288)
* Prevent infinite recursion in faultSignalHandler (#CLICKHOUSE-3304)

21 0x00000000012a0cbd in faultSignalHandler (sig=<optimized out>, info=0x7ffcacfd5730, context=0x7ffcacfd5600)
   at /home/robot-metrika-test/jenkins/workspace/clickhouse-packages-build@2/sources/libs/libdaemon/src/BaseDaemon.cpp:166
22 <signal handler called>
23 0x00007fc770f90c37 in raise () from /lib/x86_64-linux-gnu/libc.so.6
24 0x00007fc770f94028 in abort () from /lib/x86_64-linux-gnu/libc.so.6
25 0x00000000012a0d5f in terminate_handler () at /home/robot-metrika-test/jenkins/workspace/clickhouse-packages-build@2/sources/libs/libdaemon/src/BaseDaemon.cpp:404
26 0x00000000037c8836 in __cxxabiv1::__terminate(void (*)()) ()
27 0x000000000382d379 in __cxa_call_terminate ()
28 0x00000000037d475d in __gxx_personality_v0 ()
29 0x00000000038331a3 in _Unwind_RaiseException_Phase2 ()
30 0x00000000038339c7 in _Unwind_Resume ()
31 0x00000000012a0cbd in faultSignalHandler (sig=<optimized out>, info=0x7ffcacfd6ef0, context=0x7ffcacfd6dc0)
   at /home/robot-metrika-test/jenkins/workspace/clickhouse-packages-build@2/sources/libs/libdaemon/src/BaseDaemon.cpp:166
32 <signal handler called>
33 0x00007fc770f90c37 in raise () from /lib/x86_64-linux-gnu/libc.so.6
34 0x00007fc770f94028 in abort () from /lib/x86_64-linux-gnu/libc.so.6
35 0x00000000012a0d5f in terminate_handler () at /home/robot-metrika-test/jenkins/workspace/clickhouse-packages-build@2/sources/libs/libdaemon/src/BaseDaemon.cpp:404
36 0x00000000037c8836 in __cxxabiv1::__terminate(void (*)()) ()
37 0x000000000382d379 in __cxa_call_terminate ()
38 0x00000000037d475d in __gxx_personality_v0 ()
39 0x00000000038331a3 in _Unwind_RaiseException_Phase2 ()
40 0x00000000038339c7 in _Unwind_Resume ()
41 0x00000000012a0cbd in faultSignalHandler (sig=<optimized out>, info=0x7ffcacfd86b0, context=0x7ffcacfd8580)
   at /home/robot-metrika-test/jenkins/workspace/clickhouse-packages-build@2/sources/libs/libdaemon/src/BaseDaemon.cpp:166

* Requested changes
2017-09-30 14:04:56 +03:00
Vladimir Chebotarev
07c964ef3b contrib: Fixed unwind build under GCC 7. [#METR-21516]
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81712 .
2017-09-28 23:28:37 +03:00
proller
5250650f65 Fixes (#1286)
* Revert "Simplification [#CLICKHOUSE-2]."

This reverts commit 98ad6a5db3.

* Fix error: comparison of unsigned expression < 0 is always false

* Fix float division by zero

* Fix float division by zero

* Disable PointInPolygon function if compiling with old clang

* Fix warning:
dbms/src/Functions/FunctionsCoding.h:336:21: error: comparison of constant -1 with expression of type 'const char' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
            if (num != -1)

* Fix
2017-09-26 23:29:34 +03:00
proller
7d0e5e786e Compile fixes 2017-09-24 15:41:29 +03:00
proller
f9130b18da Cmake: Allow disable libunwind 2017-09-22 00:31:21 +03:00
Alexey Milovidov
f31a38c5ea Fixed build on Ubuntu Precise [#CLICKHOUSE-2]. 2017-09-18 10:10:35 +03:00
Alexey Milovidov
a726f2831c Enabled "GLIBC_COMPATIBILITY" option by default [#CLICKHOUSE-3275]. 2017-09-17 01:41:20 +03:00
Alexey Milovidov
268771efa9 Miscellaneous [#CLICKHOUSE-2]. 2017-09-17 01:32:04 +03:00
Alexey Milovidov
5d038312b7 Fixed readme [#CLICKHOUSE-3275]. 2017-09-15 12:51:56 +03:00
Alexey Milovidov
1544187f7b Better GLIBC_COMPATIBILITY option [#CLICKHOUSE-3275]. 2017-09-15 12:51:56 +03:00
Alexey Milovidov
a3f3ed12ab Better GLIBC_COMPATIBILITY option [#CLICKHOUSE-3275]. 2017-09-15 12:51:56 +03:00
Alexey Milovidov
148421d10f Better GLIBC_COMPATIBILITY option [#CLICKHOUSE-3275]. 2017-09-15 12:51:56 +03:00
Alexey Milovidov
660926c215 Better GLIBC_COMPATIBILITY option [#CLICKHOUSE-3275]. 2017-09-15 12:51:56 +03:00
Alexey Milovidov
8254bbe7b8 Simplification [#CLICKHOUSE-3275]. 2017-09-15 12:51:56 +03:00
Alexey Milovidov
860c19bad3 Refined "GLIBC_COMPATIBILITY" option [#CLICKHOUSE-3275]. 2017-09-15 12:51:56 +03:00
Alexey Milovidov
165518d4b0 Added README [#CLICKHOUSE-2]. 2017-09-15 12:51:56 +03:00
Alexey Milovidov
cd9c387ed4 Using internal memcpy [#CLICKHOUSE-2]. 2017-09-15 12:51:56 +03:00
Alexey Milovidov
50cf5623a2 Moved third-party sources deeper [#CLICKHOUSE-2]. 2017-09-15 12:51:56 +03:00