Commit Graph

2882 Commits

Author SHA1 Message Date
zhang2014
3af26ca070 ISSUES-3885 better test & fix isStateful bug 2019-01-30 12:49:00 +08:00
zhang2014
ddbd384f32 ISSUES-3885 mark stateful function & do not optimize their predicate 2019-01-30 12:04:28 +08:00
zhang2014
7dd897f2e6 ISSUES-3885 temporarily disable predicate optimization for order by 2019-01-30 08:03:10 +08:00
alexey-milovidov
fd5ab9ed2e
Merge pull request #4055 from yandex/fix-group-by-array-low-cardibality-arguments
Fix group by array low cardinality arguments
2019-01-29 21:32:45 +03:00
Nikolai Kochetov
21242ad658 Added tests. Restored recursiveRemoveLowCardinality interface. 2019-01-29 18:44:02 +03:00
chertus
294f68c4ee fix wrong test result 2019-01-29 15:54:46 +03:00
chertus
9c6f71bb7e fix inner and left join with duplicates [issue-4108] 2019-01-29 15:38:53 +03:00
Alexey Milovidov
c792191831 Fixed possible overflow in function "sleep" (found by fuzz test with UBSan) #4166 2019-01-29 13:42:45 +03:00
Masha
39f1d9756e fixed name Logistic 2019-01-28 11:54:55 +00:00
Masha
243a68d500 tests for momentum and logreg 2019-01-28 10:51:33 +00:00
alexey-milovidov
032ed27c27
Merge pull request #4154 from 4ertus2/joins
Add IdentifierSemantic and PredicateExpressionsOptimizer refactoring
2019-01-28 01:47:57 +03:00
alexey-milovidov
4b8cf83de7
Merge pull request #4151 from ercolanelli-leo/fix/sumMap-overflow
Fix/sum map overflow
2019-01-27 21:11:51 +03:00
alexey-milovidov
ba8fcfd32b
Merge pull request #4158 from vitlibar/add-support-for-absolute-format-schema-paths
Add support for absolute format schema paths.
2019-01-27 21:07:00 +03:00
Vitaly Baranov
e9721c9548 Add support for absolute format schema paths. 2019-01-27 12:15:32 +03:00
alexey-milovidov
9557b33e83
Update 00832_storage_file_lock.sql 2019-01-27 03:43:16 +03:00
Alexey Milovidov
de56cc7a8e Added a test #2150 2019-01-27 03:40:54 +03:00
alexander kozhikhov
57cd47a194 LinearModelData completed 2019-01-26 15:38:42 +03:00
Léo Ercolanelli
f680176ade sumMapWithOverflow: add test 2019-01-25 20:54:46 +01:00
alexey-milovidov
8124ee50e8
Merge pull request #4153 from amosbird/joingetfix
Better joinGet.
2019-01-25 20:47:53 +03:00
alexey-milovidov
c07dbee50d
Merge pull request #4148 from vitlibar/master
Use more IO/WriteHelpers.h functions in the class ProtobufSimpleWriter, rename variant=>varint.
2019-01-25 19:22:31 +03:00
chertus
091efcda95 add IdentifierSemantic and PredicateExpressionsOptimizer refactoring 2019-01-25 18:42:24 +03:00
Amos Bird
d8eba7e71b Better joinGet. 2019-01-25 23:38:13 +08:00
Vitaly Baranov
ed1136e49e Use more IO/WriteHelpers.h functions in the class ProtobufSimpleWriter,
rename variant=>varint.
2019-01-25 17:15:44 +03:00
Léo Ercolanelli
0d6094a3ea sumMap: return types less prone to oveflows
It used to be that sumMap would return the same type as the values
columns. If columns of Array(UInt8) were to be given, that would really
easily cause oveflow. It now uses `getWidenDataType` (and ultimately
`NearestFieldType`) in order to define the result type.
2019-01-25 14:29:45 +01:00
chertus
02f236e457 one more test 2019-01-25 16:15:29 +03:00
alexey-milovidov
20970154d8
Merge pull request #4141 from 4ertus2/ast
JOIN with USING: do not duplicate columns
2019-01-25 03:22:43 +03:00
alexey-milovidov
2626a2614c
Merge pull request #4145 from yandex/fix-fuzz-test-in-ubsan-quantile-weighted
Fix fuzz test in ubsan: added parameter type check for quantile*Weighted.
2019-01-25 02:45:07 +03:00
alexey-milovidov
f96b8e4ed6
Merge pull request #4005 from vitlibar/add-protobuf-output-format
Add protobuf output format
2019-01-24 22:05:23 +03:00
chertus
1e04ef16a0 one more test fix 2019-01-24 21:55:18 +03:00
Alexey Milovidov
2d490acc3e Added test 2019-01-24 21:36:45 +03:00
chertus
8a11f753be fix test results 2019-01-24 21:34:31 +03:00
alexey-milovidov
fbefc99fb1
Merge pull request #4129 from ercolanelli-leo/sumMapFiltered
implement sumMapFiltered
2019-01-24 21:27:03 +03:00
Alexey Milovidov
0e59fe0b46 Renamed setting and variables #3973 2019-01-24 20:12:05 +03:00
alexey-milovidov
d79ed9fde6
Update 00502_sum_map.reference 2019-01-24 19:34:27 +03:00
Vitaly Baranov
2e383bfdeb Added tests for writing protobufs. 2019-01-24 17:54:57 +03:00
chertus
cbbf04204b JOIN with USING: do not duplicate columns 2019-01-24 17:22:58 +03:00
Léo Ercolanelli
e64dc4798e sumMapFiltered: fix test output 2019-01-24 14:54:29 +01:00
alexey-milovidov
f13d094a4e
Merge pull request #3973 from amosbird/join_overwrite
Add join_overwrite settings for StorageJoin.
2019-01-24 02:05:13 +03:00
alexander kozhikhov
b229498203 mini-batches 2019-01-23 21:03:26 +03:00
Léo Ercolanelli
8ad1a55f3b implement sumMapFiltered 2019-01-23 15:23:04 +01:00
alexander kozhikhov
ffd0d9af26 Merge branch 'alexkoja_ML' 2019-01-23 00:31:53 +03:00
alexander kozhikhov
61bb3b8ade simple linear regression 2019-01-23 00:07:05 +03:00
maiha
6c83beafdd dbms: Fixed misspells in comments 2019-01-23 04:56:53 +09:00
chertus
97199b9712 fix ArrayJoin columns calculation 2019-01-22 20:36:08 +03:00
chertus
1d0bee7dee fix collecting required columns in lambda 2019-01-21 22:56:11 +03:00
alesapin
34fb1c89f1 Add ability to choose codecs for storage log and tiny log 2019-01-21 17:00:06 +03:00
Alexey Milovidov
05e713e724 Fixed test #3960 2019-01-20 03:10:49 +03:00
Alexey Milovidov
2752cf7eaf Added a test #4097 2019-01-19 01:15:58 +03:00
alexey-milovidov
908015aa4b
Merge pull request #4088 from proller/fix14
CLICKHOUSE-4257 remoteSecure
2019-01-18 00:48:55 +03:00
proller
f2bbac6523 CLICKHOUSE-4257 remoteSecure 2019-01-17 20:55:44 +03:00
Alexey Milovidov
7a4c46b38f Reading the test #4063 2019-01-17 18:30:44 +03:00
Alexey Milovidov
303c3cc043 Merge branch 'master' of https://github.com/Miniwoffer/ClickHouse into Miniwoffer-master 2019-01-17 18:04:06 +03:00
alexey-milovidov
af32828d9a
Update 00823_capnproto_input.sh 2019-01-17 18:02:49 +03:00
alexey-milovidov
0ec1fdef04
Merge pull request #3960 from yandex/zk-columns-compact-storage
Compact storage of the part header in ZooKeeper
2019-01-17 17:05:01 +03:00
Odin Hultgren Van Der Horst
da4f4c882f Added test for capnproto 2019-01-17 10:40:18 +01:00
alexey-milovidov
2cbd1263a9
Merge pull request #4053 from danlark1/master
MultiVolnitsky added with tests and some benchmark, many multiFunctions are added to support multistring search
2019-01-16 22:24:57 +03:00
Alexey Milovidov
fc2a0cdfb1 Added a test #4004 2019-01-16 22:24:21 +03:00
Alexey Zatelepin
0f8e5f8522 Merge branch 'master' into zk-columns-compact-storage
Conflicts:
	dbms/src/Storages/StorageReplicatedMergeTree.cpp
2019-01-16 17:45:16 +03:00
Danila Kutenin
1badabdcd0 Merge branch 'master' of https://github.com/yandex/ClickHouse 2019-01-16 17:06:38 +03:00
Alexey Milovidov
368b5f965e Fixed bad test #3837 2019-01-16 03:20:44 +03:00
Alexey Milovidov
36f679f59a Removed test case that reproduces a bug 2019-01-16 03:19:47 +03:00
alesapin
cb42608fab Add data comparison 2019-01-15 19:34:43 +03:00
alesapin
8d2f0e0cda Add compression ratio tests for Float64, UInt64 and String 2019-01-15 19:20:33 +03:00
alesapin
361d26c643 Use information about type in Delta codec to choose correct delta size if possible 2019-01-15 17:20:34 +03:00
alesapin
37c78aa3d2 Merge branch 'master' of github.com:yandex/ClickHouse into compression_codec_delta 2019-01-15 16:24:49 +03:00
Danila Kutenin
43965c1703 Merge branch 'master' of https://github.com/yandex/ClickHouse 2019-01-15 16:19:15 +03:00
alesapin
48847441f1 Add spaces in codecs description 2019-01-15 14:06:00 +03:00
alesapin
84e3dbc2eb Add test codec don't changes 2019-01-14 19:00:56 +03:00
Danila Kutenin
a5669b6b7a MultiVolnitsky added with tests and some benchmark, many multiFunctions are added to support multistring search 2019-01-14 18:54:47 +03:00
alesapin
24b7214611 Even more tests 2019-01-14 18:53:10 +03:00
alesapin
43436aaf9d More strict tests 2019-01-14 18:34:06 +03:00
zhang2014
cdb138f13c merge 2019-01-14 18:14:34 +03:00
alesapin
c8257f6d0b Add compression codec delta and fix naming for parametric codecs 2019-01-14 14:54:40 +03:00
alexey-milovidov
ca7c3c0bfd
Merge pull request #4012 from yandex/fix-low-cardinality-numeric-distinct
Distinct by single LowCardinality numeric column.
2019-01-09 19:28:42 +03:00
alexey-milovidov
715abd0e0a
Merge pull request #4011 from yandex/fix-empty-low-cardinality-array
LowCardinality empty array serialization.
2019-01-09 18:22:05 +03:00
Nikolai Kochetov
5ab362a303 Fix distinct by single LowCardinality numeric column. 2019-01-09 17:47:51 +03:00
Nikolai Kochetov
cea23a1486 Fix LowCardinality empty array serialization. #3907 2019-01-09 15:16:03 +03:00
alexey-milovidov
0648088ff0
Merge pull request #4000 from housepower/feature/gccHash
Add gccHash function
2019-01-09 10:29:37 +03:00
sundy-li
31a516300a rename to gccMurmurHash 2019-01-09 10:03:50 +08:00
Alexey Milovidov
224e688e9c Added test for #3920 2019-01-08 18:27:58 +03:00
sundy-li
e6c02a2356 Add gccHash function 2019-01-08 13:12:52 +08:00
Amos Bird
8ea4d7987b Add join_overwrite settings for StorageJoin.
This makes using StorageJoin as dictionary more flexible.
2019-01-07 01:23:26 +08:00
zhang2014
a445514b61 ISSUES-3710 fix alias is missing when distributed & join on 2019-01-03 15:33:03 +08:00
Alexey Milovidov
67932a9562 Added a test [#CLICKHOUSE-3625] 2018-12-30 06:19:50 +03:00
Alexey Milovidov
f3dbfec808 Added a test #3286 2018-12-30 06:14:16 +03:00
Alexey Zatelepin
c0d6b84a91 add test for minimalistic part header [#CLICKHOUSE-4024] 2018-12-29 17:11:17 +03:00
Alexey Milovidov
d5b00298eb Revert "Added a test by Denis Zhuravlev #2170"
This reverts commit cb63179951.
2018-12-28 23:35:05 +03:00
Alexey Milovidov
cb63179951 Added a test by Denis Zhuravlev #2170 2018-12-28 23:34:01 +03:00
Alexey Milovidov
de10df4b12 Added a test just in case [#CLICKHOUSE-3995] 2018-12-28 21:37:23 +03:00
chertus
bae0370954 fix crash in JoinToSubqueryTransformVisitor (wrong casts) 2018-12-28 18:38:58 +03:00
alexey-milovidov
d16447c3f4
Merge pull request #3899 from yandex/custom_compression_codecs
Custom compression codecs
2018-12-28 08:29:09 +03:00
alexey-milovidov
5ff30f4512
Merge pull request #3946 from 4ertus2/joins
Multiple join emulation (very experimental - developers only)
2018-12-28 03:06:01 +03:00
Alexey Milovidov
ab85175e7f Merge branch 'master' of github.com:yandex/ClickHouse into ubsan-fixes-4 2018-12-28 00:23:13 +03:00
Alexey Milovidov
dae73f4d32 Fixed tests that was depend on timezone #3948 2018-12-27 23:44:07 +03:00
alexey-milovidov
0c6e6649b5
Merge pull request #3940 from 4ertus2/minor
Automatically  disable logs in negative tests CLICKHOUSE-4228
2018-12-27 22:53:28 +03:00
Alexey Milovidov
01db559a70 Fixed test in non-local timezone [#CLICKHOUSE-2] 2018-12-27 22:39:14 +03:00
chertus
e8245f5935 basic support for multiple_joins_emulation CLICKHOUSE-3996 2018-12-27 19:12:42 +03:00
Alexey Milovidov
b94bfa5785 Fixed test #3926 2018-12-27 18:39:41 +03:00
chertus
22bb17250f autodisable logs in negative tests CLICKHOUSE-4228 2018-12-27 16:09:11 +03:00
Alexey Milovidov
d2b7a847c7 Allow tests to execute in random order #3926 2018-12-27 04:09:27 +03:00
Alexey Milovidov
1c0659ac2f Fixed test #3926 2018-12-27 03:55:05 +03:00
alesapin
8f82d5a687 Merge branch 'master' into custom_compression_codecs 2018-12-26 10:43:33 +03:00
Alexey Milovidov
4104a0610e Added a test #3569 2018-12-26 03:18:11 +03:00
Alexey Milovidov
3502859803 Merge branch 'master' of github.com:yandex/ClickHouse into int-monotonicity-cleanups 2018-12-25 17:28:41 +03:00
alesapin
8abcdc70f1 More tabs in desc table tests 2018-12-25 15:56:11 +03:00
alesapin
6e8ed0c942 Merge branch 'master' into custom_compression_codecs 2018-12-25 14:34:19 +03:00
alesapin
1228645a79 Fix segfault and add tabs to ton of tests (desc table) 2018-12-25 14:33:54 +03:00
alesapin
4309775fc8 Add coments and fix compression for nested types 2018-12-25 13:04:38 +03:00
Alexey Milovidov
41e3bf5518 Added more formats to "parseDateTimeBestEffort" function [#CLICKHOUSE-2] 2018-12-24 21:31:43 +03:00
Alexey Milovidov
66a0c1691d Added more formats to "parseDateTimeBestEffort" function [#CLICKHOUSE-2] 2018-12-24 21:28:41 +03:00
Alexey Milovidov
f36c9a1747 Fixed test #3921 2018-12-24 18:56:38 +03:00
alesapin
22b9969f05 Merge branch 'master' into custom_compression_codecs 2018-12-24 18:53:31 +03:00
alesapin
f991232fe3 Add custom network compression settings to test 2018-12-24 18:52:12 +03:00
alesapin
36fb2d16cd Add test with non default config 2018-12-24 18:50:02 +03:00
Alexey Milovidov
b624add2e7 Rewrite code to calculate integer conversion function monotonicity; fixed test #3870 2018-12-24 18:46:55 +03:00
alesapin
29ad7f9fb1 Remove redundant changes and shift error codes 2018-12-24 16:19:24 +03:00
alexey-milovidov
add2c0a6fc
Merge branch 'master' into int-round-overflow 2018-12-24 15:50:13 +03:00
Alexey Milovidov
1dffa56073 Fixed test #3913 2018-12-24 15:47:24 +03:00
alesapin
1e771a4aec Fix error codes 2018-12-24 14:34:50 +03:00
Alexey Milovidov
8c00157bc8 Merge branch 'master' into fix-buffer-overflow-in-add-days 2018-12-24 02:18:16 +03:00
Alexey Milovidov
80f155cfda Fixed overflow in rounding functions with integer argument and large negative scale [#CLICKHOUSE-2] 2018-12-24 02:12:30 +03:00
Alexey Milovidov
aca29588c7 Added test for already fixed bug [#CLICKHOUSE-2] 2018-12-24 01:39:49 +03:00
Alexey Milovidov
7678db6e9d Added a test for already fixed bug [#CLICKHOUSE-2] 2018-12-24 01:22:55 +03:00
Alexey Milovidov
c828afd3db Added a test for already fixed bug [#CLICKHOUSE-2] 2018-12-24 01:20:44 +03:00
Alexey Milovidov
5ccf9e1d54 Updated test #3913 2018-12-24 01:16:04 +03:00
Alexey Milovidov
f09da489f7 Added test #3913 2018-12-24 01:10:48 +03:00
alexey-milovidov
a03c28d0e6
Merge pull request #3909 from yandex/fix-use-after-free-in-array-enumerate
Fix use after free in arrayEnumerateUniq and -Dense function.
2018-12-23 06:11:43 +03:00
alexey-milovidov
b658ea452e
Merge pull request #3900 from infovista/add_column_if_not_exists
Support for IF NOT EXISTS in ALTER TABLE ADD COLUMN
2018-12-23 05:37:39 +03:00
Alexey Milovidov
4468462ca6 Fixed test #3909 2018-12-23 04:48:09 +03:00
Alexey Milovidov
fac239147d Added test #3909 2018-12-22 19:19:16 +03:00
alexey-milovidov
536c41102c
Merge branch 'master' into xxhash 2018-12-21 21:59:51 +03:00
mf5137
3757007118 Adding xxHash64 and xxHash32 functions 2018-12-21 18:53:16 +01:00
Boris Granveaud
d776d1164a support for IF EXISTS/IF NOT EXISTS in ALTER TABLE ADD/DROP/CLEAR/MODIFY/COMMENT COLUMN 2018-12-21 15:53:00 +01:00
alesapin
42b9735760 Add LZ4HC 2018-12-21 17:03:53 +03:00
alesapin
5b23210062 Merge branch 'master' into custom_compression_codecs 2018-12-21 11:57:21 +03:00
alexey-milovidov
52efaf6bb7
Merge pull request #3870 from zhang2014/fix/string_monotonicity
Fixed convert function monotonic failure when string data type
2018-12-20 23:55:58 +03:00
alexey-milovidov
b1602a5e62
Merge pull request #3887 from yandex/remove-alter-primary-key
Remove ALTER MODIFY PRIMARY KEY command
2018-12-20 22:21:08 +03:00
Alexey Milovidov
b6ebe2df19 Added missing test #3826 2018-12-20 22:13:12 +03:00
Alexey Zatelepin
b7afe46dfd remove ALTER MODIFY PRIMARY KEY command [#CLICKHOUSE-4214] 2018-12-20 21:57:20 +03:00
alexey-milovidov
f85857d8ff
Merge pull request #3826 from yandex/missing-sql-compatibility-functions
Additional functions for SQL compatibility
2018-12-20 20:51:05 +03:00
Alexey Milovidov
b7b418a6f5 Renamed setting #3851 2018-12-20 20:48:11 +03:00
alexey-milovidov
3cefb27e56
Merge pull request #3851 from abyss7/issue-3592
Refactor constant folding
2018-12-20 19:26:02 +03:00
Alexey Milovidov
731d76821d Merging abandoned pull request with "boundingRatio" function #3139 2018-12-20 18:14:32 +03:00
Alexey Milovidov
113ff56384 Merge branch 'master' into twosixlabs-add_rate_function 2018-12-20 17:19:06 +03:00
zhang2014
263de501f5 add test & use isRepresentedByNumber 2018-12-20 22:08:17 +08:00
Alexey Milovidov
7c5cff2dd4 Renamed test #3350 2018-12-20 16:23:49 +03:00
alesapin
0ae14be8d2 Fix codes 2018-12-20 13:44:20 +03:00
Ivan Blinkov
f63aa0eb3b Support MySQL-style syntax for DATE_ADD and similar functions 2018-12-20 11:22:24 +03:00
zhang2014
dc61a73a6e Fixed convert function monotonic failure when string data type 2018-12-20 10:04:30 +08:00
alesapin
512fe3c854 Refactoring (sanitizer failure) 2018-12-19 20:20:18 +03:00
Alexey Milovidov
2f9ead4548 Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-19 19:18:56 +03:00
Alexey Milovidov
92499c725d Fixed test #3811 2018-12-19 18:27:57 +03:00
Ivan Lezhankin
4c3af43ed3 Add test. 2018-12-19 17:36:55 +03:00
Ivan Lezhankin
b9440fe99d Another minor refactoring. 2018-12-19 15:38:13 +03:00
Ivan Blinkov
0352c5a57c Introduce DATE_ADD/DATE_SUB/TIMESTAMP_ADD/TIMESTAMP_SUB #3705 2018-12-19 14:37:14 +03:00
Ivan Blinkov
f88b497555 Introduce common parser for interval kind names and use it for DATE_DIFF, EXTRACT and INTERVAL (allows to use same set of aliases in them) 2018-12-19 13:27:07 +03:00
Alexey Milovidov
36836faf62 Full support for Decimal #3721 2018-12-19 05:43:09 +03:00
Alexey Milovidov
9c23556cb0 Basic implementation for Decimal #3721 2018-12-19 05:11:31 +03:00
Alexey Milovidov
4a6c25e65d Merging #3721; Added a test 2018-12-19 04:30:32 +03:00
alexey-milovidov
92bb4471df
Merge pull request #3865 from abyss7/issue-3590
ISSUE-3590: Forbid using aggregate functions inside scalar subqueries
2018-12-19 03:19:45 +03:00
Alexey Milovidov
6a779661c8 Merge branch 'java-hash' of https://github.com/shangshujie365/ClickHouse into shangshujie365-java-hash 2018-12-18 23:04:32 +03:00
Ivan Lezhankin
617082f444 ISSUE-3590: Forbid using aggregate functions inside scalar subqueries 2018-12-18 21:43:06 +03:00
Ivan Blinkov
a378b919af Add a bunch of aliases to DATE_DIFF interval names 2018-12-18 18:28:13 +03:00
alesapin
9b0d47c0c3 Add zstd params validation 2018-12-18 18:00:51 +03:00
alesapin
bc0e0c220e Add level test 2018-12-18 17:43:15 +03:00
alesapin
314fbbd71f Remove some debug output 2018-12-18 17:41:58 +03:00
Ivan Blinkov
5abfcfcd48 Support proper syntax for dateDiff 2018-12-18 17:40:30 +03:00
alesapin
3d0da644f1 one more test 2018-12-18 17:37:55 +03:00
alesapin
60456eb742 More tests on compression codecs 2018-12-18 17:34:18 +03:00
Ivan Blinkov
362948e891 Introduce quarter interval kind as 3 months (in preparation for #3705) 2018-12-18 16:16:48 +03:00
alesapin
6fe01af829 Merge branch 'master' into custom_compression_codecs 2018-12-18 14:06:11 +03:00
Ivan Blinkov
93d4303922 minor trim test improvements 2018-12-17 23:20:25 +03:00
Ivan Lezhankin
1a539b3a6d Merge remote-tracking branch 'upstream/master' into issue-3592 2018-12-17 19:30:20 +03:00
Ivan Lezhankin
6df757c6f7 Refactor constant folding and make it reusable for primary_key_expr 2018-12-17 17:59:01 +03:00
alesapin
36a6121f75 Merge branch 'master' into custom_compression_codecs 2018-12-17 12:56:21 +03:00
alesapin
436845ff7e Debuging codec multiple 2018-12-17 11:31:59 +03:00
Samuel Chou
c465bd8d2b Fix rollup_with_having test 2018-12-16 23:55:04 -08:00
Samuel Chou
fcde47b45e Ensure ROLLUP and CUBE respect HAVING (no change to TOTALS) 2018-12-14 22:27:40 -08:00
Alexey Milovidov
af31ff24b9 Better code; added a test #3835 2018-12-14 23:21:47 +03:00
alexey-milovidov
3a2c85a06c
Merge pull request #3717 from amosbird/arrayjoin
Support unaligned array join.
2018-12-14 21:12:24 +03:00
alesapin
8a95eb9dc1 More tests for parser 2018-12-14 16:27:35 +03:00
Ivan Blinkov
9dca1e3ca2 Test for left/right with cut size larger than input 2018-12-14 14:45:45 +03:00
alesapin
cc229ac9cc Remove strange test 2018-12-14 14:32:23 +03:00
alesapin
29e2bbaa94 Merge remote-tracking branch 'origin' into custom_compression_codecs 2018-12-14 11:24:23 +03:00
alesapin
d7bc4ae115 Seems like first simpliest working code 2018-12-13 19:21:08 +03:00
alesapin
a492d0f6bf Seems like working parser 2018-12-13 18:26:28 +03:00
Ivan Blinkov
180311b42b Introduce regexpQuoteMeta function to properly handle regexp special chars in TRIM #3714 2018-12-13 15:58:00 +03:00
Ivan Blinkov
034265f044 Introduce TRIM/LTRIM/RTRIM functions #3714 2018-12-13 14:50:37 +03:00
alexey-milovidov
7898caed19
Merge pull request #3800 from edonin/master
Better management of DateTime partitionning #3786
2018-12-13 14:05:19 +03:00
Ivan Blinkov
3209ac84d0 Rewrite LEFT and RIGHT functions to corresponding SUBSTRING calls #3712 2018-12-13 12:34:12 +03:00
Emmanuel Donin de Rosière
61adf58ac3 Better management of DateTime partitionning yandex#3786
issue with reference file for test
it is due to partition naming that seems to have changed recently.
2018-12-13 07:08:56 +01:00
zhang2014
6d0c4eaf89 ISSUES-838 add lz4、none、zstd codec 2018-12-13 12:10:34 +08:00
Emmanuel Donin de Rosière
87791a2484 Better management of DateTime partitionning yandex#3786
Stills issue on tests reference
2018-12-12 21:36:13 +01:00
alexey-milovidov
611437c4e3
Update 00802_daylight_saving_time_shift_backwards_at_midnight.sql 2018-12-12 22:04:24 +03:00
Emmanuel Donin de Rosière
ed57179f17 Better management of DateTime partitionning yandex#3786
issue with reference file for tests
2018-12-12 19:18:21 +01:00
Emmanuel Donin de Rosière
6cf4bdedf9 Better management of DateTime partitionning yandex#3786
Adding test queries
2018-12-12 17:36:54 +01:00
Amos Bird
86f462acff Support unaligned array join
For left ARRAY JOIN, expand to the greatest size. If all sizes are zero,
resize to one which is the same as the old behavior, i.e. emptyArrayToSingle

For non-left ARRAY JOIN, expand to the greatest size but keep empty if all sizes are zero.
2018-12-12 22:08:28 +08:00
Alexey Milovidov
d02d79118c Added comment #3819 2018-12-12 16:32:14 +03:00
Alexey Milovidov
b250a95c48 Added test #3220 2018-12-12 16:29:58 +03:00
shangshujie
5de9577ecd add test function 2018-12-11 18:29:59 +08:00
alexey-milovidov
7af621f6f7
Merge pull request #3728 from amosbird/join
Versatile StorageJoin
2018-12-10 23:16:53 +03:00
alexey-milovidov
a083e6bc64
Merge pull request #3799 from yandex/low-cardinality-join
Low cardinality join
2018-12-10 21:46:42 +03:00
Alexey Milovidov
22aa593d6b Fixed global variable buffer read overflow [#CLICKHOUSE-4191] 2018-12-10 21:19:37 +03:00
Alexey Milovidov
aec8c149dc Fixed test [#CLICKHOUSE-4191] 2018-12-10 18:59:56 +03:00
alexey-milovidov
5152e2b8fa
Merge pull request #2658 from yandex/issue-3578
CLICKHOUSE-3578 apply column defaults for semistructured input formats
2018-12-10 18:56:22 +03:00
Ivan Blinkov
6a90abc543 Support SUBSTRING(expr FROM start FOR length) 2018-12-10 15:54:02 +03:00
Nikolai Kochetov
723932930d Added test with low cardinality join. 2018-12-10 14:21:29 +03:00
alexey-milovidov
0fdb3b9628
Merge branch 'master' into issue-3578 2018-12-07 23:53:34 +03:00
Alexey Milovidov
ab8ac40682 Fixed test (added normal case that was missed) [#CLICKHOUSE-2] 2018-12-07 23:13:44 +03:00
alexey-milovidov
68b5f02b10
Merge pull request #3683 from nicelulu/update_23
Compatible with LowCardinality type data write
2018-12-07 07:17:07 +03:00
alexey-milovidov
d6915bf61d
Merge pull request #3762 from yandex/fix-something-with-columns-alias-and-prewhere
Fix source columns list for prewhere alias actions.
2018-12-07 07:09:14 +03:00
alexey-milovidov
990c7dea03
Merge pull request #3772 from yandex/mutations-default-database
Add the default database to tables in a mutation query
2018-12-07 07:06:20 +03:00
Alexey Zatelepin
df76b1c23a add examples that require rewrite of SELECT expr list to test [#CLICKHOUSE-3145] 2018-12-06 21:55:28 +03:00
Alexey Zatelepin
8d2cf2dbd1 add failing test #3597 2018-12-06 21:54:33 +03:00
Ivan Blinkov
21c76a3d63 Make if function name case-insensive #3704 2018-12-06 17:40:32 +03:00
Ivan Blinkov
afcd6f9f09 Make substring function name case-insensitive + add two aliases #3704 2018-12-06 17:30:10 +03:00
Ivan Blinkov
ed04453122 Add locate -> position alias #3713 2018-12-06 16:36:23 +03:00
Ivan Blinkov
4ebbe3502d Add replace -> replaceAll alias #3713 2018-12-06 16:23:45 +03:00
Ivan Blinkov
e110d0789f Add lcase/ucase + make lower/upper case-insensitive #3715 2018-12-05 19:59:35 +03:00
Nikolai Kochetov
c72152d7fc Added test. 2018-12-05 19:41:19 +03:00
Ivan Lezhankin
887e1089f1 Merge branch 'master' into kanterov_skip_unused_shards 2018-12-05 18:17:04 +03:00
chertus
3db00b7b98 Merge branch 'master' into issue-3578 2018-12-05 14:43:14 +03:00
root
6da945b2a7 fix integration test_insert_into_distributed allow_experimental_low_cardinality_type 2018-12-04 15:11:39 +08:00
root
192092c2bd fix test 00800_low_cardinality_distributed_insert.sql cluster 2018-12-04 11:21:42 +08:00
root
8c9e9649fb Add test and code comment. 2018-12-03 21:11:26 +08:00
alexey-milovidov
cec49357da
Merge pull request #3581 from yandex/alter-order-by
ALTER MODIFY ORDER BY
2018-12-03 07:15:07 +03:00
alexey-milovidov
02636b3388
Merge pull request #3729 from amosbird/dryrun
Function execution with dry runs
2018-12-02 22:45:07 +03:00
alexey-milovidov
48b30edcf5
Merge branch 'master' into alter-order-by 2018-12-02 21:06:38 +03:00
Amos Bird
3cc0829cc1 Function execution with dry runs
This commit prevents stateful functions like rowNumberInAllBlocks from being modified in getHeader() calls.
2018-12-02 19:02:04 +08:00
Amos Bird
65b654a1b6 Versatile StorageJoin
This commit does the following:

1. StorageJoin with simple keys now supports reading
2. StorageJoin can be created with Join settings applied. Syntax is
similar to MergeTree and Kafka
3. Left Any StorageJoin with one simple key can be used as a
dictionary-like structure by function joinGet.

Examples are listed in the related test file.
2018-12-02 16:49:39 +08:00
Alexey Milovidov
c9b8cd0626 Fixed errors and improved PR #3724 2018-12-02 03:47:34 +03:00
alexey-milovidov
c5dac3d496
Merge pull request #3724 from ClickHouse-Ninja/master
timeSlots: add optional parameter 'Size'
2018-12-02 03:34:52 +03:00
Kirill Shvakov
566644b171 timeSlots: add optional parameter 'Size' 2018-12-01 10:01:20 +02:00
Alexey Milovidov
b7d9910bd3 Merge branch 'master' into dont-allocate-too-much-memory-to-parse-query 2018-12-01 04:54:01 +03:00
alexey-milovidov
32b0b61d25
Merge pull request #3699 from amosbird/master
NonJoinedStream[ALL] bypasses max_block_size
2018-12-01 01:48:48 +03:00
Alexey Milovidov
621e622f79 Added test [#CLICKHOUSE-4169] 2018-11-30 18:41:24 +03:00
Alexey Zatelepin
2d71338b78 examine structure of the destination table of Buffer storage under lock 2018-11-30 18:34:24 +03:00
Amos Bird
d092d35fa9 NonJoinedStream[ALL] bypasses max_block_size 2018-11-30 22:59:17 +08:00
Daniel Dao
eb91b19a99
Fix buffer overflow for EmptyImpl with FixedString
Signed-off-by: Daniel Dao <dqminh89@gmail.com>
2018-11-30 02:17:01 +00:00
Nikolai Kochetov
95e4297601 Fix tests. 2018-11-29 11:19:14 +03:00
alexey-milovidov
9cc36d3d3c
Merge pull request #3692 from yandex/fix-create-table-engine-parsing
Fix CREATE TABLE engine parsing
2018-11-29 00:22:20 +03:00
Alexey Milovidov
b92bcb3385 Added test #3694 2018-11-28 22:12:19 +03:00
Alexey Milovidov
46d8f2f985 Added test #3694 2018-11-28 22:09:17 +03:00
Nikolai Kochetov
14ff6ae6d4 Added test. 2018-11-28 20:13:38 +03:00
Alexey Zatelepin
f425803418 don't overwrite table metadata file in case of offline ALTER after ATTACH [#CLIKCHOUSE-3859] 2018-11-28 19:05:29 +03:00
Alexey Zatelepin
1b27fb046d Merge branch 'master' into alter-order-by
Conflicts:
	dbms/programs/server/Server.cpp
2018-11-28 16:47:07 +03:00
Alexey Zatelepin
f3519bb297 add test for mixing MODIFY PRIMARY KEY and MODIFY ORDER BY statements [#CLICKHOUSE-3859] 2018-11-28 16:34:57 +03:00
Nikolai Kochetov
3fabaa28eb Updated test with Date and numbers comparsion. 2018-11-28 16:20:55 +03:00
Nikolai Kochetov
05ac77dbde Added test with Date and numbers comparsion. 2018-11-28 15:10:01 +03:00
alexey-milovidov
e95bf5d888
Merge pull request #3681 from yandex/fix-low-cardinality-permutation
Fix low cardinality permutation
2018-11-27 22:40:38 +03:00
alexey-milovidov
a12927a439
Merge pull request #3603 from vitlibar/CLICKHOUSE-4127
CLICKHOUSE-4127: Fix ALTER of destination table for the BUFFER engine.
2018-11-27 21:38:40 +03:00
Nikolai Kochetov
8085ce442c Added test for LowCardinality order by. 2018-11-27 21:09:37 +03:00
Alexey Zatelepin
e085bc9816 adapt code of #3609 [#CLICKHOUSE-3859] 2018-11-27 20:07:10 +03:00
Vitaly Baranov
44ca56c731 CLICKHOUSE-4127: Convert destination table's data when reading from
StorageBuffer.
2018-11-27 03:43:58 +03:00
alexey-milovidov
a7d75c527b
Merge pull request #3652 from yandex/unquote-partition
Don't quote single-field partition keys
2018-11-26 19:57:01 +03:00
alesapin
5a6f9a5ff9 Replace function mysql with function file 2018-11-26 18:18:45 +03:00
Alexey Zatelepin
d3d9242462 Merge branch 'master' into alter-order-by
Conflicts:
	dbms/src/Parsers/ASTAlterQuery.h
	dbms/src/Parsers/ParserAlterQuery.cpp
	dbms/src/Storages/AlterCommands.cpp
	dbms/src/Storages/AlterCommands.h
2018-11-26 16:01:48 +03:00
Alexey Zatelepin
3a3dda5ec5 use standard Tuple serialization [#CLICKHOUSE-4054] 2018-11-26 15:41:17 +03:00
Alexey Milovidov
5a0feee45e Removed "conditional computations" feature, because it is not ready #2272 2018-11-26 04:39:04 +03:00
Alexey Milovidov
4cb7f2896c Fixed error in lowerUTF8 and upperUTF8 functions [#CLICKHOUSE-2] 2018-11-26 01:26:36 +03:00
Alexey Milovidov
5a045ff11c Fixed error in URL functions [#CLICKHOUSE-2] 2018-11-25 03:31:24 +03:00
Alexey Milovidov
244e64a757 Removed bug [#CLICKHOUSE-3] 2018-11-24 06:22:38 +03:00
Alexey Milovidov
fc9c7680b0 Added a test from Kodieg #2680 2018-11-24 06:20:05 +03:00
Alexey Milovidov
73e3a7b662 Fixed bad code; added generic implementation for "arrayReverse" function; added test [#CLICKHOUSE-3] 2018-11-24 06:14:54 +03:00
alexey-milovidov
bedca47bca
Merge pull request #3649 from yandex/low-cardinaliry-left-array-join
Low cardinaliry left array join
2018-11-24 04:16:38 +03:00
alexey-milovidov
905a4ffc04
Merge pull request #3651 from yandex/fix-functions-with-low-cardinality-argument-and-array-result
Fix functions with low cardinality argument and array result
2018-11-24 04:15:20 +03:00
Alexey Milovidov
fac15418aa Added a test just in case #3584 2018-11-24 02:10:38 +03:00
Alexey Milovidov
954c974507 Added "POWER" alias to "pow" function; made some math functions case insensitive for compatibility #3638 2018-11-24 00:14:28 +03:00
alexey-milovidov
af013285e9
Merge branch 'master' into base64_functions 2018-11-23 21:33:56 +03:00
Nikolai Kochetov
ced3937e87 Added test. 2018-11-23 20:00:45 +03:00
Nikolai Kochetov
bbc6a11940 Added test for left array join with low cardinality. 2018-11-23 17:19:16 +03:00
alexey-milovidov
ac29388224
Merge pull request #3632 from yandex/fix-low-cardinality-distributed-group-by
Fix low cardinality distributed group by
2018-11-23 16:45:56 +03:00
alexey-milovidov
c6bc4279ee
Merge pull request #3377 from s-mx/CLICKHOUSE-4032
Added support for column COMMENTs in table definition.
2018-11-23 16:43:58 +03:00
alexey-milovidov
1002ed7487
Merge branch 'master' into 3958/many_templates 2018-11-23 01:48:42 +03:00
alexey-milovidov
12045a0e0e
Merge pull request #3641 from yandex/fix-array-mapped-functions-with-low-cardinality-lambda
Fix array mapped functions with low cardinality lambda
2018-11-23 00:40:16 +03:00
Nikolai Kochetov
510703fc7c Added test 2018-11-22 18:57:38 +03:00
Nikolai Kochetov
a29fd043a4 Added test 2018-11-22 18:53:03 +03:00
Sabyanin Maxim
35fce9c3ac
add DROP TABLE IF EXISTS in test 2018-11-22 17:32:28 +03:00
Sabyanin Maxim
3a67b505c5 Merge branch 'master' of https://github.com/yandex/ClickHouse into CLICKHOUSE-4032 2018-11-22 16:54:10 +03:00
Sabyanin Maxim
060fce3899 make ReplicatedMergeTree work with comments. ignore empty comments when make column_comments hashmap 2018-11-22 16:51:43 +03:00
Nikolai Kochetov
eac03c1c83 Added test. #3615 2018-11-21 21:59:58 +03:00
alexey-milovidov
5038f13b08
Merge pull request #3514 from abyss7/CLICKHOUSE-3766
Implement 'ALTER … FREEZE' command
2018-11-21 07:17:21 +03:00
alexey-milovidov
9b0226a73d
Merge pull request #3588 from zhang2014/fix/predicate
ISSUES-1777 qualified subqueries when optimize predicate
2018-11-21 06:20:37 +03:00
Alexey Milovidov
31561ef25a Fixed error; added test #3589 2018-11-21 06:09:56 +03:00
Alexey Milovidov
c09a93e78b Added a test #3601 2018-11-21 03:22:23 +03:00
alexey-milovidov
a008a41374
Merge pull request #3609 from s-mx/CLICKHOUSE-4090
Add primary_key, order_key, partition_key and sample_key to system.tables.
2018-11-20 16:39:54 +03:00
alexey-milovidov
6aa2313dec
Merge pull request #3580 from abyss7/fix-quantile-datetime
Some fixes to quantile*() functions related to DateTime argument type
2018-11-19 21:28:06 +03:00
Sabyanin Maxim
08fc057a15 make is_in_primary_key and etcetera work. add test. 2018-11-19 17:31:16 +03:00
Vitaly Baranov
a029034d8c CLICKHOUSE-4127: Fix ALTER of destination table for the BUFFER engine. 2018-11-19 09:14:36 +03:00
Gleb Kanterov
1b8e5f9b47 Optimization to skip unused shards for Distributed engine
Hide behind `distributed_optimize_skip_select_on_unused_shards` setting.
2018-11-16 10:21:06 +00:00
Alexey Zatelepin
ffb54509db add tests [#CLICKHOUSE-3859] 2018-11-15 22:34:50 +03:00
zhang2014
c23447ba3a ISSUES-1777 qualified subqueries when optimize predicate 2018-11-15 23:23:44 +08:00
Sabyanin Maxim
d9e6789f78 make MergeTree work with comments 2018-11-15 16:12:27 +03:00
chertus
0e1044b165 Merge branch 'master' into issue-3578 2018-11-15 13:28:53 +03:00
chertus
ebf3d60186 column defaults without CapNProto [CLICKHOUSE-3578] 2018-11-14 21:20:16 +03:00
Ivan Lezhankin
fc272ecded Some fixes to quantile*() functions related to DateTime argument type 2018-11-14 18:04:23 +03:00
Alexandr Krasheninnikov
177a00f09a Merge https://github.com/yandex/ClickHouse into base64_functions 2018-11-14 12:32:42 +03:00
alexey-milovidov
3b2cd38beb
Merge pull request #3570 from yandex/fix-with-with-alias-only
Fix WITH with alias only
2018-11-14 04:22:38 +03:00
Alexey Milovidov
c997f0b56a Added a test for ATTACHing parts before ALTER (just in case) [#CLICKHOUSE-3] 2018-11-13 20:18:38 +03:00
Alexey Zatelepin
29b34365e6 Merge branch 'master' into alter-order-by
Conflicts:
	dbms/src/Interpreters/ExpressionAnalyzer.cpp
	dbms/src/Storages/MergeTree/MergeTreeData.cpp
	dbms/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp
2018-11-13 16:27:19 +03:00
Alexey Zatelepin
7167bfd7b3 fix prewhere with FINAL for VersionedCollapsingMergeTree [#CLICKHOUSE-3859] 2018-11-13 16:15:12 +03:00
Sabyanin Maxim
befaea63d2 add is_mutable method to AlterCommand. change comment column test 2018-11-13 15:08:07 +03:00
Nikolai Kochetov
b1886e1272 Added test. #2465 2018-11-12 21:28:38 +03:00
Sabyanin Maxim
b869cfed9a fixed couple of mistakes. 2018-11-12 18:45:35 +03:00
chertus
9966f975a3 Merge branch 'master' into issue-3578 2018-11-12 17:58:00 +03:00
chertus
2fe3cdb3f5 restore lost commits [CLICKHOUSE-3578] 2018-11-12 17:52:30 +03:00
Ivan Lezhankin
71545ec226 Sort output of partition query-test - for stable reference. 2018-11-12 15:26:15 +03:00
Ivan Lezhankin
935615a647 Reimplement FREEZE command. 2018-11-12 15:26:14 +03:00
Ivan Lezhankin
a837060454 Lock table structure before freezing. 2018-11-12 15:26:14 +03:00
Ivan Lezhankin
03e6a29eb2 Implement 'ALTER … FREEZE' command.
Need some tests!
2018-11-12 15:26:14 +03:00
Nikolai Kochetov
21c3b36d23 Updated test with mutations. 2018-11-09 19:35:05 +03:00
proller
6ec9ca3b07
Better tests (#3535) 2018-11-07 14:00:46 +03:00
Nikolai Kochetov
e44213b026 Added tests. [#CLICKHOUSE-4111] 2018-11-07 13:53:36 +03:00
Sabyanin Maxim
dacd999d4f Merge branch 'master' into CLICKHOUSE-4032 2018-11-06 16:50:07 +03:00
Sabyanin Maxim
bdcdc15b1e fixed comment test.
remove ColumnComment struct.
style fixes
2018-11-06 16:26:43 +03:00
Alexandr Krasheninnikov
6ab45d081c Arch-based compilation 2018-11-02 22:06:05 +03:00
chertus
5a06d4953d Merge branch 'master' into joins 2018-11-02 14:58:26 +03:00
alesapin
43a88d83b7 Merge branch 'master' of github.com:yandex/ClickHouse 2018-11-02 14:54:37 +03:00
alesapin
28806049b4 Return client error code to 53 2018-11-02 14:54:24 +03:00
chertus
ce678f0e9c fix join_default_strictness according to new default settings 2018-11-02 14:46:16 +03:00
chertus
2f5fb25de6 Merge branch 'master' into joins 2018-11-02 13:39:19 +03:00
alexey-milovidov
c19b1d919e
Merge pull request #3517 from yandex/kill_pending_queries
CLICKHOUSE-4094: Add ability to kill pending queries
2018-11-01 21:07:45 +03:00
proller
c2a818b64d StorageSystemContributors clean (#3524)
* StorageSystemContributors clean

* Fix
2018-11-01 21:01:10 +03:00
Alexey Milovidov
dd3f57dd5d Fixed some code (incomplete) #3139 2018-11-01 20:54:53 +03:00
alexey-milovidov
6bc7297a92
Merge pull request #3523 from yandex/low-cardinality-fix-extremes
Low cardinality fix extremes
2018-11-01 20:54:09 +03:00
Alexey Milovidov
4a5fd44da2 Merge branch 'add_rate_function' of https://github.com/twosixlabs/ClickHouse into twosixlabs-add_rate_function 2018-11-01 20:41:32 +03:00
Nikolai Kochetov
e7b6937152 Added tests with LowCardinality and mv. #3288
Added tests with LowCardinality and mv. #3288
2018-11-01 20:24:10 +03:00
alexey-milovidov
cce68f5b40
Merge pull request #3519 from yandex/better-behaviour-of-hash-functions
Fixed idiosyncrasy with hash functions introduced in #3451
2018-11-01 20:13:39 +03:00
alexey-milovidov
e2b0c6c94f
Merge pull request #3518 from yandex/low-cardinality-fix-nullable-serialization-into-arena
Low cardinality fix nullable serialization into arena
2018-11-01 20:12:06 +03:00
chertus
009f77002e add default db name to views [CLICKHOUSE-3145] 2018-11-01 20:07:20 +03:00
Alexey Milovidov
77af9f7abb Fixed error code in test #3503 2018-11-01 18:55:28 +03:00
Alexey Milovidov
e7bb9d5d84 Added test #3519 2018-11-01 18:50:30 +03:00
Alexey Milovidov
719efbe60a Fixed idiosyncrasy introduced in #3451 2018-11-01 18:47:08 +03:00
alexey-milovidov
82933e9c31
Merge pull request #3451 from CurtizJ/CLICKHOUSE-3490
Support more hash functions for tuple, unify FunctionHash template. [CLICKHOUSE-3490]
2018-11-01 18:30:01 +03:00
Nikolai Kochetov
f2c64dc5dc Added test with group by LowCardinality(Nullable) #3227 #3256 #3212 2018-11-01 17:57:55 +03:00
alesapin
b0ac729228 CLICKHOUSE-4094: Add ability to kill pending queries 2018-11-01 17:56:37 +03:00
alexey-milovidov
121f04522e
Merge pull request #3503 from yandex/check_array_value_null
Better code for check on null values inside array IN expression
2018-11-01 17:01:06 +03:00
alesapin
abcc692dbf CLICKHOUSE-4096: Fix nested unaliased joins segfault 2018-11-01 14:23:23 +03:00
alesapin
237186056a
Merge pull request #3504 from yandex/merge_big_parts_using_direct_io
Enable merge with DIRECT_IO when summary size of participating parts more than 10GB
2018-10-31 18:11:32 +03:00
chertus
6bbbd8721c more tests for joins 2018-10-31 18:09:53 +03:00
alesapin
5e487608d2 Strict order in select 2018-10-31 15:49:50 +03:00
alesapin
252109f314 Add test with O_DIRECT merge 2018-10-31 14:45:53 +03:00
alesapin
892ab4ce8a Better code for check on null values inside array IN expression 2018-10-31 12:17:47 +03:00
abyss7
d538f70679 Fix build and tests on Fedora (#3496)
* Fix some tests and build on Fedora 28

* Update contrib/ssl

* Try `sudo` first, then without `sudo`.
2018-10-30 17:05:44 +03:00
Sabyanin Maxim
65bd40e290 Merge branch 'master' of github.com:yandex/ClickHouse into CLICKHOUSE-4032 2018-10-27 22:33:52 +03:00
proller
c35c979285 CLICKHOUSE-4085 system.contributors (#3452)
* CLICKHOUSE-4085 system.contributors

* fi

* Fix random
2018-10-26 20:43:50 +03:00
alesapin
64b1108989 Merge branch 'master' of github.com:yandex/ClickHouse into fix_non_deterministic_compile 2018-10-25 20:01:22 +03:00
proller
713c44c3db
Build fixes (#3466) 2018-10-25 18:23:41 +03:00
chertus
19a69004f0 fix crash with non const scale in toDecimal() 2018-10-25 16:53:25 +03:00
Ivan Lezhankin
68138a76f8 Add tests for different HLL precisions 2018-10-24 21:05:55 +03:00
proller
7dafcacd15
Build fixes (#3459) 2018-10-24 20:20:27 +03:00
CurtizJ
89808b89b6 update test 2018-10-24 16:27:49 +03:00
alesapin
070d75c7c9 Don't unfold non deterministic expressions 2018-10-24 14:31:23 +03:00
Alexey Milovidov
07f0fd3da9 Merge branch 'master' of github.com:yandex/ClickHouse 2018-10-23 23:23:51 +03:00
Alexey Milovidov
1dc2acf3e4 Fixed test #3385 2018-10-23 23:23:39 +03:00
proller
0a9d6f91d2 SQL fuzz test (#3442)
* Sql fuzzy test

* wip

* wip

* wip

* wip

* wip
2018-10-23 23:14:43 +03:00
CurtizJ
ef5c65c3dd fix test 2018-10-23 20:48:01 +03:00
CurtizJ
e3dea84265 support more hash functions for tuples 2018-10-23 20:43:09 +03:00
alexey-milovidov
9c3278f378
Merge pull request #3400 from zhang2014/fix/ISSUES-2312
ISSUES-2312 fix nested view & joined view without database
2018-10-23 11:21:29 +03:00
alexey-milovidov
98c2ed582c
Merge pull request #2863 from VadimPE/ISSUES-2581
ISSUES-2581 fix SELECT with sequential consistency
2018-10-22 23:55:33 +03:00
alexey-milovidov
57e6dc3477
Merge pull request #3385 from VadimPE/CLICKHOUSE-1791
[CLICKHOUSE-1791] add modulo for Date and DateTime
2018-10-22 23:38:40 +03:00
alexey-milovidov
25d9918b78
Update 00726_modulo_for_date.sql 2018-10-22 23:38:16 +03:00
alexey-milovidov
00d49602d3
Merge pull request #3404 from CurtizJ/CLICKHOUSE-3274
Add lock for .inner. table while insert.  [CLICKHOUSE-3274]
2018-10-22 23:32:12 +03:00
alexey-milovidov
28fc99c556
Merge pull request #3430 from yandex/fix_subquery_global_counter
Add global counter to subqueries
2018-10-22 14:56:31 +03:00
alesapin
9127e41415 Fix hack in test 2018-10-20 13:43:15 +03:00
alesapin
dcc8ca49d7 Add global counter to subqueries 2018-10-20 00:03:45 +03:00
proller
61568a0e74 Better test 2018-10-19 20:33:46 +03:00
proller
67eb30d192 CLICKHOUSE-4074 Fix merge_tree_uniform_read_distribution=0 2018-10-19 19:31:51 +03:00
Ivan Lezhankin
28ea773b9e Use a single "place" for a default precision constant.
Also update stateless tests.
2018-10-18 21:38:45 +03:00
Ivan Lezhankin
d588120677 Keep default value for HLL precision in tests - to not break them. 2018-10-18 17:47:21 +03:00
VadimPE
f2db463ab0 fix bug with merge part, wich us inserted with quorum 2018-10-18 17:14:07 +03:00
VadimPE
4a0ca4cbc5 ad test 2018-10-18 15:00:36 +03:00
CurtizJ
7623a3f48b fix test 2018-10-17 19:56:00 +03:00
Ivan Lezhankin
6d783ef013 Move-away "uniqCombined" as a separate aggregated function with HLL precision 2018-10-17 17:31:06 +03:00
CurtizJ
d81ed27004 add lock for .inner. table 2018-10-17 17:08:52 +03:00
zhang2014
133363e8e3 ISSUES-2312 fix nested view & joined view without database 2018-10-17 14:35:16 +08:00
Alexey Milovidov
ce67ebdded Updated test [#CLICKHOUSE-3] 2018-10-17 09:02:48 +03:00
Alexey Milovidov
72e4963248 Added test for old issue #1788 2018-10-17 08:50:40 +03:00
Alexey Milovidov
de2d081f8b Added more test cases #1164 2018-10-17 08:24:32 +03:00
Alexey Milovidov
a4daa58b7f Added another test #1164 2018-10-17 08:20:07 +03:00
Alexey Milovidov
388bc4ff03 Added another test for old issue #1087 2018-10-17 07:51:59 +03:00
Alexey Milovidov
0e6694957d Added a test for old issue #1119 2018-10-17 07:45:27 +03:00
Alexey Milovidov
f25606fdca Added a test just in case #880 2018-10-17 07:25:36 +03:00
alexey-milovidov
3024bf2e3b
Merge pull request #3397 from yandex/fix-vertical-merge-of-multidimensional-nested-structures
Fix vertical merge of multidimensional nested structures
2018-10-17 02:05:37 +03:00
Alexey Milovidov
63bb074ba7 Added a test from Matt Robenolt #2662 2018-10-17 00:46:42 +03:00
Alexey Milovidov
781332d57c Added another test from Kirill Shvakov just in case #2231 2018-10-17 00:34:10 +03:00
Alexey Milovidov
faffe1e82a Added test [#CLICKHOUSE-3901] 2018-10-17 00:27:07 +03:00
VadimPE
070eae2ae6 fix name 2018-10-16 14:38:49 +03:00
VadimPE
868c1bd70b ISSUES-2581 2018-10-16 13:52:15 +03:00
Artem Zuikov
3359ba06c3
Merge pull request #3391 from 4ertus2/decimal
fix for Decimal128 group by [issue-3378]
2018-10-16 13:07:11 +03:00
chertus
465cb6d267 fix for Decimal128 group by [issue-3378] 2018-10-15 22:14:08 +03:00
proller
0cf72f9b26 clickhouse-odbc#125 : Make TIMESTAMP alias for DateTime type for allowing CAST(x AS TIMESTAMP) 2018-10-15 18:10:34 +03:00
VadimPE
52deb3932f fix test 2018-10-15 17:55:02 +03:00
VadimPE
fca4a7be90 Merge branch 'ISSUES-2581' of https://github.com/VadimPE/ClickHouse into ISSUES-2581 2018-10-15 17:10:44 +03:00
VadimPE
4d6da00184 fix tests 2018-10-15 17:09:22 +03:00
Vadim
ade4f56c3f
Update 00726_modulo_for_date.sql 2018-10-15 16:24:46 +03:00
VadimPE
e331f15ffd CLICKHOUSE-1791 add modulo for nonIntegral divisor 2018-10-15 16:24:01 +03:00
VadimPE
7b6f0f5372 CLICKHOUSE-1791 add modulo for date 2018-10-15 15:53:05 +03:00
Vadim
a013dce567
Update 00732_quorum_insert_simple_test_2_parts_zookeeper.reference 2018-10-15 13:32:43 +03:00
Vadim
5898a22824
Update 00732_quorum_insert_simple_test_1_parts_zookeeper.reference 2018-10-15 13:32:30 +03:00
Vadim
9b1271afd3
Update 00732_quorum_insert_lost_part_and_alive_part_zookeeper.reference 2018-10-15 13:32:17 +03:00
VadimPE
58c2bd366f ISSUES-2581 add test 2018-10-15 13:31:24 +03:00
VadimPE
1c51407fa7 ISSUES-2581 add test 2018-10-15 13:27:17 +03:00
Sabyanin Maxim
e050bc0428 Merge branch 'master' into CLICKHOUSE-4032 2018-10-14 18:35:45 +03:00
Sabyanin Maxim
ab050c8466 add comment section in column declaration.
add comment column type in alter method.
add comment section in system.columns.
2018-10-14 18:30:06 +03:00
chertus
e2e3205c62 add test for OR optimisation [issue-3339] 2018-10-12 19:16:27 +03:00
alexey-milovidov
69a1303fc2
Merge pull request #3365 from liuyimin-bytedance/master
Add test for issue #3269
2018-10-12 17:08:01 +03:00
chertus
688b5aa8e4 Conditional for UUID [CLICKHOUSE-4016] 2018-10-12 14:23:05 +03:00
liuyimin
5d40757e9b Add test for issue #3269 2018-10-12 18:34:37 +08:00
Alexandr Krasheninnikov
92916d3b8d Merge https://github.com/yandex/ClickHouse into base64_functions 2018-10-12 11:29:01 +03:00
Alexey Milovidov
f8e5a22e03 Fixed "timeSlot" and "timeSlots" functions [#CLICKHOUSE-4016] 2018-10-12 03:40:19 +03:00
Alexey Milovidov
f2e161156e Added test #3342 2018-10-12 03:18:36 +03:00
Alexey Milovidov
e752271d99 Added check for invalid PREWHERE #3336 2018-10-11 23:52:25 +03:00
chertus
178b0d7fb9 rename test 2018-10-11 18:12:38 +03:00
chertus
5896e45dac SummingMergeTree for Decimal128 [issue-3282] 2018-10-11 17:33:01 +03:00
Alexey Milovidov
b8543bcd4d Fixed non-deterministic test #3145 2018-10-11 07:40:41 +03:00
alexey-milovidov
5795b559c6
Merge pull request #3342 from 4ertus2/decimal
Confitional for Decimal (without arrays) [CLICKHOUSE-3765]
2018-10-10 23:00:17 +03:00
alexey-milovidov
297f9cec38
Merge pull request #3341 from yandex/fix-point-in-poligon
Fix point in poligon
2018-10-10 22:09:13 +03:00
chertus
aa9f17b8df Merge branch 'master' into decimal 2018-10-10 21:39:57 +03:00
chertus
94c9a544f2 If for Decimal (basic support) [CLICKHOUSE-3765] 2018-10-10 21:37:54 +03:00
Vadim
517619d8c1
Update 00732_quorum_insert_zookeeper.sql 2018-10-10 20:49:42 +03:00
Nikolai Kochetov
8cc307ca47 Added test #2866 2018-10-10 20:41:26 +03:00
Vadim
6b2bfd2f4f
Update 00732_quorum_insert_zookeeper.sql 2018-10-10 20:35:34 +03:00
Vadim
93992879bc
Update 00732_quorum_insert_zookeeper.sql 2018-10-10 19:22:06 +03:00
Vadim
8c5be3aa67
Update 00732_quorum_insert_zookeeper.reference 2018-10-10 19:21:46 +03:00
VadimPE
cc2686cdf1 ISSUES-2581 add tests 2018-10-10 19:13:14 +03:00
Alexey Zatelepin
d9a0432c6c don't quote single-field partition keys #3109 [#CLICKHOUSE-4054] 2018-10-10 18:57:04 +03:00
Alexander Krasheninnikov
5ff30ebb3d Initial implementation 2018-10-10 04:04:07 +03:00
alexey-milovidov
e91f8f0dd9
Merge pull request #3273 from vavrusa/master
PushingToViewsBlockOutputStream: add tests for parallel processing
2018-10-10 02:16:59 +03:00
alexey-milovidov
ab198e77d1
Merge pull request #3329 from 4ertus2/master
get64 for Decimal32/64; remove allow_experimental_decimal_type [issue-3282]
2018-10-10 00:40:29 +03:00
alexey-milovidov
caaa7ff98e
Merge pull request #3331 from yandex/fix-point-in-poligon
Fix point in poligon
2018-10-09 23:41:35 +03:00
alexey-milovidov
bc921c564a
Update 00500_point_in_polygon_bug_2.sql 2018-10-09 23:40:05 +03:00
alexey-milovidov
e25e19a071
Update 00500_point_in_polygon_bug_2.sql 2018-10-09 23:39:32 +03:00
Nikolai Kochetov
c506f04842 Added test. #3309 2018-10-09 22:40:21 +03:00
Alexey Milovidov
6ca67ce277 Updated test result #3257 2018-10-09 22:00:00 +03:00
Alexey Milovidov
94d8a78abf Fixed test (now letter ё is really decomposed) #3257 2018-10-09 21:55:39 +03:00
Alexey Milovidov
89f3fd07f5 Fixed issue in test #3257 2018-10-09 21:53:35 +03:00
Alexey Milovidov
458b0f256a Added test by Champtar #3223 2018-10-09 21:20:46 +03:00
chertus
c7bf0e77ea add get64() for Decimal32 and Decimal64; remove allow_experimental_decimal_type setting [issue-3282] 2018-10-09 19:50:42 +03:00
alesapin
9946154908 CLICKHOUSE-3943: Rename FLUSH SYSTEM TABLES query to FLUSH LOGS, better tests 2018-10-09 13:05:27 +03:00
alesapin
9576c0e86d Add flush system tables 2018-10-08 21:09:14 +03:00
alesapin
ee78e27fa8 Move test to sh 2018-10-08 19:58:44 +03:00
alesapin
8333f63e12 Add log_queries setting 2018-10-08 19:35:59 +03:00
alesapin
c7065b6bd8 CLICKHOUSE-3943: Add test for FileOpen metric 2018-10-08 18:55:55 +03:00
Alexey Milovidov
80faec76e8 Merge remote-tracking branch 'origin/master' into fix-memory-tracker 2018-10-08 00:09:18 +03:00
Alexey Milovidov
84b3ba3464 Improved test #3230 2018-10-07 23:47:03 +03:00
alexey-milovidov
469243b33b
Merge pull request #3306 from yandex/length-aliases
Added compatibility aliases for "length" and "lengthUTF8"
2018-10-07 23:26:57 +03:00
alexey-milovidov
36c3feea80
Merge pull request #3270 from yandex/left-join-right-keys-fix
Left join right keys fix
2018-10-07 23:26:40 +03:00
Alexey Milovidov
964a6e5771 Make function "concat" case insensitive for compatibility [#CLICKHOUSE-20] 2018-10-05 22:58:01 +03:00
Alexey Milovidov
9e1c51aca4 Added compatibility aliases for "length" and "lengthUTF8" [#CLICKHOUSE-20] 2018-10-05 22:52:42 +03:00
Alexey Milovidov
45af805ccb Translated comments in test #3230 2018-10-05 22:45:01 +03:00
Alexey Milovidov
aed501e687 Translated comments in test #3230 2018-10-05 21:51:42 +03:00
Alexey Milovidov
5503822983 Merge branch 'master' into fix-memory-tracker 2018-10-05 18:15:50 +03:00
Nikolai Kochetov
064facd8de Updated test. 2018-10-05 10:43:58 +03:00
alexey-milovidov
47dd173007
Merge pull request #3281 from 4ertus2/summap
sumMap for number-based types
2018-10-05 00:12:57 +03:00
alexey-milovidov
b9d1eb4154
Merge pull request #3298 from yandex/fix-prewhere-with-altered-columns
Fix prewhere with altered columns
2018-10-04 23:57:11 +03:00
alexey-milovidov
cf6f5b314c
Update 00726_materialized_view_concurrent.sql 2018-10-04 22:40:10 +03:00
Nikolai Kochetov
2f2c939446 Added tests. 2018-10-04 21:19:25 +03:00
chertus
9c4c72cde5 fix test 2018-10-03 17:33:47 +03:00
chertus
5b987f02d7 sumMap for number-based types [issue-3277] 2018-10-03 17:22:28 +03:00
Marek Vavruša
575fa7f25a PushingToViewsBlockOutputStream: add tests for parallel processing
This adds tests for a971a0bc07
2018-10-02 19:06:04 -07:00
alexey-milovidov
147a2a13c2
Merge pull request #3257 from amosbird/master
Correct wcwidth computation for pretty outputs.
2018-10-02 16:23:41 +03:00
Amos Bird
7df73088ab Correct wcwidth computation for pretty outputs. 2018-10-02 10:06:18 +08:00
zhang2014
6778220ffd ISSUES-3232 remake interpreter_subquery when rewrite subqueries 2018-09-30 17:27:59 +08:00
Alexey Milovidov
e4ec8ffc49 Fixed test; tests that require server to listen something other than 127.0.0.1, must be tagged as "shard" in their names [#CLICKHOUSE-2] 2018-09-29 22:50:12 +03:00
chertus
be3b845baf add test for remote quantiles 2018-09-28 19:33:12 +03:00
zhang2014
b35ab511cb ISSUES-3225 fix alias conflict when predicate optimization 2018-09-27 14:29:38 +08:00
alexey-milovidov
03d85227d1
Merge pull request #3229 from yandex/fix-datetime-conversion-when-inserting-in-values-format
Fix conversion between Date and DateTime when inserting in VALUES format and "input_format_values_interpret_expressions" is true
2018-09-27 00:20:04 +03:00
Alexey Milovidov
b1b53a4019 Added test #3143 2018-09-26 23:49:44 +03:00
Alexey Milovidov
836c20b2d3 \Merge branch 'master' of github.com:yandex/ClickHouse 2018-09-26 22:48:59 +03:00
Alexey Milovidov
721837efe9 Adapted test #3205 2018-09-26 22:48:47 +03:00
Alexey Milovidov
e90484db77 Fix conversion between Date and DateTime when inserting in VALUES format and "input_format_values_interpret_expressions" is true #3226 2018-09-26 22:43:10 +03:00
chertus
a564b05ec7 supertypes for decimal and ints [issue-3218] 2018-09-26 17:59:23 +03:00
alexey-milovidov
6374094f0c
Merge pull request #3202 from zhang2014/fix/ISSUES-3145
ISSUES-3145 support qualified asterisk
2018-09-26 17:41:01 +03:00
chertus
b48402e871 intDiv, intDivOrZero for decimal [issue-3221] 2018-09-26 15:12:45 +03:00
chertus
69dd660919 fix crash on decimal division by zero [issue-3221] 2018-09-26 14:25:50 +03:00
Alexey Milovidov
33e4865240 Adjusted test #3205 2018-09-26 05:33:29 +03:00
Alexey Milovidov
042536177d Merge branch 'master' into order-by-remerge 2018-09-26 04:24:35 +03:00
chertus
96ceca6c05 fix decimal to int, int to decimal convertion [issue-3177] 2018-09-25 19:03:50 +03:00
Alexey Milovidov
5cc8e802d5 Added test #3205 2018-09-25 00:02:40 +03:00
alexey-milovidov
b6c7d71a03
Merge pull request #3101 from CurtizJ/CLICKHOUSE-3527
CLICKHOUSE-3527 Fix race while parallel ddl queries
2018-09-24 20:59:57 +03:00
zhang2014
f3dcc2ef41 ISSUES-3145 support qualified asterisk 2018-09-24 23:28:18 +08:00
chertus
f09970ff70 add test for inner join [CLICKHOUSE-4001] 2018-09-24 16:55:26 +03:00
alexey-milovidov
65f7c390f0
Merge pull request #3159 from zhang2014/fix/ISSUES-3134
ISSUES-3134 fix merge and distributed engine query stage
2018-09-22 00:09:06 +03:00
alexey-milovidov
433e8cce26
Merge pull request #3194 from yandex/fix-replica-cyclic-fetch
Fix cyclical failed fetches when merges don't produce identical result
2018-09-21 23:05:40 +03:00
alexey-milovidov
babc145f5f
Merge pull request #3188 from yandex/fix_segfault_3151
Add isState for array function combinator
2018-09-21 22:30:15 +03:00
Alexey Zatelepin
9ee53caee0 add test [#CLICKHOUSE-2837] 2018-09-21 19:45:57 +03:00
alesapin
2e1f4737f0 Add test 2018-09-21 17:49:27 +03:00
alexey-milovidov
b1eb66c03e
Merge branch 'master' into low-cardinality-fixes 2018-09-21 13:43:37 +03:00
alexey-milovidov
4a54a1c310
Merge pull request #3138 from yandex/low-cardinality-group-by
Low cardinality group by
2018-09-21 13:38:20 +03:00
zhang2014
e0e805b1f6 ISSUES-3134 fix merge and distributed engine query stage 2018-09-21 11:19:25 +08:00
zhang2014
8a8189c7e9 ISSUES-3134 fix merge and distributed engine query stage 2018-09-21 09:08:44 +08:00
zhang2014
80d83bb50f ISSUES-3134 fix merge and distributed engine query stage 2018-09-21 09:08:44 +08:00
zhang2014
882125dd6d ISSUES-3134 fix merge and distributed engine query stage 2018-09-21 09:08:44 +08:00
alexey-milovidov
5d3027d4d0
Merge pull request #3171 from yandex/fix_segfault_on_incomplete_block
Reorder Squashing and adding default output stream in insert
2018-09-20 21:11:45 +03:00
alexey-milovidov
4a095d8433
Merge pull request #3172 from CurtizJ/CLICKHOUSE-3979
Add modificator CUBE [CLICKHOUSE-3979]
2018-09-20 21:04:56 +03:00
alexey-milovidov
f558d5b2df
Update 00720_with_cube.sql 2018-09-20 20:35:54 +03:00
CurtizJ
5f2db689dc fix tests 2018-09-20 19:32:07 +03:00
Nikolai Kochetov
d8a9525cf9 Added test with low acrdinality and array functions. #3004 2018-09-20 16:53:29 +03:00
alesapin
b87a084f38 Strict order of evaluated and added columns 2018-09-20 14:16:15 +03:00
Nikolai Kochetov
19d00cde7e Added test for low cardinality with in function. #3004 2018-09-20 13:57:52 +03:00
Alexey Milovidov
200860724e More tests #3176 2018-09-19 23:36:32 +03:00
Alexey Milovidov
44de6a0317 Improved performance 1.5..1.8 times #2770 2018-09-19 23:07:46 +03:00
alesapin
cf195ed832 Fix test 2018-09-19 20:52:09 +03:00
Nikolai Kochetov
bb570fa1a8 Fix low cardinality serialization test reference. 2018-09-19 17:43:12 +03:00
Nikolai Kochetov
b93ea8e7cc Fixed default value index for LowCardinality(Nullable). 2018-09-19 17:42:59 +03:00
alesapin
bb4be0515b Add test for segfault 2018-09-19 15:18:10 +03:00
CurtizJ
fe0bdbe42c fix test 2018-09-19 15:07:55 +03:00
CurtizJ
31bf960bfe add new syntax 2018-09-19 14:18:38 +03:00
Nikolai Kochetov
926dfa82f3 Added test for low cardinality alter add column. #3066 2018-09-19 14:05:21 +03:00
CurtizJ
e4c1ca91c1 update tests 2018-09-18 21:41:54 +03:00
Alexey Milovidov
41bde049ab Merge remote-tracking branch 'origin/master' into alex-krash-function_format_date 2018-09-18 21:39:02 +03:00
Anton Popov
f550b21a8f
Merge branch 'master' into CLICKHOUSE-3527 2018-09-18 21:35:54 +03:00
CurtizJ
3177f3f6a9 update ddl guard 2018-09-18 21:33:15 +03:00
Alexey Milovidov
b8cbedee27 Merging #2770 2018-09-18 21:31:43 +03:00
Alexey Milovidov
dde8ca03cf Merge branch 'function_format_date' of https://github.com/alex-krash/ClickHouse into alex-krash-function_format_date 2018-09-18 19:19:29 +03:00
alexey-milovidov
67d559f3ef
Merge pull request #3163 from Bloxy-info/fix-negative-cumsum
fix arrayCumSumNonNegative that it does not accumulative negative values
2018-09-18 19:15:15 +03:00
chertus
fee5f24326 test for decimal + column defaults [CLICKHOUSE-3765] 2018-09-18 15:08:54 +03:00
daoready
889d5139ef fix arrayCumSumNonNegative that it does not accumulative negative values 2018-09-18 14:55:14 +03:00
Alexander Krasheninnikov
64533ff4df Add support for Date, filled documentation 2018-09-18 03:32:24 +03:00
Alexey Milovidov
599ec4c577 Merge branch 'veloman-yunkan-jsoneachrow_import_nested' 2018-09-17 23:36:01 +03:00
Alexey Milovidov
8852660b24 Merge branch 'jsoneachrow_import_nested' of https://github.com/veloman-yunkan/ClickHouse into veloman-yunkan-jsoneachrow_import_nested 2018-09-17 23:26:43 +03:00
alexey-milovidov
006119b81d
Merge pull request #3155 from yandex/fix-float-parsing-with-custom-csv-delimiter
Fix float parsing with custom csv delimiter
2018-09-17 22:39:45 +03:00
CurtizJ
43951e4879 add test 2018-09-17 22:16:51 +03:00
alexey-milovidov
c6f90523de
Merge pull request #3153 from 4ertus2/decimal
E-notation for decimal input [issue-3135]
2018-09-17 21:49:00 +03:00
Alexey Milovidov
c96464ca8e Added test #3142 2018-09-17 21:22:56 +03:00
chertus
7db097a49a support e-notation for decimal input [issue-3135] 2018-09-17 20:07:38 +03:00
Alexandr Krasheninnikov
ff9ff462fc Add tests 2018-09-17 20:02:12 +03:00
alexey-milovidov
13779bc75d
Merge pull request #3152 from zhang2014/fix/ISSUES-3149
ISSUES-3149 fix incorrectly masks rows in views
2018-09-17 18:57:47 +03:00
zhang2014
745696b888 ISSUES-3149 fix incorrectly masks rows in views 2018-09-17 23:30:15 +08:00
alexey-milovidov
c62b640595
Merge pull request #3147 from VadimPE/CLICKHOUSE-3993
CLICKHOUSE-3993 add default type of JOIN in query
2018-09-17 16:33:48 +03:00
Nikolai Kochetov
5b8cfc8e35 Fixed test. 2018-09-17 13:53:49 +03:00
VadimPE
acf34e29ad CLICKHOUSE-3993 add tests 2018-09-17 11:39:26 +03:00
Alexey Milovidov
01cffc1382 Added test [#CLICKHOUSE-3988] 2018-09-17 06:24:39 +03:00
Veloman Yunkan
f51d791b68 Fixed the 00715_json_each_row_input_nested test 2018-09-16 14:42:35 +00:00
Karl Pietrzak
c44398212d WIP: basic rate() function 2018-09-14 14:30:31 -04:00
alexey-milovidov
685560134a
Merge pull request #3129 from 4ertus2/decimal
var, stddev and math functions for decimal [CLICKHOUSE-3765]
2018-09-14 21:12:37 +03:00
Nikolai Kochetov
936b4789bd Added more tests with low cardinality type. 2018-09-14 21:01:11 +03:00
chertus
57260bbd6a math funcs for decimal (Float64 inside) [CLICKHOUSE-3765] 2018-09-14 17:40:51 +03:00
Veloman Yunkan
5fe127e4c3 Added --input_format_import_nested_json option
By default mapping of nested json data to nested tables is disabled. To
enable the import of nested json data (into corresponding nested tables)
clickhouse must be run with the --input_format_import_nested_json=1
option.
2018-09-14 13:43:57 +00:00
Veloman Yunkan
47eb0e28b3 Nested JSON data is mapped to nested table data 2018-09-14 12:15:32 +00:00
zhang2014
7a87da78d7 ISSUES-3110 fix merge and distributed engine query stage 2018-09-14 18:16:27 +08:00
Veloman Yunkan
446df4342e Testing of JSONEachRow input of Nested data
The new test demonstrates current handling of flat JSON data corresponding
to nested columns.
2018-09-14 09:12:56 +00:00
alexey-milovidov
92b2cc6625
Merge pull request #3107 from zhang2014/fix/ISSUES-3105
ISSUES-3105 fix some bugs in the predicate optimizer
2018-09-13 22:19:11 +03:00
chertus
7adf8d29cf var/stddev for decimal [CLICKHOUSE-3765] 2018-09-13 21:36:47 +03:00
zhang2014
25f79593a2 ISSUES-3105 fix some bugs in the predicate optimizer 2018-09-13 20:08:27 +08:00
CurtizJ
eb60ffae92 more iterations in test 2018-09-13 12:48:22 +03:00
Alexey Milovidov
32e3da3f52 Merge #3035 2018-09-13 06:13:29 +03:00
alexey-milovidov
0223225a05
Merge pull request #3035 from yandex/alter-update
ALTER UPDATE
2018-09-13 06:03:35 +03:00
alexey-milovidov
fd630179ec
Merge pull request #3103 from yandex/dont-fetch-unchanged-mutated-parts
Don't fetch parts not changed by mutations
2018-09-13 04:00:31 +03:00
alexey-milovidov
34f1998009
Merge pull request #3009 from yandex/astudnev-cum_sum_limit2
[FIX] Additional higher order functions to work with arrays
2018-09-13 03:17:41 +03:00
alexey-milovidov
3bad4cee5c
Merge pull request #3098 from zhang2014/fix/ISSUES-2560
ISSUES-2560 fix crash when create temporary with in clause
2018-09-13 03:09:29 +03:00
alexey-milovidov
77f41b8580
Merge pull request #3104 from CurtizJ/CLICKHOUSE-3034
CLICKHOUSE-3034 Add setting allow_ddl
2018-09-13 03:06:26 +03:00
alexey-milovidov
5998496790
Merge pull request #3116 from 4ertus2/decimal
Some aggregate functions for Decimal
2018-09-13 03:01:27 +03:00
Alexey Milovidov
3293480a12 Validate sizes of arrays - elements of Nested data structures [#CLICKHOUSE-3692] 2018-09-13 00:08:55 +03:00
chertus
d301fcd004 decimal quantileExact [CLICKHOUSE-3765] 2018-09-12 19:36:13 +03:00
chertus
1c4825138a decimal avg [CLICKHOUSE-3765] 2018-09-12 16:27:32 +03:00
chertus
dd5c55df2c decimal sum [CLICKHOUSE-3765] 2018-09-11 21:42:06 +03:00
CurtizJ
c1ed0bb86a add setting allow_ddl 2018-09-11 21:37:19 +03:00
Alexey Zatelepin
02a99145d6 add test for fetches of merged or mutated parts [#CLICKHOUSE-3937] 2018-09-11 19:41:01 +03:00
CurtizJ
4ac59b471a fix race while parallel create database 2018-09-11 17:33:06 +03:00
zhang2014
7af592d8e1 ISSUES-3059 fix nullable type argument for aggregate function 2018-09-11 19:33:14 +08:00
zhang2014
5834b42083 ISSUES-2560 fix crash when create temporary with in clause 2018-09-11 19:31:59 +08:00
alexey-milovidov
13c66e27c4
Merge pull request #3092 from 4ertus2/decimal
Decimal round functions [CLICKHOUSE-3765]
2018-09-10 22:37:05 +03:00
alexey-milovidov
4793e620be
Merge pull request #3093 from yandex/fix-columns-ordering
Fix columns ordering in MergeTreeRangeReader
2018-09-10 20:26:45 +03:00
Nikolai Kochetov
d7116dabfe Added test with prewhere and missing column. [#CLICKHOUSE-3975] 2018-09-10 18:52:50 +03:00
chertus
a89cbd0f88 countEqual test for Decimal [CLICKHOUSE-3765] 2018-09-10 17:46:26 +03:00
alexey-milovidov
20d5ddd58c
Merge branch 'master' into alter-update 2018-09-10 17:17:10 +03:00
alexey-milovidov
3054e62e00
Merge pull request #3089 from VadimPE/CLICKHOUSE-3839
CLICKHOUSE-3839 add virtual column "_partition_id"
2018-09-10 17:16:21 +03:00
chertus
9828813523 Decimal round functions [CLICKHOUSE-3765] 2018-09-10 16:52:18 +03:00
Vadim
48420078e7
Update 00709_virtual_column_partition_id.reference 2018-09-10 14:12:29 +03:00
alexey-milovidov
1d28a9c510
Merge pull request #3090 from yandex/fix_prewhere_with_sampling_2
Fix prewhere with sampling 2
2018-09-10 13:43:07 +03:00
VadimPE
cc50e810fc CLICKHOUSE-3839 add tests 2018-09-10 13:20:21 +03:00
Nikolai Kochetov
0f7b2ae748 Updated test with prewhere sampling. [#CLICKHOUSE-3972] 2018-09-10 13:14:09 +03:00
chertus
6846d33b88 test UUID toString() convertion issue-3081 2018-09-10 11:48:39 +03:00
Alexey Milovidov
9e6b310c2b Renamed test [#CLICKHOUSE-3888] 2018-09-10 07:12:03 +03:00
Alexey Milovidov
f798b29111 Added test [#CLICKHOUSE-3888] 2018-09-10 07:08:43 +03:00
Alexey Milovidov
bbe1074121 Every function in its own file, part 2 [#CLICKHOUSE-2] 2018-09-09 02:15:12 +03:00
alexey-milovidov
8dcf59389c
Merge pull request #3062 from CurtizJ/CLICKHOUSE-3723.3
Aggregate function states addition [CLICKHOUSE-3723]
2018-09-08 04:40:37 +03:00
alexey-milovidov
ef22af2e49
Merge pull request #2881 from zhang2014/feature/support_optimize_predicate_for_view
ISSUES-863 support optimize predicate for view
2018-09-08 00:43:13 +03:00
alexey-milovidov
f638c62914
Update 00705_aggregate_states_addition.sql 2018-09-08 00:40:26 +03:00
alexey-milovidov
603b31bdb6
Merge branch 'master' into CLICKHOUSE-3723.3 2018-09-08 00:39:34 +03:00
alexey-milovidov
0b6e85e51d
Merge pull request #3073 from yandex/fix_prewhere_with_sampling
Fix prewhere with sampling
2018-09-08 00:34:06 +03:00
alexey-milovidov
3b21cde9bb
Update 00714_alter_uuid.sql 2018-09-08 00:33:26 +03:00
chertus
ad77505137 implement CAST Strings to UUID [issue-3061] 2018-09-07 19:38:40 +03:00
Nikolai Kochetov
3d06fc4217 Added test with prewhere and sampling. [#CLICKHOUSE-3969] 2018-09-07 19:11:15 +03:00
Alexey Zatelepin
133c9c7c37 Merge branch 'master' into alter-update
Conflicts:
	docs/en/query_language/alter.md
2018-09-07 19:11:02 +03:00
Alexey Zatelepin
1064d1d26b update MATERIALIZED columns when their dependencies are updated [#CLICKHOUSE-13] 2018-09-07 18:54:18 +03:00
CurtizJ
7c2fef0c1a fix getting value from const column 2018-09-07 17:06:10 +03:00
CurtizJ
8fc1ddd646 fix arguments check 2018-09-07 15:36:56 +03:00
CurtizJ
a784b828ce Merge branch 'master' of https://github.com/yandex/ClickHouse into CLICKHOUSE-3723.3 2018-09-07 13:02:07 +03:00
Nikolai Kochetov
8200827723 Added test for prewhere with virtual column. [#CLICKHOUSE-3965] 2018-09-07 11:11:48 +03:00
Alexey Milovidov
cac07628b2 Added comment [#CLICKHOUSE-3939] 2018-09-07 04:49:26 +03:00
Alexey Milovidov
199d8734f9 Fixed race condition in DROP/CREATE MergeTree tables [#CLICKHOUSE-3939] 2018-09-07 04:39:48 +03:00
CurtizJ
e4a1ba728d better error code 2018-09-06 21:28:43 +03:00
alexey-milovidov
5057b15fab
Merge pull request #3047 from 4ertus2/decimal
Decimal improvements
2018-09-06 21:11:06 +03:00
CurtizJ
fb923dcbf5 aggregate function states addition 2018-09-06 20:59:23 +03:00
proller
6829446ca9 fix 2018-09-06 18:44:54 +03:00
proller
51470db8c7 Fix test 2018-09-06 18:43:57 +03:00
proller
d45321a941 Add test 2018-09-06 18:31:28 +03:00
Alexey Zatelepin
8cf666e1b5 ALTER UPDATE tests [#CLICKHOUSE-13] 2018-09-06 13:49:36 +03:00
chertus
5bbfdc2208 supertypes for Decimals [CLICKHOUSE-3765] 2018-09-06 13:48:54 +03:00
Nikolai Kochetov
28bef7b7aa Added test. [#CLICKHOUSE-3965] 2018-09-06 12:46:23 +03:00
chertus
3bd586cad9 Merge branch 'master' into decimal 2018-09-06 11:57:46 +03:00
alexey-milovidov
0ca8e20e66
Merge pull request #2948 from CurtizJ/CLICKHOUSE-3893
CLICKHOUSE-3893 - Add modificator rollup.
2018-09-06 03:59:02 +03:00
alexey-milovidov
f77cd9950c
Merge pull request #3034 from CurtizJ/CLICKHOUSE-3723.2
CLICKHOUSE-3723 Multiply aggregate states. Fix and optimize #2527.
2018-09-06 03:49:07 +03:00
alexey-milovidov
4032e4d22c
Merge pull request #3049 from yandex/fix-collapsing-vertical-merge
Fix collapsing vertical merge regression
2018-09-05 21:47:23 +03:00
Alexey Zatelepin
d2a5c101f1 add test [#CLICKHOUSE-3963] 2018-09-05 20:24:30 +03:00
Alexey Milovidov
baff498849 Split one test to two #3029 2018-09-05 19:50:26 +03:00
chertus
e0b1e9a1ca array functions for Decimal [CLICKHOUSE-3765CLICKHOUSE-3765] 2018-09-05 16:28:51 +03:00
CurtizJ
7ae4c1072b fix modifying source columns, add tests 2018-09-05 16:18:47 +03:00
Nikolai Kochetov
46d6c03569 Merge branch 'master' into fix-prewhere-with-aliases 2018-09-05 13:08:07 +03:00
CurtizJ
18da41afe3 Merge remote-tracking branch 'upstream/master' into CLICKHOUSE-3893 2018-09-05 12:49:02 +03:00
CurtizJ
a7bbf83c91 Revert "Revert "Merge branch 'master' into CLICKHOUSE-3893""
This reverts commit cdb2c8a770.
2018-09-05 12:47:57 +03:00
CurtizJ
cdb2c8a770 Revert "Merge branch 'master' into CLICKHOUSE-3893"
This reverts commit 0704da5756, reversing
changes made to 4534d449c1.
2018-09-05 12:45:57 +03:00
chertus
94997889c5 fix test 2018-09-05 01:17:01 +03:00
Alexey Milovidov
035c07d01e Fixed error with locking in InterpreterDropQuery [#CLICKHOUSE-3959] 2018-09-04 23:56:09 +03:00
chertus
e11f3ea5bc enable nullable for Decimal [CLICKHOUSE-3765] 2018-09-04 21:51:44 +03:00
Nikolai Kochetov
7bb92227cd Added test. [#CLICKHOUSE-3944] 2018-09-04 21:38:13 +03:00
chertus
1ea6bc9691 decimal_check_overflow [CLICKHOUSE-3765] 2018-09-04 18:04:23 +03:00
alexey-milovidov
939949730d
Merge pull request #3030 from yandex/fix-internal-compiler
Attempt to fix internal compiler [#CLICKHOUSE-2]
2018-09-04 17:05:56 +03:00
Vadim
2dd0c4c594
Merge pull request #3032 from yandex/amosbird_window_funnel
[FIX TESTS] Support events qualified for multiple conditions in Window Funnel
2018-09-04 14:32:58 +03:00
VadimPE
9a28e90af7 Fixed tests 2018-09-04 13:15:34 +03:00
Alexey Milovidov
0df0099255 Fixed test #3030 2018-09-03 21:29:34 +03:00
alexey-milovidov
604c64f40d
Merge pull request #3024 from 4ertus2/nan
hotfix for NaN comparison [CLICKHOUSE-3760]
2018-09-03 21:11:20 +03:00
Alexey Milovidov
8fae37f5c7 Removed wrong code from StorageSystemColumns #2447 2018-09-03 21:04:29 +03:00
chertus
522674d37f fix for NaN comparison [CLICKHOUSE-3760] 2018-09-03 16:34:16 +03:00
VadimPE
cc04ffbda1 Merge branch 'astudnev-cum_sum_limit2' of https://github.com/yandex/ClickHouse into astudnev-cum_sum_limit2 2018-09-03 13:53:19 +03:00
VadimPE
3b38879b11 fix bug with CumSum and fix style 2018-09-03 13:52:44 +03:00
alexey-milovidov
72c799ad76
Merge pull request #3008 from 4ertus2/decimal
even more Decimal
2018-09-03 07:19:33 +03:00
VadimPE
003ce833d1 Merge branch 'master' of https://github.com/amosbird/ClickHouse into amosbird_window_funnel 2018-09-02 17:49:59 +03:00
alexey-milovidov
64b48b5fcf
Merge pull request #2907 from zhang2014/feature/support_join_for_table_function
ISSUES-2906 support join for table function
2018-09-01 20:49:49 +03:00
alexey-milovidov
087570e6ac
Merge pull request #2974 from zhang2014/fix/nested_json_for_visitRaw
ISSUES-2973 support nested json struct for visitParamExtractRaw
2018-09-01 20:47:42 +03:00
alexey-milovidov
889e060993
Merge pull request #3006 from VadimPE/CLICKHOUSE-1660
CLICKHOUSE-1660 Added duplicated columns removal in USING(...)
2018-09-01 20:43:54 +03:00
alexey-milovidov
15bf642a00
Update 00702_join_with_using.sql 2018-09-01 20:43:47 +03:00
Vadim
c847815ad4
Update 00704_arrayCumSumLimited_arrayDifference.reference 2018-08-31 17:06:55 +03:00
VadimPE
f8f71f7327 add tests 2018-08-31 16:28:35 +03:00
chertus
ca91c93adf disable Nullable(Decimal) [CLICKHOUSE-3905] 2018-08-31 14:59:33 +03:00
chertus
4cf8f174da some tests [CLICKHOUSE-3905] 2018-08-31 14:19:19 +03:00
VadimPE
910bb20ccf CLICKHOUSE-1660 add test 2018-08-31 13:30:57 +03:00
chertus
d0f452f6d9 some tests [CLICKHOUSE-3905] 2018-08-31 12:25:49 +03:00
chertus
845db9b46e CAST for decimal [CLICKHOUSE-3905] 2018-08-31 11:59:21 +03:00
zhang2014
a1f2b9ae0c ISSUES-2973 support nested json struct for visitParamExtractRaw 2018-08-31 15:25:28 +08:00
Alexey Milovidov
bee164f1a0 Added test [#CLICKHOUSE-2] 2018-08-31 02:55:34 +03:00
Alexey Milovidov
9acb770c23 Added a test to clearly illustrate the difference between arrayEnumerateUniq and arrayEnumerateDense #2975 2018-08-30 23:43:08 +03:00
alexey-milovidov
46a38b72b9
Merge pull request #2975 from amosbird/dense
Extending arrayEnumerateUniq.
2018-08-30 23:26:31 +03:00
proller
81960a2690 CLICKHOUSE-3940 Fix crash on join 2018-08-30 18:44:30 +03:00
alexey-milovidov
b05c62be9f
Merge pull request #2994 from CurtizJ/CLICKHOUSE-3935
ClickHouse-3935  Fix bug with qualified columns in where clause
2018-08-30 15:01:47 +03:00
alexey-milovidov
992aee9c2c
Update 00702_where_with_quailified_names.sql 2018-08-30 15:01:34 +03:00
CurtizJ
c818683ce7 update test 2018-08-30 14:48:58 +03:00