Commit Graph

1674 Commits

Author SHA1 Message Date
Vitaliy Lyudvichenko
16c8aefba2 Fixed test after refactoring. [#CLICKHOUSE-2] 2018-03-13 23:49:13 +03:00
proller
24651f7dd6 Fixes 2018-03-13 23:38:35 +03:00
Alexey Zatelepin
2f573e4f77 add tests [#CLICKHOUSE-3241] 2018-03-13 17:24:16 +03:00
Nikolai Kochetov
5a07569c2a added test [#CLICKHOUSE-3590] 2018-03-12 18:22:14 +03:00
Alexey Milovidov
d0a7f05078 Renamed test [#CLICKHOUSE-2]. 2018-03-10 05:26:31 +03:00
Alexey Milovidov
5fc47bdfb1 Fixed error [#CLICKHOUSE-3627] 2018-03-10 03:26:17 +03:00
Alexey Milovidov
7577b1db14 Added function "throwIf" [#CLICKHOUSE-2543] 2018-03-10 03:18:57 +03:00
Alexey Milovidov
c653759714 Added another test #245 2018-03-10 02:24:38 +03:00
Alexey Milovidov
b581bbec68 Added test #245 2018-03-10 02:07:08 +03:00
Kirill Shvakov
8c4a7b774e Removed BB-Style macros for colors. Preparing prompt pattern once and replace current database in the cycle only. 2018-03-08 10:55:27 +02:00
zhang2014
21b62eabb6 ISSUES-258 add validation test for ISSUES-258 2018-03-08 09:21:45 +08:00
alexey-milovidov
e41e2fe613
Merge pull request #1912 from zhang2014/fix/ISSUES-369
ISSUES-369 add default database when create materialize view
2018-03-07 23:28:17 +03:00
alexey-milovidov
1ecb9dac72
Merge pull request #1901 from zhang2014/fix/ISSUES-117
ISSUES-117 add show create & exist temporary table
2018-03-07 22:53:11 +03:00
alexey-milovidov
2daf6be96c
Merge pull request #2004 from yandex/CLICKHOUSE-3616
Prohibited non-UInt8 constants in WHERE
2018-03-07 22:07:24 +03:00
Alexey Milovidov
b1467886f2 Added test [#CLICKHOUSE-2] 2018-03-07 21:59:22 +03:00
Vitaliy Lyudvichenko
7c3d0344e8 Prohibited non-UInt8 constants in WHERE. [#CLICKHOUSE-3616] 2018-03-07 16:12:35 +03:00
zhang2014
38fe0698a1 ISSUES-369 add attach & detach test 2018-03-06 21:05:08 +08:00
Nikolai Kochetov
966a7d819b fix test 2018-03-05 19:15:17 +03:00
Nikolai Kochetov
7b983340b8 Merge branch 'remote-table-function-insert-into-local-replica' of github.com:yandex/ClickHouse into remote-table-function-insert-into-local-replica 2018-03-05 17:59:58 +03:00
Nikolai Kochetov
6c66f78f71 renamed shared tests 2018-03-05 17:59:51 +03:00
KochetovNicolai
9f12df3a86
Update 00459_group_array_insert_at.sql 2018-03-05 17:52:59 +03:00
KochetovNicolai
bf6cfadfbc
Update 00557_remote_port.sh 2018-03-05 17:23:33 +03:00
Nikolai Kochetov
f5b9ccf337 Merge branch 'remote-table-function-insert-into-local-replica' of github.com:yandex/ClickHouse into remote-table-function-insert-into-local-replica 2018-03-05 15:38:40 +03:00
Nikolai Kochetov
871a560b37 merged with master 2018-03-05 15:36:17 +03:00
Kirill Shvakov
3c09dacb5f fix test 2018-03-05 14:05:48 +02:00
Alexey Milovidov
ba481a6acd Fixed error with TOTALS [#CLICKHOUSE-3619] 2018-03-03 04:28:13 +03:00
Alexey Milovidov
13e8dd6198 Unified filename of test #1933. 2018-03-02 22:35:34 +03:00
alexey-milovidov
9b4ea7acde
Merge pull request #1933 from zhang2014/fix/ISSUES-1386
ISSUES-1386 add illegal column exception when drop exist depend
2018-03-02 22:33:57 +03:00
zhang2014
361a220743 Merge branch 'master' into fix/ISSUES-117 2018-03-02 19:06:11 +08:00
zhang2014
c400613f03 Merge branch 'master' into fix/ISSUES-369 2018-03-02 18:55:15 +08:00
zhang2014
4a38e97ed6 Merge branch 'master' into fix/ISSUES-1386 2018-03-02 18:03:18 +08:00
Alexey Milovidov
9024cf5fc8 Fixed test [#CLICKHOUSE-2]. 2018-03-02 10:43:47 +03:00
Alexey Milovidov
22bbc9f08c Added limit on size of AST after expansion of aliases [#CLICKHOUSE-18] 2018-03-02 09:33:17 +03:00
zhang2014
ce2b100deb ISSUES-66 add insert into view test 2018-03-01 22:49:16 +08:00
Alexey Milovidov
37f9034575 Updated test #1550 2018-03-01 12:41:40 +03:00
Alexey Milovidov
ca60c0ccdf Added a test from Mikhail Kalashnikov for ALIAS columns in Distributed tables #590 #1947 2018-03-01 12:32:00 +03:00
Alexey Milovidov
a2e649f8c0 Updated test #1947 2018-03-01 11:56:12 +03:00
Alexey Milovidov
b162850754 Fixed error in checking limit on number of columns to read; added test for unnecessary columns removal inside subqueries with UNION ALL #1947 [#CLICKHOUSE-2210] 2018-03-01 11:46:59 +03:00
Alexey Milovidov
559da607fc Added test #878 2018-03-01 11:33:48 +03:00
Alexey Milovidov
8197574e37 Added test #1947 2018-03-01 11:07:46 +03:00
Alexey Milovidov
a27d27ac94 Added test #1947 [#CLICKHOUSE-3264] 2018-03-01 10:47:09 +03:00
Alexey Milovidov
0908ed1561 Added test #1947 2018-03-01 10:27:02 +03:00
Alexey Milovidov
4c87ae427d Added test #1947 2018-03-01 10:18:15 +03:00
Alexey Milovidov
37f27b3e4b Added a test for type conversions in UNION ALL #1947 2018-03-01 10:05:03 +03:00
Alexey Milovidov
0bd9575125 Added a test from FacedSID #859 2018-03-01 09:50:46 +03:00
Alexey Milovidov
322e0ef4ec Added a test from George #728 2018-03-01 09:35:54 +03:00
Alexey Milovidov
69e8133fdc Added a test by Stas Sviridov #320 2018-03-01 09:21:15 +03:00
Alexey Milovidov
f7e0912d81 Added support for LIMIT BY arbitary expressions [#CLICKHOUSE-3613] #1947 2018-03-01 08:24:56 +03:00
Alexey Milovidov
58f9d3decc Better test [#CLICKHOUSE-2] 2018-03-01 07:51:54 +03:00
Alexey Milovidov
cfe900c997 Fixed test #1947. 2018-02-28 23:05:29 +03:00
alexey-milovidov
924cc3451f
Merge pull request #1955 from yandex/CLICKHOUSE-3606
Added consistent hashing functions
2018-02-27 10:52:41 +03:00
Alexey Milovidov
03d4c352ec Fixed bad test #1947 2018-02-26 21:39:21 +03:00
Vitaliy Lyudvichenko
120530e44c Add requested changes. [#CLICKHOUSE-3606] 2018-02-26 15:14:20 +03:00
Vitaliy Lyudvichenko
077f413a0d Added consistent hashing functions. [#CLICKHOUSE-3606] 2018-02-24 00:22:52 +03:00
Alexey Milovidov
d4217d7aac Updated test [#CLICKHOUSE-2] 2018-02-23 14:37:49 +03:00
Alexey Milovidov
90ca41f049 Fixed test #1896 2018-02-23 11:23:31 +03:00
Alexey Milovidov
466837b17c Removed controversial feature #1896 2018-02-23 10:06:59 +03:00
Alexey Milovidov
0207760c05 Limit and quota on result must not apply for intermediate data in subqueries and INSERT SELECT [#CLICKHOUSE-3351] 2018-02-23 09:38:23 +03:00
Alexey Milovidov
640daaf052 Fixed test #1947 2018-02-23 04:00:47 +03:00
zhang2014
88693fe85e ISSUES-1386 add test 2018-02-23 07:14:51 +08:00
Alexey Milovidov
c44108d5eb Allow to CAST Nullable type to non-Nullable as long as there are no NULL values #1947 2018-02-23 00:20:02 +03:00
alexey-milovidov
533b5cbe00
Merge pull request #1938 from yandex/fix-replacing-merge-tree
Fix replacing merge tree vertical merge
2018-02-22 02:06:24 +03:00
alexey-milovidov
d4dcb9412c
Merge pull request #1941 from yandex/unsorted-mergetree
Fix MergeTree idiosyncrasies
2018-02-22 00:36:59 +03:00
Alexey Milovidov
02f7cc2d04 Fixed error with StorageMerge [#CLICKHOUSE-2]. 2018-02-21 23:24:29 +03:00
Alexey Milovidov
4055da5979 Fixed error with filtering of tables by _table virtual column in StorageMerge [#CLICKHOUSE-3583] 2018-02-21 22:44:22 +03:00
Alexey Milovidov
65f4fcc3e3 Merge branch 'master' into header-in-output-streams 2018-02-21 21:58:20 +03:00
Alexey Zatelepin
6fdf82e452 allow the primary key and the partition key to use the same expression [#CLICKHOUSE-3455] 2018-02-21 18:43:24 +03:00
Alexey Zatelepin
e3422ea52e MergeTree without primary key [#CLICKHOUSE-3462] 2018-02-21 17:50:26 +03:00
Nikolai Kochetov
da9b8dbd2c added test for ReplacingMergeTree vertical merge #1914 2018-02-21 17:13:29 +03:00
Vitaliy Lyudvichenko
963c4a972e Fixe a compile test if the compliation if turn off. [#CLICKHOUSE-2] 2018-02-21 17:12:49 +03:00
Vitaliy Lyudvichenko
c80407ad8d Fixed ZK path in a test. [#CLICKHOUSE-2] 2018-02-21 16:52:17 +03:00
Alexey Zatelepin
de46ee4261 fix typo 2018-02-21 15:31:28 +03:00
Alexey Milovidov
8e91a5e1f1 Added test [#CLICKHOUSE-2] 2018-02-21 11:19:17 +03:00
Alexey Milovidov
a69bd2220a Merge branch 'master' into header-in-output-streams 2018-02-21 04:41:09 +03:00
Alexey Milovidov
f6eb5b4b01 Enhanced test [#CLICKHOUSE-3608] 2018-02-21 04:39:46 +03:00
Alexey Milovidov
3dd665179e Fixed error with components of Nested data structures without data and PREWHERE filtering [#CLICKHOUSE-3608] 2018-02-21 04:16:09 +03:00
Tsarkova Anastasia
65a4d300a3 Add test. 2018-02-20 23:19:04 +03:00
zhang2014
3f8c42c97d ISSUES-995 add test 2018-02-20 08:45:32 +08:00
alexey-milovidov
0d38418122
Merge pull request #1926 from yandex/empty-string-floats
Deserialize empty strings as 0 when parsing Float columns
2018-02-19 16:29:03 +03:00
Alexey Zatelepin
8e3bf95f98 add test [#CLICKHOUSE-3603] 2018-02-19 16:00:11 +03:00
zhang2014
bf4813921c ISSUES-995 add test 2018-02-19 19:49:03 +08:00
Alexey Milovidov
74c56c2def Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 06:56:08 +03:00
Alexey Milovidov
25ba8d47bb Updated test [#CLICKHOUSE-1920] #51 2018-02-18 09:36:34 +03:00
Alexey Milovidov
6d17ca0a8b Return single row for aggregation without keys on empty set: updated tests [#CLICKHOUSE-1920] #51 2018-02-18 08:56:45 +03:00
Alexey Milovidov
47ff837c9f Return single row for aggregation without keys on empty set: development [#CLICKHOUSE-1920] #51 2018-02-18 08:39:39 +03:00
Alexey Milovidov
7415513151 Return single row for aggregation without keys on empty set: development [#CLICKHOUSE-1920] #51 2018-02-18 08:35:48 +03:00
Alexey Milovidov
0c0b1f43e9 Header in every stream: fixed non-deterministic test [#CLICKHOUSE-2] 2018-02-18 05:58:07 +03:00
Alexey Milovidov
95d2d68c7d Header in every stream: development [#CLICKHOUSE-2] 2018-02-18 05:22:32 +03:00
Alexey Milovidov
cb7719b062 Added test [#CLICKHOUSE-2754] 2018-02-18 00:26:22 +03:00
Alexey Milovidov
84c110a8ae Header in every stream: development [#CLICKHOUSE-2] 2018-02-17 07:18:29 +03:00
zhang2014
079223b89d ISSUES-369 add test 2018-02-16 16:07:34 +08:00
Vitaliy Lyudvichenko
ca0cdc35eb A test was enhanced. [#CLICKHOUSE-2] 2018-02-15 18:48:26 +03:00
javi
e69421e7a6 fixed function and added test and doc 2018-02-15 16:53:55 +03:00
javi santana
c810db2a01 tests wip 2018-02-15 16:53:55 +03:00
Vitaliy Lyudvichenko
a4177287b1 Fixed too deep AST traversal. [#CLICKHOUSE-2] 2018-02-14 20:39:16 +03:00
zhang2014
f88f4567d0 ISSUES-117 add test 2018-02-14 12:37:39 +08:00
proller
971df7b853 Try fix travis. Use less travis tests (#1897)
* Try fix travis. Use less travis tests

* Disable capnp heavy test

* Travis: add gcc in pbuilder

* Fix

* fix
2018-02-13 21:00:06 +03:00
Vitaliy Lyudvichenko
075a3cd811 Use absoulte paths in Compiler. [#CLICKHOUSE-3573] 2018-02-13 13:32:14 +03:00
Nikolai Kochetov
64b3a8baa7 added secondary sort expression [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
cd7a5290b2 added tests for ReplicatedVersionedCollapsingMergeTree creation [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
67db049297 moved tests for vertical merge into autotests [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
32bdf7c38c renamed MultiversionMergeTree to VersionedCollapsingMergeTree [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
db0692eb7c added test for MultiversionMergeTree [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Alexey Milovidov
3656aa0606 Improved performance of function arrayElement with constant array when one of element is an empty array #1889 2018-02-13 00:06:13 +03:00
Vitaliy Lyudvichenko
40ac028e21 remote() table function accepts cluster name identifier as the 1st argument. [#CLICKHOUSE-2]
Add cluster(cluster_name, db, table) table function.
2018-02-12 23:35:56 +03:00
Vitaliy Lyudvichenko
56bc773249 Fixed exception catching thrown from compiled .so files. [#CLICKHOUSE-3573] 2018-02-12 23:33:31 +03:00
Alexey Milovidov
55c969d073 Added test [#CLICKHOUSE-2] 2018-02-12 03:55:46 +03:00
zhang2014
7f4f723aa0 ISSUES-180 fix empty function with FixedString 2018-02-10 00:37:13 +08:00
zhang2014
4e36616729 ISSUES-180 add test 2018-02-09 19:38:24 +08:00
alexey-milovidov
d3160393c5
Merge branch 'master' into CLICKHOUSE-3554 2018-02-08 23:07:50 +03:00
alexey-milovidov
d6b7233aa3
Merge pull request #1824 from zhang2014/fix/ISSUES-117
ISSUES-117 support temporary table management
2018-02-08 22:42:10 +03:00
alexey-milovidov
287dbcc3dd
Merge pull request #1763 from zhang2014/fix/ISSUES-320
ISSUES-320 Fix rewrite expression
2018-02-08 20:07:50 +03:00
Vitaliy Lyudvichenko
c575a7fe8a Fix DROP of virtual databases. Add requested changes. [#CLICKHOUSE-3554] 2018-02-08 17:17:51 +03:00
Vitaliy Lyudvichenko
42754a5327 Add new virtual columns into system.tables. [#CLICKHOUSE-3554] 2018-02-08 17:15:40 +03:00
Tsarkova Anastasia
c50ccabb0a Implement MergeTree index using for IN operator with tuple of columns. 2018-02-07 18:29:00 +03:00
Alexey Milovidov
c38e85b1b2 Allow to parse DateTime as unix timestamp without single quotes in Values format #1850 2018-02-06 23:10:49 +03:00
alexey-milovidov
48a29d6474
Merge pull request #1855 from zhang2014/fix/ISSUES-67
ISSUES-67 Use initial column values with default expression
2018-02-06 21:41:43 +03:00
Alexey Milovidov
d1785d92a7 Make Enum comparable again [#CLICKHOUSE-3560]. 2018-02-05 21:39:45 +03:00
Alexey Milovidov
5e37021c18 Added another test [#CLICKHOUSE-3559]. 2018-02-05 21:17:02 +03:00
Alexey Milovidov
4c46a89196 Added another test [#CLICKHOUSE-3559]. 2018-02-05 21:15:47 +03:00
Alexey Milovidov
8b010428a5 Added test [#CLICKHOUSE-3559]. 2018-02-05 21:06:16 +03:00
zhang2014
9f66acaec5 ISSUES-117 add show temporary table test 2018-02-03 16:00:18 +08:00
zhang2014
551910d1e2 ISSUES-67 add test 2018-02-03 14:49:49 +08:00
zhang2014
982b2ee7ca ISSUES-117 resolve some opinions 2018-02-02 22:20:35 +08:00
zhang2014
4875a80825 Merge branch 'master' into fix/ISSUES-117 2018-02-02 20:21:40 +08:00
zhang2014
bfd19965b5 ISSUES-117 fix failed test 2018-01-31 23:56:52 +08:00
zhang2014
c74970c098 ISSUES-195 fix complex in expression with single element 2018-01-31 16:38:48 +03:00
Vitaliy Lyudvichenko
94f38d744e
Merge pull request #1750 from yandex/CLICKHOUSE-3346
Fault-tolerant cluster copier util
2018-01-31 13:21:51 +03:00
Vitaliy Lyudvichenko
8e4007fb4e Renamed the failed test. [#CLICKHOUSE-2] 2018-01-30 13:51:21 +03:00
KochetovNicolai
901c00f477
Rename 00563_insert_into_remote.sql to 00563_shard_insert_into_remote.sql 2018-01-29 20:48:52 +03:00
KochetovNicolai
66a5680ab9
Rename 00563_insert_into_remote.reference to 00563_shard_insert_into_remote.reference 2018-01-29 20:48:14 +03:00
Nikolai Kochetov
21935dc53e removed remote(127.0.0.1) from tests 2018-01-29 14:40:28 +03:00
Nikolai Kochetov
277e3b8364 test for insert into remote table function 2018-01-29 13:08:25 +03:00
alexey-milovidov
bea49ca136
Merge pull request #1741 from yandex/array-functions-hasAll-hasAny-intersect
Array functions hasAll hasAny arrayIntersect arrayResize
2018-01-26 12:06:48 +03:00
Vitaliy Lyudvichenko
e2fb6d8c80 Merge remote-tracking branch 'origin/master' into CLICKHOUSE-3346 2018-01-25 22:00:08 +03:00
Vitaliy Lyudvichenko
d6db480be1 Forward settings through Distributed table. [#CLICKHOUSE-3346] 2018-01-25 19:04:54 +03:00
Alexey Milovidov
6066f3b8d2 Removed flappy test [#CLICKHOUSE-2] 2018-01-24 03:10:06 +03:00
zhang2014
054777a5ab ISSUES-320 fix rewrite expression for union all 2018-01-21 17:29:55 +08:00
Vlad Arkhipov
be96cf5133 Replace subqueries and table expressions on the right side of the IN operator with their results in order to make MergeTree storage engines evaluate the corresponding conditions by using the index. 2018-01-21 11:22:52 +03:00
Alexey Milovidov
61e5b0476f Removed experimental implementations of pointInPolygon variants [#CLICKHOUSE-2] 2018-01-19 23:22:47 +03:00
Nikolai Kochetov
677758edaa added function arrayResize [#CLICKHOUSE-2998]
added test for arrayResize [#CLICKHOUSE-2998]
2018-01-19 22:32:06 +03:00
alexey-milovidov
1f9ea8b6b0
Merge pull request #1721 from zhang2014/fix/ISSUES-957
ISSUES-957 fix not work when materialized columns with buff table
2018-01-19 21:50:26 +03:00
Nikolai Kochetov
60465df20c fixed arrayPushBack, arrayPushFront tests [#CLICKHOUSE-2998] 2018-01-19 17:03:35 +03:00
Alexey Milovidov
ba4a07c739 Added test [#CLICKHOUSE-2] 2018-01-19 05:21:38 +03:00
proller
c4c57e0ae2 Fix test 00532_pager_sigpipe 2018-01-18 21:51:10 +03:00
proller
ed80378a43 Split too long test 2018-01-17 16:43:29 +03:00
Nikolai Kochetov
694b305036 added arrayIntersect [#CLICKHOUSE-3504] 2018-01-17 14:36:02 +03:00
Alexey Milovidov
947c979537 Added test #1665 2018-01-16 23:35:10 +03:00
alexey-milovidov
7a25b441f4
Merge pull request #1773 from yandex/small-enhancements
Small enhancements
2018-01-16 22:07:43 +03:00
proller
e8f2bb2d3b
Travis optimize (#1775)
* Travis optimize
2018-01-16 16:44:45 +03:00
Vitaliy Lyudvichenko
b68b60fb38 More detailed test. [#CLICKHOUSE-3]
Resolves #1553.
2018-01-16 15:05:01 +03:00
proller
f6d8436f81 Enable travis (#1772)
* Try travis

* wip

* Try travis

* try

* try

* try

* try

* Revert "try"

This reverts commit 7ecd73c2eb.

* try unbundled

* Try unbundled2

* Try undundled3

* Try unbundled4

* Try5

* try gcc7

* try6

* Try clang

* Try min

* try ccache

* try ccache stats

* no sudo

* try clang

* try ccache

* reset changelog

* Try fix clang

* try limit time

* Faster

* try timeout

* try faster

* Try

* try

* try

* try

* try

* try

* ccache

* Fix

* try test

* try test

* Fix try_listen in some vm's

* fix

* test

* fix

* cache timeout

* packages

* fix

* fix

* fix

* try emb compiler

* Try emb compiler

* Revert "try emb compiler"

This reverts commit 471713cabe.

* try

* Revert "Try emb compiler"

This reverts commit 95e632abf6.

* Skip long

* fix

* fix

* ccache

* fix

* debug

* Fxi test

* test fix

* tes fix

* Fix

* Fix link

* Fix odbc link

* Fxi test

* fix  boost unbundled include

* fix test

* fix test

* test fix

* fix tests

* tests

* Test fail
2018-01-15 21:57:10 +03:00
Vitaliy Lyudvichenko
a95526cd8a Add --silent mode for clickhouse-local. [#CLICKHOUSE-3390] 2018-01-15 18:08:54 +03:00
Alexey Milovidov
15b5c27c1c Fixed error [#CLICKHOUSE-2] 2018-01-14 04:25:35 +03:00
Alexey Milovidov
b42bd53481 Merge branch 'master' into correct-parse-floats 2018-01-13 04:44:43 +03:00
Alexey Milovidov
74d73af3c4 Addition to prev. revision [#CLICKHOUSE-2]. 2018-01-13 04:37:51 +03:00
Alexey Milovidov
9283c38854 Fixed error [#CLICKHOUSE-2]. 2018-01-13 04:33:55 +03:00
zhang2014
66dd568e64 ISSUES-957 update condition & test 2018-01-12 21:03:35 +08:00
proller
ebcf462fd6 Fix test reference 2018-01-12 15:25:28 +03:00
Alexey Milovidov
d33ac0ea15 Updated test #1665 2018-01-12 00:33:45 +03:00
Alexey Milovidov
ef8e1dc9f7 Added test #1665 2018-01-12 00:33:19 +03:00
Alexey Milovidov
6ed8c9481c Fixed test [#CLICKHOUSE-2] 2018-01-12 00:31:53 +03:00
Alexey Milovidov
f7235476d7 Fixed test [#CLICKHOUSE-2] 2018-01-12 00:30:34 +03:00
Anastasiya Tsarkova
2b8a4cf030 Add ALTER for null storage tables. 2018-01-11 22:13:19 +03:00
proller
68b752bf02 Add broken test remote('host:port') 2018-01-11 20:28:49 +03:00
proller
dea5dcd85d Fix tests (sudo params on precise, deleted engine) 2018-01-11 15:26:25 +03:00
Nikolai Kochetov
f0f6343a39 added tests for hasAll and hasAny [#CLICKHOUSE-3504] 2018-01-10 22:00:00 +03:00
张健
6f28e0a66a
Merge branch 'master' into fix/ISSUES-957 2018-01-10 14:53:52 +08:00
Alexey Milovidov
8f0cf29a56 Miscellaneous [#CLICKHOUSE-2]. 2018-01-10 04:45:28 +03:00
Alexey Milovidov
0bfea2f52c Miscellaneous [#CLICKHOUSe-2] 2018-01-10 03:04:08 +03:00
Alexey Milovidov
d5f6c8365e Fixed test [#CLICKHOUSE-2]. 2018-01-10 00:26:11 +03:00
Alexey Milovidov
c4e5f8a500 Added test for RIGHT JOIN #1731 2018-01-09 20:31:52 +03:00
Alexey Milovidov
e2d70943b8 Unification of Nested: development [#CLICKHOUSE-2]. 2018-01-02 12:11:13 +03:00
Alexey Milovidov
fffad2bb3b Added test [#CLICKHOUSE-2]. 2018-01-02 08:56:26 +03:00
zhang2014
b7639c2324 ISSUES-957 update 00553_buff_exists_materlized_column.sql 2018-01-01 19:56:52 +08:00
zhang2014
6fe64aa346 ISSUES-957 fix not work when materialized columns with buff table 2018-01-01 19:54:14 +08:00
Alexey Milovidov
993a5e44d0 Inverted dependencies in StorageFactory (continued) [#CLICKHOUSE-2]. 2017-12-30 07:00:39 +03:00
proller
8c01852dc6 Fix test 2017-12-27 19:18:51 +03:00
proller
015a6c469b clickhouse-test: aloow work in read-only queries dir (--tmp) 2017-12-27 19:04:15 +03:00
Alexey Milovidov
a629039b08 Revert "Disable failed test."
This reverts commit e9b3d45c06.
2017-12-26 20:40:30 +03:00
Evgeny Konkov
e9b3d45c06 Disable failed test. 2017-12-26 17:43:00 +03:00
alexey-milovidov
94cd6fc061 Update 00544_insert_with_select.sql 2017-12-25 19:02:02 +03:00
zhang2014
2e54dcf9b6 ISSUES-1682 support insert into with select 2017-12-25 19:02:02 +03:00
alexey-milovidov
c1701e3a0e Update 00542_access_to_temporary_table_in_readonly_mode.sql 2017-12-25 18:59:35 +03:00
Kirill Shvakov
4099907d51 Add test readonly and temporary tables 2017-12-25 18:59:35 +03:00
alexey-milovidov
9ed28abdb4 Update 00541_to_start_of_fifteen_minutes.sql 2017-12-25 18:58:37 +03:00
Kirill Shvakov
d87aad45e6 add test toStartOfFifteenMinutes 2017-12-25 18:58:37 +03:00
Alexey Milovidov
04eb0b896c Added proper support for Nullable arguments for function OR #1416 2017-12-25 09:33:51 +03:00
Alexey Milovidov
d899d3f8f5 Added functions toNumberOrNull from String argument #1322 2017-12-25 08:22:33 +03:00
Alexey Milovidov
4e2764c2af Added test #1683 2017-12-25 04:38:51 +03:00
Alexey Milovidov
a71b04e377 Fixed "join_use_nulls" mode #1544 2017-12-25 03:38:45 +03:00
Alexey Milovidov
82d429f7ed Allow for function "tupleElement" to get an edge of Array of Tuple (preparation for natural support of Nested) [#CLICKHOUSE-2]. 2017-12-24 12:56:30 +03:00
Alexey Milovidov
0f51be4191 Added support for named tuples in function tupleElement [#CLICKHOUSE-2]. 2017-12-24 12:34:40 +03:00
Alexey Milovidov
5c2c4b34f3 Fixed query formatting in presense of tupleElement operator with complex constant expression in right hand side [#CLICKHOUSE-2]. 2017-12-24 12:33:36 +03:00
Alexey Milovidov
9d60bcf3f9 Added test for unrestricted aggregate function combinators [#CLICKHOUSE-3511]. 2017-12-24 02:30:20 +03:00
Alexey Milovidov
cc79fb6684 Implemented -ForEach aggregate functions combinator for multiple arguments; added test for -ForEachIf and -IfForEach variants [#CLICKHOUSE-3511]. 2017-12-24 02:16:42 +03:00
Alexey Milovidov
334e349d75 Fixed test [#CLICKHOUSE-2]. 2017-12-23 07:25:01 +03:00
Alexey Milovidov
e5a33e6332 Added test for the case when Nullable condition is optimized to PREWHERE #1626 2017-12-23 05:52:13 +03:00
Alexey Milovidov
bd14d22d22 Added test from Marek #1650 2017-12-23 05:06:25 +03:00
Alexey Milovidov
62bccc4eef Updated test [#CLICKHOUSE-2]. 2017-12-23 04:28:50 +03:00
Alexey Milovidov
609133ea01 Added aggregate function sumKahan [#CLICKHOUSE-2]. 2017-12-23 02:26:30 +03:00
Alexey Milovidov
7e60152e72 Added comments; added test [#CLICKHOUSE-2]. 2017-12-23 02:08:57 +03:00
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
22ef87b763 Fixed bad test [#CLICKHOUSE-2]. 2017-12-23 01:11:08 +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 Milovidov
b9ca36e5ad Added test [#CLICKHOUSE-2]. 2017-12-22 06:59:48 +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
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
ef6d3be53a Simplification of aggregate functions: compatibility details [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
1a6f38b27f Merge branch 'master' into ks1322-master 2017-12-19 20:38:29 +03:00
Alexey Milovidov
50d09f08f5 Updated test [#CLICKHOUSE-2]. 2017-12-19 04:44:05 +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
adfc743e06
Merge pull request #1658 from yandex/cow_columns
Better semantic of sharing columns.
2017-12-18 09:26:27 +03:00
Alexey Milovidov
27301ac380 Updated test [#CLICKHOUSE-2]. 2017-12-18 08:43:41 +03:00
Alexey Milovidov
88384bad05 Removed duplicate test [#CLICKHOUSE-2]. 2017-12-18 05:46:34 +03:00
ks1322
2fd62ccd9f added expect test 2017-12-17 23:46:52 +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
Silviu Caragea
a1104644d9 Add tests 2017-12-14 11:02:12 +02:00
Alexey Milovidov
cfedf4d5b1 Merge branch 'fix14' of https://github.com/proller/ClickHouse into proller-fix14 2017-12-14 00:10:37 +03:00
Alexey Milovidov
0dd0d76b19 Added changes from proller [#CLICKHOUSE-2]. 2017-12-14 00:09:31 +03:00
proller
5453a41208 fix 2017-12-13 19:41:29 +03:00
proller
4076e14b6b Merge remote-tracking branch 'upstream/master' into fix14 2017-12-13 16:10:02 +03:00
alexey-milovidov
62fb610e4e
Merge pull request #1447 from yandex/support-table-functions-for-desc-and-insert
Support table functions for desc and insert
2017-12-11 23:28:10 +03:00
Nikolai Kochetov
f71b8bf58f merged with master 2017-12-11 21:13:24 +03:00
Nikolai Kochetov
1ba891f3fc removed owned_cluster_for_insertion from StorageDistributed [#CLICKHOUSE-3397] 2017-12-11 20:29:24 +03:00
proller
a1b4605314 Merge remote-tracking branch 'upstream/master' into fix14 2017-12-11 19:05:17 +03:00
Alexey Milovidov
6a568ab692 Technically allowed empty arrays of unspecified type [#CLICKHOUSE-2]. 2017-12-09 23:56:53 +03:00
Alexey Milovidov
6ecc93e607 Fixed error [#CLICKHOUSE-2] 2017-12-09 19:17:37 +03:00
Alexey Milovidov
02d00253e2 Fixed error [#CLICKHOUSE-2] 2017-12-09 19:17:37 +03:00
Alexey Milovidov
6cf5c63f4e Fixed error [#CLICKHOUSE-2] 2017-12-09 19:17:37 +03:00
Alexey Milovidov
642d7c2ff2 Added test [#CLICKHOUSE-2] 2017-12-09 19:17:37 +03:00
Alexey Milovidov
be70e6282e Added test [#CLICKHOUSE-3431]. 2017-12-09 19:17:37 +03:00
Alexey Milovidov
b00bb5c348 Added support for nullable types in HAVING section in presence of WITH TOTALS [#CLICKHOUSE-3431]. 2017-12-09 19:17:37 +03:00
proller
2bdc2c8900 Merge remote-tracking branch 'upstream/master' into fix14 2017-12-08 17:21:03 +03:00
Alexey Milovidov
7ef7ff9ae3 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 12:45:07 +03:00
Alexey Milovidov
e2cd0272a4 Added support for aggregate functions of Nullable arguments in cases when they return non-Nullable result [#CLICKHOUSE-2]. 2017-12-08 12:07:52 +03:00
Alexey Milovidov
413e828cde Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 10:46:09 +03:00
Alexey Milovidov
bd6d69ba7d Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 10:42:35 +03:00
Alexey Milovidov
09ddf5e21d Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 10:12:00 +03:00
Alexey Milovidov
f85afb3986 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 09:46:35 +03:00
Alexey Milovidov
fcf371a930 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 07:52:38 +03:00
Alexey Milovidov
4c67c3b171 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 07:09:32 +03:00
Alexey Milovidov
f63b511c83 Fixed tests [#CLICKHOUSE-2]. 2017-12-07 07:44:33 +03:00
Alexey Milovidov
f696e35ed8 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 07:34:13 +03:00
Alexey Milovidov
8f248dd718 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 07:12:40 +03:00
Alexey Milovidov
4a04537d44 Added tests [#CLICKHOUSE-3486]. 2017-12-06 07:16:16 +03:00
alexey-milovidov
575a67b5d2
Merge branch 'master' into support-table-functions-for-desc-and-insert 2017-12-04 23:34:27 +03:00
Alexey Zatelepin
fb9c7ab81d remove experimental_allow_extended_storage_definition_syntax Setting (turn on by default) [#CLICKHOUSE-3000] 2017-12-04 22:45:18 +03:00
proller
e38f3e0cb8 Silent test 2017-12-04 19:36:26 +03:00
proller
66ff90c025 client ignore-error option 2017-12-04 19:17:49 +03:00
proller
67765264c2 Merge remote-tracking branch 'upstream/master' into fix14 2017-12-04 14:27:19 +03:00
Alexey Milovidov
73d65ec4d4 Added another test for multidimensional columns [#CLICKHOUSE-2838]. 2017-12-03 11:35:08 +03:00
Alexey Milovidov
7b447bc1e4 Added test for multidimensional columns [#CLICKHOUSE-2838]. 2017-12-03 11:23:34 +03:00
Alexey Milovidov
903dc680bb Fixed parsing and interpreting of tuples [#CLICKHOUSE-2]. 2017-12-03 11:16:49 +03:00
Alexey Milovidov
35f98609e0 Updated test [#CLICKHOUSE-2]. 2017-12-03 08:38:14 +03:00
Alexey Milovidov
0c89ad0269 Updated test [#CLICKHOUSE-2]. 2017-12-03 08:34:37 +03:00
proller
71b9fa3a9c Fix test 2017-12-01 21:40:57 +03:00
Nikolai Kochetov
5cbacbc2d7 fixed test [#CLICKHOUSE-3397] 2017-12-01 21:21:37 +03:00
proller
2663871717 Fix some server crashes on incorrect functions usage. Add test. 2017-12-01 21:03:56 +03:00
Nikolai Kochetov
470c633e09 merged with master 2017-12-01 16:33:47 +03:00
Nikolai Kochetov
f025f22007 Merge branch 'master' into support-table-functions-for-desc-and-insert 2017-12-01 16:24:50 +03:00
Alexey Milovidov
241e0638b7 Merge branch 'master' of github.com:yandex/ClickHouse into unify-data-types-that-serialized-with-multiple-streams 2017-12-01 15:36:15 +03:00
Alexey Milovidov
304acb9a8e Merge branch 'unify-data-types-that-serialized-with-multiple-streams' of github.com:yandex/ClickHouse into unify-data-types-that-serialized-with-multiple-streams 2017-12-01 00:42:09 +03:00
Alexey Milovidov
dbc1b76ab1 Normalized tests: use /clickhouse/tables/test/ as prefix for tables in ZooKeeper [#CLICKHOUSE-2]. 2017-12-01 00:41:29 +03:00
Alexey Milovidov
da795a6fb3 Normalized tests: use /clickhouse/tables/test/ as prefix for tables in ZooKeeper [#CLICKHOUSE-2]. 2017-12-01 00:41:19 +03:00
proller
a520d30a5e zlib fix flags in headers 2017-11-30 20:52:09 +03:00
Alexey Milovidov
cccf8aa8a8 Fixed test [#CLICKHOUSE-2]. 2017-11-28 05:21:32 +03:00
Alexey Milovidov
6713069aef Fixed test [#CLICKHOUSE-2]. 2017-11-28 05:20:28 +03:00
Alexey Milovidov
95d33b3e65 Merge remote-tracking branch 'origin/master' into unify-data-types-that-serialized-with-multiple-streams 2017-11-27 22:33:38 +03:00
alexey-milovidov
3a0e0173ab
Merge pull request #1545 from samael500/master
Fix integer overflow
2017-11-25 01:43:48 +03:00
proller
0d3c4f4d67 Core/FieldVisitors.h -> Common/FieldVisitors.h
Core/Progress.h -> IO/Progress.h
    tests: sudo --non-interactive
    Fix freebsd link
2017-11-24 16:55:31 +03:00
Maks Skorokhod
66bbc737d4
add test for gcd and modulo functions 2017-11-24 11:17:17 +03:00
Maks Skorokhod
a06ca9cb82
:octocat: merge with master 2017-11-23 11:57:10 +03:00
Maks Skorokhod
c4ee8b93e3
add test for gcd/lcm functions 2017-11-23 11:47:34 +03:00
Alexey Milovidov
2d98a33dd0 Merge remote-tracking branch 'origin/master' into unify-data-types-that-serialized-with-multiple-streams 2017-11-22 05:40:07 +03:00
Alexey Zatelepin
d6816c6f22 add test [#CLICKHOUSE-3448] 2017-11-22 00:39:03 +03:00
Alexey Milovidov
2ca6952deb Merge branch 'master' into unify-data-types-that-serialized-with-multiple-streams 2017-11-20 02:16:18 +03:00
alexey-milovidov
942e59d459
Merge pull request #1455 from yandex/fix-mv-populate
Fix applying WHERE clause in MATERIALIZED VIEW with POPULATE
2017-11-19 23:01:23 +03:00
Alexey Milovidov
14e069f748 Allow to extract empty matches in "extractAll" function #1493. 2017-11-18 05:48:11 +03:00
Vitaliy Lyudvichenko
ab0aff8709 Fixed SummingMergeTree. [#CLICKHOUSE-2] 2017-11-16 23:48:39 +03:00
Alexey Zatelepin
0342d785c9 add failing test [#CLICKHOUSE-3208] 2017-11-15 23:13:10 +03:00
alexey-milovidov
19e0cd879d
Extended date parsing (#1495)
* Allowed to parse Date in YYYY-mM-dD format [#CLICKHOUSE-3].

* Allowed to parse Date in YYYY-mM-dD format [#CLICKHOUSE-3].
2017-11-15 05:08:55 +03:00
Alexey Milovidov
c58ef28b60 Added test [#CLICKHOUSE-2]. 2017-11-14 01:34:14 +03:00
Alexey Milovidov
afae2d7c67 Fixed incorrect test when no ZooKeeper configured [#CLICKHOUSE-2]. 2017-11-09 22:50:28 +03:00
Alexey Milovidov
d52595735d Renamed test [#CLICKHOUSE-2]. 2017-11-09 22:27:30 +03:00
Alexey Milovidov
2d1702f8e6 Added test for enhanced time zones support [#CLICKHOUSE-3402]. 2017-11-09 22:25:21 +03:00
Alexey Zatelepin
1b6a5ca6ea add test [#CLICKHOUSE-3412] 2017-11-05 21:11:11 +03:00
Nikolai Kochetov
913937027b fix test #CLICKHOUSE-3397] 2017-11-03 18:19:15 +03:00
Nikolai Kochetov
d566621349 insert into table function only with TABLE FUNCTION keywords #CLICKHOUSE-3397] 2017-11-03 18:14:19 +03:00
Nikolai Kochetov
2fca796925 added tests [#CLICKHOUSE-3397] 2017-11-03 16:54:50 +03:00
proller
8aafa3b042
Cmake: fix warnings (#1437)
* Cmake: fix warnings

* Tests: replace 127.0.0.1 -> localhost
2017-11-02 17:14:16 +03:00
proller
9fb4e86270 Tests: fix bash usage;
Use ${CLICKHOUSE_LOCAL} in tests
add --testname options to tests
2017-11-01 14:46:58 +03:00
Alexey Milovidov
d3e3879de1 Fixed test [#CLICKHOUSE-2]. 2017-11-01 07:11:01 +03:00
Alexey Zatelepin
f2ebffb7f0 save TO table of a materialized view to the ATTACH query [#CLICKHOUSE-2] 2017-10-30 21:39:39 +03:00
Vitaliy Lyudvichenko
4b9163c3cc Fix bash warning in the test. [#CLICKHOUSE-3385]
Also use 'clickhouse compressor' util instead of clickhouse-compressor binary.
2017-10-30 16:10:22 +03:00
Vitaliy Lyudvichenko
4a55e5f94b Hotfix of CREATE MATERIALIZED VIEW a TO b. [#CLICKHOUSE-2] 2017-10-30 15:14:36 +03:00
Alexey Milovidov
e29604b7f9 Updated test [#CLICKHOUSE-2099]. 2017-10-30 09:27:21 +03:00
Alexey Milovidov
2690c920f9 Added test [#CLICKHOUSE-3393]. 2017-10-30 08:39:30 +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
ef36648f85 Merge branch 'master' of github.com:yandex/ClickHouse 2017-10-28 02:10:00 +03:00
Alexey Milovidov
7949994508 Changed tabs to spaces in test [#CLICKHOUSE-2]. 2017-10-28 02:09:50 +03:00
Alexey Milovidov
14fd5843c9 Merge branch 'materialized-view-to' of https://github.com/vavrusa/ClickHouse into vavrusa-materialized-view-to 2017-10-27 23:43:14 +03:00
Alexey Milovidov
6ca1b84929 Added function getSizeOfEnumType [#CLICKHOUSE-2]. 2017-10-27 23:39:49 +03:00
alexey-milovidov
9e200bdfd9
Merge branch 'master' into materialized-view-to 2017-10-27 23:21:27 +03:00
alexey-milovidov
b4bb6796c1
Merge pull request #1407 from yandex/CLICKHOUSE-3381
Ability to turn off deduplication, smart deduplication for MV
2017-10-27 23:03:25 +03:00
Vitaliy Lyudvichenko
cd5d1d5009 Fixed segfault in compare operators with Nullable types. #1416 [#CLICKHOUSE-3] 2017-10-27 23:03:12 +03:00
Alexey Milovidov
a27981b4ef Get rid of double whitespaces [#CLICKHOUSE-2]. 2017-10-26 21:36:23 +03:00
Alexey Milovidov
1f81797adc Don't use direct IO in test as it doesn't work in encrypted FS and is irrelevant for the test [#CLICKHOUSE-2]. 2017-10-26 21:11:09 +03:00
Alexey Milovidov
ac5062d592 Fixed incorrect usage of "toRelative" family of functions in tests [#CLICKHOUSE-2]. 2017-10-26 21:09:02 +03:00
Vitaliy Lyudvichenko
51265506f8 Convey session setting up to inner table creation for MV. [#CLICKHOUSE-3381] 2017-10-26 18:39:56 +03:00
Vitaliy Lyudvichenko
3b466ec57b Add deduplication test. [#CLICKHOUSE-3381] 2017-10-26 18:22:34 +03:00
Marek Vavruša
ee22253857 tests: added tests for sumWithOverflow(x) preserving input type 2017-10-25 22:21:59 +03:00
Marek Vavruša
5c87a91aaf SummingSortedBlockInputStream: fix explicitly configured columns to sum
This fixes a variant of SummingMergeTree() in which
the columns to sum are explicitly configured.
Previously columns not in that list were ignored,
instead of writing last value.

This also fixes summation of invalid maps with
with only one key column and no value columns.

Modified test to work around compaction limitation
in which a zero-value column isn’t compacted
immediately if the inputs are non-zero but the
output is zero (+1 -1).
2017-10-25 22:21:59 +03:00
alexey-milovidov
b5155916a8 Merge branch 'master' into materialized-view-to 2017-10-24 22:39:24 +03:00
Alexey Zatelepin
6bb34a4494 Merge branch 'master' into arbitrary-partitioning
Conflicts:
	dbms/src/Storages/StorageFactory.cpp
2017-10-24 17:23:18 +03:00
Alexey Zatelepin
b6b5d1cf25 store rows count for part on disk to allow tables without fixed size columns [#CLICKHOUSE-3000] 2017-10-24 17:11:53 +03:00
proller
86a587e482 Fix test (supress stderr) 2017-10-23 21:40:07 +03:00
Alexey Zatelepin
8ccebefae6 add tests for extended storage definition syntax [#CLICKHOUSE-3000] 2017-10-23 18:21:44 +03:00
proller
d8038cf746 Fix: An Error SQL will make server down (#1388) 2017-10-23 17:37:46 +03:00
Marek Vavruša
5f53df7dbe ParserCreateQuery: allow ATTACH TABLE x shorthand statement
Allow `ATTACH TABLE [db.]name` if the table was previously detached,
an the table structure can be read from disk. This makes reattaching
tables less cumbersome:

```
CREATE TABLE test.t (x UInt8) ENGINE = Null;
DETACH TABLE test.t;
ATTACH TABLE test.t;
```
2017-10-21 13:38:39 -07:00
Marek Vavruša
975a7ada42 StorageMaterializedView: allow CREATE MATERIALIZED VIEW x TO y
This allows creation of materialized views without inner tables,
using an existing table for materialized rows instead.
This is useful for cases when you want to detach the materializing
view, but keep the already materialized data readable, especially
when the inner table is replicated.
2017-10-21 13:34:59 -07:00
Alexey Zatelepin
75c65c7b59 use extended storage definition syntax for MergeTree engines [#CLICKHOUSE-3000] 2017-10-20 21:28:42 +03:00
Amos Bird
f30841d5ab Fix SummingMergeTree argument checking logic.
This patch fixes the Nested Column Name checking logic, which allows nested
columns be explicitly specified in SummingMergeTree engine.
2017-10-13 15:42:32 +03:00
proller
1e961cc69d Fix complex queries with GLOBAL IN and UNION ALL (#CLICKHOUSE-3356) (#1339)
* TEST only: why initQueryAnalyzer ?

* Better tests

* missing file

* Missing file

* Add test

* Test fixes

* Fixed FREEZE PARTITION: using only active data parts; acquire snapshot of parts [#CLICKHOUSE-3369].

* Removed tcp_ssl_port by default [#CLICKHOUSE-2].

* Better tests

* comment

* clean

* REmove wrong code

* clean
2017-10-13 00:28:24 +03:00
Vitaliy Lyudvichenko
7bc58340b0 Fixed infinite recursion in expression analyzer. [#CLICKHOUSE-3125] 2017-10-13 00:27:25 +03:00
KochetovNicolai
83925f1d5e Fix array writing (#1314)
* changed MergedBlockOutputStream [#CLICKHOUSE-3341]

* fix build [#CLICKHOUSE-3341]

* fix build [#CLICKHOUSE-3341]

* fix build [#CLICKHOUSE-3341]

* fix build [#CLICKHOUSE-3341]

* fix build [#CLICKHOUSE-3341]

* fix build [#CLICKHOUSE-3341]

* fix build [#CLICKHOUSE-3341]

* fix build [#CLICKHOUSE-3341]

* fix build [#CLICKHOUSE-3341]

* disabled checkNoMultidimensionalArrays [#CLICKHOUSE-3341]

* fix IMergedBlockOutputStream::writeDataImpl [#CLICKHOUSE-3341]

* fix IMergedBlockOutputStream::writeDataImpl [#CLICKHOUSE-3341]

* fix IMergedBlockOutputStream::writeDataImpl [#CLICKHOUSE-3341]

* fix IMergedBlockOutputStream::writeDataImpl [#CLICKHOUSE-3341]

* added test [#CLICKHOUSE-3341]

* fixed test [#CLICKHOUSE-3341]

* refactoring and comments [#CLICKHOUSE-3341]

* fix build [#CLICKHOUSE-3341]

* Update ColumnArray.h
2017-10-12 23:13:26 +03:00
proller
26c44d5993 Tests: Use new possibly redefined values from env (in 2 tests) 2017-10-12 22:54:56 +03:00
proller
cbc81a6a9f Received signal Segmentation fault (#1300) (#1302)
* Received signal Segmentation fault (#1300)

* Add test
2017-10-12 22:46:40 +03:00
proller
f42ae974d1 Remove wrong test 2017-10-11 21:22:28 +03:00
proller
975e8575c7 Add test (failed on version 1.1.54292) (#1328)
* Tests: External: rename --use_http  => --no_http and fix

* Add test (failed on version 1.1.54292)
2017-10-09 20:22:15 +03:00
proller
88c88c3f4a Fix 2017-10-03 22:12:44 +03:00
proller
add13f233e requested changes 2017-10-03 22:12:44 +03:00
proller
dc50ea2788 fix 2017-10-03 22:12:44 +03:00
proller
2db34a606a clean 2017-10-03 22:12:44 +03:00
proller
097357799d Tests: --random option; set some env variables for .sh tests 2017-10-03 21:31:32 +03:00
Vitaliy Lyudvichenko
97277ed691 Return 411 code in case of empty body without Content-Length head. [#CLICKHOUSE-3333] 2017-09-30 14:06:50 +03:00
proller
d469e5eddd Fix no-shard tests 2017-09-26 23:55:22 +03:00
proller
c46ce859a1 Fix tests on clean storage 2017-09-26 23:37:03 +03:00
Alexey Zatelepin
4160bcfdf5 add custom partitioning tests [#CLICKHOUSE-3000] 2017-09-26 20:40:02 +03:00
Alexey Zatelepin
ceddecbc10 implement missing getExtremes() functions [#CLICKHOUSE-3000] 2017-09-26 20:40:02 +03:00
Nikolai Kochetov
937d3f3883 added test [#CLICKHOUSE-3339] 2017-09-26 20:34:48 +03:00
Nikolai Kochetov
c8dc25815f fixed pointinPolygon test, clang build 2017-09-26 19:07:00 +03:00
Vitaliy Lyudvichenko
9d3f28f52d Fix an error for POST queries with empty body. [#CLICKHOUSE-3333] 2017-09-24 02:38:12 +03:00
Nikolai Kochetov
9a19cdb617 added test 2017-09-24 02:16:30 +03:00
Vitaliy Lyudvichenko
7ee2c52328 Use clickhouse extract-from-config intead of clickhouse --extract-from-config and so on. [#CLICKHOUSE-2928] 2017-09-24 02:15:56 +03:00
Alexey Milovidov
ac2b615890 Fixed test on Ubuntu Precise [#CLICKHOUSE-2]. 2017-09-20 20:14:45 +03:00
Alexey Milovidov
045675be20 Merge branch 'master' of github.com:yandex/ClickHouse 2017-09-20 19:32:07 +03:00
Alexey Milovidov
3d219b220b Fixed test [#CLICKHOUSE-3]. 2017-09-20 19:31:44 +03:00
KochetovNicolai
e0efb7e8c1 Point in polygon (#1264)
* added FunctionPointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix PointInPolygonWithGrid [#CLICKHOUSE-3201]

* added test for PointInPolygonWithGrid [#CLICKHOUSE-3201]

* added test for PointInPolygonWithGrid with holes [#CLICKHOUSE-3201]

* added arbitrary orientation for polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix arbitrary orientation for polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* added test for arbitrary orientation for polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fixed shifted grid for PointInPolygonWithGrid, added test [CLICKHOUSE-3201]

* expand box for complex polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fix expand box for complex polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* added pool to PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* changed FunctionPointInPolygonWithGrid signature [#CLICKHOUSE-3201]

* changed FunctionPointInPolygonWithGrid signature [#CLICKHOUSE-3201]

* fixed test [#CLICKHOUSE-3201]

* unified signature for PointInPolygon [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* supported Float64 for pointInPolygon [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fixed check for numeric tuple in PointInPolygon function [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* added profile events polygons pool [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* Update FunctionsGeo.cpp
2017-09-20 05:30:44 +03:00
Alex Bocharov
e99c969a1c Aggregate function sumMap: improve insertResultInto method and change return type to Tuple(Array(K), Array(V)). 2017-09-19 13:35:25 +01:00
alexey-milovidov
edb66bfffe Merge branch 'master' into master 2017-09-18 10:31:31 +03:00
Alexey Milovidov
565902fc4d Added comment; fixed test [#CLICKHOUSE-2]. 2017-09-17 20:58:30 +03:00
Alex Bocharov
591cd5c009 Add new aggregate function sumMap(key, value). 2017-09-15 12:14:19 +01:00
Vitaliy Lyudvichenko
826c354ff5 Fixed merges progress bar. [#CLICKHOUSE-2] 2017-09-15 01:04:13 +03:00
Nikolai Kochetov
c14263a9fa added test 2017-09-13 22:33:47 +03:00
proller
8a7e604a2a Tests fixes (#1238)
* Tests: catch xml internal error

* Tests fixes
2017-09-13 21:08:38 +03:00
proller
be4deb7979 Fix test order (#1209)
* Again fix test 00501_http_head

* Better test reverse

* Fix test reverse sort

* Update clickhouse-test
2017-09-07 00:04:23 +03:00
proller
b538df661a Again fix test 00501_http_head 2017-09-06 22:07:22 +03:00
proller
7e46044474 Fix test 00501_http_head 2017-09-06 18:20:15 +03:00
proller
44b44a13d2 Fix http_head test (#1203)
* Fix http_head test
* Longer timeout
2017-09-05 21:53:28 +03:00
Alexey Milovidov
cb2c09020c Fixed tests [#CLICKHOUSE-2838]. 2017-09-05 03:28:30 +03:00
Alexey Milovidov
4f7a3a7832 Merge remote-tracking branch 'origin/master' into unify-data-types-that-serialized-with-multiple-streams 2017-09-05 03:11:18 +03:00
Alexey Milovidov
96061a9053 Temporarily removed test for incomplete modification [#CLICKHOUSE-2]. 2017-09-05 00:35:28 +03:00
alexey-milovidov
d1f1c59ef3 Merge pull request #1188 from proller/fix3
Segmentation fault on HEAD HTTP query #912
2017-09-04 20:10:18 +03:00
Vladimir Chebotarev
e39fb48377 functions: pointInPolygon(). [#CLICKHOUSE-3201] 2017-09-04 17:26:28 +03:00
proller
f3cb0ad7e8 Merge remote-tracking branch 'upstream/master' into fix3 2017-09-04 14:12:51 +03:00
Alexey Milovidov
4d97959e57 Merge branch 'master' into unify-data-types-that-serialized-with-multiple-streams 2017-09-04 04:11:00 +03:00
Alexey Milovidov
b6a533adef Added test [#CLICKHOUSE-3270]. 2017-09-02 01:00:25 +03:00
proller
863fd72c8a Segmentation fault on HEAD HTTP query #912 2017-09-02 00:46:12 +03:00
alexey-milovidov
775d95888a Merge pull request #1163 from yandex/CLICKHOUSE-2931
Introduce SYSTEM queries
2017-09-01 20:45:29 +03:00
alexey-milovidov
897a9ad6b2 Merge pull request #1146 from yandex/array-functions-concat-slice-push-pop
Array functions concat slice push pop
2017-09-01 20:30:51 +03:00
Vitaliy Lyudvichenko
c32bf4f597 Use only one cache in DNSCache. Add requested changes. [#CLICKHOUSE-2931] 2017-09-01 20:05:24 +03:00
Nikolai Kochetov
a9e2a17f69 fixed estimateNumRows in MergeTreeBlockSizePredictor; fixed reading of empty block in prewhere; added test [#CLICKHOUSE-3266] 2017-09-01 15:18:40 +03:00
Vitaliy Lyudvichenko
0b36305ad3 Parse unix timestamps in JSONEachRow format. [#CLICKHOUSE-3268] 2017-08-31 20:12:48 +03:00
Alexey Milovidov
9c7f195c6e Removed flappy test (race condition in test) [#CLICKHOUSE-3267]. 2017-08-31 13:47:49 +03:00
Alexey Milovidov
1531268281 Added aggregate functions groupBitAnd, groupBitOr, groupBitXor [#CLICKHOUSE-2]. 2017-08-30 21:52:14 +03:00
Nikolai Kochetov
239f4f2d36 merged with master 2017-08-25 15:05:18 +03:00
Nikolai Kochetov
e223d07031 fixed test [#CLICKHOUSE-2090] 2017-08-25 14:58:33 +03:00
Nikolai Kochetov
f70ead2539 added test [#CLICKHOUSE-2090] 2017-08-24 22:39:30 +03:00
Vitaliy Lyudvichenko
02f0bcb17f Fixed incorrect assertion in INSERT queries with binary formats. [#CLICKHOUSE-3242] 2017-08-23 16:57:22 +03:00
Vitaliy Lyudvichenko
61289c5c61 Fixed test after forcing ENGINE for MV. [#CLICKHOUSE-3] 2017-08-23 14:44:53 +03:00
alexey-milovidov
1d39b94992 Update 00101_materialized_views_and_insert_without_explicit_database.sql 2017-08-19 00:10:53 +03:00
Vitaliy Lyudvichenko
e52428ddb2 Fixed SIGSEGV in CREATE TABLE AS <MV>. MV without ENGINE is forbidden! [#CLICKHOUSE-2]
Resolves #1112
Resolves #598
2017-08-19 00:10:53 +03:00
Alexey Milovidov
f52ceced2b Modified tests [#CLICKHOUSE-2838]. 2017-08-18 23:22:56 +03:00
Alexey Milovidov
cb67224b4f Modified test [#CLICKHOUSE-2838]. 2017-08-18 23:11:09 +03:00
Alexey Milovidov
d5b9f2127f Added test result [#CLICKHOUSE-2]. 2017-08-18 22:06:39 +03:00
Alexey Milovidov
304ccf29b2 Fixed error; added test [#CLICKHOUSE-2]. 2017-08-18 22:02:50 +03:00
Nikolai Kochetov
f8bf45a5ec added test [#CLICKHOUSE-3237] 2017-08-17 23:06:00 +03:00
Alexey Milovidov
eb88391655 Fixed error with alias substitution [#CLICKHOUSE-2986]. 2017-08-16 23:10:25 +03:00
Alexey Milovidov
68c57b2b61 Merge branch 'master' of github.com:yandex/ClickHouse 2017-08-16 00:53:03 +03:00
Alexey Milovidov
2ddf462563 Fixed regression [#CLICKHOUSE-2]. 2017-08-16 00:52:52 +03:00
Vitaliy Lyudvichenko
ad40104022 Unix timestamp format for DateTime fields in CSV. Resolves #366. [#CLICKHOUSE-3168] 2017-08-15 23:22:36 +03:00
Nikolai Kochetov
89df47fd52 added test for drop temporary table 2017-08-15 22:31:40 +03:00
Alexey Milovidov
6ec873c75e Fixed test (it was dependent on time zone) [#CLICKHOUSE-2]. 2017-08-14 03:02:12 +03:00
Alexey Milovidov
9aca95001e Fixed regression, added test [#CLICKHOUSE-2]. 2017-08-13 12:20:05 +03:00
Vitaliy Lyudvichenko
04dcec32b4 Specialized implementation of groupArray() for Date and DateTime. [#CLICKHOUSE-3213] 2017-08-12 03:46:42 +03:00
Nikolai Kochetov
ac87cb035f added test to former WITH clause in SELECT query 2017-08-12 00:01:28 +03:00
Alexey Milovidov
6edb14ba6b Fixed garbage [#CLICKHOUSE-2]. 2017-08-09 04:35:12 +03:00
Alexey Milovidov
864cae7107 Fixed test [#CLICKHOUSE-3]. 2017-08-08 03:25:05 +03:00
Marek Vavruša
65a90288dc PKCondition: added tests for subexpr inference (#951) 2017-08-08 03:19:39 +03:00
Alexey Milovidov
8fb22b1dcb Added failing test [#CLICKHOUSE-2]. 2017-08-07 11:05:03 +03:00
Alexey Milovidov
c2a32990bb Added test [#CLICKHOUSE-2]. 2017-08-05 07:13:23 +03:00
Alexey Milovidov
07b24dd646 Added test [#CLICKHOUSE-3202]. 2017-08-05 05:25:59 +03:00
Nikolai Kochetov
83cd2a40e4 added test 2017-08-03 15:58:04 +03:00
Alexey Milovidov
35ff7ab9f2 Added test [#METR-25976]. 2017-08-01 20:26:36 +03:00
Nikolai Kochetov
78991b25ee fixed preferred_max_column_in_block_size_bytes disabling 2017-07-30 01:24:57 +03:00
Nikolai Kochetov
da9b515e22 added tests 2017-07-28 22:29:40 +03:00
Alexey Milovidov
2c815356c1 Fixed regression in parsing of CAST [#CLICKHOUSE-3180]. 2017-07-27 22:25:52 +03:00
Nikolai Kochetov
63cdf84fe3 added test 00481_reading_from_last_granula 2017-07-26 20:03:09 +03:00
Alexey Milovidov
3dcb2e6aed Fixed test [#CLICKHOUSE-2]. 2017-07-26 04:21:19 +03:00
Alexey Milovidov
d57f5b81a4 Removed MaterializedView inheritance of View, as they are not related. Fixed error with Views [#CLICKHOUSE-3175]. 2017-07-26 00:07:05 +03:00
Vitaliy Lyudvichenko
1c574af576 Add more tests. [#CLICKHOUSE-3084] 2017-07-25 20:04:10 +03:00
Vitaliy Lyudvichenko
fefb4dad67 Get rid of old groupArray() implementations. [#CLICKHOUSE-3084] 2017-07-25 20:04:10 +03:00
Vitaliy Lyudvichenko
792faaa2db Add adaptive allocator. [#CLICKHOUSE-3084] 2017-07-25 20:04:10 +03:00
Vitaliy Lyudvichenko
c2cc8d6147 Add several groupArray implementations. [#CLICKHOUSE-3084] 2017-07-25 20:04:10 +03:00
Alexey Zatelepin
cdd211eae0 add test [#CLICKHOUSE-3133] 2017-07-25 19:56:48 +03:00
Vitaliy Lyudvichenko
bc9ee54985 Don't throw exception in case of clearing empty part. [#CLICKHOUSE-2896] 2017-07-24 18:04:17 +03:00
Alexey Milovidov
a76061e1a9 Fixed MAC address related functions; added test [#CLICKHOUSE-3]. 2017-07-23 09:13:57 +03:00
Alexey Milovidov
31d8ba3b34 Fixed error after merge [#CLICKHOUSE-3150]. 2017-07-21 23:20:22 +03:00
Nikolai Kochetov
5477e7c1f9 added date and time to number functions [#CLICKHOUSE-3132] 2017-07-21 20:51:08 +03:00
alexey-milovidov
d4d266fa18 ColumnConst unification (#1011)
* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* Fixed error in ColumnArray::replicateGeneric [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].
2017-07-21 09:35:58 +03:00
Vladimir Chebotarev
7254478fde functions: Remote mode for hasColumnInTable. [#CHEBOTAREV-9] 2017-07-20 17:08:42 +03:00
Nikolai Kochetov
7e293df9af merged with master 2017-07-17 22:48:22 +03:00
Nikolai Kochetov
3bf21077c2 added merging tests for Replacing engine 2017-07-17 22:45:16 +03:00
Alexey Milovidov
8681c3f405 Added test [#CLICKHOUSE-3149]. 2017-07-16 07:14:51 +03:00
Alexey Milovidov
5f98f4b862 Addition to prev. revision [#CLICKHOUSE-3149]. 2017-07-16 07:11:11 +03:00
Alexey Milovidov
55f69684c1 Fixed test [#CLICKHOUSE-2]. 2017-07-15 23:03:00 +03:00
Vitaliy Lyudvichenko
9ce4ff4c5b Add check for unexisting column in CLEAR COLUMN. [#CLICKHOUSE-2896] 2017-07-15 03:21:19 +03:00
Vasily Okunev
13c8fe2400 Fix patition test. 2017-07-14 07:49:31 +03:00
Alexey Milovidov
d61ad166e9 Added test for one of previous modifications [#CLICKHOUSE-2]. 2017-07-14 04:04:35 +03:00
Alexey Milovidov
9bb902c3ef Allow to use database.table in right hand side of IN, JOIN [#CLICKHOUSE-3144]. 2017-07-14 04:00:29 +03:00
Alexey Milovidov
1c909df8d5 Removed usage of user "readonly" from test [#CLICKHOUSE-2]. 2017-07-11 22:58:05 +03:00
Vitaliy Lyudvichenko
b843ea5b3f Resolves #964. Fixed input_format_skip_unknown_fields for negative numbers. [#CLICKHOUSE-3] 2017-07-11 21:36:51 +03:00
Nikolai Kochetov
3357baa209 added changing settings in readonly mode test [#CLICKHOUSE-3041] 2017-07-10 21:15:56 +03:00
Nikolai Kochetov
7d5590d66d Merge branch 'master' into output-format-json-quote-denormals 2017-07-10 17:29:17 +03:00
Nikolai Kochetov
39797813cc disabled check for settings with same value in readonly mode in InterpreterSetQuery [#CLICKHOUSE-3041]; added tests for output_format_json_quote_denormals setting 2017-07-10 17:03:34 +03:00
alexey-milovidov
b64b243a73 Merge pull request #945 from YiuRULE/master
Implement natively uuid type in Clickhouse
2017-07-10 07:00:45 +03:00
Vitaliy Lyudvichenko
7150e9447a Fixed multiIf in case of empty arguments. [#CLICKHOUSE-3119] 2017-07-07 17:42:37 +03:00
Guillaume Tassery
c6a5083419 Fix comparison of UInt128 to Float64 2017-07-05 18:29:16 +02:00
Guillaume Tassery
b90734920e Adapt UInt128 operator 2017-07-05 12:09:24 +02:00
Guillaume Tassery
cba9815981 Change Uuid to UUID datatype and make UInt128 a generic type 2017-07-04 12:42:53 +02:00
Marek Vavruša
d27bed228b Parser: fix CREATE VIEW IF EXISTS #934
The else branch forgot to consume whitespace after
CREATE token, and after VIEW token.
2017-07-03 17:01:43 +03:00
Guillaume Tassery
525851ec68 sync master 2017-06-30 22:21:42 +02:00
Guillaume Tassery
1231952fca Implement UUID type and toUuid function 2017-06-30 22:01:27 +02:00
Vitaliy Lyudvichenko
97f7b46ebd Fixed CLEAR COLUMN test in case of deduplication rollback. [#CLICKHOUSE-2] 2017-06-26 19:34:38 +03:00
Vitaliy Lyudvichenko
9c0da6e698 Addition to previous commit. Fix error code, rename test tables. [#CLICKHOUSE-2] 2017-06-26 17:35:26 +03:00
Vitaliy Lyudvichenko
49cbc33a6b Fix ZK exception in case of concurrent INSERTs in new partition. [#CLICKHOUSE-2] 2017-06-26 17:21:25 +03:00
Alexey Milovidov
a48a21f593 Merge branch 'master' into CLICKHOUSE-2896 2017-06-26 11:54:58 +03:00
Alexey Milovidov
dbc61a6a43 Added support for SQL-style quoting [#CLICKHOUSE-20]. 2017-06-25 06:43:37 +03:00
Alexey Milovidov
a8cbb1ce52 Removed obsolete tests [#CLICKHOUSE-3091]. 2017-06-25 05:31:53 +03:00
Alexey Milovidov
30b6c36b83 Added support for identifiers in double quotes [#CLICKHOUSE-20]. 2017-06-24 04:49:15 +03:00
Alexey Zatelepin
bb602835de correctness tests [#CLICKHOUSE-3070] 2017-06-22 23:10:43 +03:00
Vitaliy Lyudvichenko
99f502d5e0 Support OPTIMIZE query on non-leader replica. [#CLICKHOUSE-2] 2017-06-22 18:01:08 +03:00
Vitaliy Lyudvichenko
eff3588f28 Rename DROP COLUMN FROM PARTITION -> CLEAR COLUMN IN PARTITION. [#CLICKHOUSE-2896] 2017-06-22 16:18:19 +03:00
Vitaliy Lyudvichenko
53adb891b3 Add replicated DROP COLUMN FROM partition for optimistic case. [#CLICKHOUSE-2896] 2017-06-22 00:56:38 +03:00
Alexey Milovidov
1624835a08 Added test [#METR-25109]. 2017-06-21 21:24:25 +03:00
Vitaliy Lyudvichenko
b772eaa3a8 Resolved #891. Fixed aliases for empty scalar subqueries. [#CLICKHOUSE-3] 2017-06-19 22:40:12 +03:00
Alexey Milovidov
f6be687717 Added test [#CLICKHOUSE-31]. 2017-06-19 06:06:17 +03:00
Alexey Milovidov
b19f4d1a0e Added test [#CLICKHOUSE-31]. 2017-06-18 06:38:17 +03:00
Alexey Milovidov
5006042bac Added test [#CLICKHOUSE-2993]. 2017-06-16 21:08:19 +03:00
Vitaliy Lyudvichenko
67fdd0f544 Load the system database first. [#CLICKHOUSE-3044] 2017-06-16 19:08:24 +03:00
Alexey Milovidov
686b29cc97 Fixed test [#CLICKHOUSE-4]. 2017-06-14 22:48:10 +03:00
Alexey Milovidov
e9ea838c66 Merge branch 'master' of github.com:yandex/ClickHouse 2017-06-10 13:43:49 +03:00
Alexey Zatelepin
877283b589 fix sorting when all columns are const [#CLICKHOUSE-3062] 2017-06-09 09:13:20 +03:00
Alexey Zatelepin
b03c87be39 fix nulls sorting when limit is greater than rows count [#CLICKHOUSE-3061] 2017-06-09 09:13:20 +03:00
Vitaliy Lyudvichenko
58db4b7be4 Fix HTTP session test again. [#CLICKHOUSE-2] 2017-06-08 19:36:45 +03:00
Alexey Milovidov
a4b28db411 Merge branch 'master' of github.com:yandex/ClickHouse 2017-06-08 09:29:49 +03:00
Vitaliy Lyudvichenko
7ab88b8055 Fix HTTP sessions test. [#CLICKHOUSE-3] 2017-06-07 22:06:43 +03:00
Alexey Milovidov
0b4c23d0fc Added test [#CLICKHOUSE-2]. 2017-06-07 04:56:20 +03:00
Vitaliy Lyudvichenko
d4d316dbb8 More sophisticated test. [#CLICKHOUSE-2] 2017-06-06 17:18:23 +03:00
Sergey V. Galtsev
07f14e05ee Implement sessions in HTTP interface [#CLICKHOUSE-2949]. 2017-06-02 22:35:05 +03:00
Alexey Zatelepin
7655a7bf3a add tests [#CLICKHOUSE-3002] 2017-05-25 05:34:26 +04:00
Alexey Milovidov
26a14c180d Fixed test [#CLICKHOUSE-2]. 2017-05-23 16:35:38 +03:00
Alexey Milovidov
45cf057b22 Fixed test [#CLICKHOUSE-3014]. 2017-05-23 16:32:46 +03:00
Alexey Milovidov
0e77575a76 JSONEachRow: allow to parse true and false as 1 and 0 for UInt8, Int8 data types [#CLICKHOUSE-3] 2017-05-22 23:13:17 +03:00
Alexey Milovidov
c323d7bf99 Added test for function defaultValueOfArgumentType [#CLICKHOUSE-3013]. 2017-05-22 22:04:18 +03:00
Alexey Milovidov
7269f3a23b Format Vertical: added support for totals, extremes and output_format_pretty_max_rows [#CLICKHOUSE-3014]. 2017-05-22 22:00:45 +03:00
Vitaliy Lyudvichenko
48d85af41a Allow to skip garbage in TSKV format. [#CLICKHOUSE-3012] 2017-05-22 17:50:13 +04:00
Vitaliy Lyudvichenko
45c1856556 Fix wrong implementation of CastTypeBlockInputStream (#807)
* Fix wrong implementation of CastTypeBlockInputStream. [#CLICKHOUSE-2957]

* Fix typos and add comments. [#CLICKHOUSE-2957]
2017-05-20 18:47:40 +04:00
Vitaliy Lyudvichenko
eab306b53f Add more sophisticated test. [#METR-25237] 2017-05-20 17:30:59 +04:00
Vitaliy Lyudvichenko
bbe2a656cd Fixed preferred_block_size_bytes in case of PREWHERE with non-materialized column. [#METR-25237] 2017-05-20 17:30:59 +04:00
Alexey Milovidov
d3a8faee16 Fixed test reference file for aggregate function topK [#CLICKHOUSE-3]. 2017-05-12 23:59:14 +03:00
Alexey Milovidov
cfc4c987c5 Added optional length parameter to aggregate function groupArrayInsertAt [#CLICKHOUSE-3003]. 2017-05-12 23:57:24 +03:00
Alexey Milovidov
1d090bd4e2 AggregateFunctionGroupArrayInsertAt: fixed error [#CLICKHOUSE-3003]. 2017-05-12 23:05:19 +03:00
Vitaliy Lyudvichenko
021e37943e More clearer code and correct test. [#CLICKHOUSE-1993] 2017-05-12 16:44:11 +03:00
Vitaliy Lyudvichenko
0f1627691e Don't forget to ATTACH MATERIALIZED columns. [#CLICKHOUSE-1993] 2017-05-11 18:39:12 +04:00
Alexey Milovidov
66436db836 Added test [#CLICKHOUSE-2]. 2017-05-10 04:46:07 -04:00
proller
1474de179c CastTypeBlockInputStream: hotfix: sometimes columns in sample blocks and stream blocks does not match 2017-05-04 22:41:55 +03:00
Marek Vavruša
5f1e65b252 AggregateFunctions: implemented topK(n)
This implements a new function for approximate
computation of the most frequent entries using
Filtered Space Saving with a merge step adapted
from Parallel Space Saving paper.

It works better for cases where GROUP BY x
is impractical due to high cardinality of x,
such as top IP addresses or top search queries.
2017-05-03 23:09:52 -07:00
proller
0787bd66ff Merge: fail if cant convert columns (#753)
* Merge: fail if cant convert columns

* Merge: convert all different types, more tests

* clean

* clean

* clean
2017-05-03 21:08:59 -07:00
Vitaliy Lyudvichenko
6d93d9cefb Combinator -MergeState now returns AggregateFunction(nested_func). [#CLICKHOUSE-2891] 2017-05-03 20:59:42 -07:00
proller
7a0854775b Merge: Cast types on read [#CLICKHOUSE-2957] 2017-04-29 06:37:38 +03:00