Commit Graph

13391 Commits

Author SHA1 Message Date
feng lv
2c51b10ff3 add tests 2021-11-30 06:31:40 +00:00
feng lv
0efabb39cf Fix FileLog engine unnesessary create meta data directory when create table failed.
fix style
2021-11-30 04:39:55 +00:00
Kruglov Pavel
b63b47f0f0
Merge pull request #31265 from Avogar/fix-write-buffers
Fix and refactor WriteBiffer-s a little
2021-11-23 16:46:09 +03:00
alexey-milovidov
341f705419
Merge pull request #30599 from ClickHouse/zlib-ng-own-cmake
Use our own CMakeLists for `zlib-ng`, `cassandra`, `mariadb-connector-c` and `xz`, `re2`, `sentry`, `gsasl`, `arrow`, `protobuf`.
2021-11-23 13:33:29 +03:00
tavplubix
7a43a87f5b
Use shard and replica name from Replicated database arguments (#31488)
* fix another issue

* use shard and replica name from Replicated database

* fix

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-23 12:41:54 +03:00
alesapin
2bef313f75
Merge pull request #31617 from ClickHouse/fix_unit_tests_build
Fix build requirements for unit tests
2021-11-23 10:45:37 +03:00
alesapin
ef6079633d
Merge pull request #31605 from vitlibar/fix-cleanup-in-integration-tests
Fix cleanup in integration tests
2021-11-22 17:58:47 +03:00
mergify[bot]
a9c1fd1647
Merge branch 'master' into fix-write-buffers 2021-11-22 13:59:31 +00:00
Anton Popov
43cfa4467b
Merge pull request #31476 from CurtizJ/merging-constraints
Merging #18787 (Constraints)
2021-11-22 15:57:59 +03:00
mergify[bot]
a7ba3e23a0
Merge branch 'master' into fix-write-buffers 2021-11-22 11:24:27 +00:00
tavplubix
dc6d48ff83
Merge pull request #31292 from stigsb/materialized-mysql-atomic-only
Drop support for DatabaseOrdinary in MaterializedMySQL
2021-11-22 14:03:50 +03:00
Kruglov Pavel
814a36ba69
Merge pull request #31434 from Avogar/custom-with-names-and-types
Add formats CustomSeparatedWithNames/WithNamesAndTypes
2021-11-22 13:24:00 +03:00
Nikolai Kochetov
b814f54f50
Merge pull request #31474 from amosbird/projection-improve6
Allow partition column to be used for minmax_count projection
2021-11-22 13:01:57 +03:00
alesapin
841141440b Fix search for PR 2021-11-22 12:56:13 +03:00
alesapin
589bb9eb92 Trying to use push event 2021-11-22 12:39:45 +03:00
Vitaly Baranov
6f5f72738b Fix cleanup in integration tests. 2021-11-22 12:05:52 +03:00
alesapin
2f11ad7241 Add workflow run for release branches 2021-11-22 11:33:52 +03:00
alesapin
c2b90eeb16 Fix in old CI too 2021-11-22 11:09:21 +03:00
alesapin
8fd5ff7452 Fix build requirements for unit tests 2021-11-22 11:06:42 +03:00
Anton Popov
afe8d3c424 refactor merged index conditions 2021-11-21 22:49:34 +03:00
tavplubix
14cff8cb91
Merge pull request #31527 from ClickHouse/tavplubix-patch-5
Do not clean iptables rules in session-scope fixture
2021-11-21 15:05:58 +03:00
Alexey Milovidov
d604cf5573 Remove the infamous "unbundled" build 2021-11-21 13:58:26 +03:00
alexey-milovidov
faae69f631
Merge pull request #31534 from aiven/kmichel-fix-json-colum-name-encoding
Fix invalid JSON in column names
2021-11-21 11:34:33 +03:00
alexey-milovidov
6ef001fce5
Merge pull request #31556 from azat/fix-02010_lc_native
Fix 02010_lc_native flakiness (Query with id = 123456 is already running)
2021-11-21 11:33:35 +03:00
alexey-milovidov
4cdb40e3cd
Merge pull request #31565 from azat/fix-MySQLWire
Fix MySQLWire format (this will also fix performance tests)
2021-11-21 11:32:53 +03:00
Ilya Yatsishin
571502354d
Merge pull request #31540 from ClickHouse/push_data_to_ci_db 2021-11-21 09:53:31 +03:00
Kruglov Pavel
d9c1a0c8ec
Merge branch 'master' into fix-write-buffers 2021-11-20 17:48:24 +03:00
Azat Khuzhin
6aa94ae032 Fix MySQLWire format (in case of multiple writes)
In case of multiple writes File() engine will set doNotWritePrefix(),
and this will avoid serializations initilization, move this to do this
always.

Fixes: #31004
2021-11-20 15:26:21 +03:00
Kevin Michel
edbeeaf6ec
Fix invalid JSON in column names
If the column name contains invalid UTF-8 sequences
and the output data types are all considered safe,
then the output will not be sanitized and the generated
JSON will be invalid.

A minimal reproduction case is :
`SELECT length('\x80') FORMAT JSONCompact`
where we auto-generate a non-UTF-8 column name with only
integer outputs, whereas :
`SELECT '\x80' FORMAT JSONCompact`
would be sanitized because the column type is String and
will trigger UTF-8 sanitization over the entire document.
2021-11-20 12:35:41 +01:00
Azat Khuzhin
71a691e9ab Make 01114_database_atomic more stable in debug builds
By reducing number of clickhouse-client invocation, since it is pretty
heavy in debug builds.
2021-11-20 14:27:34 +03:00
Azat Khuzhin
fbaa6804c2 Fix 02010_lc_native flakiness (Query with id = 123456 is already running) 2021-11-20 10:25:12 +03:00
Azat Khuzhin
c70cc62b5f Add more checks in 02010_lc_native 2021-11-20 10:25:10 +03:00
alesapin
9179c10d14 Fix style 2021-11-19 18:42:56 +03:00
alesapin
466df39bd4 Followup 2021-11-19 18:24:39 +03:00
alesapin
d69c9f951e Fix 2021-11-19 18:09:18 +03:00
alesapin
f62a34e808 Fix typo 2021-11-19 17:56:54 +03:00
alesapin
308cc722f3 Push tests results to CI database 2021-11-19 17:47:04 +03:00
Kruglov Pavel
eb1cc834dc
Merge branch 'master' into custom-with-names-and-types 2021-11-19 16:51:25 +03:00
Constantine Peresypkin
315e793e6c remove hardcoded CI values 2021-11-19 14:58:26 +02:00
SuperDJY
dd2972b8c3
return fake create query when executing show create table on system's tables. (#31391)
* clarify that cannot show create table of system's tables

* clarify that cannot show create table of system's tables in the document

* bypass test style-check for required `database=currentDatabase()` because `show create table` do not have condition

* rename supportsShowCreateTable to isSystemStorage

* build fake create query for show create table of system's tables

* fix tests for show create table on system's table:

1. only build fake create query when cannot get real query
2. only test rocksdb when it's enabled.

* fix test for show create table system.tables

* fix test for ASTCreateQuery set table and database

* change to LOGICAL_ERROR when cannot get in_memory metadata

Co-authored-by: tavplubix <tavplubix@gmail.com>

* implement common getCreateQueryFromStorage

Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-11-19 13:25:55 +03:00
tavplubix
9114bc8b9a
Update conftest.py 2021-11-19 12:48:08 +03:00
Amos Bird
c47ec31617
fix 2021-11-19 11:51:05 +08:00
alexey-milovidov
12a471507e
Merge pull request #31169 from sundy-li/notlike-fix
ISSUES-30801: Remove not like function into RPNElement
2021-11-18 23:40:57 +03:00
alexey-milovidov
b30f9124c0
Merge pull request #31008 from kssenii/sql-json-fix-2
Improve usability of JSON_VALUE
2021-11-18 23:39:17 +03:00
Amos Bird
d1a14d76f1
fix 2021-11-19 02:29:35 +08:00
Amos Bird
c988a4e770
fix again 2021-11-18 23:09:17 +08:00
Anton Popov
69559a4fd9 fix convertion to CNF 2021-11-18 17:54:07 +03:00
Stig Bakken
ff46e8bb51 Drop support for DatabaseOrdinary in MaterializedMySQL
1. Dropped support for DatabaseOrdinary for MaterializeMySQL. It
   is marked as experimental, and dropping support makes the code
   more maintaible, and speeds up integration tests by 50%.

2. Get rid of thread name logic for StorageMaterializeMySQL wrapping,
   use setInternalQuery instead (similar to MaterializedPostgreSQL).
2021-11-18 11:46:51 +01:00
kssenii
11ab1f1ae5 Fix 2021-11-18 08:46:31 +00:00
kssenii
4016530b99 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into sql-json-fix-2 2021-11-18 08:33:50 +00:00