Commit Graph

12829 Commits

Author SHA1 Message Date
alexey-milovidov
c376b2d476
Merge pull request #2869 from yandex/low-cardinality-fixes
LowCardinality fixes
2018-08-14 22:36:19 +03:00
alexey-milovidov
beabb91903
Update IFunction.cpp 2018-08-14 22:35:52 +03:00
Alexey Milovidov
979154122f Changed strange name #2846 2018-08-14 22:34:25 +03:00
chertus
44c3166c6e Merge branch 'master' of github.com:yandex/ClickHouse 2018-08-14 22:17:28 +03:00
chertus
21fe103831 fix clang build 2018-08-14 22:16:56 +03:00
Nikolai Kochetov
2953be89a4 Merge branch 'master' of github.com:yandex/ClickHouse 2018-08-14 21:00:41 +03:00
Nikolai Kochetov
fce3bc193b Updated test for JOIN ON syntax. [#CLICKHOUSE-3761] 2018-08-14 21:00:17 +03:00
Nikolai Kochetov
2f0f7eacbf Updated test. [#CLICKHOUSE-3621] 2018-08-14 20:19:55 +03:00
Nikolai Kochetov
26f464a4f9 Fix Const(LowCardinality) conversion. [#CLICKHOUSE-3621] 2018-08-14 20:19:48 +03:00
Nikolai Kochetov
f61fdf2076 Better const resolution for LowCardinality type. [#CLICKHOUSE-3621] 2018-08-14 20:19:40 +03:00
alexey-milovidov
c5b90717c2
Merge pull request #2828 from alesapin/master
CLICKHOUSE-3878: ODBC-Bridge tool implementation
2018-08-14 17:25:43 +03:00
chertus
15cdd7b2bd make clang happy 2018-08-14 17:19:58 +03:00
alesapin
942d9a5fee
Merge branch 'master' into master 2018-08-14 17:09:27 +03:00
proller
a2343890dd Build fixes (#2864)
* Try fix internal compiler headers path

* Build fixes

* fix

* wip

* clean

* Update arch.cmake
2018-08-14 16:31:26 +03:00
chertus
8c54b480bc minor fix 2018-08-14 16:26:23 +03:00
chertus
74823c8c17 add allow_experimental_decimal to settings 2018-08-14 15:51:45 +03:00
chertus
241b05c80a merge master 2018-08-14 15:50:28 +03:00
alesapin
edc2dc45b6
Merge branch 'master' into master 2018-08-14 13:35:32 +03:00
alesapin
af19d4133d CLICKHOUSE-3878: Move connection string validation to common, remove redundant headers, fix compilation issues 2018-08-14 13:33:41 +03:00
alexey-milovidov
6b3375393d
Merge pull request #2840 from VadimPE/CLICKHOUSE-3211
CLICKHOUSE-3211 add TOP m, and OFFSET k
2018-08-14 12:55:12 +03:00
alexey-milovidov
f42bd36fa0
Merge pull request #2856 from zhang2014/feature/add_check_access_database_for_system_tables
Add check access database for system tables
2018-08-14 12:53:43 +03:00
Vadim
077ed3a61b
Update 00687_top_and_offset.sql 2018-08-14 12:12:38 +03:00
Vadim
f6d6c4b8f7
Update 00687_top_and_offset.sql 2018-08-14 12:09:25 +03:00
zhang2014
e51264c3a5 Add check access database for system tables 2018-08-14 11:28:32 +08:00
alexey-milovidov
3e9f25b1b4
Merge pull request #2830 from yandex/data-type-with-dictionary
LowCardinality data type.
2018-08-13 23:49:21 +03:00
Nikolai Kochetov
df73ef1ba5 Fix tests. 2018-08-13 22:43:26 +03:00
alesapin
83d5dba53b CLICKHOUSE-3878: Move ODBCDictionary to odbc-bridge 2018-08-13 21:10:26 +03:00
Nikolai Kochetov
4f31d136cb Fix build. 2018-08-13 20:52:57 +03:00
Nikolai Kochetov
5d5344f106 Added allow_experimental_low_cardinality_type setting. 2018-08-13 20:02:54 +03:00
alexey-milovidov
c19213c6e7
Merge pull request #2845 from yandex/fix-arrayDistinct
fix arrayDistinct
2018-08-13 19:46:53 +03:00
alesapin
88f1346be4
Merge pull request #2860 from alesapin/fix_test
Fix 00606_quantiles_and_nans test
2018-08-13 18:59:11 +03:00
Vadim
8510bc3bbd
del white space 2018-08-13 18:31:45 +03:00
alesapin
808068526b Fix 00606_quantiles_and_nans test 2018-08-13 18:03:53 +03:00
alesapin
d6fbf23e9d Fix 00606_quantiles_and_nans test 2018-08-13 18:02:23 +03:00
alesapin
76baaf9620 CLICKHOUSE-3878: Remove redundant prefix 2018-08-13 18:00:41 +03:00
Vadim
e51e0f5eb9
Update ErrorCodes.cpp 2018-08-13 15:22:58 +03:00
Vadim
4e0e500e15
Update 00687_top_and_offset.sql 2018-08-13 13:49:00 +03:00
Vadim
b9b6818325
Merge branch 'master' into CLICKHOUSE-3211 2018-08-13 13:48:44 +03:00
Vadim
ed97f7e475
Update 00687_top_and_offset.sql 2018-08-13 13:47:38 +03:00
Vadim
61a26f7846
Update ErrorCodes.cpp 2018-08-13 13:46:06 +03:00
VadimPE
bb9d99b00c CLICKHOUSE-3211 add Exception 2018-08-13 13:45:27 +03:00
alesapin
a78904a2ef Merge remote-tracking branch 'upstream/master' 2018-08-13 13:35:42 +03:00
robot-clickhouse
940a453034 Auto version update to [18.10.3] [54405] 2018-08-13 12:42:01 +03:00
alesapin
6fe3f0b13c Merge remote-tracking branch 'upstream/master' 2018-08-13 12:36:27 +03:00
zhang2014
59b25812e7 Add check access database for system tables 2018-08-13 17:35:40 +08:00
sundy-li
4b9a1390ff add quantile tests 2018-08-13 17:28:49 +08:00
alexey-milovidov
f538bd2113
Merge branch 'master' into decimal 2018-08-13 11:57:42 +03:00
VadimPE
a2b1100a82 add tests 2018-08-13 11:52:56 +03:00
sundy-li
65670bc33a return nan when quantileExact with empty float column 2018-08-13 16:33:51 +08:00
robot-clickhouse
9d44eebfe6 Auto version update to [18.10.2] [54405] 2018-08-13 11:30:02 +03:00
alexey-milovidov
6114dfbad2
Merge pull request #2851 from zhang2014/feature/add_dependies_for_system_tables
ISSUES-2850 add dependencies for system tables
2018-08-13 07:57:26 +03:00
Alexey Milovidov
7e50c88538 Added test case [#CLICKHOUSE-3891] 2018-08-13 07:35:12 +03:00
zhang2014
741abc2644 ISSUES-2803 add query test #2803 2018-08-13 11:02:50 +08:00
zhang2014
62a85536b4 ISSUES-2786 add asterisk_left_columns_only setting 2018-08-13 11:02:50 +08:00
zhang2014
d7cd77640d ISSUES-2786 fix replace asterisk with join query 2018-08-13 11:01:55 +08:00
alesapin
53b23e0113 CLICKHOUSE-3878: Add inherited fd's closing function 2018-08-12 15:23:22 +03:00
zhang2014
d766d4b014 ISSUES-2850 add dependencies for system tables 2018-08-12 16:05:12 +08:00
zhang2014
dd10e85e90 ISSUES-2850 add dependencies for system tables 2018-08-11 17:35:29 +08:00
proller
1e3c637741 Try fix internal compiler headers path 2018-08-11 02:28:33 +03:00
proller
3af99efd65 CLICKHOUSE-3530: Versioned inetrnal compiler headers (#2837) 2018-08-10 22:53:49 +03:00
Kirill Shvakov
a3ace87046 Add new system table "merge_tree_settings" (#2841)
* #2249 allow macros while creating kafka engine

* Update Macros.cpp

* Update Macros.h

* Add system table: merge_tree_settings
2018-08-10 20:42:12 +03:00
Vadim
552d789aa6
Update FunctionsArray.cpp 2018-08-10 18:29:28 +03:00
Vadim
2c6a9b2a92
Update FunctionsArray.h 2018-08-10 18:27:06 +03:00
alesapin
f11574cbfb CLICKHOUSE-3878: Sleep optimization 2018-08-10 18:07:54 +03:00
chertus
01c8b1d7bb decimal field extraction (from column or type) 2018-08-10 17:57:55 +03:00
alesapin
c3588a582c CLICKHOUSE-3878: Add some comments and small readme 2018-08-10 17:46:12 +03:00
Nikolai Kochetov
4a62ab9d5c Merged with master. 2018-08-10 16:53:08 +03:00
alesapin
cd9a016f62 CLICKHOUSE-3878: Fix merge conflict 2018-08-10 14:43:20 +03:00
alesapin
dde09bd8a5 CLICKHOUSE-3878: Start bridge not like daemon but background child, more explicit logging, fix mutex bug, add SCOPE_EXIT in bridge 2018-08-10 14:42:12 +03:00
VadimPE
6e461213bb CLICKHOUSE-3211 add tests 2018-08-10 14:27:55 +03:00
VadimPE
e8ebcc4d48 CLICKHOUSE-3211 add TOP m, and OFFSET k 2018-08-10 14:12:43 +03:00
Alexey Milovidov
9c3cd25f6e Fixed link order #1983 2018-08-10 07:53:45 +03:00
Alexey Milovidov
cc8a0488d3 Merge branch 'master' of github.com:yandex/ClickHouse 2018-08-10 07:03:32 +03:00
Alexey Milovidov
36db216abf Preparation for extra warnings [#CLICKHOUSE-2] 2018-08-10 07:02:56 +03:00
robot-clickhouse
e53899a561 Auto version update to [18.10.1] [54405] 2018-08-10 06:02:50 +03:00
Alexey Milovidov
d8ca4345b6 Fixed style violations [#CLICKHOUSE-2] 2018-08-10 04:41:54 +03:00
Alexey Milovidov
29e40f0087 Fixed potential error #2832 2018-08-10 04:31:55 +03:00
Anton Popov
c019d732c5 ClickHouse 3419 Add setting prefer_localhost_replica (#2832)
* add setting prefer_localhost_replica

* add prefer_localhost_replica setting

* fix bugs

* update setting comment

* Add test for prefer_localhost_replica

* fix bug
2018-08-10 04:27:54 +03:00
proller
973bdab77f Format ODBCDriver2 with NULL support (#2834)
* Format ODBCDriver2 with NULL support

* Fix comment

* Update ODBCDriver2BlockOutputStream.cpp

* clean
2018-08-10 04:20:10 +03:00
Alexey Milovidov
b6d6b57cec Revert "Fixed link order #2807"
This reverts commit 2f2fafb74a.
2018-08-10 00:01:59 +03:00
Alexey Milovidov
2f2fafb74a Fixed link order #2807 2018-08-09 23:43:28 +03:00
alesapin
04db4ddc46 CLICKHOUSE-3878: Next iteration in odbc-bridge 2018-08-09 21:49:05 +03:00
chertus
479166283e DecField (in progress) 2018-08-09 19:32:01 +03:00
alesapin
6d40546a9a CLICKHOUSE-3878: Remove connection string building and validation, change format of columns in request, more convinient exception messages 2018-08-09 15:57:34 +03:00
chertus
2b4171af1f remove comment 2018-08-09 15:34:10 +03:00
chertus
cc033803d1 decimale Dec128 arithm overflow 2018-08-09 15:24:03 +03:00
Nikolai Kochetov
b52cb07c2c Less compiler warnings. 2018-08-09 14:44:09 +03:00
Nikolai Kochetov
da822f1cf3 Merged with master. 2018-08-09 14:32:19 +03:00
Nikolai Kochetov
2099d8b7e8 Fixed DataTypeWithDictionary serialization. 2018-08-09 13:52:58 +03:00
Nikolai Kochetov
4fd3d57e79 Less compiler warnings. 2018-08-09 13:52:54 +03:00
Nikolai Kochetov
36da1f2871 Added IFunction::isDeterministicInScopeOfQuery(). 2018-08-09 13:52:46 +03:00
Nikolai Kochetov
79db5b261f Less compiler warnings. 2018-08-09 13:52:46 +03:00
Nikolai Kochetov
ab10005af5 Renamed settings for LowCardinality type. 2018-08-09 13:52:46 +03:00
Nikolai Kochetov
dc828d462c Added test for LowCardinality defaults 2018-08-09 13:52:45 +03:00
Nikolai Kochetov
c339313d8b Fix LowCardinality conversions for defaults. 2018-08-09 13:52:33 +03:00
alesapin
bff4bbf634 Merge remote-tracking branch 'upstream/master' 2018-08-09 12:38:43 +03:00
robot-clickhouse
abbbd26e71 Auto version update to [18.10.0] [54405] 2018-08-09 04:42:46 +03:00
chertus
c45b5d9f9a decimal arithm overflow (except dec128) 2018-08-08 23:15:49 +03:00
alesapin
402815977f Add new error in fetchPartition op 2018-08-08 21:01:25 +03:00
alesapin
1bedb971d0 Merge fixes 2018-08-08 19:54:09 +03:00
alesapin
97bcdcedb3 mistake 2018-08-08 19:52:11 +03:00
alesapin
65c6a8ff93 CLICKHOUSE-3878: Try to avoid merge conflict 2018-08-08 19:49:49 +03:00
alesapin
46e9dc132a CLICKHOUSE-3878: Remove redundant message 2018-08-08 19:44:41 +03:00
alesapin
b31dd7bf1f CLICKHOUSE-3878: Correct max_block_size handling 2018-08-08 19:41:08 +03:00
alesapin
fe10ccb1f7 CLICKHOUSE-3878: Remove some copypaste 2018-08-08 19:29:09 +03:00
alesapin
92f3beb95b CLICKHOUSE-3878: Better odbc-bridge with ability to handle custom logs and exceptions 2018-08-08 19:15:29 +03:00
Nikolai Kochetov
f1c05a2192 Added test with LowCardinality strings serialization. 2018-08-08 18:28:19 +03:00
Nikolai Kochetov
95c64aa5a9 Added test for LowCardinality and WithDictionary. 2018-08-08 17:42:04 +03:00
chertus
5f93ab73fa decimal compare overflow 2018-08-08 16:57:16 +03:00
Nikolai Kochetov
0a46943590 Renamed functions makeDictionary, dictionaryIndexes, dictionaryValues to toLowCardinality, lowCardinalityIndexes, lowCardinalityValues. 2018-08-08 16:55:32 +03:00
Nikolai Kochetov
f4d9d50168 Merged with master. 2018-08-08 15:01:18 +03:00
Nikolai Kochetov
c8457abb1b Made IFunction::isDeterministic and IFunction::isDeterministicInScopeOfQuery are const. Disabled default implementation with dictionary for not isDeterministicInScopeOfQuery functions. 2018-08-08 14:26:18 +03:00
chertus
16ad0caf37 move int exp from decimal scale to libcommon 2018-08-08 13:56:24 +03:00
chertus
297053bfac decimal compare optimisation 2018-08-08 13:36:03 +03:00
Alexey Milovidov
4ae1830f78 Updated instruction [#CLICKHOUSE-2] 2018-08-08 07:14:53 +03:00
Alexey Milovidov
1e316e9229 Fixed error #2795 2018-08-08 07:14:53 +03:00
Amos Bird
bb244e1482 Fix concurrent issue of StorageSetOrJoin. 2018-08-08 06:54:56 +03:00
Alexey Milovidov
e0dc0ccaff Removed misleading message [#CLICKHOUSE-2] 2018-08-08 06:03:26 +03:00
Alexey Milovidov
bec5a85030 Fixed test #2813 2018-08-08 05:11:16 +03:00
Alexey Milovidov
a693258169 Removed merging "config.d" files to every configs. "config.d" is only for "config.xml", users.d for users.xml, etc. Only "conf.d" is used for all configs. [#CLICKHOUSE-2] 2018-08-08 03:58:24 +03:00
Alexey Milovidov
5860838776 Fixed inconsistency and bad style #1652 2018-08-08 03:12:40 +03:00
Alexey Milovidov
1082619320 Added test #2813 2018-08-08 03:10:01 +03:00
Alexey Milovidov
e99a24c12c Fixed test #2813 2018-08-08 03:07:40 +03:00
alexey-milovidov
b1d70c125f Update 00685_output_format_json_escape_forward_slashes.sql 2018-08-08 02:35:32 +03:00
Alex Bocharov
e8d4654419 Remove FormatSettings default value for writeJSONString and add tests for output_format_json_escape_forward_slashes. 2018-08-08 02:35:32 +03:00
alexey-milovidov
4e7b2927dd Update Settings.h 2018-08-08 02:35:32 +03:00
alexey-milovidov
0a4d07b995 Update WriteHelpers.h 2018-08-08 02:35:32 +03:00
alexey-milovidov
bc16e8ca69 Update FormatSettings.h 2018-08-08 02:35:32 +03:00
alexey-milovidov
31cff11fee Update FormatFactory.cpp 2018-08-08 02:35:32 +03:00
alexey-milovidov
03727012a6 Update Settings.h 2018-08-08 02:35:32 +03:00
Alex Bocharov
a8818bb8af Add output_format_json_escape_slashes setting - controls escaping slashes for string outputs in JSON output format. 2018-08-08 02:35:32 +03:00
Nikolai Kochetov
1be7c4122d Renamed WithDictionary(Type) to LowCardinality(Type) and added TypeWithDictionary alias. 2018-08-07 22:31:41 +03:00
Nikolai Kochetov
bd991a5f7a Fixed comments. 2018-08-07 21:32:06 +03:00
Nikolai Kochetov
62dbef2dfc Optimize mapIndexWithAdditionalKeys for DataTypeWithDictionary. 2018-08-07 21:12:17 +03:00
Nikolai Kochetov
e83268a7f4 Optimize mapUniqueIndex for ColumnWIthDictionary. 2018-08-07 21:12:04 +03:00
Nikolai Kochetov
01209533f7 Optimize reverse index for ColumnUnique. 2018-08-07 21:10:16 +03:00
Nikolai Kochetov
3f4348a88b Use HashTableWithSavedHash for strings in ColumnUnique. 2018-08-07 21:09:55 +03:00
Nikolai Kochetov
a109d8f002 Disabled checks for index values in ColumnWithDictionary. 2018-08-07 21:09:49 +03:00
alesapin
dd01eb6b40 CLICKHOUSE-3878: Add odbc-bridge first version 2018-08-07 20:57:44 +03:00
Alexey Milovidov
d1a548638f Imported stateful tests (without data) [#CLICKHOUSE-3] 2018-08-07 20:10:03 +03:00
Alexey Milovidov
3021852383 Imported stateful tests (without data) [#CLICKHOUSE-3] 2018-08-07 20:08:51 +03:00
chertus
cae97b1e59 abs for decimal 2018-08-07 17:35:21 +03:00
chertus
7984b4f91d negate for dec128 2018-08-07 17:12:24 +03:00
chertus
de68022fc5 rewrite Decimal with own data type 2018-08-07 16:57:28 +03:00
chertus
8fde28deda issues-2813 return error code to OS on query processing error 2018-08-07 13:55:39 +03:00
alexey-milovidov
1d7e4a439c
Merge pull request #2791 from CurtizJ/CLICKHOUSE-3785
CLICKHOUSE-3785 add murmurHash3, update FunctionStringHash template.
2018-08-07 00:21:43 +03:00
Anton Popov
0d5c3b7967
Update 00678_murmurhash.sql 2018-08-06 23:53:28 +03:00
Anton Popov
0f2aceba02
Update 00678_murmurhash.reference 2018-08-06 23:52:56 +03:00
Alexey Milovidov
387e68b106 Better order of linking [#CLICKHOUSE-2] 2018-08-06 23:12:55 +03:00
Alexey Milovidov
705cce48f0 Removed misleading comment [#CLICKHOUSE-3] 2018-08-06 23:07:50 +03:00
Alexey Milovidov
9975960d77 Added max_partition_size_to_drop to config #2782 2018-08-06 20:23:27 +03:00
alexey-milovidov
0ef2a94d46
Merge pull request #2782 from VadimPE/CLICKHOUSE-3714
CLICKHOUSE-3714 add max_partition_size_to_drop
2018-08-06 20:20:59 +03:00
alexey-milovidov
72af99fdd5
Merge pull request #2814 from alesapin/master
Fix REPLACE PARTITION logic inside replicated merge tree
2018-08-06 20:18:30 +03:00
alexey-milovidov
aa4b2b1782
Update ReplicatedMergeTreeQueue.h 2018-08-06 20:18:11 +03:00
alexey-milovidov
38c2b2c8ab
Update FunctionsHashing.h 2018-08-06 20:04:32 +03:00
alexey-milovidov
4bfbe80d4f Update MergedBlockOutputStream.cpp 2018-08-06 19:54:00 +03:00
Alexey Zatelepin
72c4d8f064 add assert that MinMax index is correctly initialized [#CLICKHOUSE-3879] 2018-08-06 19:54:00 +03:00
Alexey Zatelepin
6d7c1cfaa4 add test that empty parts correctly merge to an empty part [#CLICKHOUSE-3879] 2018-08-06 19:54:00 +03:00
Alexey Zatelepin
1f2d4f90b9 allow empty parts after merge for Summing, Collapsing and VersionedCollapsing engines [#CLICKHOUSE-3879] 2018-08-06 19:54:00 +03:00
chertus
b700d7c7db minor changes 2018-08-06 16:48:40 +03:00
alesapin
134da31177 CLICKHOUSE-3880: Fix comment 2018-08-06 16:18:52 +03:00
alesapin
425918afe1 CLICKHOUSE-3880: Fix replace partition logic inside replicated merge tree 2018-08-06 15:59:51 +03:00
chertus
c590a74981 Merge branch 'master' into decimal 2018-08-06 13:38:18 +03:00
alesapin
b321963b35 CLICKHOUSE-3880: Test for REPLACE PARTITION with failover cases 2018-08-06 13:01:08 +03:00
Anton Popov
efddb89d18
Merge branch 'master' into CLICKHOUSE-3785 2018-08-06 12:42:01 +03:00
ap11
58fe7b3cfc add tests 2018-08-06 12:38:26 +03:00
ap11
2d41b958a3 add test 2018-08-06 12:35:13 +03:00
VadimPE
af9b288969 CLICKHOUSE-3714 add function in Context 2018-08-06 12:09:45 +03:00
VadimPE
d0f587bfc9 CLICKHOUSE-3714 fix 2018-08-06 11:58:30 +03:00
VadimPE
c30d459168 CLICKHOUSE-3714 fix 2018-08-06 11:43:34 +03:00
VadimPE
c15ba5e7d9 CLICKHOUSE-3714 2018-08-06 11:30:54 +03:00
VadimPE
490efebe62 CLICKHOUSE-3714 add size pf all part in partition 2018-08-06 11:27:59 +03:00
VadimPE
93202ca781 CLICKHOUSE-3714 fix code-style and copy-paste 2018-08-06 11:25:29 +03:00
Alexey Milovidov
e523f9a2c8 Fixed names [#CLICKHOUSE-2] 2018-08-05 11:54:57 +03:00
Alexey Milovidov
2b2869e998 Merging #2226 2018-08-05 10:10:08 +03:00
Alexey Milovidov
28771401a9 Merging #2226 2018-08-05 10:06:58 +03:00
Alexey Milovidov
2016374d20 Merging #2226 2018-08-05 10:05:43 +03:00
Alexey Milovidov
2ebe6beb10 Whitespace [#CLICKHOUSE-2] 2018-08-05 09:47:02 +03:00
Alexey Milovidov
b9914d6bcd Revert "Updated tests #2094"
This reverts commit 47554229c0.
2018-08-05 09:19:49 +03:00
Alexey Milovidov
d99ef95846 Revert "Check for ambiguous column names in subqueries #2094"
This reverts commit 36eae150d6.
2018-08-05 09:18:53 +03:00
Alexey Milovidov
7459edfa42 Removed support for CHECK TABLE for Distributed tables [#CLICKHOUSE-2] 2018-08-05 09:01:41 +03:00
alexey-milovidov
05c7a1971d
Update InterpreterSelectQuery.cpp 2018-08-05 08:29:12 +03:00
Alexey Milovidov
47554229c0 Updated tests #2094 2018-08-05 08:25:37 +03:00
Alexey Milovidov
cf2df6d780 Added a test from Stas Sviridov #2083 2018-08-05 07:56:19 +03:00
Alexey Milovidov
ab96e1d581 Imported test from #2094 2018-08-05 07:06:49 +03:00
Alexey Milovidov
36eae150d6 Check for ambiguous column names in subqueries #2094 2018-08-05 07:02:29 +03:00
Alexey Milovidov
4a5d00b6e7 Removing clusters when they are removed from config #2777 2018-08-05 06:55:41 +03:00
Alexey Milovidov
5bce1d78b0 Correct number of columns is returned from an element of UNION ALL inside a subquery if some column was queried more than once #2786 2018-08-05 06:28:31 +03:00
Alexey Milovidov
114725b526 In case of ambiguous column names in block, index by name will point to first column #2094 2018-08-05 05:40:35 +03:00
Alexey Milovidov
c7e960b0a9 Better exception message #2094 2018-08-05 05:39:09 +03:00
Alexey Milovidov
1b1754e598 Fixed build #2794 2018-08-04 00:13:54 +03:00
alexey-milovidov
11a7825ce7
Update Client.cpp 2018-08-03 23:48:43 +03:00
Alexey Milovidov
fd42e90b2a Merging; added a test #2618 #2611 #1770 2018-08-03 23:25:47 +03:00
Alexey Milovidov
bbaa0d369b Merge branch 'uuid-fix' of https://github.com/simPod/ClickHouse into simPod-uuid-fix 2018-08-03 22:59:45 +03:00
Anton Popov
6c3d780552 ClickHouse 3551 Remove external dictionaries, when config updated (#2779)
* CLICKHOUSE-3551

* CLICKHOUSE-3551 Remove external dictionaties, when config updated

* CLICKHOUSE-3551 Remove external dictionaties, when config updated

* Update config.xml
2018-08-03 22:49:03 +03:00
Alexey Zatelepin
a70301d1f2 add tests for mutations cleaner [#CLICKHOUSE-3828] 2018-08-03 22:21:44 +03:00
Alexey Zatelepin
b6b54eea52 old mutations cleaner for ReplicatedMergeTree engines [#CLICKHOUSE-3828] 2018-08-03 22:21:44 +03:00
Alexey Zatelepin
a0730d7696 old mutations cleaner for non-replicated MergeTree engines [#CLICKHOUSE-3828] 2018-08-03 22:21:44 +03:00
Alexey Zatelepin
94723bea63 add setting [#CLICKHOUSE-3828] 2018-08-03 22:21:44 +03:00
Alexander Marshalov
154d7e3228 Added SETTINGS clause for Kafka storage engine 2018-08-03 21:51:28 +03:00
Alexey Milovidov
0c233d668f Removed useless file; preparations #2791 2018-08-03 21:47:44 +03:00
proller
010350a088 Build fixes (#2794)
* More information in 'Cannot read all data' errors

* Build fixes

* Apple version fix

* Fix

* clean

* New libs fixes

* Freebsd fixes

* macos fix

* Fix macos build

* fix

* fix

* Update CMakeLists.txt

* freebsd fix

* fix

* Update CMakeLists.txt
2018-08-03 19:39:04 +03:00
chertus
a338f657d5 unari arithm operations for decimal (partial support) 2018-08-03 19:32:55 +03:00
Alexey Milovidov
5940f7b1da Auto version update to [18.9.0] [54404] 2018-08-03 19:17:07 +03:00
chertus
e31e4e164f add least and greatest funcs for decimal 2018-08-03 17:46:02 +03:00
Vadim
43cf3d2b2f
Update Context.cpp 2018-08-03 17:22:01 +03:00
Vadim
5142407daf
Update IStorage.h 2018-08-03 16:19:53 +03:00
Vadim
d821f8a4cc
Update StorageMergeTree.cpp 2018-08-03 16:17:32 +03:00
chertus
a5a7dc0fdd Merge branch 'master' into decimal 2018-08-03 13:30:27 +03:00
chertus
36b8204114 one more minor fix 2018-08-03 13:28:31 +03:00
chertus
65882bc42e minor fix 2018-08-03 13:20:44 +03:00
VadimPE
1e208c7186 CLICKHOUSE-3714 fix comment and ';' 2018-08-03 12:54:46 +03:00
VadimPE
b97fa2eb4d CLICKHOUSE-3714 bool ckeck_CanBeDropped -> void ... 2018-08-03 12:39:01 +03:00
VadimPE
6142d9ae6a CLICKHOUSE-3714 fix function names and get partition size 2018-08-03 11:33:57 +03:00
alexey-milovidov
f2d0746056
Update Server.cpp 2018-08-02 23:32:00 +03:00
morty
69f7948bbd Use system tables for formats, engines, functions, collations, types 2018-08-02 17:57:57 +03:00
chertus
e1881d4cfb fix decimal vs int arithm, add some tests 2018-08-02 17:28:55 +03:00
morty
fac492a3e4 Resolved conflicts 2018-08-02 14:01:52 +03:00
ap11
860587b2ef fix typo 2018-08-02 12:39:47 +03:00
ap11
d30a90dcac add murmurHash3, update FunctionStringHash template 2018-08-02 12:21:26 +03:00
VadimPE
98c33de4e3 CLICKHOUSE-3714 2018-08-02 12:03:38 +03:00
VadimPE
08fe108ba8 CLICKHOUSE-3714 fix methods name 2018-08-02 11:48:57 +03:00
robot-clickhouse
b324f69ede Auto version update to [18.8.0] [54403] 2018-08-02 11:35:38 +03:00
Alexey Milovidov
76e06fe0eb Don't escape values of parameters of ODBC connection string if it is not necessarily, because drivers don't recognize them [#CLICKHOUSE-3861] 2018-08-02 08:30:52 +03:00
alexey-milovidov
9cd5228df2
Using jemalloc instead of tcmalloc. (#2773)
* Added jemalloc as submodule [#CLICKHOUSE-2]

* Imported jemalloc-cmake [#CLICKHOUSE-2]

* Added README for jemalloc-cmake [#CLICKHOUSE-2]

* Trying to add jemalloc [#CLICKHOUSE-2]

* Trying to add jemalloc [#CLICKHOUSE-2]

* Trying to add jemalloc [#CLICKHOUSE-2]

* Add support for jemalloc: development [#CLICKHOUSE-2]

* Add support for jemalloc: development [#CLICKHOUSE-2]

* Add support for jemalloc: development [#CLICKHOUSE-2]

* Add support for jemalloc: development [#CLICKHOUSE-2]

* Add support for jemalloc: development [#CLICKHOUSE-2]

* Add support for jemalloc: development [#CLICKHOUSE-2]

* Add support for jemalloc: development [#CLICKHOUSE-2]

* Add support for jemalloc: development [#CLICKHOUSE-2]

* Add support for jemalloc: development [#CLICKHOUSE-2]

* Add support for jemalloc: development [#CLICKHOUSE-2]

* Add support for jemalloc: development [#CLICKHOUSE-2]

* Add support for jemalloc: development [#CLICKHOUSE-2]

* Add support for jemalloc: development [#CLICKHOUSE-2]

* Add support for jemalloc: development [#CLICKHOUSE-2]
2018-08-02 03:20:20 +03:00
robot-clickhouse
0906c61a10 Auto version update to [18.7.1] [54402] 2018-08-02 01:24:01 +03:00
chertus
267f28f98d decimal arithm (basic support) 2018-08-01 22:50:19 +03:00
Alexey Milovidov
60187ab716 Miscellaneous [#CLICKHOUSE-3861] 2018-08-01 21:21:03 +03:00
Alexey Milovidov
eb697dca93 Addition to prev. revision [#CLICKHOUSE-3861] 2018-08-01 21:13:35 +03:00
Vadim
f6736a0e6e
Update Context.cpp 2018-08-01 20:44:23 +03:00
Vadim
c30ab5a035
Update StorageMaterializedView.h 2018-08-01 20:43:58 +03:00
Vadim
034a88a504
Merge branch 'master' into CLICKHOUSE-3714 2018-08-01 20:42:56 +03:00
VadimPE
66d9ba3eb7 CLICKHOUSE-3714 add max_partition_size_to_drop 2018-08-01 20:41:18 +03:00
robot-clickhouse
dc5249d0c1 Auto version update to [18.7.0] [54402] 2018-08-01 16:20:46 +03:00
zhang2014
d61c53fc3e ISSUES-863 support predicate push down with subquery 2018-08-01 17:56:02 +08:00
robot-clickhouse
2f612bbcc1 Auto version update to [18.6.0] [54401] 2018-08-01 00:50:05 +03:00
proller
d72ba2701b CLICKHOUSE-3771 Preparing for new version scheme [WIP] (#2646)
* CLICKHOUSE-3771: compatible version transfer

* Fix

* Fixed compatibility

* fix

* Auto version update to [1.1.54401] [54398]

* fix auto revision up

* fix

* comments

* clean

* fix

* Send/recieve patch if we can

* fix

* Auto version update to [18.2.0] [54397]

* Client version in query_log

* Update TCPHandler.cpp

* Update Connection.cpp

* Update Defines.h
2018-08-01 00:36:18 +03:00
alexey-milovidov
405d7f9232
Merge pull request #2742 from yandex/support-join-on-syntax
Support join on syntax
2018-08-01 00:30:46 +03:00
alesapin
e81108b954 CLICKHOUSE-3863: Add more convinient exception message 2018-08-01 00:29:47 +03:00
alesapin
2db2d208e1 CLICKHOUSE-3863: Add HTTPS support for interserver replication 2018-08-01 00:29:47 +03:00
Alexey Milovidov
1cdbf16837 More tests [#CLICKHOUSE-3861] 2018-08-01 00:25:26 +03:00
alexey-milovidov
0f25e8277c Update validateODBCConnectionString.cpp 2018-08-01 00:25:26 +03:00
alexey-milovidov
369145bd30 Update validateODBCConnectionString.cpp 2018-08-01 00:25:26 +03:00
Alexey Milovidov
c9ab39c8c6 Added validation of ODBC connection string [#CLICKHOUSE-3861] 2018-08-01 00:25:26 +03:00
Nikolai Kochetov
9359ae7650 Fix test. 2018-07-31 20:34:17 +03:00
alexey-milovidov
f6b9c46d24
Update ExpressionAnalyzer.cpp 2018-07-31 06:04:35 +03:00
robot-metrika-test
0826127d48 Auto version update to [18.5.1] [54400] 2018-07-31 04:28:24 +03:00
Alexey Milovidov
3caadfadc6 Fixed test #2750 2018-07-31 04:24:32 +03:00
robot-clickhouse
d3db10f315 Auto version update to [18.5.0] [54400] 2018-07-30 23:43:16 +03:00
Alexey Milovidov
b5b48d59fa Compatibility with obsolete version of Poco for alternative build variants #2759 2018-07-30 23:21:45 +03:00
Nikolai Kochetov
368e7d0b08 Added joined_block_actions to SubqueryForSet for join subquery. [#CLICKHOUSE-3761]
3Added joined_block_actions to join expression action.
2018-07-30 22:41:27 +03:00
Nikolai Kochetov
bc054f2247 Fix tests. [#CLICKHOUSE-3761] 2018-07-30 22:40:43 +03:00
chertus
321615ce56 make 00700_decimal_bounds test stable 2018-07-30 22:19:06 +03:00
chertus
4a1b7cfebf Merge branch 'master' into decimal 2018-07-30 21:51:08 +03:00
alexey-milovidov
98e9f4c24c
Merge pull request #2761 from 4ertus2/negative
Fix client's --testmode (allow multiple negative tests with clientError)
2018-07-30 21:48:36 +03:00
Alexey Zatelepin
4863c5c178 fix potential segfault in MergeTreeData::delayInsertOrThrowIfNeeded [#CLICKHOUSE-3862] 2018-07-30 21:47:24 +03:00
Alexey Zatelepin
cc7950a733 don't destroy Cleanup- and AlterThread objects, just deactivate the tasks [#CLICKHOUSE-3862]
Otherwise segfaults are possible when the objects are recreated in the middle of the queue task execution.
2018-07-30 21:47:24 +03:00
chertus
5294c1ec9e Merge branch 'master' into negative 2018-07-30 21:39:36 +03:00
chertus
5f46894cf0 CLICKHOUSE-2 client testmode fixes: reconnect on clientError, clear expected errors, return error to OS 2018-07-30 21:27:04 +03:00
Alexey Milovidov
cfb3537eb6 Updated test #2756 2018-07-30 21:26:20 +03:00
chertus
582f76c83b string to decimal, decimal to string, check decimal bounds 2018-07-30 21:10:38 +03:00
Alexey Milovidov
b1e06fc136 Better code #2756 2018-07-30 21:00:16 +03:00
Alexey Milovidov
2fb75a88c3 Fixed test #2756 2018-07-30 20:43:13 +03:00
Alexey Milovidov
7fe1914a63 Whitespaces #2756 2018-07-30 19:07:20 +03:00
alexey-milovidov
be657c33e6
Merge pull request #2756 from CurtizJ/CLICKHOUSE-3785
Clickhouse 3785 Add MurmurHash2
2018-07-30 18:57:38 +03:00
zhang2014
9e052b13d1 ISSUES-2700 add funnel window crash test 2018-07-30 18:51:06 +03:00
ap11
45ce69e73d Add case insensitive coalesce ifnull, nullif. 2018-07-30 18:50:12 +03:00
alexey-milovidov
b062262b9f
Update FunctionsHashing.h 2018-07-30 18:45:46 +03:00
ap11
4fe3690cad minor changes 2018-07-30 16:50:26 +03:00
ap11
d45ce92b89 add tests for murmurhash2 2018-07-30 16:41:07 +03:00
ap11
68bdc4eb12 Add mumurhash2 2018-07-30 15:19:22 +03:00
alesapin
79607b9118 CLICKHOUSE-3852: Add tests for config parser 2018-07-29 04:58:05 +03:00
alesapin
744258818e CLICKHOUSE-3852: Fix PR remarks 2018-07-29 04:58:05 +03:00
alesapin
1f32701665 CLICKHOUSE-3852: Remove useless newlines 2018-07-29 04:58:05 +03:00
alesapin
652e5ff9e2 CLICKHOUSE-3852: Add ability to set up config parameters from env variables. 2018-07-29 04:58:05 +03:00
robot-metrika-test
e26ba4daac Auto version update to [18.4.0] [54399] 2018-07-28 00:35:05 +03:00
Alexey Milovidov
8bc95412b6 Fixed bad code #2708 2018-07-28 00:33:30 +03:00
Alexey Milovidov
35409e1123 Merge branch 'master' of github.com:yandex/ClickHouse 2018-07-27 22:51:35 +03:00
Alexey Milovidov
a2101df25a Fixed error in aggregate function "anyHeavy"; added a test [#CLICKHOUSE-3867] 2018-07-27 22:51:13 +03:00
robot-metrika-test
a7addb80a3 Auto version update to [18.3.0] [54398] 2018-07-27 21:45:36 +03:00
Alexey Milovidov
448bcdfdb4 Added a test [#CLICKHOUSE-3855] 2018-07-27 21:17:32 +03:00
Alexey Milovidov
bbdd780be0 Fixed error when IN is used as an aggregation key [#CLICKHOUSE-3855] 2018-07-27 21:14:58 +03:00
chertus
f793fb553a Merge branch 'master' into decimal 2018-07-27 20:56:13 +03:00
alexey-milovidov
e64c221649 Update Client.cpp 2018-07-27 20:41:05 +03:00
chertus
845edbe242 CLICKHOUSE-2: support negative tests 2018-07-27 20:41:05 +03:00
alexey-milovidov
cac790f08f
Update Client.cpp 2018-07-27 20:37:53 +03:00
chertus
b9fd87eff7 Merge branch 'master' into decimal 2018-07-27 20:31:33 +03:00
alesapin
a28cf1ed98 Remove wrong option 2018-07-27 20:25:51 +03:00
chertus
6283c3f572 CLICKHOUSE-2: support negative tests 2018-07-27 20:19:22 +03:00
Nikolai Kochetov
7d9ebae2c2 Better comments. 2018-07-27 20:11:56 +03:00
Nikolai Kochetov
b5d6240646 Merged with master 2018-07-27 19:21:43 +03:00
Nikolai Kochetov
a2cd7016e5 Added test for join on syntax. [#CLICKHOUSE-3761] 2018-07-27 19:04:17 +03:00
Nikolai Kochetov
5123e0f86f Remove joined table qualifiers from column names. [#CLICKHOUSE-3761] 2018-07-27 19:03:16 +03:00
Nikolai Kochetov
65dcca22a2 Substitute aliases for required columns in ExpressionAnalyzer. [#CLICKHOUSE-3761] 2018-07-27 19:02:56 +03:00
Nikolai Kochetov
11d66d8733 Support expressions for right JOIN keys. [#CLICKHOUSE-3761] 2018-07-27 19:02:42 +03:00
Nikolai Kochetov
98e5821769 Resolve qualified names for JOIN ON expression. [#CLICKHOUSE-3761] 2018-07-27 19:02:23 +03:00
Nikolai Kochetov
cc613d7ad3 Added JOIN keys to the list of needed columns for JOIN expression action. 2018-07-27 19:02:20 +03:00
Nikolai Kochetov
391ff31829 Added actions for JOIN key columns. [#CLICKHOUSE-3761] 2018-07-27 19:02:10 +03:00
Nikolai Kochetov
5058d1a345 Added columns from join on key of right table if they have different name from left block key in merged block. [#CLICKHOUSE-3761] 2018-07-27 19:01:48 +03:00
Nikolai Kochetov
92719e1f48 Supported JOIN ON syntax for single and chain in expression analyzer. [#CLICKHOUSE-3761] 2018-07-27 19:01:25 +03:00