Commit Graph

18137 Commits

Author SHA1 Message Date
Vitaliy Zakaznikov
282ff6bfda * Fixing a bug in writeIntoLiveView method where blocks->front()
is called before checking if blocks vector is empty.
2019-06-14 21:08:46 -04:00
Vitaliy Zakaznikov
d6d0404c48 * Fixing bug in StorageLiveView.cpp getHeader() method
that sometimes addressed invalid pointer when getHeader()
  method was called without holding the mutex
2019-06-14 16:27:43 -04:00
Vitaliy Zakaznikov
13978c03f3 * Fixing a bug in StorageLiveView.cpp in the getHeader() method
when header block would not match blocks in the stream
  when Const column is present.
* Updating 00963_temporary_live_view_watch_live_timeout.py
  and removed timeout=5 after WATCH query is aborted with Ctrl-C
  so that the default timeout of 20sec is used
* Small style fixes in tests
2019-06-14 10:06:15 -04:00
Vitaliy Zakaznikov
6cca6d359d * Reverting changes to clickhouse-test as it seems to cause some tests to fail
* Updating client.py to use CLICKHOUSE_BINARY env variable instead of CLICKHOUSE_CLIENT
2019-06-13 21:02:15 -04:00
Vitaliy Zakaznikov
117f2d191e Merge branch 'master' of https://github.com/vzakaznikov/ClickHouse into liveview 2019-06-13 15:23:20 -04:00
Vitaliy Zakaznikov
b82bb4a954 * Updates to sync with yandex/master 2019-06-13 12:37:29 -04:00
Vitaliy Zakaznikov
8e868dd2fe Merge branch 'master' of https://github.com/yandex/ClickHouse 2019-06-13 12:31:13 -04:00
Alexey Milovidov
c846d0f6af 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*.*$/}/'
2019-06-13 13:43:37 +03:00
Alexey Milovidov
d32ea4d06b Merge branch 'master' of github.com:yandex/ClickHouse 2019-06-13 13:38:48 +03:00
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
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
Vitaly Baranov
fd5fbcab25
Fix grammatical error in client.py 2019-06-10 18:11:51 +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
proller
836243d654 Merge remote-tracking branch 'upstream/master' into fix28 2019-06-10 12:44:22 +03: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
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
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