Commit Graph

2098 Commits

Author SHA1 Message Date
Azat Khuzhin
781f1597f2 Fix SETTINGS parsing after FORMAT for SELECT queries
There are two possible ways to pass the SETTINGS clause:

  - SELECT 1 FORMAT Null SETTINGS max_block_size = 1
  - SELECT 1 SETTINGS max_block_size = 1[ FORMAT Null]

And when the SETTINGS goes after FORMAT it is parsed in
ParserQueryWithOutput, and these settings are not applied for the query
from the ASTSelectQuery::initSettings()

So propagate settings from the ParserQueryWithOutput to the
ASTSelectQuery settings.
2020-07-17 00:28:52 +03:00
alexey-milovidov
fde8c87a1f
Merge pull request #12426 from ClickHouse/log-engine-rollback-on-insert-error
Rollback insertion error in Log engines
2020-07-16 22:50:48 +03:00
alesapin
af5a9887e7 Better 1318 test 2020-07-16 16:20:38 +03:00
alesapin
00140286e8 Sync mutations 2020-07-16 14:44:14 +03:00
alesapin
52585d152c Fix final mark test 2020-07-16 14:40:55 +03:00
alesapin
b3ec3b1ed1 Fix loading parts without checksums 2020-07-16 13:54:49 +03:00
Vitaly Baranov
000b197ad1
Merge pull request #11234 from traceon/ldap-per-user-authentication
Add LDAP authentication support
2020-07-16 13:17:21 +03:00
alesapin
42983c5416 Fix incorrect adaptive granularity by default 2020-07-16 12:10:15 +03:00
Artem Zuikov
ff372ec0f0
Standard join type syntax position (#12520) 2020-07-16 11:56:45 +03:00
BohuTANG
bae11968de Fix EXPLAIN format for MySQL/PG client #12432 2020-07-16 16:29:17 +08:00
alesapin
f7792d0145
Merge pull request #12294 from ClickHouse/fasttest
Add image for fast tests run (with clone, build, etc.)
2020-07-16 11:21:53 +03:00
alexey-milovidov
8966c09ed6
Merge pull request #12519 from vzakaznikov/fix_data_duplication_and_tests_for_live_view
Fixing race condition in live view tables which could cause data duplication and live view tests
2020-07-16 11:03:28 +03:00
alexey-milovidov
6e9af5f179
Merge pull request #12529 from CurtizJ/fix-12521
Better exception for function 'in' with invalid number of arguments
2020-07-16 11:01:55 +03:00
alexey-milovidov
245f90c70f
Merge pull request #12459 from ClickHouse/aku/fix-decimal-agg-test
Fix decimal aggregate perf test
2020-07-16 11:00:27 +03:00
Alexey Milovidov
3408b7e259 Merge branch 'master' into log-engine-rollback-on-insert-error 2020-07-16 05:34:02 +03:00
Alexey Milovidov
2753cb58b6 Fixup 2020-07-16 05:31:03 +03:00
Alexey Milovidov
8abcee3201 Add integration test 2020-07-16 05:27:46 +03:00
Alexey Milovidov
11f8e2d906 Remove strange empty file 2020-07-16 05:11:40 +03:00
Denis Glazachev
59cb758cf7 Merge branch 'master' into ldap-per-user-authentication 2020-07-16 02:29:24 +04:00
alesapin
e35c49faa2 Merge branch 'master' into fasttest 2020-07-15 22:35:46 +03:00
Vitaliy Zakaznikov
1426a708bc Fixing tests to support changing configuration via server restart. 2020-07-15 18:45:50 +02:00
alexey-milovidov
e7cf3f4e70
Merge pull request #12464 from ianton-ru/s3_profile_events
add profiling events from S3 request to system.events and system.quer…
2020-07-15 19:33:15 +03:00
Alexander Kuzmenkov
b558aae851 disable profiler 2020-07-15 19:10:47 +03:00
Alexander Kuzmenkov
fda2595958 Merge remote-tracking branch 'origin/master' into HEAD 2020-07-15 19:09:43 +03:00
Anton Popov
de7b0c2424 better exception for function 'in' with invalid number of arguments 2020-07-15 17:25:09 +03:00
Artem Zuikov
2ba23c0cfa
Update arcadia_skip_list.txt
hotfix
2020-07-15 16:56:13 +03:00
Artem Zuikov
9232caed07
Update arcadia_skip_list.txt
one more ignored test with dictionary
2020-07-15 16:55:51 +03:00
alesapin
ba05bb1b39 Better tests for parallel run 2020-07-15 14:47:51 +03:00
Vitaliy Zakaznikov
560151f6cd * Fix bug in StorageLiveView.cpp
* Fixing synchronization of the first insert in live view tests
2020-07-15 13:24:33 +02:00
Anton Ivashkin
4c8498c115 Merge master 2020-07-15 14:16:10 +03:00
Artem Zuikov
5f01a587f6
Optimize monotonous ORDER BY (#12467) 2020-07-15 13:10:21 +03:00
Artem Zuikov
f8229e0bf7 try fix test 2020-07-15 13:08:40 +03:00
alesapin
46991b8c66 Flush stdout in tests 2020-07-15 12:59:45 +03:00
alesapin
614540eddf
Merge pull request #12382 from ClickHouse/clear-all-columns
Better errors for CLEAR/DROP columns (possibly in partitions)
2020-07-15 12:52:06 +03:00
alesapin
ecea1e0292 Run tests in parallel 2020-07-15 11:49:50 +03:00
alexey-milovidov
a68310aab6
Merge pull request #12503 from ClickHouse/test-7754
Added a test for #7754
2020-07-15 06:25:32 +03:00
alexey-milovidov
e9bb46860d
Merge pull request #12443 from ClickHouse/negative-date-time-saturate-to-zero
Saturate negative unix timestamp to zero instead of overflow
2020-07-15 06:22:09 +03:00
Amos Bird
46c2bb57ec
Refactor joinGet and implement multi-key lookup. 2020-07-15 10:12:04 +08:00
Alexey Milovidov
cd7ed94a08 Added a test for #7754 2020-07-14 21:59:25 +03:00
Vitaliy Zakaznikov
749deaf122 Adding wait for config reload message when deleting old configuration file. 2020-07-14 17:00:19 +02:00
Artem Zuikov
e8057387cb
Fix crash in 'JOIN dict ON expr(dict_key) = k' (#12458) 2020-07-14 17:06:11 +03:00
Anton Ivashkin
52fea6a5a3 Merge master 2020-07-14 15:56:38 +03:00
Alexander Kuzmenkov
fa6fc719ab fixup 2020-07-14 15:55:25 +03:00
Alexander Kuzmenkov
d05b984959 Merge remote-tracking branch 'origin/master' into HEAD 2020-07-14 15:50:31 +03:00
Vitaliy Zakaznikov
2c3ae1600f Adding -n 0 to the tail command. 2020-07-14 13:44:40 +02:00
feng lv
767bc7a905 add doc
fix test

fix

name style fix
2020-07-14 18:50:51 +08:00
Artem Zuikov
dda2510208
Try enable multiple_joins_rewriter_version v2 by default (#12469) 2020-07-14 12:34:47 +03:00
Alexey Milovidov
ce1afcd39f Merge branch 'master' into negative-date-time-saturate-to-zero 2020-07-14 09:33:43 +03:00
alexey-milovidov
969d9c0d47
Merge branch 'master' into remove-useless-setting-from-perf-test 2020-07-14 09:31:34 +03:00
alexey-milovidov
fd4adf27d6
Merge pull request #12456 from CurtizJ/fix-12437
Fix #12437
2020-07-14 09:28:31 +03:00
alexey-milovidov
7e679b731d
Merge pull request #12477 from azat/arrow-deprecated-fixes
arrow deprecated API usage build fixes
2020-07-14 09:23:52 +03:00
feng lv
f0b423e928 add test
style fix
2020-07-14 14:16:47 +08:00
Vitaliy Zakaznikov
e57e51e812 * Removing hard coded sleep. 2020-07-13 22:38:06 +02:00
Vitaliy Zakaznikov
7d1b0a06f2 * Moving to updating configs without restart. 2020-07-13 22:36:56 +02:00
Azat Khuzhin
4b0ef6a994 tests: ignore *.dump (parquet tests) 2020-07-13 21:25:46 +03:00
alesapin
1f576ee039 Some intermediate solution 2020-07-13 20:27:52 +03:00
tavplubix
3314a97b99
Merge pull request #12009 from hczhcz/patch-0628
Allow TabSeparatedRaw as an input format
2020-07-13 19:43:31 +03:00
Alexander Kuzmenkov
b656c43e93
fixup for #12427 -- max_block_size can't be zero 2020-07-13 18:25:48 +03:00
Alexander Kuzmenkov
c6ab1f61dc
Merge pull request #12427 from ClickHouse/fix-limit-overflow
Avoid overflow in LIMIT #10470 #11372
2020-07-13 18:20:21 +03:00
alesapin
1952be94ea Merge branch 'master' into clear-all-columns 2020-07-13 17:38:47 +03:00
Denis Glazachev
f787702922 Merge branch 'master' into ldap-per-user-authentication
* master: (27 commits)
  Whitespaces
  Fix typo
  Fix UBSan report in base64
  Correct default secure port for clickhouse-benchmark #11044
  Remove test with bug #10697
  Update in-functions.md (#12430)
  Allow nullable key in MergeTree
  Update arithmetic-functions.md
  [docs] add rabbitmq docs (#12326)
  Lower block sizes and look what will happen #9248
  Fix lifetime_bytes/lifetime_rows for Buffer direct block write
  Retrigger CI
  Fix up  test_mysql_protocol failed
  Implement lifetime_rows/lifetime_bytes for Buffer engine
  Add comment regarding proxy tunnel usage in PocoHTTPClient.cpp
  Add lifetime_rows/lifetime_bytes interface (exported via system.tables)
  Tiny IStorage refactoring
  Trigger integration-test-runner image rebuild.
  Delete log.txt
  Fix test_mysql_client/test_python_client error
  ...
2020-07-13 15:46:27 +04:00
Alexander Kuzmenkov
4da37fb3a0 Fix decimal aggregate perf test 2020-07-13 14:40:46 +03:00
Alexander Kuzmenkov
5a15e03400 Improve data layout in perf test
Also fix a bad test query found with new data.
2020-07-13 14:31:15 +03:00
Alexander Kuzmenkov
c13425f0e9 Merge remote-tracking branch 'origin/master' into HEAD 2020-07-13 14:29:10 +03:00
Alexander Kuzmenkov
d911aa7496 temporarily disable decimal aggregates test 2020-07-13 14:28:35 +03:00
Artem Zuikov
b5c181c24e
Optimize redundant functions in ORDER BY (#12404) 2020-07-13 13:34:25 +03:00
Anton Popov
a9530d2883 in-memory parts: fix reading from nested 2020-07-13 12:10:55 +03:00
Anton Ivashkin
26fca949bd add profiling events from S3 request to system.events and system.query_log 2020-07-13 11:27:11 +03:00
Alexey Milovidov
4ace6f99fa Remove useless setting from performance tests #12424 2020-07-13 05:34:45 +03:00
alexey-milovidov
7108f88de5
Merge pull request #12424 from ClickHouse/lower-default-block-size
Lower block sizes and look what will happen
2020-07-13 05:32:25 +03:00
alexey-milovidov
ae7eff98ed
Merge pull request #12433 from amosbird/np
Allow nullable key in MergeTree
2020-07-13 04:36:00 +03:00
Alexey Milovidov
f2fe419ca9 Saturate negative unix timestamp to zero instead of overflow 2020-07-13 01:48:22 +03:00
Alexey Milovidov
f6f8421c2f Better test 2020-07-13 01:30:27 +03:00
Alexey Milovidov
8f0ec09372 Fix error; add a test 2020-07-13 01:23:21 +03:00
Alexey Milovidov
36de452fdd Merge branch 'master' into fix-limit-overflow 2020-07-13 00:24:24 +03:00
Alexey Milovidov
e8a3f0abb3 Correct default secure port for clickhouse-benchmark #11044 2020-07-12 21:54:13 +03:00
Alexey Milovidov
72ac7b008e Remove test with bug #10697 2020-07-12 21:02:06 +03:00
tavplubix
d64e51d1a7
Merge pull request #12421 from azat/lifetime-table-metrics
lifetime_rows/lifetime_bytes for Buffer engine
2020-07-12 19:00:02 +03:00
Amos Bird
cac5a89169
Allow nullable key in MergeTree 2020-07-12 22:21:51 +08:00
Alexey Milovidov
ef930df484 Avoid overflow in LIMIT #10470 #11372 2020-07-12 08:18:01 +03:00
Alexey Milovidov
204a4af394 Rollback insertion error in Log engines #12402 2020-07-12 05:32:18 +03:00
alexey-milovidov
26d32f2ce5
Merge pull request #12412 from Jokser/s3-https
S3 HTTPS integration tests
2020-07-12 03:36:37 +03:00
Azat Khuzhin
3bee98c6f0 Fix lifetime_bytes/lifetime_rows for Buffer direct block write 2020-07-12 01:16:05 +03:00
Denis Glazachev
a6a6f43422 Fix the test: auth_params is a JSON object 2020-07-12 01:40:24 +04:00
alexey-milovidov
160dcf715d
Merge pull request #12383 from BohuTANG/mysql_write_through_poco_exception
Write through Poco::Exception exception to MySQL protocol client
2020-07-11 23:56:22 +03:00
Denis Glazachev
b68d7b6c24
Merge branch 'master' into ldap-per-user-authentication 2020-07-11 21:37:52 +04:00
Denis Glazachev
edb6ef8c09 Merge commit 'ceac649c01b0158090cd271776f3219f5e7ff57c' into ldap-per-user-authentication
* commit 'ceac649c01b0158090cd271776f3219f5e7ff57c': (75 commits)
  [docs] split misc statements (#12403)
  Update 00405_pretty_formats.reference
  Update PrettyCompactBlockOutputFormat.cpp
  Update PrettyBlockOutputFormat.cpp
  Update DataTypeNullable.cpp
  Update 01383_remote_ambiguous_column_shard.sql
  add output_format_pretty_grid_charset setting in docs
  add setting output_format_pretty_grid_charset
  Added a test for #11135
  Update index.md
  RIGHT and FULL JOIN for MergeJoin (#12118)
  Update MergeTreeIndexFullText.cpp
  restart the tests
  [docs] add syntax highlight (#12398)
  query fuzzer
  Fix std::bad_typeid when JSON functions called with argument of wrong type.
  Allow typeid_cast() to cast nullptr to nullptr.
  fix another context-related segfault
  [security docs] actually, only admins can create advisories
  query fuzzer
  ...
2020-07-11 21:32:36 +04:00
alexey-milovidov
3c2af9653a
Merge pull request #12416 from vzakaznikov/fixing_flopping_live_view_tests
Increasing default timeout for live view tests from 20 sec to 120 sec
2020-07-11 19:38:39 +03:00
Vitaly Baranov
fe6122a1dd
Merge pull request #12394 from vitlibar/fix-calculating-implicit-access-rights
Fix calculating implicit access rights
2020-07-11 19:31:56 +03:00
BohuTANG
d6b3509664 Fix up test_mysql_protocol failed 2020-07-11 21:30:20 +08:00
Azat Khuzhin
32a45d0dee Implement lifetime_rows/lifetime_bytes for Buffer engine
Buffer engine is usually used on INSERTs, but right now there is no way
to track number of INSERTed rows per-table, since only summary metrics
exists:
- StorageBufferRows
- StorageBufferBytes

But it can be pretty useful to track INSERTed rows rate (and it can be
exposed via http_handlers for i.e. prometheus)
2020-07-11 16:06:11 +03:00
Alexander Kuzmenkov
48862a1edf fixup 2020-07-11 13:35:44 +03:00
Alexander Kuzmenkov
920c62b629 Merge remote-tracking branch 'origin/master' into HEAD 2020-07-11 13:32:31 +03:00
alexey-milovidov
c615ea658b
Merge pull request #12400 from vitlibar/fix-bad_typeid
Fix std::bad_typeid when JSON functions called with argument of wrong type
2020-07-11 05:40:44 +03:00
alexey-milovidov
60bc8c8a8e
Delete log.txt 2020-07-11 05:33:41 +03:00
alexey-milovidov
7bc2c83b80
Merge pull request #12372 from s-mx/issue-10429-add_setting_for_ascii_grid_symbols
add setting for ascii grid symbols
2020-07-11 05:31:41 +03:00
Vitaliy Zakaznikov
1ed7d176fc Increasing default timeout for live view tests from 20 sec to 120 sec
to account for slowdowns.
2020-07-11 04:30:53 +02:00
alexey-milovidov
4394f68e26
Merge pull request #12411 from ClickHouse/test-11135
Added a test for #11135
2020-07-11 05:29:08 +03:00
BohuTANG
beaf97f634 Fix test_mysql_client/test_python_client error 2020-07-11 09:17:12 +08:00
alexey-milovidov
fd46ef428a
Update 00405_pretty_formats.reference 2020-07-11 00:33:21 +03:00