Commit Graph

12188 Commits

Author SHA1 Message Date
alexey-milovidov
dc2c22ffff
Update IFactoryWithAliases.h 2018-07-25 21:46:16 +03:00
VadimPE
489f1f84f1 CLICKHOUSE-3837 fix TableFunctionRemote 2018-07-25 21:17:54 +03:00
alesapin
c3b4551426 CLICKHOUSE-3832: Add interserver-side authentification. 2018-07-25 19:38:29 +03:00
Amos Bird
c9a8759e08
Update README.md
kafka integration test uses this package https://github.com/dpkp/kafka-python
2018-07-26 00:34:40 +08:00
Alexey Milovidov
9079bdad4e Updated README #2701 2018-07-25 19:27:38 +03:00
alesapin
3888077398 CLICKHOUSE-3857: Fix typo 2018-07-25 19:19:11 +03:00
alesapin
9adb251689 CLICKHOUSE-3857: Add table table_engines, alias factory base class and columns alias_to and case_insensitive to functions 2018-07-25 19:08:23 +03:00
Alexey Milovidov
b4556cc598 ~/work/ClickHouse/dbms/tests/integration$ find . -name '*.py' | xargs sed -i -r -e 's/macroses/macros/g' # [#CLICKHOUSE-2] 2018-07-25 19:00:51 +03:00
Amos Bird
0965f991b3 Add row_delimiter argument to StorageKafka.
There are common cases where a message doesn't end with a row delimiter.
This patch allows specifying a row_delimiter char to compensate that.

https://github.com/yandex/ClickHouse/issues/2298
2018-07-25 18:54:01 +03:00
VadimPE
1d5d097b0d CLICKHOUSE-3837 fix build 2018-07-25 16:16:36 +03:00
VadimPE
1b07873669 CLICKHOUSE-3837 fix 2018-07-25 15:53:38 +03:00
VadimPE
867a3ebfae CLICKHOUSE-3837 fix mistakes 2018-07-25 15:31:47 +03:00
alesapin
17cc27d1c0 Merge branch 'master' of github.com:alesapin/ClickHouse 2018-07-25 13:59:57 +03:00
alesapin
f04b2c3340 Merge remote-tracking branch 'upstream/master' 2018-07-25 13:59:23 +03:00
Amos Bird
15cc1cf91b Fix integration test.
without specifying errorlog, I got

```
E               Logging trace to /var/log/clickhouse-server/clickhouse-server.log
E               Logging errors to clickhouse-server.err.log
E               Poco::Exception. Code: 1000, e.code() = 13, e.displayText() = Access to file denied: /clickhouse-server.err.log, e.what() = Access to file denied
```
2018-07-25 12:29:16 +03:00
Alexey Milovidov
c2a50991c9 Minor modifications [#CLICKHOUSE-2] 2018-07-25 03:00:08 +03:00
Alexey Milovidov
a10ebecc67 Enabled minimalistic checksums in ZooKeeper by default #2666 2018-07-24 22:29:40 +03:00
alexey-milovidov
2f3c02cbe4 Update ASTOptimizeQuery.cpp 2018-07-24 22:07:13 +03:00
zhang2014
7e87fa8e18 ISSUES-2688 support on cluster for kill & optimize query 2018-07-24 22:07:13 +03:00
Alexey Milovidov
a106c65dec Miscellaneous #2702 2018-07-24 21:50:28 +03:00
Amos Bird
77ce910077 Fix invalid Context reference. 2018-07-24 21:47:47 +03:00
Alexey Milovidov
7c07f46d50 Style [#CLICKHOUSE-2] 2018-07-24 21:46:23 +03:00
alexey-milovidov
d17aa47250 Update StorageSystemZooKeeper.cpp 2018-07-24 21:41:22 +03:00
alexey-milovidov
ee6eddb159 Update StorageSystemFunctions.h 2018-07-24 21:41:22 +03:00
alexey-milovidov
fe19ce6c10 Update StorageSystemDictionaries.cpp 2018-07-24 21:41:22 +03:00
alexey-milovidov
2d3a0796a6 Update StorageSystemAggregateFunctionCombinators.cpp 2018-07-24 21:41:22 +03:00
alesapin
d52fd35396 CLICKHOUSE-3772: Move headers to appropriate place (one more time) 2018-07-24 21:41:22 +03:00
alesapin
0f36999b12 CLICKHOUSE-3772: Move headers to appropriate place 2018-07-24 21:41:22 +03:00
alesapin
5459ca1401 CLICKHOUSE-3772: Change base class of almost all StorageSystem* tables and fix remarks 2018-07-24 21:41:22 +03:00
alexey-milovidov
177f2801fd Update DataTypeFactory.cpp 2018-07-24 21:41:22 +03:00
alexey-milovidov
8d9650f141 Update DataTypeFactory.cpp 2018-07-24 21:41:22 +03:00
alesapin
30584812ee CLICKHOUSE-3772: Fix brackets 2018-07-24 21:41:22 +03:00
alesapin
a9eb190363 CLICKHOUSE-3772: Fix strange initialization 2018-07-24 21:41:22 +03:00
alesapin
e87460540a CLICKHOUSE-3772: Add size column 2018-07-24 21:41:22 +03:00
alesapin
5221adf1ea CLICKHOUSE-3772: Remove unused import 2018-07-24 21:41:22 +03:00
alesapin
6d6bad51ad CLICKHOUSE-3772: Fixes in system tables formats, data_type_families, aggregate_function_combinators 2018-07-24 21:41:22 +03:00
alexey-milovidov
ba4f988e3f
Update StorageSystemZooKeeper.cpp 2018-07-24 21:40:53 +03:00
alexey-milovidov
8af95f39e8
Update StorageSystemFunctions.h 2018-07-24 21:39:21 +03:00
alexey-milovidov
2834ba2dfb
Update StorageSystemDictionaries.cpp 2018-07-24 21:38:41 +03:00
alexey-milovidov
1824758f8f
Update StorageSystemAggregateFunctionCombinators.cpp 2018-07-24 21:37:07 +03:00
alexey-milovidov
ca40a085b1
Update TableFunctionFactory.h 2018-07-24 21:30:34 +03:00
alexey-milovidov
7b7c3a84a3
Update TableFunctionFactory.cpp 2018-07-24 21:30:11 +03:00
alexey-milovidov
fb807c10e9
Update evaluateConstantExpression.cpp 2018-07-24 19:32:33 +03:00
alesapin
8536761a76 CLICKHOUSE-3772: Move headers to appropriate place (one more time) 2018-07-24 17:42:52 +03:00
alesapin
4905c6ac51 CLICKHOUSE-3772: Move headers to appropriate place 2018-07-24 17:32:54 +03:00
alesapin
670353895b CLICKHOUSE-3772: Change base class of almost all StorageSystem* tables and fix remarks 2018-07-24 17:28:56 +03:00
VadimPE
46dec0d341 [CLICKHOUSE-3837] fix error in build 2018-07-24 17:05:37 +03:00
VadimPE
18e7ef4e6e [CLICKHOUSE-3837] fix 2018-07-24 16:42:14 +03:00
Vadim
437f3f20a9
Merge branch 'master' into CLICKHOUSE-3837 2018-07-24 16:21:51 +03:00
VadimPE
8dfb6806d8 add support for table function in remote() and cluster() 2018-07-24 16:10:34 +03:00
alesapin
f464bd73cf Merge remote-tracking branch 'upstream/master' 2018-07-24 12:34:19 +03:00
robot-metrika-test
4af322b295 Auto version update to [18.2.0] [54397] 2018-07-23 22:38:09 +03:00
Alexey Milovidov
5ce488ebe3 Merge branch 'master' of github.com:yandex/ClickHouse 2018-07-23 21:13:18 +03:00
Alexey Milovidov
d400b4e9db Added test #2699 2018-07-23 21:12:48 +03:00
Alexey Zatelepin
c793277bcc add forgotten sort [#CLICKHOUSE-3748] 2018-07-23 21:04:13 +03:00
alesapin
4835b4e16e CLICKHOUSE-3772: Fix brackets 2018-07-23 20:46:18 +03:00
alesapin
68309b75a8 Merge remote-tracking branch 'upstream/master' 2018-07-23 20:15:48 +03:00
alesapin
220f4d6c43 CLICKHOUSE-3772: Fix strange initialization 2018-07-23 20:12:29 +03:00
Alexey Zatelepin
4c4da31cc2 check number of arguments for -Array combinator [#CLICKHOUSE-3853] #2703 2018-07-23 19:54:25 +03:00
alesapin
f2451210d0 CLICKHOUSE-3772: Add size column 2018-07-23 19:52:11 +03:00
alexey-milovidov
1c200589f5 Update FunctionsArray.h 2018-07-23 19:27:23 +03:00
alexey-milovidov
ff2fdac25c Update FunctionsArray.h 2018-07-23 19:27:23 +03:00
Maxim Khrisanfov
1a57a05342 Opportunity to work with Array of Enums by passing numeric value #626 2018-07-23 19:27:23 +03:00
alesapin
24a9bebec9 CLICKHOUSE-3772: Remove unused import 2018-07-23 19:13:35 +03:00
alesapin
18dd1e1f14 CLICKHOUSE-3772: Fixes in system tables formats, data_type_families, aggregate_function_combinators 2018-07-23 19:10:57 +03:00
Nikolai Kochetov
fd4d992294 Supported JOIN ON syntax for single and chain in expression analyzer. 2018-07-23 19:01:25 +03:00
Nikolai Kochetov
dd4ac9f3f1 Supported JOIN ON syntax for single and chain in expression analyzer. 2018-07-23 18:57:52 +03:00
Nikolai Kochetov
0f4c8e2f0a Supported JOIN ON syntax for single and chain in expression analyzer. 2018-07-23 18:56:43 +03:00
Nikolai Kochetov
bbd13a25e4 Supported JOIN ON syntax for single and chain in expression analyzer. 2018-07-23 18:54:10 +03:00
proller
f477942c66 Cmake: test for liblld 2018-07-21 03:11:56 +03:00
Alex Zatelepin
41d87fdb0a fix getting new name for cloned part in case of empty parts [#CLICKHOUSE-3798] 2018-07-20 23:56:25 +00:00
Alexey Zatelepin
0fed05d25b use MergeTreeData::cloneAndLoadDataPart [#CLICKHOUSE-3798] 2018-07-20 22:44:34 +03:00
Alexey Zatelepin
c2897e2147 don't rewrite parts that aren't touched by mutation commands (copy them using localBackup instead) [#CLICKHOUSE-3798] 2018-07-20 22:44:34 +03:00
Alexey Zatelepin
55301ce1f0 create input streams for parts using InterpreterSelectQuery [#CLICKHOUSE-3798] 2018-07-20 22:44:34 +03:00
Alexey Zatelepin
f75fb6cd68 refactor InterpreterSelectQuery constructors [#CLICKHOUSE-3798] 2018-07-20 22:44:34 +03:00
proller
7be750afe9 Apple build fixes 2018-07-20 20:21:03 +03:00
Alexey Milovidov
a1684d4a4a Miscellaneous #2687 2018-07-20 19:02:23 +03:00
Alexey Milovidov
09d22da9b9 Miscellaneous #2687 2018-07-20 18:59:11 +03:00
Alexey Milovidov
4a975c9d4c Merge branch 'master' of https://github.com/alesapin/ClickHouse 2018-07-20 18:50:54 +03:00
Alexey Milovidov
a4d699e7f5 Comment [#CLICKHOUSE-2] 2018-07-20 18:50:39 +03:00
alexey-milovidov
c9dc058345
Update Collator.cpp 2018-07-20 18:49:47 +03:00
alesapin
fae9c33282 CLICKHOUSE-3791: Add system table collations 2018-07-20 16:17:16 +03:00
proller
c58584fbe7 clickhouse-test-server: allow run with build in source (cmake .) 2018-07-20 15:40:11 +03:00
alesapin
2915a58c8f Merge remote-tracking branch 'upstream/master' 2018-07-20 13:13:50 +03:00
alesapin
32e03f42ef CLICKHOUSE-3772: Fix initialization 2018-07-20 13:13:23 +03:00
alesapin
73bcc95af9 CLICKHOUSE-3772: Change return type to const reference 2018-07-20 13:07:11 +03:00
alesapin
a45e707f41 CLICKHOUSE-3772: Rename column in formats 2018-07-20 13:01:46 +03:00
alesapin
ec156e9f2b CLICKHOUSE-3772: Add system tables formats, data_type_families, table_functions, aggregate_function_combinators 2018-07-20 13:00:56 +03:00
robot-metrika-test
b54159aefa Auto version update to [18.1.0] [54396] 2018-07-20 04:00:20 +03:00
Alexey Milovidov
550f41bc65 Preparation #2646 2018-07-20 03:34:15 +03:00
Alexey Milovidov
e97fd327fd Merge branch 'master' of github.com:yandex/ClickHouse 2018-07-20 03:18:27 +03:00
Alexey Milovidov
509e00c226 Revert "Auto version update to [1.2.0] [54396]"
This reverts commit e464d2d430.
2018-07-20 03:18:16 +03:00
Alexey Milovidov
65f6696750 Quote all identifiers when querying external database #2635 2018-07-20 03:04:48 +03:00
Alexey Milovidov
0b827058ff Added missing file #2635 2018-07-20 03:04:48 +03:00
Alexey Milovidov
245b114363 Quote all identifiers when querying external database #2635 2018-07-20 03:04:48 +03:00
Alexey Milovidov
9af2a9179e Added test #2677 2018-07-20 03:00:04 +03:00
robot-metrika-test
e464d2d430 Auto version update to [1.2.0] [54396] 2018-07-19 23:55:02 +03:00
Alexey Milovidov
fe8c4d64e4 Better fix #2660 2018-07-19 23:51:03 +03:00
Alexey Milovidov
31dbbb05d2 Removed useless setting #2677 2018-07-19 23:22:49 +03:00
Alexey Milovidov
1b39ddf10b Whitespaces [#CLICKHOUSE-2] 2018-07-19 19:39:48 +03:00
Vadim
b8ae9f7951 [CLICKHOUSE-2830] add FunctionArrayDistinct (#2670)
* [CLICKHOUSE-2830] add FunctionArrayDistinct

* [#CLICKHOUSE-2830] Add tests and fix

* [CLICKHOUSE-2830] fix bug with array without NULL

* [CLICKHOUSE-2830] fix test

* [CLICKHOUSE-3844] Add suport Tuple and other types in Uniq, EnumerateUniq and Distinct

* [CLICKHOUSE-3844] Add '\n'

* [CLICKHOUSE-3844] fix

* [CLICKHOUSE-2830] del Nullable return type

* Update FunctionsArray.cpp

* [CLICKHOUSE-3844] add new tests

* [CLICKHOUSE-3844] add new tests
2018-07-19 16:53:32 +03:00
alesapin
56523948bf CLICKHOUSE-3842: Rename local variables 2018-07-19 16:51:57 +03:00
alesapin
ae44b41318 CLICKHOUSE-3842: Fix loadKeys method in dictionary library 2018-07-19 16:51:57 +03:00
alexey-milovidov
164425d1ec
Fix performance regression with prepared sets when they are used inside another subquery. (#2677)
* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Added documentation about ClickHouse testing (draft) [#CLICKHOUSE-2]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Removed debug output [#CLICKHOUSE-3796]

* Removed debug output [#CLICKHOUSE-3796]

* Updated documentation about ClickHouse testing [#CLICKHOUSE-2]

* Revert "Updated documentation about ClickHouse testing [#CLICKHOUSE-2]"

This reverts commit 9eafc13f3b.

* Revert "Added documentation about ClickHouse testing (draft) [#CLICKHOUSE-2]"

This reverts commit e28ad4b5fe.

* Fixed test #2677

* Update InterpreterSelectQuery.cpp
2018-07-19 16:36:21 +03:00
proller
dfa41cdc19 Fix build without readline 2018-07-19 12:29:02 +03:00
alesapin
d0d61e4ea4 CLICKHOUSE-3842: Rename local variables 2018-07-19 11:47:35 +03:00
Alexey Milovidov
7f04f593ed Moved code to .cpp; log only when skipping of errors is enabled #2669 2018-07-18 22:02:40 +03:00
Alexey Milovidov
a32c2e14a6 Removed unused method that became incompatible [#CLICKHOUSE-2] 2018-07-18 20:16:04 +03:00
alesapin
1f2c54c8af CLICKHOUSE-3842: Fix loadKeys method in dictionary library 2018-07-18 20:06:13 +03:00
Amos Bird
8b2e68bfa0 Function try in destructor rethrows exceptions
According to https://en.cppreference.com/w/cpp/language/function-try-block , function try block used in destructor will rethrow exceptions if there isn't a return statement specified.
2018-07-18 16:29:12 +03:00
proller
51cdec0bec CLICKHOUSE-3771: fixes 2018-07-18 12:48:45 +03:00
alexey-milovidov
f491bccb1c Update 00633_func_or_in.sql 2018-07-18 09:27:25 +03:00
chenxing.xc
9bf6f8a62c add test for #2663 2018-07-18 09:27:25 +03:00
chenxing.xc
f6000b304c OR to IN rewrite issue in functions 2018-07-18 09:27:25 +03:00
Leonardo Cecchi
6d8d59bd1b Log number of skipped rows during a bulk insert
When in a bulk insert the rows are parsed server-side and there are
skipped rows, log the number of these rows at the TRACE level.
2018-07-18 03:04:01 +03:00
Constantin S. Pan
8539c1e119 Fix the column size difference bug in SummingMergeTree 2018-07-18 00:17:04 +03:00
proller
c7848d2062 CLICKHOUSE-3771: Fixes 2018-07-17 21:22:32 +03:00
robot-metrika-test
d362e2e141 Auto version update to [1.1.54398] [54395] 2018-07-17 20:04:13 +03:00
alexey-milovidov
4b31f389b7 Update BufferBase.h 2018-07-17 19:41:41 +03:00
Amos Bird
c3c762cde7 Fast path for stringify float points. 2018-07-17 19:41:41 +03:00
robot-metrika-test
43ed979431 Auto version update to [1.1.54397] [54395] 2018-07-17 18:37:27 +03:00
robot-metrika-test
e68699c669 Auto version update to [1.1.54396] [54395] 2018-07-17 16:21:31 +03:00
proller
d271b58e7b CLICKHOUSE-3771 Clean 2018-07-17 16:19:40 +03:00
robot-metrika-test
02f7b96484 Auto version update to [1.2.1] [54396] 2018-07-17 14:53:14 +03:00
robot-metrika-test
4806d23261 Auto version update to [54396] 2018-07-17 14:45:10 +03:00
proller
3f949fc86a CLICKHOUSE-3771: new version scheme 2018-07-17 14:15:14 +03:00
Alexey Milovidov
09d9ac671b Added a test #2657 2018-07-16 19:31:34 +03:00
Alexey Milovidov
2465803888 Merge branch 'aggregate-function-max-intersections-fix-sorting' of https://github.com/furmur/ClickHouse into furmur-aggregate-function-max-intersections-fix-sorting 2018-07-16 19:05:58 +03:00
alexey-milovidov
d1eac37389
Update AggregateFunctionMaxIntersections.h 2018-07-16 19:04:35 +03:00
proller
cce2e005c5 Macos default build fixes 2018-07-16 17:16:26 +03:00
alexey-milovidov
f31b1236c1 Update MergeTreeDataSelectExecutor.cpp 2018-07-16 16:44:32 +03:00
proller
0b0a2838c8 Fix compile error with boost 1.68.0 2018-07-16 16:44:32 +03:00
Michael Furmur
218a282f88 maxIntersections: add sorting by weight 2018-07-16 15:01:05 +03:00
Alexey Milovidov
6ba5b3bd82 Fixed warning [#CLICKHOUSE-2] 2018-07-16 09:09:27 +03:00
Alexey Milovidov
317807f03d Fixed warning [#CLICKHOUSE-2] 2018-07-16 09:08:39 +03:00
Alexey Milovidov
9de268a455 Added a test from Silviu Caragea #2026 2018-07-16 09:06:44 +03:00
Alexey Milovidov
0a2e6eca45 Implemented generic case for comparison operators #2026 2018-07-16 09:06:44 +03:00
Alexey Milovidov
7540bdfa29 Merge branch 'master' of github.com:yandex/ClickHouse 2018-07-16 07:22:25 +03:00
Alexey Milovidov
52b284a67f Updated README for integration tests [#CLICKHOUSE-2] 2018-07-16 07:22:16 +03:00
Alexey Milovidov
6a2d8d4f3f Added support for arbitary complex types in "uniq" family of aggregate functions #2010 2018-07-16 06:55:41 +03:00
Alexey Milovidov
77ed75e1d3 Merge branch 'master' into amosbird-master 2018-07-16 06:34:22 +03:00
Alexey Milovidov
06fdc5d0ab Fixed error with DROP TEMPORARY queries #2624 2018-07-16 06:34:05 +03:00
alexey-milovidov
947c5eb6c9
Avoid accidential truncating table in default database in test. 2018-07-16 06:32:43 +03:00
alexey-milovidov
4d1c470469 Update MergeTreeData.cpp 2018-07-16 06:22:22 +03:00
Alexey Zatelepin
b1a97f90fc add test [#CLICKHOUSE-3748] 2018-07-16 06:22:22 +03:00
Alexey Zatelepin
88aa790a2d save mutations to disk and load them on startup [#CLICKHOUSE-3748] 2018-07-16 06:22:22 +03:00
Alexey Zatelepin
78b83d78f0 execute part mutations in a background pool [#CLICKHOUSE-3748] 2018-07-16 06:22:22 +03:00
Alexey Zatelepin
88300258a7 info in system.mutations for nonreplicated MergeTree [#CLICKHOUSE-3748] 2018-07-16 06:22:22 +03:00
Alexey Zatelepin
ce17868a5c execute mutations synchronously for StorageMergeTree [#CLICKHOUSE-3748] 2018-07-16 06:22:22 +03:00
Alexey Milovidov
ad3d882b67 Mitigate race condition in test [#CLICKHOUSE-2] 2018-07-16 04:10:41 +03:00