Artem Zuikov
881cd3331a
gix comment and useDefault*(), add tests for nullables
2020-08-28 13:16:42 +03:00
alesapin
6f16c08191
Fix ya.make
2020-08-28 12:29:07 +03:00
alesapin
d8d7c46711
Remove ya.make update
2020-08-28 12:27:59 +03:00
alesapin
77faf9587f
Better interface
2020-08-28 12:07:20 +03:00
Dongdong Yang
7e48edf42c
fix issue #14202
2020-08-28 13:29:15 +08: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
Amos Bird
0c1cf22c00
Allow FETCH PARTITION from other zookeepers
2020-08-27 22:19:18 +08:00
alesapin
32db38b4d2
Fix compression codec in WAL
2020-08-27 17:06:14 +03:00
Artem Zuikov
4c49539ad7
Revert division
2020-08-27 16:56:22 +03:00
Artem Zuikov
a521451af8
Update src/Core/DecimalFunctions.h
...
Co-authored-by: Alexander Kuzmenkov <36882414+akuzm@users.noreply.github.com>
2020-08-27 16:51:48 +03:00
alesapin
d426751e26
Default codec if part is not stored on disk
2020-08-27 16:32:23 +03:00
Artem Zuikov
2a0b98b19c
add countDigits() function
2020-08-27 16:17:13 +03:00
alesapin
0ff5e5412e
Merge branch 'master' into parts_default_compression
2020-08-27 16:01:37 +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
alesapin
1225c09a02
Fix default codec for in-memory parts
2020-08-27 11:35:55 +03:00
alesapin
886a7b485e
Fixed codec in clone part
2020-08-27 09:49:41 +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
Azat Khuzhin
a588947fe2
Fix DistributedFilesToInsert metric (zeroed when it should not)
...
CurrentMetrics::Increment add amount for specified metric only for the
lifetime of the object, but this is not the intention, since
DistributedFilesToInsert is a gauge and after #10263 it can exit from
the callback (and enter again later, for example after SYSTEM STOP
DISTRIBUTED SEND it will always exit from it, until SYSTEM START
DISTRIBUTED SEND).
So make Increment member of a class (this will also fix possible issues
with substructing value on DROP TABLE).
2020-08-27 00:43:00 +03:00
Azat Khuzhin
d04d652ad4
Use CurrentMetrics::Metric over ProfileEvents::Event (cosmetic, both are size_t)
2020-08-27 00:43:00 +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
alesapin
44eb702fbe
Remove redundant code
2020-08-26 22:41:57 +03:00
alesapin
3a680dc8fb
Fix removal bug
2020-08-26 22:40:04 +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
alesapin
1fb93a8bf2
Remove read helpers
2020-08-26 18:57:06 +03:00
alesapin
18eb0dbcaa
Better remove
2020-08-26 18:39:11 +03:00
alesapin
2fc80189af
Add default compression codec to merge tree data part
2020-08-26 18:29:46 +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
Artem Zuikov
fe5db661ce
fix decimal to float conversion and toDecimal256()
2020-08-26 15:26:12 +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
alesapin
4326c9c971
Fix delta
2020-08-26 12:16:32 +03:00
alesapin
249c4b4a94
Less strange code and one method
2020-08-26 11:59:02 +03:00
alesapin
21d78f8513
Better codec description representation
2020-08-26 11:45:13 +03:00
alesapin
7428c46737
Merge branch 'master' into recompressing_in_background
2020-08-26 10:28:03 +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
alexey-milovidov
31460db37c
Merge pull request #14028 from ClickHouse/hczhcz-patch-0819-2
...
Merging #13877
2020-08-26 04:24:24 +03:00
BohuTANG
81e679dc22
ISSUES-4006 support gtid sets with whitespace
2020-08-26 09:04:33 +08:00
alexey-milovidov
f40b80ed45
Merge pull request #12756 from sundy-li/hotfix/dict-access
...
Fix ClickHouseDictionarySource wrong access check
2020-08-26 03:33:42 +03:00
alexey-milovidov
7271c9c983
Merge pull request #14059 from azat/gcc10-fixes
...
gcc10 build fixes
2020-08-26 03:31:03 +03:00
alexey-milovidov
7edb911e91
Merge pull request #13687 from podshumok/forcers
...
cmake: Add option to fail configuration instead of auto-reconfiguration. And make it default
2020-08-26 03:00:26 +03:00
vladimir golovchenko
b0dd1d92b4
Added date_trunc function.
2020-08-25 16:41:08 -07:00
alexey-milovidov
c1c5474730
Merge pull request #14051 from javisantana/fix/info_in_read_only_table
...
adds some info to the exception about zookeeper path
2020-08-26 02:27:01 +03:00
alexey-milovidov
3c6675f7f4
Update AvroRowInputFormat.cpp
2020-08-26 02:26:27 +03:00
alexey-milovidov
7c3c18da92
Merge branch 'master' into bharatnc-ncb/timezones-table
2020-08-26 02:14:53 +03:00
Alexey Milovidov
0101fa0af9
Fix error
2020-08-26 02:12:16 +03:00
alexey-milovidov
00c697df06
Merge pull request #14005 from ClickHouse/ucasFL-new-branch
...
Merging #12195
2020-08-26 01:33:54 +03:00
Alexey Ilyukhov
f32b7f48f1
Fix pointInPolygon with const 2d array
2020-08-26 01:13:47 +03:00
alexey-milovidov
75a3bbf5b2
Merge pull request #13722 from javisantana/fix/replicas_status_verbose
...
return 200 when replicas status is ok and verbose = 1
2020-08-26 00:35:47 +03:00
alexey-milovidov
5d4507907d
Update AvroRowInputFormat.cpp
2020-08-26 00:19:51 +03:00
alexey-milovidov
efa5b76605
Update AvroRowInputFormat.cpp
2020-08-26 00:17:39 +03:00
Alexey Milovidov
e2721e95d8
Merge branch 'master' into hczhcz-patch-0819-2
2020-08-25 23:50:41 +03:00
Alexey Milovidov
63feb75306
Some tweaks
2020-08-25 23:49:22 +03:00
Alexey Milovidov
64af0db94a
Fix error
2020-08-25 23:40:32 +03:00
Azat Khuzhin
50a312534c
Extend parallel_distributed_insert_select to run INSERT into local table
...
Before this patch there was:
- parallel_distributed_insert_select=1, that executes:
INSERT INTO dist_out SELECT ... FROM underlying_dist_in
After this patch there will be:
- parallel_distributed_insert_select=2, that executes:
INSERT INTO underlying_dist_out SELECT ... FROM underlying_dist_in
And cover the behaviour w/o integration test, by using the following
techincs:
- SYSTEM STOP DISTRIBUTED SENDS
- prefer_localhost_replica=0
2020-08-25 22:49:13 +03:00
Alexey Milovidov
7aadd3803c
Fix error
2020-08-25 22:46:47 +03:00
alesapin
e5bc5ea419
Fix compression codec
2020-08-25 22:30:52 +03:00
Azat Khuzhin
99db9341a2
Fix -Werror=type-limits in AggregateFunctionTimeSeriesGroupSum.h (size_t() >= 0)
...
gcc10 reports:
In file included from ../src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.cpp:1:
../src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.h: In instantiation of ‘void DB::AggregateFunctionTimeSeriesGroupSumData<rate>::add(DB::UInt64, DB::Int64, DB::Float64) [with bool rate = true; DB::UInt64 = long unsigned int; DB::Int64 = long int; DB::Float64 = double]’:
../src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.h:246:34: required from ‘void DB::AggregateFunctionTimeSeriesGroupSum<rate>::add(DB::AggregateDataPtr, const DB::IColumn**, size_t, DB::Arena*) const [with bool rate = true; DB::AggregateDataPtr = char*; size_t = long unsigned int]’
../src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.h:239:10: required from here
../src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.h:113:71: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
113 | while (result[i].first > it_ss->second.dps.front().first && i >= 0)
| ~~^~~~
../src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.h: In instantiation of ‘void DB::AggregateFunctionTimeSeriesGroupSumData<rate>::add(DB::UInt64, DB::Int64, DB::Float64) [with bool rate = false; DB::UInt64 = long unsigned int; DB::Int64 = long int; DB::Float64 = double]’:
../src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.h:246:34: required from ‘void DB::AggregateFunctionTimeSeriesGroupSum<rate>::add(DB::AggregateDataPtr, const DB::IColumn**, size_t, DB::Arena*) const [with bool rate = false; DB::AggregateDataPtr = char*; size_t = long unsigned int]’
../src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.h:239:10: required from here
../src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.h:113:71: error: comparison of unsigned expression in ‘>= 0’ is always true [-Werror=type-limits]
2020-08-25 21:20:04 +03:00
Azat Khuzhin
9071457d3f
Fix C++20 comparison calls recursively with reversed arguments in UInt128.h (over.match.oper#3.4.4 in gcc10)
...
Due to [1], gcc10 reports:
../src/Common/UInt128.h:92:81: error: in C++20 this comparison calls the current function recursively with reversed arguments [-Werror]
92 | template <typename T> bool inline operator == (T a, const UInt128 b) { return b == a; }
[1]: http://eel.is/c++draft/over.match.oper#3.4.4
2020-08-25 21:19:57 +03:00
Alexey Milovidov
b3845b10d4
More simple
2020-08-25 20:54:44 +03:00
Alexey Milovidov
39730bfc30
Alternative implementation of #14043
2020-08-25 20:42:35 +03:00
Konstantin Podshumok
17c46faaa7
cmake: fix parquet/arrow variables
...
squashed:
- sync FindArrow.cmake and FindParquet.cmake with arrow repo
- unbundled: add arrow to dbms link libraries
- cmake: fix-up unbundled Arrow support
Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
2020-08-25 20:16:41 +03:00
alexey-milovidov
ea4aa34697
Little bit more pretty
2020-08-25 20:09:35 +03:00
Javi Santana
4942d85090
adds some info to the exception about zookeeper path
2020-08-25 18:09:22 +02:00
alesapin
9ca8c5e77a
Rename DefaultCompression to simple Default
2020-08-25 18:53:06 +03:00
alesapin
7bf0b74293
Fix style
2020-08-25 18:22:21 +03:00
Alexander Tokmakov
59d879b1fe
fix "no space left" extra info for Poco::Exception
2020-08-25 18:06:24 +03:00
alesapin
1180bad3a7
Add ability to specify DefaultCompression codec which correspond to settings specified in config.xml
2020-08-25 18:02:32 +03:00
BohuTANG
d01f4d38eb
ISSUES-4006 fix fast build warning and remove binlog file name
2020-08-25 17:44:23 +08:00
BohuTANG
d8e88499a5
ISSUES-4006 remove old BinlogDump style
2020-08-25 16:01:51 +08:00
BohuTANG
80af056cb4
ISSUES-4006 change the error code from UNKNOWN_EXCEPTION to LOGICAL_ERROR
2020-08-25 15:49:47 +08:00
BohuTANG
0876ab63ec
ISSUES-4006 change to UUID type
2020-08-25 15:44:38 +08:00
Alexey Milovidov
b0908144b3
Fix clang-tidy
2020-08-25 01:20:43 +03:00
Alexey Milovidov
31240aa243
Minor modifications
2020-08-24 23:35:38 +03:00
bharatnc
70d00abe4f
try and fix gcc-9 build.
...
This tries to fix the failing gcc-9 unbundled build:
https://clickhouse-builds.s3.yandex.net/13880/e437d85b927a47da69b8bdc4dde95917c2261cbe/clickhouse_build_check/build_log_753740668_1598037713.txt
2020-08-24 23:31:21 +03:00
bharatnc
a44a90fe99
remove older script that generated tz data
2020-08-24 23:30:41 +03:00