bharatnc
6bb575fae9
fix style check
2020-08-31 00:39:58 -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
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
Amos Bird
591a4d60d4
Fix bug in mark inclusion search.
2020-08-29 09:46:46 +08:00
alexey-milovidov
c6f55bbe6a
Merge pull request #14151 from 4ertus2/some
...
Add functions: isDecimalOverflow(), countDigits()
2020-08-28 22:01:54 +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
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
c1ca09653e
Update custom parts of storage AST only if it has extended definition
2020-08-28 14:30:53 +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
Alexey Milovidov
01567d62a4
Fix nullptr dereference in defaultValueOfTypeName
2020-08-27 21:36:18 +03:00
Amos Bird
078b14610d
ALTER MODIFY SAMPLE BY
2020-08-27 22:31:30 +08:00
Artem Zuikov
2a0b98b19c
add countDigits() function
2020-08-27 16:17:13 +03:00
alexey-milovidov
ea0122de7e
Merge pull request #14120 from ClickHouse/parallel-insert-more-storages
...
Support parallel INSERT for more table engines
2020-08-27 15:08:56 +03:00
alexey-milovidov
9baa0fbf81
Merge pull request #14129 from CurtizJ/fix-performance
...
Slightly optimize very short queries with LowCardinality
2020-08-27 15:07:19 +03:00
Alexander Tokmakov
7943c5c73c
remove "UUID" word for tables from logs
2020-08-27 14:46:19 +03:00
Nikita Mikhaylov
badd5a00c5
Merge pull request #14105 from nikitamikhaylov/nm-better-update-timeout
...
Fix hardcoded timeout
2020-08-27 15:16:47 +04:00
alesapin
afe4702c2c
Merge pull request #14139 from bharatnc/ncb/min_index_granularity_bytes
...
add setting min_index_granularity_bytes
2020-08-27 12:08:07 +03:00
tavplubix
478adb75ef
Merge pull request #14143 from ClickHouse/fix-named-tuple
...
Fix creation of tables with named tuples #13027
2020-08-27 11:56:59 +03:00
Artem Zuikov
724b38adc9
isDecimalOverflow() function
2020-08-27 04:14:10 +03:00
alexey-milovidov
67f16d5ae8
Merge pull request #14122 from ClickHouse/fix-fuzz-test-compile-expressions
...
More range checks when compile_expressions = 1
2020-08-27 02:15:40 +03:00
alexey-milovidov
0f706c01ca
Merge pull request #13888 from vladimir-golovchenko/add-date-trunc-function
...
Added date_trunc function
2020-08-27 02:12:27 +03:00
bharatnc
ffb73adb11
fix style check
2020-08-26 15:31:48 -07:00
bharatnc
593f054b10
minor fix exception message
2020-08-26 15:31:48 -07:00
bharatnc
3a35aedb56
add comments explaining index_granularity_bytes safe guard
2020-08-26 15:31:48 -07:00
bharatnc
4ac9b59cec
format file
2020-08-26 15:31:48 -07:00
bharatnc
37416045ba
setting min_index_granularity_bytes
...
This PR adds a new setting called `min_index_granularity_bytes`.
If the `index_granularity_bytes` is > 0 and is lesser than the
`min_index_granularity_bytes`, throw an exception inside the
`registerStorageMergeTree.cpp` file.
2020-08-26 15:31:48 -07:00
alexey-milovidov
330997dd0a
Merge pull request #14119 from ClickHouse/aku/min-decimal
...
Fix formatting of minimal negative decimal
2020-08-27 01:16:37 +03:00
Alexey Milovidov
651fb3539c
Fix creation of tables with named tuples #13027
2020-08-27 00:57:42 +03:00
alexey-milovidov
f6f8dc9b8a
Merge pull request #13964 from zhang2014/fix/agg_combinator
...
Try fix IfAggCombinator with NullAggCombinator
2020-08-26 23:47:29 +03:00
Anton Popov
eeb78bf291
slightly optimize very short queries with LowCardinality
2020-08-26 21:46:18 +03:00
alexey-milovidov
c53854df19
Merge pull request #14079 from livace/fix_2d_pip
...
Fix pointInPolygon with const 2d array
2020-08-26 21:02:58 +03:00
Alexander Kuzmenkov
c4fc434a13
Merge pull request #14060 from azat/parallel_distributed_insert_select-2
...
Extend parallel_distributed_insert_select to run INSERT into local table
2020-08-26 20:37:36 +03:00
Alexey Milovidov
5dbdd8ea3d
More range checks when compile_expressions = 1
2020-08-26 19:49:19 +03:00
Alexey Milovidov
2a09aa53cc
Support parallel INSERT for more table engines
2020-08-26 19:41:30 +03:00
alexey-milovidov
65ee7dcb18
Merge pull request #13941 from gervarela/avro_confluent_skip_missing_magic_or_schema_id
...
Skip abnormaly small messages in AvroConfluent format
2020-08-26 19:34:42 +03:00
Alexander Kuzmenkov
1a4fcf6650
Fix formatting of minimal negative decimal
2020-08-26 19:34:00 +03:00
alexey-milovidov
7ea28d976a
Update date_trunc.cpp
2020-08-26 17:28:54 +03:00
Nikita Mikhaylov
d05230c55a
Update CacheDictionary.cpp
2020-08-26 17:04:05 +03:00
tavplubix
cff92c8ad3
Merge pull request #13820 from BohuTANG/mysql_replica_gtid_issue_4006
...
ISSUES-4006 support MySQL GTID based replication #4006
2020-08-26 15:02:53 +03:00
Nikita Mikhaylov
da16f234cc
Update CacheDictionary.cpp
2020-08-26 14:06:32 +03:00
alexey-milovidov
c157b7a685
Merge pull request #14056 from ClickHouse/alternative-14043
...
Alternative implementation of #14043
2020-08-26 13:15:30 +03:00
BohuTANG
e3bfd1a5b8
ISSUES-4006 fix clang-tidy error on boost::is_any_of
2020-08-26 14:33:05 +08:00
BohuTANG
3510afd149
ISSUES-4006 change UUID from MySQL big-endian to ClickHouse little-endian
2020-08-26 10:39:07 +08:00
alexey-milovidov
d3a9389465
Merge branch 'master' into bharatnc-ncb/timezones-table
2020-08-26 04:26:37 +03:00