Commit Graph

4811 Commits

Author SHA1 Message Date
Alexey Milovidov
33f9917f53 Removed wrong code [#CLICKHOUSE-2]. 2017-02-07 09:24:23 +03:00
Alexey Milovidov
099f8038d4 Fixed error [#CLICKHOUSE-2]. 2017-02-07 09:18:16 +03:00
Alexey Zatelepin
7522cecd67 differentiate setrlimit error messages 2017-02-07 09:28:53 +04:00
Alexey Milovidov
26646001e3 Style [#CLICKHOUSE-2]. 2017-02-07 08:21:31 +03:00
artpaul
d85edff892 implement conversion from error codes to different http statuses 2017-02-07 09:20:20 +04:00
artpaul
245b715723 #455 also update tmp_files_info_path when files_info_path is changed 2017-02-06 17:09:54 +05:00
proller
edd9da119f External poco fix
y
2017-02-03 03:08:42 +04:00
proller
90ab2b57c8 Fix external poco 2017-02-03 01:43:09 +03:00
proller
27cde5f8c8 Fix some includes and missing definitions (#446) 2017-02-03 02:08:19 +04:00
proller
85533eab57 Fix compiling with external poco (#445)
* Freebsd: libcctz build fix

* Fix compiling with external poco
2017-02-02 23:08:12 +04:00
proller
7b397b89cd Add missing counters [#CLICKHOUSE-2197] (#439)
* Add missing counters [#CLICKHOUSE-2197]

* ../../tests/external_dictionaries/generate_and_test.py : allow not break tests when one type fail
2017-02-02 22:11:00 +04:00
proller
4f83c8c291 Server: print info about listen address and port on start 2017-02-02 22:09:26 +04:00
proller
b8f1ea4805 Fix reloading http dictionaries [#CLICKHOUSE-2176] (#433)
* Fixing dictionaries [#CLICKHOUSE-2176]
2017-02-01 20:53:18 +03:00
Alexey Milovidov
b8ac19999c Settings 'max_memory_usage_for_user' and 'max_memory_usage_for_all_queries': do not interfere between different queries [#CLICKHOUSE-2796]. 2017-02-01 06:53:10 +03:00
Alexey Milovidov
172b385247 Added missing modification [#CLICKHOUSE-2184]. 2017-02-01 06:10:12 +03:00
Alexey Milovidov
1c8841b04e Fixed error [#CLICKHOUSE-2184]. 2017-02-01 05:35:06 +03:00
Alexey Milovidov
8cabe639f5 Fixed errors in exception message [#CLICKHOUSE-2184]. 2017-02-01 05:31:35 +03:00
Alexey Milovidov
6efae7240e Merge branch 'master' of github.com:yandex/ClickHouse 2017-02-01 04:20:21 +03:00
Alexey Milovidov
efbfbdc7a3 Added setting 'send_progress_in_http_headers', disabled by default [#CLICKHOUSE-32]. 2017-02-01 04:19:32 +03:00
proller
c51801d776 Change default user and paths [#CLICKHOUSE-2715] (#382)
* Changing default user to clickhouse and path to /var/lib/clickhouse [#CLICKHOUSE-2715]

* wip

* Auto version update to [54141]

* Get version from saved in cmake
2017-01-31 23:53:05 +04:00
proller
3135ff17b6 Fix compiling utils without readline (#429)
* Fix compiling utils without readline

* fix
2017-01-31 23:34:30 +04:00
Vitaliy Lyudvichenko
abf5066618 Fix spelling errors. [#CLICKHOUSE-3] 2017-01-31 23:28:37 +04:00
Vitaliy Lyudvichenko
1b7b2b8373 Avoid extra current limits checks in non-root streams. [#CLICKHOUSE-2745] 2017-01-31 23:28:37 +04:00
Vitaliy Lyudvichenko
6500a84dd0 Fix overestimation of AggregateFunction columns size during remote aggregation. [#CLICKHOUSE-2745] 2017-01-31 23:28:37 +04:00
Alexey Zatelepin
4ecfd44015 [#CLICKHOUSE-2115] PR changes:
* do not insert produced value into the cache if the cache has been reset.
* less logging
* cosmetic fixes
2017-01-31 22:45:10 +04:00
Alexey Zatelepin
0fdcdd7bdb Introduce LRUCache::getOrSet(), use it to avoid mark cache stampede [#CLICKHOUSE-2115] 2017-01-31 22:45:10 +04:00
Alexey Milovidov
48db8d121d Moved code out of header [#CLICKHOUSE-2]. 2017-01-31 21:39:01 +03:00
proller
79a7e893c7 system.build_options: move generated data to cpp, dont regenerate every compile (#423)
* system.build_options: move generated data to cpp, dont regenerate every compile

* Fix linking iconv under macos and freebsd
Partially Revert "Removed usage of glib [#CLICKHOUSE-2]."
This reverts commit e4ff740ef1.

* fix
2017-01-31 22:03:56 +04:00
alexey-milovidov
bce4ea38e5 Merge pull request #428 from yandex/ch-2044
check keys inside attribute section of dictionary's config
2017-01-31 19:54:31 +04:00
artpaul
5c1d2af4d8 check keys inside attribute section of dictionary's config [#CLICKHOUSE-2044] 2017-01-31 18:27:02 +05:00
Vitaliy Lyudvichenko
9f8a967e6c Fix SHOW PROCESSLIST segfault. [#CLICKHOUSE-2120] 2017-01-30 16:24:42 +03:00
alexey-milovidov
720781a7bc Revert "KILL QUERY" 2017-01-30 16:20:11 +04:00
Alexey Milovidov
d4d3d36ff0 Removed useless code; improved performance [#CLICKHOUSE-2785]. 2017-01-30 09:48:10 +03:00
Alexey Milovidov
ecc6d2a7b9 Moved a function to header for inlining [#CLICKHOUSE-2]. 2017-01-30 08:22:49 +03:00
Alexey Milovidov
3b0900e6cf Moved code to .cpp [#CLICKHOUSE-2027]. 2017-01-30 08:13:58 +03:00
Alexey Milovidov
ff54b9466d Fixed error [#CLICKHOUSE-2191]. 2017-01-28 00:46:15 +03:00
proller
46037bb670 Allow link with jemalloc (#404)
* Allow link with jemalloc

* wip

* fix

* fix
2017-01-28 00:00:02 +04:00
proller
8b4b1534e3 Cmake: Test on having sse (#405)
* Cmake: Test on having sse

* fix

* wip

* wip

* wip

* wip

* wip

* wip

* fix

* fix

* fix

* fix

* fix

* fix
2017-01-27 23:55:33 +04:00
alexey-milovidov
de9bc1dc75 Text formats allow to skip errors (#407)
* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134

* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134

* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134

* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134

* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134

* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134

* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134

* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134

* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134

* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134

* Added test [#CLICKHOUSE-2778].
2017-01-27 08:29:47 +04:00
Vitaliy Lyudvichenko
55390715b1 Add requested changes. [#CLICKHOUSE-2120] 2017-01-27 03:59:39 +04:00
Vitaliy Lyudvichenko
891437e531 Add docs. Add TEST version of KILL QUERY. [#CLICKHOUSE-2120] 2017-01-27 03:59:39 +04:00
Vitaliy Lyudvichenko
649fd1922b Add TOO_MUCH_SIMULTANEOUS_QUERIES exception. [#CLICKHOUSE-2120] 2017-01-27 03:59:39 +04:00
Vitaliy Lyudvichenko
6bd306ca8c Improve KILL QUERY. [#CLICKHOUSE-2120] 2017-01-27 03:59:39 +04:00
Vitaliy Lyudvichenko
b1bccb0bb2 Query KILL QUERY. [#CLICKHOUSE-2120] 2017-01-27 03:59:39 +04:00
Alexey Milovidov
a106520a0d Added requested change [#CLICKHOUSE-2191]. 2017-01-27 00:51:30 +03:00
Artemkin Pavel
06d1509da1 check that sharding_key exists in the table and has numeric type (#392)
* check that sharding_key exists in the table and has numeric type [#CLICKHOUSE-2191]

* style

* infer type of sharding expression [#CLICKHOUSE-2191]
2017-01-27 01:47:33 +04:00
proller
20d6c20a72 Dont throw if setrlimit failed (just print warning), Little build_options fix (#403)
* Little improve system.build_options

* Dont throw if setrlimit failed (just print warning)
Little build_options fix
2017-01-27 01:46:17 +04:00
Alexey Milovidov
43971faf32 Merge branch 'localhost' of https://github.com/proller/ClickHouse into proller-localhost 2017-01-27 00:42:56 +03:00
alexey-milovidov
0e38fdcbf3 Remove stringstream performance on very short queries (#406)
* Improved performance on very short-response queries [#CLICKHOUSE-2].

* Improved performance on very short-response queries [#CLICKHOUSE-2].

* Improved performance on very short-response queries [#CLICKHOUSE-2].

* Renamed variable in test [#CLICKHOUSE-2].

* Benchmark: whitespace [#CLICKHOUSE-2].

* Manual version update [#CLICKHOUSE-2].
2017-01-27 01:30:11 +04:00
proller
35dce017a2 Merge remote-tracking branch 'upstream/master' into localhost 2017-01-26 15:07:29 +03:00
proller
e715ddd72a SELECT * FROM system.build_options [#METR-24175] (#398)
* start [#METR-24175]

* missing

* wip

* add spaces

* wip

* wip

* fix

* fix

* missing

* style fix
2017-01-26 02:24:36 +04:00
proller
70e641f58a Fix readline finding on mac; use config for readline vars (#397)
* Fix readline finding on mac; use config for readline vars

* fix
2017-01-26 00:14:41 +04:00
proller
f8d1573946 Various arm64 compile fixes on utils (#394) 2017-01-25 23:17:13 +04:00
Alex Zatelepin
543b6ee757 ensure that all streams point to to_mark after reading even if max_rows_to_read is zero [#CLICKHOUSE-2775] (#396) 2017-01-25 23:16:31 +04:00
proller
4f00b3833d Merge remote-tracking branch 'upstream/master' into localhost 2017-01-25 22:08:56 +03:00
proller
f04dffc05c External dictionary profiling [#CLICKHOUSE-2197] (#381)
* Profiling external cached dictonaries [#CLICKHOUSE-2197]

* style
2017-01-25 22:40:44 +04:00
proller
3fc4998a01 Merge remote-tracking branch 'upstream/master' into localhost 2017-01-25 21:27:23 +03:00
proller
f890af1f8d Remove code and includes from Collator.h, fix including <unicode/...> in dbms (#395) 2017-01-25 22:19:15 +04:00
proller
9c3133deac wip 2017-01-25 16:17:13 +03:00
alexey-milovidov
8c0e81f8cb Remove stringstream performance on very short queries (#391)
* Improved performance on very short-response queries [#CLICKHOUSE-2].

* Improved performance on very short-response queries [#CLICKHOUSE-2].

* Improved performance on very short-response queries [#CLICKHOUSE-2].
2017-01-25 05:53:29 +04:00
Alexey Zatelepin
281744667d use common cur_mark_idx for all streams [#CLICKHOUSE-2116] 2017-01-25 00:48:58 +04:00
Alexey Zatelepin
dc1f0d96bd add clarifying comment [#CLICKHOUSE-2116] 2017-01-25 00:48:58 +04:00
Alexey Zatelepin
f7ca39da77 translate comments [#CLICKHOUSE-3] 2017-01-25 00:48:58 +04:00
Alexey Zatelepin
32e5713822 do not load marks when reading the whole part [#CLICKHOUSE-2116] 2017-01-25 00:48:58 +04:00
Vitaliy Lyudvichenko
c9e52a5cf9 Add requested PR changes. [#CLICKHOUSE-2145] [issue #325] 2017-01-24 22:26:29 +04:00
Vitaliy Lyudvichenko
20a5ae4bc4 Add protection from accidental DROP queries. [#CLICKHOUSE-2184] 2017-01-24 22:26:29 +04:00
Vitaliy Lyudvichenko
ef6a4e08db Resolved #325. Add 401 HTTP status code if auth failed. [#CLICKHOUSE-3] 2017-01-24 22:26:29 +04:00
Vitaliy Lyudvichenko
1c38a89785 Add source_part_names column into system.merges. [#CLICKHOUSE-2145] 2017-01-24 22:26:29 +04:00
alexey-milovidov
17a4ead1ef Setting fsync metadata (#380)
* Added setting 'fsync_metadata' [#CLICKHOUSE-2770].

* Added setting 'fsync_metadata' [#CLICKHOUSE-2770].

* Added setting 'fsync_metadata' [#CLICKHOUSE-2770].

* Added setting 'fsync_metadata' [#CLICKHOUSE-2770].
2017-01-23 22:05:07 +04:00
Alexey Milovidov
791198e619 Comments [#CLICKHOUSE-3]. 2017-01-23 20:10:31 +03:00
Alexey Milovidov
38d25022c6 Comments [#CLICKHOUSE-3]. 2017-01-23 19:00:26 +03:00
Alexey Milovidov
6894df0304 Sending progress in HTTP headers (continued) [#CLICKHOUSE-32]. 2017-01-22 20:26:55 +03:00
Alexey Milovidov
48ae82e1c7 Sending progress in HTTP headers (continued) [#CLICKHOUSE-32]. 2017-01-22 19:34:17 +03:00
Alexey Milovidov
c903a23864 Sending progress in HTTP headers (continued) [#CLICKHOUSE-32]. 2017-01-22 19:12:30 +03:00
Alexey Milovidov
00475da25e Sending progress in HTTP headers [#CLICKHOUSE-32]. 2017-01-22 18:03:55 +03:00
Alexey Milovidov
6ec9380510 Allow to set server timezone from configuration file [#CLICKHOUSE-2765]. 2017-01-22 15:53:24 +03:00
Alexey Milovidov
812fd4fe87 Added function 'timezone' for introspection [#CLICKHOUSE-2765]. 2017-01-22 14:07:45 +03:00
Alexey Milovidov
641faac912 More correct time zones support; removed support for non-constant time zone argument [#CLICKHOUSE-2765]. 2017-01-22 11:57:34 +03:00
alexey-milovidov
ed5b521110 Less dependencies 2 (#378)
* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].
2017-01-21 08:24:28 +04:00
proller
1adf0bb3e1 Remove -metrika-yandex postfix from package names (#377) 2017-01-20 23:58:13 +04:00
proller
2688f4563f cmake: remove add_definitions(-DNO_TCMALLOC), instead use ENABLE_LIBTCMALLOC from config (#375)
* Manual version update to [54135]

* Temporary release script fix [#METRIQA-732]

* cmake: remove add_definitions(-DNO_TCMALLOC), instead use ENABLE_LIBTCMALLOC from config
2017-01-20 21:58:07 +04:00
Alexey Milovidov
4d1ac56ba9 Fixed rare memory leak [#CLICKHOUSE-2761]. 2017-01-20 08:25:25 +03:00
Alexey Milovidov
459db30c29 Preparations [#CLICKHOUSE-2761]. 2017-01-20 08:00:04 +03:00
Alexey Milovidov
63c3870fd0 Modified test [#CLICKHOUSE-2756]. 2017-01-20 07:27:51 +03:00
Alexey Milovidov
6226132be0 Modified test [#CLICKHOUSE-2756]. 2017-01-20 06:24:57 +03:00
Alexey Milovidov
bb61f917b8 Memory leak in Field: investigation [#CLICKHOUSE-2763]. 2017-01-20 05:34:35 +03:00
Alexey Milovidov
5c1ae060a4 Miscellaneous [#CLICKHOUSE-2761]. 2017-01-20 05:22:18 +03:00
Alexey Milovidov
7a971df887 Fixed error in function multiIf [#CLICKHOUSE-2763]. 2017-01-20 04:41:30 +03:00
Alexey Milovidov
904ac284da Fixed error with multiIf function [#CLICKHOUSE-2763]. 2017-01-20 04:18:57 +03:00
Alexey Zatelepin
0eb48dc84e cosmetic fixes [#CLICKHOUSE-2133] 2017-01-19 15:02:30 +03:00
Alexey Zatelepin
f5a25c341c translate comments [#CLICKHOUSE-3] 2017-01-19 03:48:59 +04:00
Alexey Zatelepin
5de1975bc4 parse INTO OUTFILE clause [#CLICKHOUSE-2133] 2017-01-19 03:48:59 +04:00
proller
04e2baebed Cmake (#358)
cmake: dont install files from CLICKHOUSE_PRIVATE_DIR
2017-01-18 17:35:59 +03:00
proller
db0fce346a Freebsd clang3.8 compile fixes (#352)
* Freebsd clang3.8 compile fixes

* clean
2017-01-18 01:00:23 +04:00
Alexey Milovidov
ffed6b1d5e Added one more column to system.parts [#CLICKHOUSE-2757]. 2017-01-17 23:54:32 +03:00
Alexey Milovidov
e407bf879c system.parts: added a column for primary key size in bytes in RAM [#CLICKHOUSE-2757]. 2017-01-17 23:49:16 +03:00
Alexey Milovidov
c74d585b0b Merge branch 'master' of github.com:yandex/ClickHouse 2017-01-17 23:48:14 +03:00
Alexey Milovidov
9f48890a8e NULLs: added missing method [#CLICKHOUSE-4]. 2017-01-17 23:47:37 +03:00
proller
2fe033d00e Fix compiling in freebsd/clang 2017-01-17 18:03:32 +00:00
proller
29475c94c0 Reorganize includes, less depends in .h files 2017-01-16 22:47:11 +03:00