Commit Graph

47302 Commits

Author SHA1 Message Date
bharatnc
59edda2e94 add note in docs about codec for ALIAS column type 2020-08-31 00:47:22 -07:00
Dongdong Yang
9651c36ceb testcase for issue 14202 2020-08-31 15:42:01 +08:00
bharatnc
6bb575fae9 fix style check 2020-08-31 00:39:58 -07:00
bharatnc
025de8cecc add tests 2020-08-31 00:12:19 -07:00
alesapin
5b0822902b
Merge pull request #14155 from amosbird/fzk
Allow FETCH PARTITION from other zookeepers
2020-08-31 09:54:51 +03:00
bharatnc
5c83b09a2f disallow CODEC setting for column type ALIAS
This commit adds checks in place during table creation
and updates to ensure that we don't allow `CODEC` for
ALIAS (`default_type` column) like:

```sql
CREATE TABLE compression_codec_on_alias
(
    `c0` ALIAS c1 CODEC(ZSTD),
    `c1` UInt64
)
ENGINE = MergeTree()
PARTITION BY c0
ORDER BY c1;
```

After these safeguards in place, when trying to create/update column
codec, we will get excaptions like this:

```sql

-- create

CREATE TABLE compression_codec_on_alias
(
    `c0` ALIAS c1 CODEC(ZSTD),
    `c1` UInt64
)
ENGINE = MergeTree()
PARTITION BY c0
ORDER BY c1

Received exception from server (version 20.8.1):
Code: 377. DB::Exception: Received from localhost:9000. DB::Exception: Cannot specify codec for column type ALIAS.

0 rows in set. Elapsed: 0.006 sec.

-- modify

ALTER TABLE compression_codec_on_alias
    ADD COLUMN `c3` ALIAS c2 CODEC(ZSTD) AFTER c2

Received exception from server (version 20.8.1):
Code: 377. DB::Exception: Received from localhost:9000. DB::Exception: Cannot specify codec for column type ALIAS.

0 rows in set. Elapsed: 0.005 sec.

```
2020-08-30 23:45:53 -07:00
zhang2014
b38c5a844c ISSUES-14231 better comment 2020-08-31 14:16:19 +08:00
zhang2014
761512413e ISSUES-14231 allow dollar and numver in identifier 2020-08-31 14:14:02 +08:00
zhang2014
592b6dcdce Revert "ISSUES-14231 add mysql identifier parser"
This reverts commit ab1d665006.
2020-08-31 13:48:20 +08:00
zhang2014
d24bf8de51 ISSUES-14231 allow dollar sign in identifier 2020-08-31 12:46:41 +08:00
zhang2014
ab1d665006 ISSUES-14231 add mysql identifier parser 2020-08-31 12:33:33 +08:00
Dao Minh Thuc
e22ee38a35 Fix build for AppleClang 2020-08-30 22:48:43 +07:00
BohuTANG
4d4b4b9532 Fix MaterializeMySQL empty GTID transaction issue #14235 2020-08-30 15:55:34 +08:00
alexey-milovidov
b1efc5df01
Merge pull request #14225 from amosbird/bf1
Fix bug in mark inclusion search.
2020-08-30 02:58:22 +03:00
Azat Khuzhin
134080ae3f Add 01460_DistributedFilesToInsert into the arcadia_skip_list
To fix the following failure:
    Yandex synchronization check (only for Yandex employees)
2020-08-30 01:24:21 +03:00
Alexey Milovidov
00419722c2 Minor modification 2020-08-29 22:22:59 +03:00
Alexey Milovidov
0aec4c99d0 Cut off broken parts of "unbundled" build 2020-08-29 18:42:04 +03:00
Alexey Milovidov
746619da45 Merge branch 'fix-unbundled-build' of https://github.com/qoega/ClickHouse into fix-build-3 2020-08-29 18:41:42 +03:00
alexey-milovidov
2a514eae21
Merge pull request #14223 from nikitamikhaylov/update-permutaiton-bug-fix
Fixed incorrect sorting order if LowCardinality column.
2020-08-29 18:25:26 +03:00
Amos Bird
865c66ba7a
Add .reference 2020-08-29 23:09:09 +08:00
Vitaly Baranov
90dd31fef1 Fix crash in SchemaAllowedHandler. 2020-08-29 15:53:15 +03:00
alesapin
2d33a4029b
Merge pull request #14220 from ClickHouse/remove_redundant_flag
Disable force TTL on optimize final
2020-08-29 10:40:36 +03:00
zhang2014
4182596961 ISSUES-14231 try fix wrong lexer 2020-08-29 12:28:04 +08:00
alexey-milovidov
4c60f36a0a
Update 01460_mark_inclusion_search_crash.sql 2020-08-29 09:46:46 +08:00
Amos Bird
591a4d60d4
Fix bug in mark inclusion search. 2020-08-29 09:46:46 +08:00
Alexander Kuzmenkov
b601dd4596 cosmetic fixes for performance report 2020-08-29 01:46:04 +03:00
Alexander Kuzmenkov
bb28320107 cosmetic fixes in performance report 2020-08-29 01:14:48 +03:00
alexey-milovidov
6ae05d70fe
Merge pull request #14226 from ClickHouse/functional-more-docs
Add more docs about functional tests
2020-08-29 00:48:29 +03:00
alexey-milovidov
124a242d9b
Merge pull request #14206 from smallfish/patch-1
Update hdfs.md
2020-08-29 00:40:21 +03:00
alesapin
726f7f9823 Fix s3 tests 2020-08-28 23:38:44 +03:00
alesapin
ebc163c924 Merge branch 'master' into parts_default_compression 2020-08-28 23:11:42 +03:00
alexey-milovidov
c6f55bbe6a
Merge pull request #14151 from 4ertus2/some
Add functions: isDecimalOverflow(), countDigits()
2020-08-28 22:01:54 +03:00
Alexander Kuzmenkov
de8055835c
Add more docs about functional tests 2020-08-28 21:02:43 +03:00
alesapin
10c7a6c45e
Add ability to specify Default codec for columns (#14049)
* Add ability to specify DefaultCompression codec which correspond to settings specified in config.xml

* Fix style

* Rename DefaultCompression to simple Default

* Fix compression codec

* Better codec description representation

* Less strange code and one method

* Fix delta
2020-08-28 20:40:45 +03:00
alesapin
65c33f0802
Merge pull request #13280 from amosbird/as
ALTER MODIFY SAMPLE BY
2020-08-28 19:32:09 +03:00
alesapin
159909a280
Merge pull request #14215 from ClickHouse/filimonov-build-fix
Fix a build for old some OS with old find
2020-08-28 18:40:00 +03:00
Nikita Mikhaylov
fc84d12542 better 2020-08-28 18:28:46 +03:00
Nikita Mikhaylov
9d1cb7e22e done 2020-08-28 18:15:15 +03:00
Gao Qiang
bd9c01e4c0
Update mergetree.md 2020-08-28 22:54:30 +08:00
alesapin
232c264d7d Disable force TTL on optimise 2020-08-28 16:45:42 +03:00
alesapin
14229a27e9
Update CMakeLists.txt 2020-08-28 16:40:22 +03:00
Mark Papadakis
ff76790a59
Update AggregatingTransform.cpp
Replaced redundant call to chunk.getNumRows() with local var.
2020-08-28 16:08:06 +03:00
alesapin
f1dc668136
Update test.py 2020-08-28 16:03:42 +03:00
alesapin
c1ca09653e Update custom parts of storage AST only if it has extended definition 2020-08-28 14:30:53 +03:00
alesapin
1ea00d5e7a Fix test and better messages 2020-08-28 14:12:51 +03:00
Sergei Shtykov
00c8dce39c CLICKHOUSEDOCS-744: Fixed VersionedCollapsingMergeTree description. 2020-08-28 14:01:33 +03:00
alesapin
b599d0a1ff Simplify function 2020-08-28 13:47:29 +03:00
Sergei Shtykov
4cc939f3b6 Merge branch 'master' of github.com:ClickHouse/ClickHouse into master 2020-08-28 13:45:21 +03:00
olgarev
5ecb1717a3
DOCSUP-712: Documented the ttl_only_drop_parts setting (#13823)
* Docs in English for the ttl_only_drop_parts setting.

* Docs in Russian.

* Update docs/ru/operations/settings/settings.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

Co-authored-by: Olga Revyakina <revolg@yandex-team.ru>
Co-authored-by: BayoNet <da-daos@yandex.ru>
2020-08-28 13:29:56 +03:00
alesapin
057bb65658
Merge pull request #14199 from azat/01085_max_distributed_connections-flacky-fix
Fix 01085_max_distributed_connections flackiness
2020-08-28 13:22:30 +03:00