Commit Graph

9844 Commits

Author SHA1 Message Date
Alexey Milovidov
69a7761812 Added simple, non-numerically stable variants of statistical functions; use it by default; old functions are accessible under -Stable suffix, like varPopStable [#CLICKHOUSE-2]. 2017-12-23 01:59:45 +03:00
Alexey Milovidov
a7b8541cea Implemented faster and not numerically stable versions of statistical functions [#CLICKHOUSE-2]. 2017-12-23 01:23:03 +03:00
Alexey Milovidov
22ef87b763 Fixed bad test [#CLICKHOUSE-2]. 2017-12-23 01:11:08 +03:00
Alexey Milovidov
2f8a79eee6 Kahan summation: development [#CLICKHOUSE-2]. 2017-12-23 01:02:52 +03:00
Alexey Milovidov
eebdac1f0e Fixed build #1676 2017-12-22 22:26:56 +03:00
Alexey Milovidov
5e39b55f60 Added PR changes #1676 2017-12-22 22:20:18 +03:00
Alexey Milovidov
3d4906e04c Merge branch 'master' of https://github.com/kshvakov/ClickHouse-Server into kshvakov-master 2017-12-22 22:13:35 +03:00
proller
4f2b4efa25 UNION ALL: mismatch size #1444 (#1446)
* UNION ALL: mismatch size #1444

* Fix test reference

* restore InterpreterSelectQuery::initQueryAnalyzer
2017-12-22 21:30:42 +03:00
proller
daab7adf6f client --ignore-error option (useful with --multiquery) (#1652)
* client --ignore-error option (useful with --multiquery)

* --ignore_error via lexer
2017-12-22 21:29:37 +03:00
proller
9b8972b4c8 Add bad queries from #1563 (#1653)
* cmake fix

* load shell_config.sh

* env bash

* fix

* use $CLICKHOUSE_CLIENT

* fix

* curl 1

* curl2

* curl3

* fix

* fix

* fix

* fix

* ExtractFromConfig --try

* fix

* fix

* Add symlinks to package

* fix bundle

* fix

* fix

* fix package

* clickhouse-test --order option

* client --ignore-error option (useful with --multiquery)

* add bad queries from @filimonov

* More queries

* --ignore_error via lexer

* fix

* rename
2017-12-22 21:29:03 +03:00
Alexey Zatelepin
6d5ce3fa9a revert BackgroundSchedulePool usage in Replicated tables 2017-12-22 21:25:54 +03:00
Kirill Shvakov
af400da8eb add toStartOfFifteenMinutes function 2017-12-22 13:04:24 +02:00
Kirill Shvakov
34470ab6ca Merge branch 'master' of https://github.com/yandex/ClickHouse 2017-12-22 11:38:06 +02:00
Alexey Milovidov
b9ca36e5ad Added test [#CLICKHOUSE-2]. 2017-12-22 06:59:48 +03:00
Alexey Milovidov
622f0b62e0 Fixed nullptr dereference when trying to create incorrect data types [#CLICKHOUSE-2]. 2017-12-22 06:55:49 +03:00
Alexey Milovidov
7a15be8e63 Fixed behaviour of "visitParamExtract" functions according to the documentation [#CLICKHOUSE-2]. 2017-12-22 05:25:03 +03: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
46c733ec11 Added test for the issue found by StarWix [#CLICKHOUSE-3]. 2017-12-22 02:00:32 +03:00
Alexey Milovidov
fca5d5f2c7 Use better implementation for exp10 [#CLICKHOUSE-2]. 2017-12-22 02:00:32 +03:00
Alexey Milovidov
5b59a6f4cb Whitespace [#CLICKHOUSE-2]. 2017-12-21 20:43:32 +03:00
proller
9fc417ae15 Fix freebsd build 2017-12-21 16:07:24 +03:00
Alexey Milovidov
6e691269ad Updated instruction [#CLICKHOUSE-2]. 2017-12-21 05:31:32 +03:00
Alexey Milovidov
0744b9118f Fixed test [#CLICKHOUSE-2]. 2017-12-21 05:18:21 +03:00
Alexey Milovidov
128c4a38d6 Merge branch 'fix_aggregate_functions' of https://github.com/silviucpp/ClickHouse into silviucpp-fix_aggregate_functions 2017-12-21 05:14:21 +03:00
Alexey Milovidov
b198766dad Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
ec3ec48309 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
bf9c301784 Simplification of aggregate functions: compatibility details [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
ef6d3be53a Simplification of aggregate functions: compatibility details [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
60d7a9f428 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
ac5433bfbb Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
025041937a Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
c7c868cb99 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
de3f1ee629 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
e316ea67af Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
6fe1b175a0 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
d7a36519da Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
b3f4d439fb Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
178deea21c Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
36cbd50842 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
584a263d79 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
c990740b33 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Roman Tsisyk
0e556c2b03 Fix compilation without SSE 4.2
Fixes "'hash64' was not declared in this scope" on aarch64.
2017-12-21 00:48:17 +03:00
Marek Vavruša
fd260c31ba CapnpProtoRowInputStream: fixed build in current master, added docs 2017-12-21 00:46:50 +03:00
Marek Vavruša
3e1ce9bf26 StorageKafka: nicer interface for claiming consumers 2017-12-21 00:46:50 +03:00
Marek Vavruša
9c57def8df StorageKafka: update comments 2017-12-21 00:46:50 +03:00
Marek Vavruša
c6e959d1e9 StorageKafka: extended configuration, parallel consumers, offset tracking
This contains many fixes and corrections for the Kafka engine.
Most notably it now supports extended configuration similarly to GraphiteMergeTree.
Now it also allows specification of consumer count to parallelize consumption of
multiple partitions both in materialized views and in SELECT queries.

The offsets are now committed in the insertSuffix() method after all rows
are successfully read. If an exception is thrown during reading, affected consumer
unsubscribes from all assignments and rejoins the consumer group to rewind offsets.
This means that the consumer won't lose messages in case of write failures.
2017-12-21 00:46:50 +03:00
Marek Vavruša
6d4f106f11 StorageMaterializedView: update dependencies on DETACH TABLE
Previously the dependencies were updated only on DROP TABLE, so
detaching a materialized view and inserting to source table thrown an exception.
2017-12-21 00:46:50 +03:00
Marek Vavruša
fb1aa84973 Fixed clang build on macOS
- Make sure to use dynamic linking on macOS to avoid OpenSSL static linking bug
- Use -std=c++17 in CFLAGS for files in contrib
- Avoid bad support for thread_local on macOS with clang altogether
2017-12-21 00:46:50 +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 Zatelepin
c422b5b2e4 take PreCommitted parts into account when calculating total merge size [#CLICKHOUSE-3508] 2017-12-20 20:52:28 +03:00
Alexey Zatelepin
835b957e95 add comments [#CLICKHOUSE-3508] 2017-12-20 20:40:36 +03:00
Alexey Zatelepin
d35baafde8 check PreCommitted parts when executing log entries and in PartChecker [#CLICKHOUSE-3508] 2017-12-20 20:04:14 +03:00
Alexey Zatelepin
2340e55d0e revert to old behaviour of getPartIfExists() [#CLICKHOUSE-3508] 2017-12-20 20:04:14 +03:00
Silviu Caragea
d60dfc9f0a Fix potential memory leak 2017-12-20 12:46:29 +02:00
Kirill Shvakov
d40d0657e0 Merge branch 'master' of https://github.com/yandex/ClickHouse 2017-12-20 10:21:25 +02:00
Kirill Shvakov
59aa1359c8 Access to TEMPORARY TABLES for read-only users 2017-12-20 09:52:06 +02:00
Alexey Milovidov
3124ffea67 Fixed error in prev. revision [#CLICKHOUSE-2]. 2017-12-20 02:14:37 +03:00
Alexey Milovidov
6c8a0e70fd Additions after merge [#CLICKHOUSE-2]. 2017-12-19 23:09:15 +03:00
alexey-milovidov
7a97d08b04
Merge branch 'master' into CLICKHOUSE-3361 2017-12-19 23:03:17 +03:00
Alexey Milovidov
c8d8016bbb Fixed bad code [#CLICKHOUSE-2]. 2017-12-19 22:56:48 +03:00
Nikolai Kochetov
39ec3f7d74 changed exception message, added comments 2017-12-19 22:51:59 +03:00
Alexey Milovidov
b48d934c3d Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-19 22:46:11 +03:00
Alexey Milovidov
548cb4e658 Fixed bad code in Client.cpp [#CLICKHOUSE-2]. 2017-12-19 22:46:02 +03:00
Silviu Caragea
b08463ed7b Fix for https://github.com/yandex/ClickHouse/issues/1648 2017-12-19 22:41:05 +03:00
Alexey Milovidov
0d1a285b23 Removed ignoring of EPIPE in WriteBufferFromFileDescriptor [#CLICKHOUSE-2]. 2017-12-19 21:04:14 +03:00
Alexey Milovidov
2ac61adfec Merge branch 'master' into ks1322-master 2017-12-19 20:49:02 +03:00
Alexey Milovidov
1029b2a5ef Fixed warning in SpecializedAggregator.h [#CLICKHOUSE-2]. 2017-12-19 20:48:08 +03:00
alexey-milovidov
34d54ea349 Update CMakeLists.txt 2017-12-19 20:42:35 +03:00
proller
631f307b9f Copy more platform-specific headers 2017-12-19 20:42:35 +03:00
Alexey Milovidov
1a6f38b27f Merge branch 'master' into ks1322-master 2017-12-19 20:38:29 +03:00
Alexey Milovidov
e25514d28a Addition to the fix of generic variant of topK aggregate function [#CLICKHOUSE-2]. 2017-12-19 20:21:47 +03:00
Alexey Milovidov
089e78dc16 Clarification [#CLICKHOUSE-2]. 2017-12-19 04:57:06 +03:00
Alexey Milovidov
aba63cc76f Better semantic of sharing columns: fixed error [#CLICKHOUSE-2]. 2017-12-19 04:53:54 +03:00
Alexey Milovidov
50d09f08f5 Updated test [#CLICKHOUSE-2]. 2017-12-19 04:44:05 +03:00
Alexey Milovidov
80e48cc899 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-19 04:42:24 +03:00
Alexey Milovidov
4e8a70a29f Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-19 04:13:20 +03:00
Alexey Milovidov
d9732198ac Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-19 03:51:12 +03:00
Alexey Milovidov
61c2b55a57 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-19 03:43:04 +03:00
Alexey Milovidov
02821f4861 Fixed error [#CLICKHOUSE-2]. 2017-12-19 03:26:16 +03:00
Alexey Milovidov
93a300bea4 Miscellaneous [#CLICKHOUSE-2]. 2017-12-19 00:49:34 +03:00
Alexey Milovidov
521b3aee84 Fixed error found by M.Filimonov (equality of array sizes are not checked in n-ary version of aggregate functions with -Array combinator) [#CLICKHOUSE-2]. 2017-12-19 00:44:18 +03:00
Alexey Milovidov
6c28c72fdc Added test [#CLICKHOUSE-2]. 2017-12-19 00:16:20 +03:00
Alexey Milovidov
b83142ea62 Fixed error found by M.Filimonov (generic implementation of topK aggregate function was totally wrong) [#CLICKHOUSE-2]. 2017-12-19 00:12:15 +03:00
Alexey Milovidov
339e22d014 Fixed error found by M.Filimonov [#CLICKHOUSE-2]. 2017-12-19 00:04:19 +03:00
Alexey Milovidov
d84ef5d8e2 Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-18 23:43:19 +03:00
Alexey Milovidov
09fa34c764 Fixed error found by M.Filimonov (missing check for maximum size of FixedString leading to overflow in arithmetic) [#CLICKHOUSE-2]. 2017-12-18 23:43:10 +03:00
proller
ab5cbcc627 Try fix internal compiler [tests run] (#1651)
* Try fic interal compiler

* Debian: depend on tzdata package

* fix order

* Try fix

* fix

* try

* fix

* fix

* fix

* fix
2017-12-18 23:30:19 +03:00
proller
bee53d483f Allow run tests without extract-from-config 2017-12-18 15:26:34 +03:00
Alexey Milovidov
bc160f5e4d Fixed error [#CLICKHOUSE-2]. 2017-12-18 09:49:38 +03:00
Alexey Milovidov
84016cc96f Fixed error [#CLICKHOUSE-2]. 2017-12-18 09:39:07 +03:00
alexey-milovidov
adfc743e06
Merge pull request #1658 from yandex/cow_columns
Better semantic of sharing columns.
2017-12-18 09:26:27 +03:00
Alexey Milovidov
32fcc7b3f0 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-18 09:23:19 +03:00
Alexey Milovidov
27301ac380 Updated test [#CLICKHOUSE-2]. 2017-12-18 08:43:41 +03:00
Alexey Milovidov
816169a3be Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-18 08:38:42 +03:00
Alexey Milovidov
11d3b9c710 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-18 08:37:20 +03:00
Alexey Milovidov
f9170190c6 Miscellaneous [#CLICKHOUSE-2]. 2017-12-18 07:17:56 +03:00
Alexey Milovidov
c5d5296889 Miscellaneous [#CLICKHOUSE-2]. 2017-12-18 07:07:26 +03:00
Alexey Milovidov
88384bad05 Removed duplicate test [#CLICKHOUSE-2]. 2017-12-18 05:46:34 +03:00
Alexey Milovidov
280b88454b Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-18 05:43:40 +03:00
Alexey Milovidov
7c802ee3de Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-18 05:37:08 +03:00
Alexey Milovidov
f95ddfce10 Make DataTypes totally immutable [#CLICKHOUSE-2]. 2017-12-18 04:11:48 +03:00
ks1322
2fd62ccd9f added expect test 2017-12-17 23:46:52 +03:00
Alexey Milovidov
32bc1df714 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 13:51:19 +03:00
Alexey Milovidov
6bad555b9d Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 13:39:22 +03:00
Alexey Milovidov
f501f6990e Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 13:20:48 +03:00
Alexey Milovidov
6f7d2b99ea Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 13:14:12 +03:00
Alexey Milovidov
75c0ad10ab Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 12:01:12 +03:00
Alexey Milovidov
c0670435ab Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 11:44:06 +03:00
Alexey Milovidov
8484f086a5 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 10:59:14 +03:00
Alexey Milovidov
6ad5be5eee Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 10:15:13 +03:00
Alexey Milovidov
d497d010d7 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 08:21:04 +03:00
ks1322
62a2932299 ignore EPIPE write error for custom pagers in client 2017-12-16 16:06:30 +03:00
ks1322
2a42fe8f3f ignore SIGPIPE signal for custom pagers 2017-12-16 16:06:30 +03:00
Alexey Milovidov
5f4a536f75 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 09:33:54 +03:00
Alexey Milovidov
62f7c25522 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 09:19:21 +03:00
Alexey Milovidov
6fe31d257d Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 09:10:05 +03:00
Alexey Milovidov
342f0e431a Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 09:08:33 +03:00
Alexey Milovidov
7d69e041f5 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 09:02:54 +03:00
Alexey Milovidov
278f8b9fcb Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 08:52:47 +03:00
Alexey Milovidov
ddfb1fab9e Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 08:46:46 +03:00
Alexey Milovidov
bce801a663 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 08:34:07 +03:00
Alexey Milovidov
14b0397500 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 08:21:04 +03:00
Alexey Milovidov
45805a367f Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 07:59:32 +03:00
Alexey Milovidov
5b32914089 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 07:29:34 +03:00
Alexey Milovidov
3f0c4bf61c Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 05:34:02 +03:00
Alexey Milovidov
30639dea0f Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 05:24:02 +03:00
Alexey Milovidov
3e3042f01a Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 04:21:59 +03:00
Alexey Milovidov
8302769563 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 03:49:03 +03:00
Alexey Milovidov
645f620873 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 00:46:56 +03:00
Alexey Milovidov
afec433d6f Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 00:33:05 +03:00
Alexey Milovidov
7284a64740 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 00:32:25 +03:00
Alexey Milovidov
ecd56de6a8 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 00:11:24 +03:00
Alexey Milovidov
c4bbc1c963 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 23:48:46 +03:00
Alexey Milovidov
8ce60e3af0 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 22:53:11 +03:00
Alexey Milovidov
0b76b61c73 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 22:46:24 +03:00
proller
e7f82b6a8c
Allow run test without package install and on custom ports. (#1643)
* ExtractFromConfig --try

* Add symlinks to package

* clickhouse-test --order option
2017-12-15 22:34:19 +03:00
Alexey Milovidov
9c9896c1a9 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 22:17:15 +03:00
Alexey Milovidov
d0ca8b2533 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 21:23:05 +03:00
proller
254cced2cd Add internal compiler include dir (to fix missing stddef.h) 2017-12-15 18:43:47 +03:00
Alexey Milovidov
b2aff7521b Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 06:47:43 +03:00
Alexey Milovidov
7e685c383b Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 06:19:14 +03:00
Alexey Milovidov
e3d931d7fc Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 06:12:04 +03:00
Alexey Milovidov
96ee187d1a Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 06:04:33 +03:00
Alexey Milovidov
a086e3e6d8 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 05:52:38 +03:00
Alexey Milovidov
401fd2d6d8 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 05:36:40 +03:00
Alexey Milovidov
a92055c768 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 05:04:28 +03:00
Alexey Milovidov
6756b37925 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 04:34:30 +03:00
Alexey Milovidov
4148c6ce81 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 03:06:56 +03:00
Alexey Milovidov
8926af2ced Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 03:01:59 +03:00