Alexey Milovidov
22301e534b
Don't use https in test to postpone fix of UBSan report in libressl
2019-12-14 19:48:19 +03:00
alexey-milovidov
cd556a35e6
Merge pull request #8210 from 4ertus2/bugs
...
Fix `There's no column` error for materialized and alias columns
2019-12-14 19:45:07 +03:00
alexey-milovidov
e009584086
Merge pull request #8164 from nicelulu/master
...
Fix trivial count query with ConvertingBlockInputStream.
2019-12-14 19:39:49 +03:00
root
22bc508dc4
use currentDatabase().
2019-12-14 13:28:16 +08:00
Nikita Mikhaylov
f055239cde
Merge pull request #8207 from nikitamikhaylov/fix-parallel-cancel-test
...
Light fix of parallel cancel test
2019-12-14 01:59:32 +03:00
Nikita Mikhaylov
69f32e007c
remove comment
2019-12-14 01:59:17 +03:00
Alexey Milovidov
0998dcbda6
Fixed segfault in EXISTS query
2019-12-13 23:24:03 +03:00
chertus
8c9ca6891f
fix 'There's no column' error for materialized and alias columns
2019-12-13 21:46:55 +03:00
alexey-milovidov
8727f30ef8
Merge pull request #7790 from bgranvea/simple-aggregate-function-fix
...
Fix "Sizes of columns doesn't match" error with SimpleAggregateFunction
2019-12-13 20:56:03 +03:00
Nikita Mikhaylov
9936fd2bc4
fix added
2019-12-13 19:44:33 +03:00
hcz
6171e8b70c
Rename roundBankers
2019-12-13 22:50:14 +08:00
Boris Granveaud
3502e3858a
provide test case
2019-12-13 14:10:49 +01:00
Nikolai Kochetov
bd2517343d
Fi rand and randConstant for nullable types.
2019-12-13 16:10:02 +03:00
Konstantin Malanchev
4eae32d438
Add h3IsValid function
2019-12-13 11:39:50 +03:00
Konstantin Malanchev
947fb39d5e
Add h3getResolution function
2019-12-13 11:39:50 +03:00
root
63aaf64e93
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into lulu-master1
2019-12-13 16:12:43 +08:00
zhangxiao018
8a2b8647e4
add test.
2019-12-13 11:59:51 +08:00
alexey-milovidov
399995d60b
Merge pull request #7812 from infinivision/fix_part_mutation
...
fix part mutation
2019-12-13 03:45:59 +03:00
alexey-milovidov
ad76a1bafb
Merge pull request #8185 from vitlibar/fix-drop-dictionary-if-exists
...
Fix DROP DICTIONARY IF EXISTS
2019-12-13 02:47:06 +03:00
alexey-milovidov
989671cffe
Update 01046_materialized_view_with_join_over_distributed.sql
2019-12-13 00:01:33 +03:00
Mikhail Filimonov
32cd2912b7
Test for https://github.com/ClickHouse/ClickHouse/issues/5142
2019-12-12 21:49:45 +01:00
alexey-milovidov
0dc62d20e1
Merge pull request #8149 from zhang2014/feature/array_zip
...
Add arrayZip function
2019-12-12 22:00:39 +03:00
Vitaly Baranov
f81d9b4e73
Fix DROP DICTIONARY IF EXISTS db.dict - now it doesn't throw exceptions
...
even if db doesn't exist.
2019-12-12 21:37:44 +03:00
alexey-milovidov
51ed10ed78
Merge pull request #8011 from Jokser/aws-s3-sdk-integration
...
AWS SDK S3 integration
2019-12-12 20:43:16 +03:00
hcz
c0028c3942
Add aggregate function categoricalInformationValue ( #8117 )
...
* Add categorical iv aggregate function with tests
2019-12-12 16:28:28 +03:00
CurtizJ
d17f785260
fix tests
2019-12-12 00:51:06 +03:00
CurtizJ
d6058322e5
add test for special engines with order by
2019-12-11 23:07:41 +03:00
zhang2014
194ab5526d
add arrayZip function
2019-12-12 00:22:14 +08:00
Vasily Nemkov
f8fec0402b
Merge commit 'e7540dcf686936a490f89d0735f74c2f5f009821' into DateTime64
2019-12-11 17:38:32 +03:00
alesapin
4385aab4a1
Merge branch 'master' into restrictions_for_external_dictionaries_from_ddl
2019-12-11 12:29:55 +03:00
Vasily Nemkov
c781908e6d
Post-PR fixes
...
* More precise overflow check in readIntTextImpl
* writeDateTimeText now always writes sub-second part for DateTime64
* comment for validateFunctionArgumentTypes
* DateTime64-related fixes for FunctionConvertFromString
* other minoe fixes: comments, removed commented out code, variable
renamings, etc.
2019-12-11 12:20:05 +03:00
Vasily Nemkov
f56b2b64f2
Post-review refactoring and tests for DateTime64 and Decimal.
...
* put functions in DecimalFunctions into DecimalUtils namespace
* fixed possible buffer overflow in parseDateTimeBestEffortImpl
* fixed readDateTimeTextImpl not to require fractional part separator
(if fractional part is missing)
* Tests for code from DecimalFunctions.h
* Fixed serializing DateTime64 to string with writeDateTimeText(), fixed tests
2019-12-11 06:58:49 +03:00
hcz
2f276c2bb7
Rename bankerRound as bankersRound
2019-12-11 10:43:47 +08:00
Zhichang Yu
ff1b8d46e2
fixed part mutation, added test_backup_restore integration test case
2019-12-11 09:31:37 +08:00
alexey-milovidov
e73e19dc97
Merge pull request #8111 from azat/dictionary-reload-test-hotfix
...
Fix async nature of reload in 01036_no_superfluous_dict_reload_on_create_database*
2019-12-11 04:20:17 +03:00
alesapin
ea8994b9e4
Add restrections for several sources of external dictionaries
2019-12-10 20:27:29 +03:00
Pavel Kovalenko
c4b3cce847
AWS SDK integration - move s3 storage syntax tests to integration.
2019-12-10 19:11:13 +03:00
alesapin
3cc3bd2fea
Merge branch 'master' of github.com:ClickHouse/ClickHouse
2019-12-10 12:54:42 +03:00
hcz
8ed416ed41
Add bankerRound
2019-12-10 14:13:05 +08:00
Azat Khuzhin
65572a23fe
Fix async nature of reload in 01036_no_superfluous_dict_reload_on_create_database*
...
Due to the async nature of SYSTEM RELOAD DICTIONARY/DICTIONARIES the
test can fail, if the reload will happen after the dictGet*():
.862801 [ 36 ] {61df55ee-4a17-4bf3-8cfb-9478490393c3} <Debug> executeQuery: (from [::1]:37422) SYSTEM RELOAD DICTIONARY `foo 1234.dict`
.863681 [ 36 ] {cd55d9f9-d176-4b19-bc97-d25575da2d15} <Debug> executeQuery: (from [::1]:37422) SELECT query_count FROM system.dictionaries WHERE (database = 'foo 1234') AND ...
.863678 [ 54 ] {} <Debug> executeQuery: (internal) SELECT `key`, `val` FROM `foo 1234`.`dict_data`;
This is just a hotfix, long-term solution will be to make SYSTEM RELOAD
DICTIONARY syncronous (by adding another command or making already
existing).
Refs: #7916
2019-12-10 08:31:51 +03:00
Alexey Milovidov
285139585c
Updated test
2019-12-09 23:08:19 +03:00
alesapin
ab485430e3
Merge branch 'master' of github.com:ClickHouse/ClickHouse
2019-12-09 22:37:33 +03:00
Alexey Milovidov
67fd108848
Added a test for "greatCircleAngle"
2019-12-09 22:34:00 +03:00
alesapin
642ce2d751
Fix escaping and add string expressions support
2019-12-09 17:05:58 +03:00
Alexey Milovidov
2afdb4f6a8
Added a test
2019-12-09 03:20:34 +03:00
alexey-milovidov
a7f5ac7099
Merge pull request #8081 from errx/master
...
Added new function JSONExtractArrayRaw
2019-12-08 23:52:56 +03:00
Oleg Matrokhin
36303a82f7
add tests
2019-12-08 17:24:37 +03:00
alesapin
af7b8f9274
Merge pull request #8051 from ClickHouse/fix_collations_behaviour
...
Fix several bugs with collations.
2019-12-08 11:10:23 +03:00
alesapin
5b828a6cbf
Better test
2019-12-07 01:25:14 +03:00
alesapin
3881a85c39
Review fixes
2019-12-07 01:22:12 +03:00
Mikhail Korotov
f63fe65e53
Simple tests added
2019-12-06 20:23:41 +03:00
Mikhail Korotov
cb05dee547
Merge branch 'master' into hashes_from_values_of_UUID_type
2019-12-06 18:24:41 +03:00
Nikita Mikhaylov
34d20a0ef4
updating test after resolving conflicts
2019-12-06 13:17:51 +03:00
Nikita Mikhaylov
6fc5248a27
Merge branch 'master' into limit_with_ties
2019-12-06 13:16:54 +03:00
alesapin
de6cd490ef
Merge pull request #8037 from vitlibar/system-reload-dictionary-causes-complete-reloading
...
SYSTEM RELOAD DICTIONARY reloads a dictionary completely
2019-12-06 12:55:41 +03:00
Vitaly Baranov
2133492598
Merge pull request #7257 from vitlibar/RBAC-2
...
RBAC-2
2019-12-06 03:19:39 +03:00
Nikita Mikhaylov
88027947a1
update test after resolving conflicts
2019-12-05 21:59:30 +03:00
Nikita Mikhaylov
4946409a78
Merge branch 'master' into limit_with_ties
2019-12-05 21:58:47 +03:00
Nikita Mikhaylov
de2d996063
Merge pull request #7786 from nikitamikhaylov/incorrect_count
...
Incorrect count() with condition query result for SummingMergeTree.
2019-12-05 21:56:54 +03:00
Nikita Mikhaylov
5e60e0661f
delete useless reference
2019-12-05 21:54:18 +03:00
Nikita Mikhaylov
826a675974
delete useless reference
2019-12-05 21:53:44 +03:00
Nikita Mikhaylov
7783475aaa
delete useless test
2019-12-05 21:53:26 +03:00
alesapin
6afafef86c
Merge pull request #8047 from ClickHouse/fix_check_query_again
...
Fix bug in checkDataPart
2019-12-05 21:31:36 +03:00
Vitaly Baranov
6306e2ab91
Add DCL to manage quotas.
2019-12-05 21:03:57 +03:00
Vitaly Baranov
4d784d6f44
Add test.
2019-12-05 20:07:33 +03:00
alesapin
772bb0b70b
Fix collation locales
2019-12-05 18:35:09 +03:00
alesapin
227d0ba9d6
Add one more test
2019-12-05 15:39:02 +03:00
alesapin
cd43debd79
Test with non adaptive parts
2019-12-05 15:18:18 +03:00
alesapin
ee46a73d25
Fix bug in checkDataPart when last granule has same number of rows as in .mrk file
2019-12-05 15:01:36 +03:00
Nikolai Kochetov
26e415736a
Merge pull request #7665 from 4ertus2/joins
...
New ANY, SEMI, ANTI JOIN (HashJoin only)
2019-12-05 14:38:20 +03:00
Mikhail Korotov
88e37020e0
JSONCompactEachRow and JSONCompactEachRowWithNamesAndTypes ( #7841 )
...
* Research commit
* Created Output EachRow Format
* Fixed bugs
* Created output format JSONCompactEachRowWithNamesAndTypes without totals
* Fixed bugs
* Fixed bugs
* Totals for JSONCompactEachRowWithNamesAndTypes
* Deleted needless debug
* Working commit
* Working commit
* Working commit
* Working commit
* Working commit
* Working commit
* Working commit
* Working commit
* Working commit
* Working commit
* Working commit
* Working commit
* Tests added
* Input Format for JSONCompactEachRow
* Fixed bugs for JSONCompactEachRow Input format
* Fixed bugs for JSONCompactEachRowRowInputFormat.cpp
* JSONCompactEachRow and JSONCompactEachRowWithNamesAndTypes united
* Created input format for both formats
* fixed bugs
* fixed bugs
* Working commit
* Working commit
* Working commit
* Working commit
* tests
* Working commit
* Final tests
* Performance tests added
2019-12-05 13:13:40 +03:00
Nikita Mikhaylov
a3f3a333e2
better test
2019-12-05 12:55:06 +03:00
Nikita Mikhaylov
9d005d1565
true changes
2019-12-05 12:50:42 +03:00
Vitaly Baranov
2cc78413ed
Merge pull request #7914 from azat/dist-send-extra-checksum
...
Add checksum for extra info/query in distributed sends
2019-12-05 11:43:08 +03:00
alesapin
a524e82a7f
Merge pull request #8029 from ClickHouse/fix_dict_partially_update_failover
...
Fix external dictionaries failover, when they have invalidate_query.
2019-12-05 11:12:17 +03:00
chertus
d3d2e39955
fix SEMI RIGHT JOIN
2019-12-04 23:23:07 +03:00
Azat Khuzhin
3a72e1c12a
Add checksum for extra info/query in distributed sends
...
This extras includes:
- server revision
- query settings
- query
Otherwise the code can try to interpret data, and got for instance
std::length_error exception, which is not catched (to mark the part as
broken). Also this will protect from the corruptions on disk.
And add a simple test, since dbms/tests/integration/test_insert_into_distributed too complex.
Also simplify the code by using readStringBinary() over
readVarUInt()+b.readStrict() (this also gains additional checks that
string is not bigger then 1GB).
Refs: #4852 (8ef7f3589a
)
v2: avoid ABI breakage (suggested by @vitlibar)
v3: minor code fixes (suggested by @vitlibar) and as a consequence clang-8 build fix
v4: drop DBMS_MIN_REVISION_WITH_EXTRAS_CHECKSUM_IN_DIST_BATCH and also
revert some renames to make the patch cleaner
2019-12-04 22:54:38 +03:00
alesapin
172bbb1a2f
Fix flappy test, because dictionaries are loaded lazily
2019-12-04 21:30:47 +03:00
alesapin
3128b62f0e
Create dictionary if not exists
2019-12-04 18:11:36 +03:00
alesapin
a41764cccc
Reload dictionary with invalidate query if it has exception
2019-12-04 17:45:56 +03:00
alesapin
ce05cea192
Add sleep for test
2019-12-04 17:22:49 +03:00
alesapin
711fb5e667
Added tests for external dictionary invalidate query failover
2019-12-04 16:53:05 +03:00
alesapin
ace44e0717
Add test for incorrect settings
2019-12-04 12:34:05 +03:00
alexey-milovidov
f09c29a2b6
Merge pull request #7992 from ClickHouse/excitoon-favorites-s3auth
...
Merging #7623
2019-12-03 15:21:12 +03:00
alexey-milovidov
0c904f1484
Merge pull request #7721 from 4ertus2/decimal
...
Basic GatherUtils support for Decimals
2019-12-03 05:15:38 +03:00
alexey-milovidov
0734d4695b
Merge pull request #7724 from 4ertus2/some
...
Missing array functions for Decimals
2019-12-03 05:14:33 +03:00
alexey-milovidov
812df3aef3
Merge pull request #7755 from nikitamikhaylov/storage_set
...
Using the Set engine happen Exception: Method read is not supported by storage Set
2019-12-03 05:09:47 +03:00
alexey-milovidov
f1d75d9722
Update 01030_storage_set_supports_read.sql
2019-12-03 05:09:33 +03:00
alexey-milovidov
f5e88f8cd5
Merge pull request #7307 from ClickHouse/new-branch-for-new-geodist
...
Speed up greatCircleDistance function with test
2019-12-03 04:34:35 +03:00
alexey-milovidov
edede563c9
Merge pull request #7747 from hczhcz/patch-1113
...
Fix empty array handling in arraySplit
2019-12-03 04:00:31 +03:00
Alexey Milovidov
d70b73f033
Merge branch 's3auth' of https://github.com/excitoon-favorites/ClickHouse into excitoon-favorites-s3auth
2019-12-03 03:06:01 +03:00
Alexey Milovidov
9d099bde8e
Merge branch 'master' into fix_check_table_with_empty_pk
2019-12-03 02:36:21 +03:00
alexey-milovidov
3355492f02
Merge pull request #7983 from ClickHouse/fix_dictionary_lifetime
...
Fix bug with minimal dictionary lifetime equals zero
2019-12-03 02:32:38 +03:00
Alexey Milovidov
166e9e414c
Fixed bad test
2019-12-03 02:26:15 +03:00
Alexey Milovidov
07d7fd413f
Fixed bad test
2019-12-03 02:25:08 +03:00
Alexey Milovidov
272715cb71
Merge branch 'lc_empty_part_bug' of https://github.com/filimonov/ClickHouse into filimonov-lc_empty_part_bug
2019-12-03 01:58:41 +03:00
alexey-milovidov
bd72b570a3
Update 01035_lc_empty_part_bug.sql
2019-12-03 01:56:37 +03:00
chertus
a179c5025f
Merge branch 'master' into joins
2019-12-02 21:08:39 +03:00
chertus
5ce65546e9
semi & anti join
2019-12-02 21:08:04 +03:00
Mikhail Filimonov
5228f5f2eb
Test case for altering to LowCardinality when data part is empty
2019-12-02 16:11:28 +01:00