Commit Graph

18205 Commits

Author SHA1 Message Date
Alexey Milovidov
8b87511e25 Namespace comments are unneeded according to the code style.
find dbms -name '*.h' -or -name '*.cpp' | xargs grep -l -P '}\s*//+\s*namespace\s*' | xargs sed -i -r -e 's/}\s*\/\/+\s*namespace\s*\w+/}/'
2019-06-13 13:37:13 +03:00
Vitaliy Zakaznikov
825c21f29a * Increasing timeout from 2 to 20 sec.
* Style fix
2019-06-13 06:36:59 -04:00
alexey-milovidov
33c1072654
Merge pull request #5593 from sundy-li/improve/distribute-alter-more
Support more AlterType in distribute DDL
2019-06-13 13:26:50 +03:00
Alexey Milovidov
261c9cf9ff Whitespace 2019-06-13 13:15:32 +03:00
alexey-milovidov
be51de0903
Merge pull request #5559 from proller/fix28
CLICKHOUSE-4179 Fix of function arrayEnumerateUniqRanked for arguments with empty arrays
2019-06-13 13:14:51 +03:00
zhang2014
d8a14f590f try fix unbundled build failure 2019-06-13 18:01:34 +08:00
dmitry kuzmin
89cc1440d8 fix float to decimal convert overflow 2019-06-13 11:40:30 +03:00
zhang2014
6ccef4d802 Add database engine of MySQL type
Co-authored-by: zhang2014 <coswde@gmail.com>
Co-authored-by: TCeason <tai_chong@foxmail.com>
2019-06-13 11:58:58 +08:00
Vitaliy Zakaznikov
576393272b * Fixing styling check error 2019-06-12 20:45:41 -04:00
Vitaliy Zakaznikov
d50586d5a5 Merge branch 'master' of https://github.com/vzakaznikov/ClickHouse into liveview 2019-06-12 15:40:58 -04:00
Vitaliy Zakaznikov
874e62fc7e Merge branch 'master' of https://github.com/yandex/ClickHouse 2019-06-12 15:39:52 -04:00
Vitaliy Zakaznikov
5983273694 Fixing bugs reported by sanitizers
* data race condition on storage is_dropped access
* invalid reference to storage after it is deleted
* invalid reference to mutex after storage is deleted
2019-06-12 09:11:44 -04:00
sundy-li
d23e505414 remove line 2019-06-12 18:56:01 +08:00
sundy-li
38d4d2937e Support more AlterType in distribute DDL 2019-06-12 18:50:50 +08:00
alexey-milovidov
96975c8881
Update arrayEnumerateRanked.h 2019-06-12 12:18:51 +03:00
Danila Kutenin
585e4b75c5 Fix some weird cases in Searchers 2019-06-12 07:14:03 +03:00
Danila Kutenin
4fd85b4136 Clearer interfaces of Searchers 2019-06-12 05:35:25 +03:00
Vitaliy Zakaznikov
536bdb588d * Fixing and reorganazing LIVE VIEW tests 2019-06-11 21:28:20 -04:00
Vitaliy Zakaznikov
12060d8879 * Fixing errors that prevented clang build. 2019-06-11 08:27:47 -04:00
Vitaliy Zakaznikov
b6efd8599f * Trying again to fix style checks. Now running ./utils/check-style/check-style reports no errors. 2019-06-11 06:30:57 -04:00
Vitaliy Zakaznikov
a467e7c105 * Moving uexpect.py so that it can be found
* Trying to fix failed style checks
* Trying to fix clang build fail
2019-06-10 22:22:53 -04:00
Vitaliy Zakaznikov
79989a766c * Fixing uexpect.py close() method and forcing to close the process
by default
* Updating tests to be more robust
2019-06-10 19:56:12 -04:00
Vitaliy Zakaznikov
1ebe3047ff * Moving uexpect.py to dbms/tests/integration/helpers folder
* Updating uexpect.py to support close() method and
  context manager for proper resource cleanup
* Updating tests to use uexpect context manager
2019-06-10 18:12:06 -04:00
proller
c800913e5a
Fix build clickhouse as submodule (#5574) 2019-06-10 21:50:46 +03:00
Ivan Lezhankin
d42d543ee9 Merge branch 'master' into pytest 2019-06-10 18:25:38 +03:00
Vitaly Baranov
fd5fbcab25
Fix grammatical error in client.py 2019-06-10 18:11:51 +03:00
Ivan Lezhankin
fd6fbc9be8 Fix dict_get.sql test 2019-06-10 15:22:57 +03:00
Vitaliy Zakaznikov
fc4ea55b98 * Fixing bug in dbms/src/DataStreams/PushingToViewsBlockOutputStream.cpp
that was introduced when trying to fix a clang error.
2019-06-10 08:11:43 -04:00
Vitaliy Zakaznikov
a68980ab38 * Style check fixes 2019-06-10 07:41:33 -04:00
Vitaliy Zakaznikov
87b58e4150 * Fixing clang errors
* Fixing LIVE VIEW tests
2019-06-10 07:18:33 -04:00
Ivan Lezhankin
496376a6bc Try to use random database name by default 2019-06-10 13:41:53 +03:00
proller
836243d654 Merge remote-tracking branch 'upstream/master' into fix28 2019-06-10 12:44:22 +03:00
tai
e01138a7e7 feature: if MySQL table doesn't exits should report the error. 2019-06-10 15:51:14 +08:00
alexey-milovidov
4c7d71af1c
Merge pull request #5560 from yandex/perftests-file-formats
Fix #5439 bug PrettySpace format
2019-06-09 17:22:47 +03:00
alexey-milovidov
7324e5e8d4
Update PrettySpaceBlockOutputStream.cpp 2019-06-09 17:22:16 +03:00
proller
21d523904b fix style 2019-06-09 14:40:25 +03:00
Igor Hatarist
fc55d38377
Fix typo in a Decimal exception
(presicion -> precision)
2019-06-08 19:56:45 +03:00
Vitaliy Zakaznikov
137f5127ac * Renaming 00953_live_view_select test to avoid test number conflict 2019-06-08 09:54:48 -04:00
Vitaliy Zakaznikov
5079180595 * Fixing a bug in LIVE VIEW tables. Before when a table
is created with "AS SELECT 1" the SELECT and WATCH queries would fail
* Adding and updating LIVE VIEW tests to increase coverage
2019-06-08 09:26:02 -04:00
stavrolia
2ee6601990 Add fixed pretty space to perf test 2019-06-08 00:54:16 +03:00
stavrolia
6c487a253b Fix #5439 bug pretty space 2019-06-08 00:04:06 +03:00
proller
7449f4f68d clang-format 2019-06-07 21:22:57 +03:00
proller
516ce69d70 CLICKHOUSE-4179 Fix of function arrayEnumerateUniqRanked for arguments with empty arrays 2019-06-07 20:37:01 +03:00
Vitaliy Zakaznikov
4b68ffb15b * Fixing typos in test names 2019-06-07 12:43:37 -04:00
Ivan Lezhankin
30e4571c89 Fix some tests 2019-06-07 19:09:21 +03:00
Ivan Lezhankin
ab6652da3a Fix some tests 2019-06-07 19:02:24 +03:00
Ivan Lezhankin
f24a4ef9a4 Fix some tests 2019-06-07 18:41:24 +03:00
Ivan Lezhankin
a8fee10059 Fix some tests 2019-06-07 17:59:41 +03:00
Ivan Lezhankin
a7957914cf Check for orphaned databases too 2019-06-07 17:26:29 +03:00
Ivan Lezhankin
398e1eddfe Check for orphaned tables before dropping temporary database 2019-06-07 17:14:50 +03:00
Ivan Lezhankin
3c66942780 Merge remote-tracking branch 'upstream/master' into pytest
Drop all my changes for .sql tests
2019-06-07 16:41:04 +03:00
Vitaliy Zakaznikov
aa3ef47aab * Adding JSONEachRowWithProgress format
that can be used with WATCH queries when HTTP connection is used
  in this case progress events are used as a heartbeat
* Adding new tests that use JSONEachRowWithProgress format
* Adding tests for WATCH query heartbeats when HTTP connection is used
* Small fixes to uexpect.py
2019-06-07 09:05:14 -04:00
Vitaliy Zakaznikov
b65ff910b6 Merge branch 'master' of https://github.com/vzakaznikov/ClickHouse into liveview 2019-06-07 08:02:59 -04:00
Ivan Lezhankin
47174c79cd Check every test cleans up everything and doesn't hardcode DB names 2019-06-07 14:49:24 +03:00
alesapin
947dbeff16 Better test 2019-06-07 10:59:32 +03:00
Vitaliy Zakaznikov
398f7e3c3f Merge branch 'master' of https://github.com/yandex/ClickHouse 2019-06-06 21:22:48 -04:00
Vitaliy Zakaznikov
2930965938 * Renaming live_view_heartbeat_delay setting to live_view_heartbeat_interval
and making the setting to be in seconds instead of usec
* Updated LIVE VIEW table to keep version consistent as long as the server is up
* Removed calculation of hash in writeIntoLiveView method as it is recalculated
  in the LiveViewBlockOutputStream
* Changed to using values from the local context for live_view_heartbeat_interval and
  temporary_live_view_timeout instead of the global context
* Updated LIVE VIEW tests to match the changes
2019-06-06 21:10:56 -04:00
alesapin
53e62b83d2 Fix complex bug in deduplication 2019-06-06 18:28:02 +03:00
Zhichang Yu
8a26060ca8 fix style 2019-06-06 08:34:34 +08:00
Vitaliy Zakaznikov
e51f2c1dd1 Revert "Merge branch 'master' of https://github.com/vzakaznikov/ClickHouse into liveview"
This reverts commit 160ff4d519, reversing
changes made to a946d09f1b.
2019-06-05 18:52:31 -04:00
Vitaliy Zakaznikov
160ff4d519 Merge branch 'master' of https://github.com/vzakaznikov/ClickHouse into liveview 2019-06-05 18:42:26 -04:00
Vitaliy Zakaznikov
a946d09f1b * Adding more LIVE VIEW tests 2019-06-05 18:27:36 -04:00
alesapin
a0e7d183f7
Merge pull request #5534 from yandex/debug_dns_cache
Fix bug in pooled sessions and host ip change
2019-06-05 22:37:17 +03:00
proller
859b35e0ff docker: use configs from clickhouse-test (#5531)
* CLICKHOUSE-3887 Debian init: Service stop timeout

* clean

* clean

* docker: use configs from clickhouse-test

* clean
2019-06-05 22:22:36 +03:00
alexey-milovidov
42dbb7e881
Merge pull request #5539 from yandex/alter-ttl-fix
Fixed alter modify ttl on ReplicatedMergeTree.
2019-06-05 22:05:17 +03:00
CurtizJ
27d8b90dd9 fixed alter modify ttl on ReplicatedMergeTree and test added 2019-06-05 19:22:41 +03:00
Orivej Desh
5ec179377a DEVTOOLS-5170 Delete Y_IGNORE markers (#5533)
They have been superseded by a new include resolution configuration that lives
outside clickhouse source tree.
2019-06-05 14:52:39 +03:00
Vitaliy Zakaznikov
5f3be8134d * Disallowing writes into LIVE VIEW tables
* Adding support for watching live views via HTTPHandler
* Small fix to WriteBufferValidUTF8.cpp to propagate next() call
* Updated copyData.cpp to treat block with no rows as
  "flush block"
* Updated PushingToViewsBlockOutputStream.cpp to directly use
  LIVE VIEW output stream instead of calling its write method
2019-06-05 07:30:29 -04:00
alesapin
07ee60b546 Fix bug with pooled HTTP sessions and host ip change 2019-06-05 12:23:41 +03:00
Zhichang Yu
a477920206 added test cases for bitmapContains 2019-06-05 16:49:50 +08:00
Zhichang Yu
b694d039c1 added FunctionBitmapContains 2019-06-05 16:25:48 +08:00
alexey-milovidov
4ca476ec80
Merge pull request #5516 from yandex/fix-regression-models
Fix regression models
2019-06-05 08:07:18 +03:00
alexey-milovidov
b7248803d5
Merge pull request #5524 from NanoBjorn/fix-drop-index-if-exists
Fixed DROP INDEX IF EXISTS and added simple test
2019-06-05 08:04:04 +03:00
alexey-milovidov
914663e272
Merge pull request #5528 from infinivision/fix_bitmapHasAny
Fix bitmapHasAny segment fault
2019-06-05 08:03:28 +03:00
alexey-milovidov
59a59c34c6
Update FunctionsBitmap.h 2019-06-05 08:03:09 +03:00
Zhichang Yu
0e3f2d5faa added comments for bitmapHasAll and bitmapHasAny 2019-06-05 11:26:13 +08:00
alesapin
aa39e5a745 Add case for host ip change 2019-06-04 23:59:31 +03:00
proller
e2a94d0fbb Add new bug. 2019-06-04 20:03:41 +03:00
proller
64924f5ef3 Docker: add comments with current tags 2019-06-04 16:01:16 +03:00
Ivan Lezhankin
81ce1ed5ff Revert "Try "fix" tests"
This reverts commit 52d1042310.
2019-06-04 15:35:31 +03:00
Gleb Novikov
4a6c66786c fake commit to trigger CI 2019-06-04 13:36:54 +03:00
Gleb Novikov
29a26af156 Merge branch 'master' into fix-drop-index-if-exists 2019-06-04 11:32:22 +03:00
Zhichang Yu
ddad564bab added function test for bitmapHasAny + scalar subquery 2019-06-04 16:18:59 +08:00
Zhichang Yu
6d0e7b7b21 fix https://github.com/yandex/ClickHouse/issues/5479 2019-06-04 14:10:51 +08:00
alexey-milovidov
e389df385c
Merge pull request #5523 from orivej/croaring
DEVTOOLS-5507 Include roaring.h as roaring/roaring.h
2019-06-04 03:58:22 +03:00
Gleb Novikov
f96b3a9daa Fixed typo 2019-06-04 00:12:36 +03:00
Gleb Novikov
8bd2c7b3a7 Fixed DROP INDEX IF EXISTS and added simple test 2019-06-04 00:08:52 +03:00
Anton Yuzhaninov
091b591681 Fix build without Brotli (#5513) (#5521) 2019-06-03 23:27:53 +03:00
Vitaliy Zakaznikov
fc21200bdd * Started to add LIVE VIEW table tests
* Added uexpect.py module
* Fixed support for CREATE TEMPORARY LIVE VIEW
2019-06-03 15:53:11 -04:00
alesapin
db6de83fa1
Merge pull request #5520 from yandex/fix_inconsistent_parts_removing
Fix inconsistent parts remove from local FS without dropping them from ZK
2019-06-03 21:18:16 +03:00
proller
88f3a48afa
Fixes for parallel test run (#5506) 2019-06-03 20:36:27 +03:00
Георгий Кондратьев
2499cefdb9 DEVTOOLS-5507 Include roaring.h as roaring/roaring.h
This is needed to unbundle roaring. Its original cmake build system installs:

     /usr/include/roaring/roaring.h
     /usr/include/roaring/roaring.hh

and declares:

     set_target_properties(roaring::roaring PROPERTIES
       INTERFACE_INCLUDE_DIRECTORIES "/usr/include"
     )
2019-06-03 17:03:41 +00:00
Ivan Lezhankin
52d1042310 Try "fix" tests 2019-06-03 19:58:35 +03:00
Ivan Lezhankin
5a6d95ef3e Run .sql tests with standalone server 2019-06-03 19:57:02 +03:00
Ivan Lezhankin
e56dea2f4f Initial implementation of pytest tests for stateless queries. 2019-06-03 19:57:02 +03:00
Ivan
f70eed78d8
Don't do intermediate commits in Kafka tables by default (#5445)
* Don't do intermediate commits in Kafka tables by default
* Use default settings' values as defaults in code
2019-06-03 19:40:22 +03:00
alesapin
dfe214b37c Fix inconsistent parts remove from local FS without dropping them from ZK 2019-06-03 17:58:19 +03:00
alesapin
1319610c0b
Merge pull request #5497 from yandex/perftests-file-formats
[WIP] Improvement performance tests for formatting and parsing tables with engine File
2019-06-03 11:21:34 +03:00
Nikolai Kochetov
7cb3e3b251 Set default learnng_rate to 0.01. 2019-06-03 08:50:07 +03:00
Nikolai Kochetov
47f82dac72 Fix build. 2019-06-03 08:31:04 +03:00