sundy-li
65670bc33a
return nan when quantileExact with empty float column
2018-08-13 16:33:51 +08: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
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
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
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
e8ebcc4d48
CLICKHOUSE-3211 add TOP m, and OFFSET k
2018-08-10 14:12:43 +03:00
Alexey Milovidov
36db216abf
Preparation for extra warnings [#CLICKHOUSE-2]
2018-08-10 07:02:56 +03:00
Alexey Milovidov
d8ca4345b6
Fixed style violations [#CLICKHOUSE-2]
2018-08-10 04:41:54 +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
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
Vadim
44cb046eb9
Update StorageReplicatedMergeTree.cpp
2018-08-09 19:25:19 +03:00
Vadim
fad1e37605
Update ReplicatedMergeTreeQueue.h
2018-08-09 19:24:37 +03:00
Vadim
a133f20b33
Update ReplicatedMergeTreeQueue.cpp
2018-08-09 19:24:03 +03:00
Vadim
434017d193
Update StorageReplicatedMergeTree.cpp
2018-08-09 18:09:05 +03:00
VadimPE
75900f494f
CLICKHOUSE-3847 add "is_lost". load() in Queue can check duplicate records
2018-08-09 18:06:39 +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
VadimPE
e3495a6484
Merge branch 'CLICKHOUSE-3847' of github.com:VadimPE/ClickHouse into CLICKHOUSE-3847
2018-08-09 14:39:46 +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
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
Vadim
ee97a35f12
Update StorageReplicatedMergeTree.cpp
2018-08-09 11:46:41 +03:00
VadimPE
d5a6967fc4
CLICKHOUSE-3847 fix
2018-08-09 11:44:49 +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
Vadim
61338697b0
Update MergeTreeSettings.h
2018-08-08 18:28:48 +03:00
VadimPE
c16d876867
CLICKHOUSE-3847 fix race in set log_pointer in cloneReplica()
2018-08-08 18:25:07 +03:00
VadimPE
3b9002dfc9
CLICKHOUSE-3847 fix
2018-08-08 17:31:56 +03:00
VadimPE
4c0bb93345
CLICKHOUSE-3847 fix UInt - UInt. del clearQueue()
2018-08-08 17:07:39 +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
VadimPE
8d28b9f6b4
CLICKHOUSE-3847 we can do pullToLog() after we mark replica is_active and before we calc delay.
2018-08-08 16:53:06 +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
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
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
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
VadimPE
01e9d15914
CLICKHOUSE-3847 Del restartLostReplica()
2018-08-07 18:28:12 +03:00
VadimPE
0be75baeda
CLICKHOUSE-3847 Del markLosrTeplicas()
2018-08-07 18:26:27 +03:00
VadimPE
32b6965cf2
CLICKHOUSE-3847 Update. Add new settings. Del is_lost
2018-08-07 18:21:42 +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
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
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
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
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
Anton Popov
efddb89d18
Merge branch 'master' into CLICKHOUSE-3785
2018-08-06 12:42:01 +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
chenxing.xc
4acc441179
fix aligned states review comments
2018-08-05 18:12:06 +08:00
chenxing.xc
202894e191
Merge remote-tracking branch 'rb/master'
2018-08-05 17:59:58 +08:00
Alexey Milovidov
e523f9a2c8
Fixed names [#CLICKHOUSE-2]
2018-08-05 11:54:57 +03:00
chenxing.xc
90d8290d28
aligned aggregate state
2018-08-05 16:45:15 +08: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
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
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
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
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
chertus
a338f657d5
unari arithm operations for decimal (partial support)
2018-08-03 19:32:55 +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
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
chertus
e1881d4cfb
fix decimal vs int arithm, add some tests
2018-08-02 17:28:55 +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
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
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
zhang2014
d61c53fc3e
ISSUES-863 support predicate push down with subquery
2018-08-01 17:56:02 +08: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
VadimPE
e2be3fd5ce
CLICKHOUSE-3847 fix
2018-07-31 17:11:27 +03:00
VadimPE
3eaae23559
Merge branch 'CLICKHOUSE-3847' of github.com:VadimPE/ClickHouse into CLICKHOUSE-3847
2018-07-31 16:46:27 +03:00
VadimPE
ed8d749b9e
CLICKHOUSE-3847 fix problems with empty entries
2018-07-31 16:45:43 +03:00
Vadim
1b068ac24c
Update ReplicatedMergeTreeCleanupThread.cpp
2018-07-31 16:04:35 +03:00
VadimPE
9b5620fac1
CLICKHOUSE-3847 fix comments.
2018-07-31 12:01:24 +03:00
alexey-milovidov
f6b9c46d24
Update ExpressionAnalyzer.cpp
2018-07-31 06:04:35 +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
4a1b7cfebf
Merge branch 'master' into decimal
2018-07-30 21:51:08 +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
Vadim
40999bfb0c
Update ReplicatedMergeTreeCleanupThread.cpp
2018-07-30 21:34:57 +03:00
Vadim
035af6327b
Update ReplicatedMergeTreeCleanupThread.cpp
2018-07-30 21:32:58 +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
VadimPE
3f6cdab293
CLICKHOUSE-3847 add support lost replica
2018-07-30 19:31:14 +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
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
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
Alexey Milovidov
8bc95412b6
Fixed bad code #2708
2018-07-28 00:33:30 +03:00
Alexey Milovidov
a2101df25a
Fixed error in aggregate function "anyHeavy"; added a test [#CLICKHOUSE-3867]
2018-07-27 22:51:13 +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
b9fd87eff7
Merge branch 'master' into decimal
2018-07-27 20:31:33 +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
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
zhang2014
4bc916029c
ISSUES-2700 fix windowFunnel NULL pointer
...
Co-authored-by: zhang2014 <coswde@gmail.com>
Co-authored-by: sundy-li <543950155@qq.com>
2018-07-27 15:19:29 +08:00
alexey-milovidov
9242588449
Merge pull request #2708 from VadimPE/CLICKHOUSE-3837
...
CLICKHOUSE-3837 Add support for table function in remote() and cluster()
2018-07-26 21:36:04 +03:00
alexey-milovidov
24b0be2cf0
Merge pull request #2727 from alesapin/CLICKHOUSE-3832
...
CLICKHOUSE-3832: Add HTTP Basic authentification in replication protocol
2018-07-26 20:50:09 +03:00
chertus
492875e0f7
decimal comparisons with other integers
2018-07-26 18:28:14 +03:00
alesapin
65a6a1225c
Merge pull request #2726 from alesapin/master
2018-07-26 18:20:02 +03:00
alesapin
1588964873
Merge branch 'master' of github.com:alesapin/ClickHouse
2018-07-26 18:16:06 +03:00
alesapin
9aec460f2e
Fix build warning
2018-07-26 18:15:48 +03:00
alesapin
6abbfbce87
CLICKHOUSE-3832: Add HTTP Basic authentification in replication protocol
2018-07-26 18:10:57 +03:00
chertus
c1c149d74b
decimal comparisons
2018-07-25 22:38:21 +03:00
alexey-milovidov
67c0cf5efc
Merge pull request #2721 from alesapin/master
...
CLICKHOUSE-3857: Add table table_engines, alias factory base class and columns alias_to and case_insensitive to functions
2018-07-25 21:50:14 +03:00
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
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
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
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
chertus
af00724c52
hotfix (decimal scale)
2018-07-24 14:43:48 +03:00
alesapin
f464bd73cf
Merge remote-tracking branch 'upstream/master'
2018-07-24 12:34:19 +03:00
chertus
02f016579c
decimal (de)serialization (in progress)
2018-07-23 23:19:26 +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
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
chertus
5ec47b4a1c
decimal (in progress)
2018-07-20 22:05:07 +03:00
Nikolai Kochetov
df379afde4
Reserve memory for HashTable in ColumnUnique.
2018-07-20 19:16:33 +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
Nikolai Kochetov
7f8688b67b
Support data type with dictionary for krimary key.
2018-07-20 18:41:01 +03:00
alesapin
fae9c33282
CLICKHOUSE-3791: Add system table collations
2018-07-20 16:17:16 +03:00
Nikolai Kochetov
2bce1f0fb7
Fix tests.
2018-07-20 16:07:51 +03:00
Nikolai Kochetov
df8e030b2d
Fix tests.
2018-07-20 15:30:04 +03:00
Nikolai Kochetov
3a74ec7c0c
Mergred with master
2018-07-20 14:08:54 +03:00
Nikolai Kochetov
bf26fda38d
Added canBeExecutedOnDefaultArguments into IFunction. Don't run function on defaults is this flag is true.
2018-07-20 13:19:07 +03:00
Nikolai Kochetov
e8bd73ff9b
Fixed function makeDictionary for column with dictionary argument.
2018-07-20 13:19:05 +03:00
Nikolai Kochetov
cbbbda2539
Supported serialization of several dictionaries into single part.
...
Run function on nested column of column with dictionary only if arguments have single column with dictionary and other columns are const.
2018-07-20 13:18:21 +03:00
Nikolai Kochetov
9c763f8090
Make DatsTypeWithDictionary independent from index type.
2018-07-20 13:16:27 +03:00
Nikolai Kochetov
c542cb6314
Expanding indexes for ColumnUnique.
2018-07-20 13:15:55 +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
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
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
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
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
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
chenxing.xc
5e3bc07a25
OR to IN rewrite issue in functions
2018-07-17 14:27:28 +08: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
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
0a2e6eca45
Implemented generic case for comparison operators #2026
2018-07-16 09:06:44 +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
4d1c470469
Update MergeTreeData.cpp
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
9381af3bbb
Merge branch 'master' of github.com:yandex/ClickHouse
2018-07-16 03:33:21 +03:00
Alexey Milovidov
a4c0ab7c04
Removed obsolete file #2635
2018-07-16 03:33:12 +03:00
Alexey Milovidov
0f3d6fe756
Fixed error #2649
2018-07-16 03:30:13 +03:00
Alexey Milovidov
eee02143a8
Implemented more accurate CAST from String to Nullable of Date and DateTime #1322
2018-07-16 03:30:13 +03:00
Alexey Milovidov
297805f719
Implemented toOrZero, toOrNull functions for Date and DateTime arguments (incomplete) #1322
2018-07-16 03:30:13 +03:00
Alexey Milovidov
8533011a49
More accurate conversion to Nullable type in function CAST #1322
2018-07-16 03:30:13 +03:00
VadimPE
5bb8f7ea4a
[CLICKHOUSE-3269] rename isDigit()
2018-07-15 00:22:29 +03:00
VadimPE
4134711faa
[CLICKHOUSE-3269] fix
2018-07-15 00:22:29 +03:00
VadimPE
18681db7fa
[CLICKHOUSE-3269] fix bug with netmaskToIPv6()
2018-07-15 00:22:29 +03:00
alexey-milovidov
b384b7afc4
Update Users.cpp
2018-07-15 00:22:29 +03:00
VadimPE
c45a5aa775
fix netmask from IPv4 to IPv6
2018-07-15 00:22:29 +03:00
VadimPE
5834c0f9d9
fix bug
2018-07-15 00:22:29 +03:00
VadimPE
180ba17e6b
fix
2018-07-15 00:22:29 +03:00
VadimPE
849f02104f
added support for new masks
2018-07-15 00:22:29 +03:00
proller
5384504fa2
More information in 'Cannot read all data' errors
2018-07-13 22:06:26 +03:00
Alexey Milovidov
215ec2be98
Tiny improvement [#CLICKHOUSE-3820]
2018-07-13 20:27:58 +03:00
alexey-milovidov
53f9ae3cf1
Update CompressedReadBufferBase.cpp
2018-07-13 06:41:18 +03:00
proller
9d0b6bffe4
Better error: Print checksums if they mismatch
2018-07-13 06:41:18 +03:00
Alexey Milovidov
c315200e64
Fixed rare error in ZooKeeper library: callback never called in case when network error happens after reading response header but before response body was read - that will lead to deadlock and readonly table [#CLICKHOUSE-3820]
2018-07-13 00:31:38 +03:00
Alexey Milovidov
14d5aa061f
Miscellaneous #1322
2018-07-11 22:37:57 +03:00
Alexey Milovidov
d6a3cade18
Whitespaces [#CLICKHOUSE-3820]
2018-07-11 19:10:02 +03:00
Alexey Milovidov
b3b41c9661
Non significant changes #2521
2018-07-11 15:59:37 +03:00
Alexey Milovidov
2f4605e7da
Fixed build #2627
2018-07-11 15:50:23 +03:00
alexey-milovidov
9793ae98e0
Merge pull request #2521 from ssmike/CLICKHOUSE-3547
...
CLICKHOUSE-3547 streaming histogram aggregation
2018-07-11 15:48:12 +03:00
alexey-milovidov
e0ce1aac56
Update WriteBufferFromOStream.cpp
2018-07-10 23:46:10 +03:00
alexey-milovidov
ba25b84e6d
Update WriteBufferFromOStream.cpp
2018-07-10 23:46:10 +03:00
alexey-milovidov
401c48272d
Update WriteBufferFromOStream.h
2018-07-10 23:46:10 +03:00
alexey-milovidov
1737228039
Update ReadBufferFromIStream.cpp
2018-07-10 23:46:10 +03:00
alexey-milovidov
21a5a7a544
Update ReadBufferFromIStream.h
2018-07-10 23:46:10 +03:00
proller
2e0869f567
Write current position in stream errors
2018-07-10 23:46:10 +03:00
Alexey Milovidov
98f8ae3edb
Fixed error with timeouts [#CLICKHOUSE-2837]
2018-07-10 20:40:17 +03:00
Alexey Milovidov
f80081ca03
Fixed chroot prefix in information about exception for ZooKeeper multi transaction (variant 2) [#MDBSUPPORT-204]
2018-07-10 19:14:27 +03:00
Amos Bird
f5764910c4
Fix TRUNCATE command for temporary tables.
2018-07-10 22:25:08 +08:00
Alexey Milovidov
a26a0f5331
Better exception message for KeeperMiltiException [#MDBSUPPORT-204]
2018-07-10 16:47:14 +03:00
Alexey Milovidov
8e0ae12b4e
Miscellaneous [#CLICKHOUSE-2]
2018-07-10 16:43:01 +03:00
Alexey Milovidov
15dd80a913
Debugging [#CLICKHOUSE-2]
2018-07-10 03:35:00 +03:00
Simon Podlipsky
6c7ba03d0f
Add missing UInt128 (UUID) field visitors
2018-07-10 00:39:13 +03:00
Alexey Milovidov
3c34487f43
Preparations [#CLICKHOUSE-2]
2018-07-09 23:36:58 +03:00
Amos Bird
ea01a3b22e
add OPTIMIZE FINAL support for ReplicatedMergeTree.
2018-07-09 18:03:23 +03:00
Mikhail Surin
877acef7d5
remove temporary allocations
2018-07-08 16:56:33 +03:00
Alexey Milovidov
7707b5a209
Improvement [#CLICKHOUSE-3810]
2018-07-08 02:53:49 +03:00
Alexey Milovidov
4f2655960c
Fixed test [#CLICKHOUSE-2]
2018-07-07 22:39:20 +03:00
Alexey Milovidov
d2a44248cd
Fixed error with empty TinyLog table; added a test from Nickolay Kovalev #2563
2018-07-07 22:02:10 +03:00
Alexey Milovidov
b714d87de7
Get rid of virtual columns in system.tables table [#CLICKHOUSE-3806]
2018-07-07 21:58:48 +03:00
Mikhail Surin
69b8774611
ensure parameter type
2018-07-07 15:38:47 +03:00
Mikhail Surin
9f5e9d1389
epsilon
2018-07-07 15:09:21 +03:00
Mikhail Surin
ca837723ed
fix unique for empty point sets
2018-07-07 13:40:32 +03:00
Alexey Milovidov
b01d7bb5e2
Fixed wrong code #2115
2018-07-06 22:37:58 +03:00
Alexey Milovidov
43111f2ac9
Fixed error with function "has" and Nullable array argument #2115
2018-07-06 22:19:38 +03:00
Alexey Milovidov
576885c6b8
Little better [#CLICKHOUSE-2]
2018-07-06 21:35:37 +03:00
Alexey Milovidov
93f8316e1f
Little better [#CLICKHOUSE-3806]
2018-07-06 19:34:53 +03:00
Alexey Milovidov
1927ab56e1
Merge branch 'master' of github.com:yandex/ClickHouse
2018-07-06 19:22:37 +03:00
Alexey Milovidov
95915579c7
Fixed test [#CLICKHOUSE-3806]
2018-07-06 19:22:15 +03:00
alexey-milovidov
1e78445a25
Update FunctionsConversion.h
2018-07-06 18:55:26 +03:00
Nikolai Kochetov
935b7edb48
Removed enums from IDataType::isValueRepresentedByUnsignedInteger
2018-07-06 18:55:26 +03:00
Nikolai Kochetov
7592b6e34a
Fixed monotonic constraints for unsigned integer types.
2018-07-06 18:55:26 +03:00
Alex Zatelepin
f7f4f220f1
Update MergeTreeData.cpp
2018-07-06 15:14:23 +03:00
Ciprian Hacman
fd6fb023b6
Recreate format_version.txt when missing
2018-07-06 15:14:23 +03:00
Mikhail Surin
8c4f04c452
invalid values handler
2018-07-06 14:29:14 +03:00
Alexey Milovidov
7fcf609812
Miscellaneous [#CLICKHOUSE-3806]
2018-07-06 03:28:39 +03:00
Alexey Milovidov
5d52be3c7e
Merge branch 'master' of github.com:yandex/ClickHouse
2018-07-06 03:27:58 +03:00
Alexey Milovidov
21508df7c2
Fixed extremely bad code #2313
2018-07-06 03:27:47 +03:00
Alexey Milovidov
67b9a69f19
Fixed error in prev. revision [#CLICKHOUSE-3806]
2018-07-06 00:26:23 +03:00
Alexey Milovidov
88c582106b
Attempt to get rid of VirtualColumnFactory (part 2) [#CLICKHOUSE-3806]
2018-07-05 23:38:05 +03:00
Alexey Milovidov
cc2250f688
Attempt to get rid of VirtualColumnFactory (part 1) [#CLICKHOUSE-3806]
2018-07-05 22:56:51 +03:00
Alexey Milovidov
0a188389c0
Fixed error #2599
2018-07-05 21:56:33 +03:00
Alexey Milovidov
4a35b57cea
Little better #2599
2018-07-05 21:45:18 +03:00
Amos Bird
78beacb3a5
Make OPTIMIZE be able to merge all parts with FINAL.
2018-07-05 21:32:54 +03:00
Alexey Zatelepin
d5f8e4a1a5
load quorum status in merge predicate asynchronously [#CLICKHOUSE-3802]
2018-07-05 20:06:33 +03:00
Alexey Zatelepin
a41ee1f0a7
switch to ephemeral nodes for block number locks [#CLICKHOUSE-3802]
2018-07-05 20:06:33 +03:00
Alexey Zatelepin
0a46d231ed
speedup merge selection: async exists check for selected parts [#CLICKHOUSE-3802]
2018-07-05 20:06:33 +03:00
Alexey Zatelepin
116ed0a59e
add RestartingThread wakeup for faster session recovery
2018-07-05 19:30:52 +03:00
Alexey Zatelepin
fe83c8dab1
stricter validation of mutation commands #2588
2018-07-05 17:19:33 +03:00
Mikhail Surin
0418f179dc
merge review
2018-07-05 16:29:43 +03:00
Mikhail Surin
8bb17685fd
reduce memory footprint
2018-07-05 14:33:59 +03:00
Mikhail Surin
984fe8e4fd
implement n log(n) compression algorigthm
2018-07-05 12:53:42 +03:00
Mikhail Surin
b09323c547
naive implementation
2018-07-05 12:53:42 +03:00
Alexey Milovidov
c45aa180e8
Reviewing #2521
2018-07-05 02:24:36 +03:00
Alexey Milovidov
ac2d352203
Reviewing #2521
2018-07-05 01:28:15 +03:00
Alexey Milovidov
b18a0e3ec0
Reviewing #2521
2018-07-05 00:49:32 +03:00
Alexey Milovidov
efb4eab4fd
Merge branch 'CLICKHOUSE-3547' of https://github.com/ssmike/ClickHouse into ssmike-CLICKHOUSE-3547
2018-07-05 00:29:40 +03:00
Alexey Milovidov
7209d8b76f
Adaptations #2574
2018-07-05 00:09:58 +03:00
Alexey Milovidov
84fd35da41
Adaptations #2574
2018-07-05 00:00:50 +03:00
Alexey Milovidov
7bdafa6105
Merge branch 'master' of https://github.com/amosbird/ClickHouse into amosbird-master
2018-07-04 23:54:54 +03:00
Alexey Milovidov
c0373c1d45
Style; added comment #2566
2018-07-04 23:46:17 +03:00
Alexey Milovidov
47958bee7c
Merge branch 'feature-agg-func-in-summing-merge-tree' of https://github.com/kvap/ClickHouse into kvap-feature-agg-func-in-summing-merge-tree
2018-07-04 23:34:28 +03:00
Alexey Milovidov
e6c293ab60
Added setting "use_index_for_in_with_subqueries_max_values" #2571
2018-07-04 20:28:52 +03:00
Alexey Milovidov
c99e717632
Fixed bad code #2571
2018-07-04 20:28:52 +03:00
Alexey Milovidov
6afec54f7a
Addition to prev. revision #2571
2018-07-04 20:28:52 +03:00
Alexey Milovidov
e86f73e465
Fixed half of bad code #2571
2018-07-04 20:28:52 +03:00
Alexey Milovidov
083b075631
Removed useless method #2571
2018-07-04 20:28:52 +03:00
Alexey Milovidov
4b099e385b
Fixed typo #2482
2018-07-04 20:28:06 +03:00
Nikolai Kochetov
5e3c0c0238
Supported nullable for runningDifference function. #2590
2018-07-04 20:25:48 +03:00
Nikolai Kochetov
6e5e57353a
Review fixes. [#CLICKHOUSE-3694] #2156
2018-06-29 19:18:50 +03:00
Amos Bird
900b046943
Add options to enable parsing CSV with single/double quote.
2018-06-29 15:34:55 +08:00
Alexey Milovidov
e051998e1c
Renamed setting "send_logs_level" #2482
2018-06-28 23:11:14 +03:00
Alexey Milovidov
3894f094ea
Fixed setting descriptions #2482
2018-06-28 22:40:18 +03:00
alexey-milovidov
1381369638
Update Defines.h
2018-06-28 20:48:05 +03:00
alexey-milovidov
3904ba561f
Merge branch 'master' into CLICKHOUSE-2910
2018-06-28 20:47:25 +03:00
alexey-milovidov
b7ac6ac8c1
Update IAST.cpp
2018-06-28 20:25:09 +03:00
Nikolai Kochetov
782caef119
Added IAST::appendColumnName(WriteBuffer &); reimplemented IAST::getColumnName() using it.
2018-06-28 20:25:09 +03:00
Nikolai Kochetov
bd4a899dd3
Reduced the number of IAST::getColumnName() calls in ExpressionAnalyzer.
2018-06-28 20:25:09 +03:00
Nikolai Kochetov
acd6c8fafd
Supported array(tuple) arguments for arrayEnumerateUniq function. [#CLICKHOUSE-3794]
2018-06-28 20:15:12 +03:00
Nikolai Kochetov
ebde528506
Create default macros in global context. [#CLICKHOUSE-3793]
2018-06-28 17:11:09 +03:00
Mikhail Surin
c7a305eca3
fix float transform
2018-06-28 16:36:40 +03:00
Alexey Zatelepin
2447755700
BackgroundSchedulePool: remove task from delayed even it it is currently executing
...
If the task was left in the delayed_tasks set, it could lead to a nasty bug:
delayExecutionThreadFunction() would schedule the task, then it would immediately
go on a next iteration and schedule the same task again. Thus this task would be
continually executing, and other delayed tasks would have no chance to run.
2018-06-27 13:47:58 +03:00
Nikolai Kochetov
bf3327da8b
Removed nullable column from ColumnUnique. Added IColumnUnique::getNestedNotNullableColumn().
2018-06-26 20:38:32 +03:00
Nikolai Kochetov
9f591b8d02
Merged with master.
2018-06-26 17:41:29 +03:00
Nikolai Kochetov
b1eace2877
Fixed DataTypeWithDictionary deserialization.
2018-06-26 17:12:35 +03:00
Nikolai Kochetov
f191eb8ae9
Fix ColumnWithDictionary::getPremutation limit
2018-06-26 17:12:34 +03:00
Nikolai Kochetov
9e9b33ebe5
Fix deserialization indexes for additional keys in DataTypeWithDictionary.
2018-06-26 17:12:30 +03:00
Nikolai Kochetov
f56d16769b
Added pre and post serialization for IDataType BinaryBulkWithMultipleStreams. Supported dictionary serialization format with single global dictionary (limited wit max_dictionary_size) and additional keys which are stored per granule. Changed IDataType::enumerateStream interface. Added (de)serialization params for binary bulk with multiple stream (de)serialization. Changed IColumn::index interface.
2018-06-26 17:12:21 +03:00
Nikolai Kochetov
58cbcbd5c3
Supported DataTypeWithDictionary in CAST function.
2018-06-26 17:12:21 +03:00
Nikolai Kochetov
df71a25b4f
Removed function makeDictionary, added functions makeDictionaryUInt{8,16,32,64}
2018-06-26 17:12:21 +03:00
Nikolai Kochetov
12bf5ef565
Added IColumn::convertToFullColumnIfWithDictionary; supported FilterDescription for ColumnWithDictionary
2018-06-26 17:12:15 +03:00
Constantin S. Pan
cc4c4e0b49
Make the test more comprehensive and fix bugs in AggregateFunction implementation of SummingMergeTree
2018-06-26 11:28:42 +01:00
Nikolai Kochetov
bd7c72de5c
Spelling.
2018-06-25 16:08:35 +03:00
Nikolai Kochetov
60f0ed9296
Added processing stage check for StorageMerge. [#CLICKHOUSE-3694] #2156
2018-06-25 15:47:51 +03:00
Nikolai Kochetov
4f7c284d34
Fixed build.
2018-06-25 15:47:45 +03:00
Nikolai Kochetov
ba4cf6faf0
Merged with master.
2018-06-25 15:08:21 +03:00
Nikolai Kochetov
91c9906c88
Fixed reading from ReplacingMergeTree from emprty row set after prewhere. #2525
2018-06-25 13:48:11 +03:00
Mikhail Surin
0188538b33
fix review
2018-06-22 21:30:13 +03:00
Mikhail Surin
7ee530a97d
implement n log(n) compression algorigthm
2018-06-22 21:30:13 +03:00
Mikhail Surin
511e608080
use arena
2018-06-22 21:30:13 +03:00
Mikhail Surin
2f300e9df9
change bins schema
2018-06-22 21:30:13 +03:00
Mikhail Surin
3373909cbd
naive implementation
2018-06-22 21:30:09 +03:00
Alexey Zatelepin
7ce74d1730
ZooKeeper client: before the fix we waited 2x longer than necessary before the timeout
2018-06-22 18:30:29 +03:00
Alexey Zatelepin
971fddb299
add comments [#CLICKHOUSE-3747]
2018-06-22 13:43:35 +03:00
zhang2014
f4e72792a5
ISSUES-2553 add offset parameter to numbers
2018-06-22 12:55:36 +03:00
Alexey Zatelepin
e78dc8142c
factor out common code [#CLICKHOUSE-3747]
2018-06-21 22:47:44 +03:00
Alexey Zatelepin
a6c61848f1
mutations finalizing task [#CLICKHOUSE-3747]
2018-06-21 22:47:44 +03:00
Alexey Zatelepin
2fb3d42dfd
temporary fix for a bug when several mutations have the same predicate [#CLICKHOUSE-3747]
2018-06-21 22:47:44 +03:00
Alexey Zatelepin
36982b967d
use single mutex in ReplicatedMergeTreeQueue for simplicity
2018-06-21 22:47:44 +03:00
Alexey Zatelepin
b2cdfcbaca
calculate and update parts_to_do for mutations [#CLICKHOUSE-3747]
2018-06-21 22:47:44 +03:00
proller
a31adcfdea
Allow use unbundled cpuid ( #2543 )
...
* Wait test server startup for 5s
* clean
* Allow use system libcpuid
* cpuid: move include/cpuid/ -> include/libcpuid/
* fix
2018-06-21 20:35:03 +03:00
proller
e1ae5233df
Add // Y_IGNORE tags
2018-06-21 18:24:36 +03:00
Constantin S. Pan
e94570d206
Add support for AggregateFunction in SummingMergeTree
2018-06-21 16:10:32 +01:00
Nikolai Kochetov
96df20f6b5
Fixed ColumnUnique::compareAt implementation; deprecated several metods for IColumnUnique
2018-06-21 16:29:09 +03:00
Nikolai Kochetov
f88584d748
Added DeserializeBinaryBulkState which stores reading state for ColumnWithDictionary.
2018-06-21 16:28:53 +03:00
Vitaliy Lyudvichenko
1a4157f2a9
clickhouse_common_io does not depend on dbms. [#CLICKHOUSE-2910]
...
Get rid of extra linking dependencies for clickhouse_common_io. [#CLICKHOUSE-2910]
2018-06-21 15:13:56 +03:00
Vitaliy Lyudvichenko
358e4ae9bf
Fixed failures in utils, more precise test. [#CLICKHOUSE-2910]
2018-06-20 18:41:15 +03:00
Vitaliy Lyudvichenko
310bb4116e
Merge remote-tracking branch 'origin/master' into CLICKHOUSE-2910
2018-06-19 23:33:11 +03:00
Vitaliy Lyudvichenko
e13ba09004
Rewritten ThreadStatus via adding shared thread state. [#CLICKHOUSE-2910]
...
Fixed race condition in SystemLog.
2018-06-19 23:30:35 +03:00
proller
fbe7df73a2
CLICKHOUSE-3762 Build fixes ( #2488 )
...
CONTRIB-254
2018-06-19 21:09:09 +03:00
Vitaliy Lyudvichenko
8dc1bebf00
Add logs forwarding from remote severs to client. [#CLICKHOUSE-2910]
2018-06-18 19:30:26 +03:00
Vitaliy Lyudvichenko
e031b5360a
Minor enhancement. [#CLICKHOUSE-2910]
2018-06-18 16:50:20 +03:00
Vitaliy Lyudvichenko
392f6e0c6c
Print query_id in logs. Add own logging interface. [#CLICKHOUSE-2910]
2018-06-18 16:41:13 +03:00
Alexey Milovidov
187d93ea82
Addition to prev. revision #2520
2018-06-18 05:17:00 +03:00
Alexey Milovidov
4871fb3626
Addition to prev. revision #2520
2018-06-18 05:16:00 +03:00
Alexey Milovidov
447ffe32a9
Addition to prev. revision #2520
2018-06-18 05:15:19 +03:00
Alexey Milovidov
ea01f6a3ff
Addition to prev. revision #2520
2018-06-18 05:12:19 +03:00
Alexey Milovidov
82102c6896
Fixed conflicting headers on Fedora Rawhide while using Linux native AIO #2520
2018-06-18 04:33:34 +03:00
Alexey Milovidov
6173e4b71f
Returned back "explicit" #2501
2018-06-16 09:00:51 +03:00
Alexey Milovidov
2298f1c68b
Fixed strange code #2501
2018-06-16 08:54:06 +03:00
Alexey Milovidov
b108882e2e
Merge branch 'master' of https://github.com/alesapin/ClickHouse into alesapin-master
2018-06-16 08:29:00 +03:00
Alexey Milovidov
05d31f5e46
LZ4_decompress_faster: reordered variants and removed variant that is always worse [#CLICKHOUSE-3773]
2018-06-16 07:48:37 +03:00
Alexey Milovidov
e4776e8b5d
Fixed build (no include path was specified) #2513
2018-06-16 05:31:41 +03:00
Alexey Milovidov
4e8082a699
Fixed build [#CLICKHOUSE-2]
2018-06-16 05:16:19 +03:00