Commit Graph

46983 Commits

Author SHA1 Message Date
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
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
alexey-milovidov
b1efc5df01
Merge pull request #14225 from amosbird/bf1
Fix bug in mark inclusion search.
2020-08-30 02:58:22 +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
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
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
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
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
alesapin
c1ca09653e Update custom parts of storage AST only if it has extended definition 2020-08-28 14:30:53 +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
alesapin
0896b49533 Small fixes 2020-08-28 13:18:56 +03:00
Artem Zuikov
881cd3331a gix comment and useDefault*(), add tests for nullables 2020-08-28 13:16:42 +03:00
filimonov
6d2c9fa70c
Fix a build for old some OS with old find
Actually there are no symlinks there, so `-type f` is enough
2020-08-28 12:00:51 +02:00
陈小玉
e3665ff09d
Update hdfs.md 2020-08-28 15:56:44 +08:00
alesapin
35af2f9df9
Merge pull request #14198 from azat/00974_distributed_join_on-flacky-fix
Fix 00974_distributed_join_on flackiness (by allow retries and hide logs)
2020-08-28 10:04:39 +03:00
alexey-milovidov
9e4c4e0578
Merge pull request #13860 from qoega/unbundled-packager
Update deb-builder ubuntu version. Add clang-11, gcc-10. Add unbundled docker.
2020-08-28 04:17:03 +03:00
alexey-milovidov
d9f24b23a6
Merge pull request #14168 from podshumok/no-ccache-default
cmake: enable ccache by default if it is installed
2020-08-28 04:10:22 +03:00
Azat Khuzhin
07923cd7cd Fix 01085_max_distributed_connections flackiness
1.8 seconds is too small delay, which eventually can lead to
false-positive if the machine will be slow enough.

Increase number of remote streams and the delay, to avoid
false-positive.
2020-08-28 02:41:11 +03:00
Azat Khuzhin
cdb6bed8b9 Fix 00974_distributed_join_on flackiness (by allow retries and hide logs) 2020-08-28 02:10:13 +03:00
alexey-milovidov
f1811bfc88
Merge pull request #14194 from ClickHouse/fix-flaky-test-12
Fix flaky test
2020-08-28 01:46:22 +03:00
alexey-milovidov
0cb7825b8b
Update adopters.md 2020-08-28 01:34:36 +03:00
alexey-milovidov
b93d0911d0
Update adopters.md 2020-08-28 01:29:51 +03:00
alexey-milovidov
484823a859
Update adopters.md 2020-08-28 01:28:41 +03:00
alexey-milovidov
bf0e4f621a
Update adopters.md 2020-08-28 01:23:30 +03:00
alexey-milovidov
a056ffe2f9
Update adopters.md 2020-08-28 01:23:06 +03:00
alexey-milovidov
b7a48df425
Update adopters.md 2020-08-28 01:22:43 +03:00
alexey-milovidov
fb956a2baf
Merge pull request #14193 from ClickHouse/fix-nullptr-dereference-defaultValueOfTypeName
Fix nullptr dereference in defaultValueOfTypeName
2020-08-28 01:12:53 +03:00
Alexey Milovidov
b7c27c2a8c Remove race condition from test 2020-08-27 21:43:21 +03:00
Alexey Milovidov
01567d62a4 Fix nullptr dereference in defaultValueOfTypeName 2020-08-27 21:36:18 +03:00
Yatsishin Ilya
2e7a4483f6 fixes after #13687 2020-08-27 20:35:51 +03:00
Yatsishin Ilya
74d52e69d3 fix 2020-08-27 19:13:32 +03:00
Yatsishin Ilya
3bf5dc578d fixes 2020-08-27 19:06:40 +03:00
Yatsishin Ilya
9e9e723061 Merge remote-tracking branch 'origin' into unbundled-packager 2020-08-27 18:54:43 +03:00
robot-clickhouse
74d4fa3993 Update version_date.tsv after release 20.6.5.53 2020-08-27 17:51:22 +03:00
TAC
371ecb4fe6
Documentation of getting-started in Japanese (#13966)
* Remove machine_translated

* Add 'For non-Linux operating systems and for AArch64 CPU' section

* Translate getting-started/install.md to ja

* Fix index.md anchors

* Translate index.md via GitLocalize

* Translate index.md via GitLocalize

* Translate getting-started/playground.md to ja

* Translate getting-started/index.md to ja

* Translate experiment to 試す in ja

* Translate getting-started/tutoial.md to ja

* Translate getting-started/tutoial.md to ja

* Translate getting-started/example-datasets to ja

* Fix original article path

* Fix getting-started/index.md

* Revert  ja/index.md

* Fix Input/Output to 入出力

* Fix Original argicle en

* Fix missing links md files.

`getting-started/sql-reference/statements/optimize.md` is not placed in ja directory.
Currentry, it refer to english one.

* Change link to optimize.md copied from en

* Change link to alter.md ja
2020-08-27 17:46:11 +03:00