Commit Graph

1420 Commits

Author SHA1 Message Date
Alexey Milovidov
26ea16537c Added a test for stack unwinding from within Hyperscan 2020-06-19 14:50:33 +03:00
Nikolai Kochetov
f7b4039058 Added test. 2020-06-19 14:13:03 +03:00
Anton Popov
36b9847d9a
Merge pull request #11768 from CurtizJ/any-input-optimize
Sligtly better code after #11529.
2020-06-19 03:36:49 +03:00
tavplubix
bed1f37790
Merge pull request #11214 from Potya/multiword_data_type
Add some multiword data types
2020-06-18 23:47:37 +03:00
Ruslan
f44dbcd2ab
Fix crash in min(multiply(1)) with optimize_arithmetic_operations_in_aggregate_functions (#11756) 2020-06-18 22:25:28 +03:00
Azat Khuzhin
0e218b0f15 Improve 01319_optimize_skip_unused_shards_no_nested
Before there is no check that optimize_skip_unused_shards was working
for the first level, use cluster with unavalable shard to guarantee
this.
2020-06-18 21:49:29 +03:00
Azat Khuzhin
724c09a22c Add missing DROP TABLE in 01319_mv_constants_bug 2020-06-18 21:49:29 +03:00
Azat Khuzhin
6507247328 optimize_skip_unused_shards=2 will disable it for nested distributed queries
P.S. Looks like settings can be converted between SettingUInt64 and
SettingBool without breaking binary protocol.

FWIW maybe it is a good idea to change the semantics of the settings as
follow (but I guess that changing semantic is not a good idea, better to
add new settings and deprecate old ones):
- optimize_skip_unused_shards -- accept nesting level on which the
  optimization will work
- force_skip_optimize_shards_nesting -- accept nesting level on which
  the optimization will work
2020-06-18 21:49:29 +03:00
Azat Khuzhin
041533eae2 Disable optimize_skip_unused_shards if sharding_key has non-deterministic func
Example of such functions is rand()

And this patch disables only optimize_skip_unused_shards, i.e. INSERT
code path does not changed, so it will work as before.
2020-06-18 21:49:29 +03:00
Anton Popov
bd28b7e1c2 better code 2020-06-18 20:05:26 +03:00
Ruslan
23cd919681
Any input optimize (#11529)
* workig commit №1

* working commit №2

* first version of ArithmeticOperationsInAgrFuncOptimize (min, max, sum)

* fix conflicts

* fix №2

* attempt №3

* Description + little mistake

* fix style + expanded optimization + add performance test

* style + merge with new version

* one more branch

* bug fix + merge

* just merge

* some code style and logic fixes

* little changes

* tests

* test(2)

* style

* seems to have fixed everything that was required

* bug fix

* style

* build fix

* fix typo

* fix clang-10 warning

* fix clang-10 warning

* nolint

* add new files to ya.make

* extract all functions from Any

* add last new lines.

* extract all functions from Any

* add last new lines.

* build + requested changes

* code style

* build + little perf test + anyLast

* minor changes

* bug fix

* minor changes

* another minor changes

* fix + experement

* experement 2.0

* experement 3.0

* experement 3.1

* experement 4.0

* last experement(think so)

* just another attempt to fix UB

* minor changes

* I think I won

* ya.make

* fix requested changes

Co-authored-by: Artem Zuikov <chertus@gmail.com>
2020-06-18 19:34:29 +03:00
Amos Bird
d524301038
add scalars in time 2020-06-19 00:14:19 +08:00
Alexander Tokmakov
5e42441a72 add test 2020-06-18 17:19:14 +03:00
Nikolai Kochetov
35ab9ad051 Merge branch 'master' into fix-parallel-final-stuck 2020-06-18 16:04:14 +03:00
Artem Zuikov
6af36cb703
CAST keep nullable (#11733) 2020-06-18 13:18:28 +03:00
alexey-milovidov
c9924b8aa1
Merge pull request #11697 from CurtizJ/fix-with-fill
Fix 'ORDER BY ... WITH FILL' over const columns.
2020-06-18 06:38:24 +03:00
Anton Popov
8ba5bd8530 Merge remote-tracking branch 'upstream/master' into distinct-combinator 2020-06-18 01:44:36 +03:00
tavplubix
bb16544bee
Merge pull request #11732 from ClickHouse/fix_type_duduction_in_values_format
Fix type duduction in Values format
2020-06-18 00:21:03 +03:00
Anton Popov
88b325dcdc rework distinct combinator 2020-06-17 22:36:27 +03:00
Avogar
7780a74bd8 Update ORCBlockOutputFormat and add orc include directory in include path 2020-06-17 22:32:11 +03:00
alesapin
ac93f2795c
Merge pull request #11706 from ClickHouse/add_column_check
Add column if not exists tests
2020-06-17 20:09:57 +03:00
Vitaly Baranov
7011401cd4
Merge pull request #11670 from vitlibar/rbac-improve-parser-multiple-entities
RBAC: improve syntax
2020-06-17 16:26:02 +03:00
Alexander Tokmakov
3938b051c2 fix type duduction in values format 2020-06-17 16:21:06 +03:00
Anton Popov
5abbaeecf5 distinct combinator for single numeric arguments 2020-06-17 15:01:47 +03:00
Nikita Mikhaylov
d2be6c036b
Merge pull request #11602 from ClickHouse/fix-buffer-sample
Fix buffer sample
2020-06-17 14:44:48 +04:00
xPoSx
2d8110ce45
Eliminate min/max/any aggregators of GROUP BY keys in SELECT section (#11667) 2020-06-17 12:32:43 +03:00
alesapin
aaa1063275 Fix test and additional case 2020-06-17 11:29:56 +03:00
alexey-milovidov
e07d02015c
Merge pull request #11661 from ClickHouse/return-not-nullable-from-count-distinct-2
Return non-Nullable results from COUNT(DISTINCT), more complete.
2020-06-17 09:25:45 +03:00
alexey-milovidov
598fd75caf
Merge pull request #11639 from ClickHouse/remove-leader-election-2
Remove leader election, step 2: allow multiple leaders
2020-06-17 09:25:23 +03:00
Alexey Milovidov
634829bccb Merge branch 'return-not-nullable-from-count-distinct-2' of github.com:yandex/ClickHouse into return-not-nullable-from-count-distinct-2 2020-06-17 02:01:49 +03:00
Alexey Milovidov
69067efe7a Update test 2020-06-17 02:01:23 +03:00
Alexey Milovidov
a655765040 Merge branch 'master' into return-not-nullable-from-count-distinct-2 2020-06-17 01:15:57 +03:00
Alexander Kuzmenkov
9cab822718
Merge pull request #11683 from ClickHouse/aku/merge-minmap-11603
Merge minMap, maxMap (#11603)
2020-06-17 00:02:33 +03:00
Artem Zuikov
857d84bf7c
Buffer left blocks optimisation for MergeJoin (#10601) 2020-06-16 23:13:18 +03:00
alexey-milovidov
f387752cf1
Merge pull request #11702 from ClickHouse/fix-mv-header
Fix mv header
2020-06-16 22:43:38 +03:00
Alexey Milovidov
0a6054eece Merge branch 'master' into return-not-nullable-from-count-distinct-2 2020-06-16 22:31:33 +03:00
alexey-milovidov
ad53ef2c14
Merge pull request #11686 from ClickHouse/proper-query-formatting-in-log
Don't break multiline queries when they are printed in server log
2020-06-16 22:17:30 +03:00
alexey-milovidov
47bd8df9de
Merge pull request #11692 from ClickHouse/fix-flaky-test-incremental-streaming
Fix flaky test 01064_incremental_streaming_from_2_src_with_feedback
2020-06-16 22:12:46 +03:00
alexey-milovidov
d55155502f
Merge pull request #11694 from ClickHouse/maybe-fix-max-parser-depth-test
Maybe fix max_parser_depth flaky test
2020-06-16 22:11:36 +03:00
alesapin
d214a504d7
Merge pull request #11681 from ClickHouse/fix_mutations_premature_finish
Fix mutations premature "finish"
2020-06-16 21:26:14 +03:00
Anton Popov
d92ba0b216 Merge remote-tracking branch 'upstream/master' into distinct-combinator 2020-06-16 21:13:20 +03:00
Artem Zuikov
a3d6e047fe
Fix lambdas with multiple_joins_rewriter v2 (#11587) 2020-06-16 19:32:32 +03:00
Ivan Blinkov
7e2bb1fd83 Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry 2020-06-16 16:02:55 +03:00
alesapin
0ac5132eb0 Add some tests for alter add column if not exists 2020-06-16 14:36:39 +03:00
alesapin
c403dd6b2f Add test for alter add column if not exists 2020-06-16 14:31:54 +03:00
alesapin
d5b76b2fe1 Fix parts count in mutations 2020-06-16 13:34:59 +03:00
alesapin
0cb14c836c
Merge pull request #11691 from ClickHouse/fix-race-condition-system-sync-replicas
Fix race condition in SYSTEM SYNC REPLICA
2020-06-16 13:29:18 +03:00
alesapin
362aaf1385
Merge pull request #11516 from ClickHouse/consistent_metadata4
Storage metadata as a single struct.
2020-06-16 13:28:22 +03:00
xPoSx
9fc37e1f75
Remove functions of other keys in GROUP BY section (#10051) 2020-06-16 12:14:25 +03:00
Vitaly Baranov
c5229301fc
Merge pull request #11671 from vitlibar/fix-minor-bugs-in-rbac
Fix minor bugs in RBAC
2020-06-16 12:09:54 +03:00
Nikolai Kochetov
86bafbe6c3 Added test from #9043 2020-06-16 11:25:59 +03:00
Anton Popov
b19d48a11c Merge remote-tracking branch 'upstream/master' into HEAD 2020-06-16 06:37:55 +03:00
Alexey Milovidov
125b007360 Merge branch 'master' into remove-leader-election-2 2020-06-16 05:56:29 +03:00
Anton Popov
03058c3c25 fix 'ORDER BY WITH FILL' over const columns 2020-06-16 05:56:16 +03:00
alexey-milovidov
679c3f8ff3
Update 00446_clear_column_in_partition_zookeeper.sql 2020-06-16 04:50:22 +03:00
Alexey Milovidov
edff54e3ab Maybe fix max_parser_depth test 2020-06-16 04:08:01 +03:00
Alexey Milovidov
c85b9ae151 Fix test 2020-06-16 02:43:05 +03:00
Alexey Milovidov
97d5897d2b Fix test 2020-06-16 02:42:10 +03:00
Alexey Milovidov
a753ba9c6a Checked and corrected all other tests 2020-06-16 02:24:32 +03:00
Alexey Milovidov
e0f4c64acf Fix flaky test 2020-06-16 02:18:15 +03:00
Alexey Milovidov
00224ee94f Added a test 2020-06-16 02:04:12 +03:00
Anton Popov
eabbabed04 fix 'LIMIT WITH TIES' with aliases 2020-06-16 01:24:00 +03:00
Alexey Milovidov
ba82441989 Added a test 2020-06-15 23:13:57 +03:00
alesapin
bd17aa8a0e Increase timeout in test 2020-06-15 22:11:17 +03:00
Vitaly Baranov
a5b70fbdda Add tests. 2020-06-15 22:07:47 +03:00
Alexander Tokmakov
d6e69211b1 fix test 2020-06-15 22:05:36 +03:00
Alexander Kuzmenkov
82b5ada130
Merge pull request #11650 from ksvladimir/master
Allow using groupArrayArray and groupUniqArrayArray as SimpleAggregateFunction
2020-06-15 21:29:57 +03:00
Vitaly Baranov
4bd00b02e2 Improve syntax of CREATE QUOTA. Now resource types and key types could be written with underscores.
Also rename columns key_type=>keys and source=>storage in table system.quotas.
2020-06-15 20:10:34 +03:00
Alexey Milovidov
a5e9d793b0 Merge branch 'master' into avoid-trailing-whitespaces-in-some-cases 2020-06-15 19:48:07 +03:00
Alexander Kuzmenkov
0743e8c15d Merge remote-tracking branch 'origin/master' into minmap 2020-06-15 19:39:57 +03:00
alexey-milovidov
3878254e0c
Trigger CI 2020-06-15 19:21:52 +03:00
Alexander Kuzmenkov
e460d7c2bd
Merge pull request #11638 from azat/skip-idx-bloom-filter-fix
Fix bloom filters for String (data skipping indices)
2020-06-15 18:41:04 +03:00
alesapin
8f66c1b22c Merge with master 2020-06-15 17:31:37 +03:00
alesapin
8945d0073a Fix misunderstanding bug in mutations finalization 2020-06-15 16:37:40 +03:00
Vitaly Baranov
c7140724a8 Fix that ALTER USER RENAME could change allowed hosts. 2020-06-15 16:34:16 +03:00
Artem Zuikov
24059efad5
Change push down logic in VIEW (#11513) 2020-06-15 15:36:10 +03:00
Nikolai Kochetov
f9c4721ba2 Added test. 2020-06-15 15:04:30 +03:00
Mikhail Malafeev
10566e2b43
Remove duplicate ORDER BY and DISTINCT from subqueries (#10067) 2020-06-15 15:03:01 +03:00
tavplubix
20b8e1e9ec
Merge pull request #11057 from Potya/null_data_mods
Null data mods
2020-06-15 13:04:51 +03:00
alesapin
bc9a3c0458 Merge branch 'master' into consistent_metadata4 2020-06-15 11:20:30 +03:00
Alexey Milovidov
65a8fe7cf0 Update tests 2020-06-15 09:14:58 +03:00
Alexey Milovidov
6ddc6d7f08 Make the test faster #11637 2020-06-15 07:51:27 +03:00
Alexey Milovidov
e99c6d9143 Update tests 2020-06-15 07:42:29 +03:00
Alexey Milovidov
94d55abfd1 Update tests 2020-06-15 07:40:03 +03:00
Alexey Milovidov
d5e3e7ff76 Update tests 2020-06-15 07:36:55 +03:00
Alexey Milovidov
e2607f005c Fix error with ALTER CONSTRAINT formatting; added a test 2020-06-15 07:36:20 +03:00
Alexey Milovidov
0c1b2d48a3 Update test 2020-06-15 06:58:07 +03:00
Alexey Milovidov
fdc8f7ad14 Merge branch 'master' into avoid-trailing-whitespaces-in-some-cases 2020-06-15 06:52:14 +03:00
alexey-milovidov
fd6115cccf
Merge pull request #11648 from ClickHouse/simplify-code-functions-comparison-3
Allow comparison with String in index analysis; simplify code.
2020-06-15 05:47:03 +03:00
Alexey Milovidov
b51cbbdf15 Update test 2020-06-15 04:08:56 +03:00
alexey-milovidov
550838adbb
Merge pull request #11647 from ClickHouse/simplify-code-functions-comparison-2
Allow comparison of numbers with constant string in IN and VALUES
2020-06-15 03:33:45 +03:00
Alexey Milovidov
b596831342 Merge branch 'master' into remove-leader-election-2 2020-06-15 03:16:41 +03:00
alexey-milovidov
814265b66e
Merge pull request #11665 from ClickHouse/clear-password-from-command-line
Clear password from command line
2020-06-15 02:17:21 +03:00
alexey-milovidov
71dd46bd64
Merge pull request #11664 from ClickHouse/fix-syntax-hilite-create-user
Fix syntax hilite in CREATE USER query
2020-06-15 02:17:11 +03:00
alexey-milovidov
9b6942aa46
Merge pull request #11663 from ClickHouse/fix-timeout-in-test-sql-fuzzy
Fix timeout in sql_fuzzy test
2020-06-15 01:18:34 +03:00
Alexey Milovidov
303d1ebdaf Fix error; more tests 2020-06-15 01:17:06 +03:00
Alexey Milovidov
c4f18d2896 Fix tests 2020-06-15 00:39:22 +03:00
Alexey Milovidov
22366471d0 Added a test 2020-06-14 22:31:45 +03:00
Alexey Milovidov
3663e2a47e Fix syntax hilite in CREATE USER query 2020-06-14 22:11:32 +03:00
Alexey Milovidov
3aedef99ce Added a test 2020-06-14 21:31:42 +03:00
Alexey Milovidov
db0fc6c9a6 Fix tests 2020-06-14 21:24:25 +03:00
Alexey Milovidov
5d891f6c87 Fix tests 2020-06-14 21:13:39 +03:00
alexey-milovidov
561d4b5b01
Merge pull request #11655 from ClickHouse/position-in-system-columns
Added column "position" to system.columns and "column_position" to system.parts_columns
2020-06-14 21:01:41 +03:00
Alexey Milovidov
fcd23d02ee Fix timeout in sql_fuzzy test 2020-06-14 20:57:50 +03:00
Alexey Milovidov
394fb64a9c Better way of implementation 2020-06-14 20:42:11 +03:00
alexey-milovidov
d990b98b90
Merge pull request #11593 from ClickHouse/return-not-nullable-from-count-distinct
Return non-Nullable results from COUNT(DISTINCT)
2020-06-14 20:39:19 +03:00
Alexander Tokmakov
6a439a5eb5 fixes 2020-06-14 19:39:06 +03:00
Avogar
93aee32ae4 Add ORCBlockOutputFormat 2020-06-14 18:35:32 +03:00
Alexander Tokmakov
5f9739fbf9 Merge branch 'master' into fork-potya/null_data_mods 2020-06-14 18:11:55 +03:00
Ivan Blinkov
b8611cf46c experiment 2020-06-14 18:05:15 +03:00
alexey-milovidov
88cf3f7083
Merge pull request #11653 from ClickHouse/parse-date-time-best-effort-incompletely-parsed-value
Return NULL or zero when value is not parsed completely in parseDateTimeBestEffortOr* functions
2020-06-14 10:59:10 +03:00
alexey-milovidov
56b8d81ef6
Merge pull request #11651 from ClickHouse/empty-parameters-url
Skip empty URL parameters
2020-06-14 09:00:52 +03:00
Alexey Milovidov
3958a032ac Added a test 2020-06-14 08:15:29 +03:00
alexey-milovidov
b9b725a39f
Merge pull request #11649 from ClickHouse/case-insensitive-regexp
Allow case-insensitive regexps; added a test
2020-06-14 07:55:09 +03:00
Alexey Milovidov
e2f7a41a1a Fix error; clarify more results in test 2020-06-14 07:16:52 +03:00
Alexey Milovidov
4024840795 Add a test 2020-06-14 07:16:52 +03:00
Alexey Milovidov
e24576c56c Update test 2020-06-14 07:13:27 +03:00
Alexey Milovidov
fb040ef09f Update test result (now it is better) 2020-06-14 07:09:02 +03:00
Alexey Milovidov
59d4df19f0 Update test 2020-06-14 07:05:31 +03:00
Alexey Milovidov
cb395ff099 Update test 2020-06-14 07:04:19 +03:00
Alexey Milovidov
d6cf62e587 Added column "position" to system.columns and "column_position" to system.parts_columns 2020-06-14 04:56:22 +03:00
Alexey Milovidov
fae12d5e42 Return NULL or zero when value is not parsed completely in parseDateTimeBestEffortOr* functions 2020-06-14 04:45:03 +03:00
Alexey Milovidov
970a8e3ecc Skip empty URL parameters #10749 2020-06-14 03:56:13 +03:00
Alexey Milovidov
30f1f88118 Allow case-insensitive regexps; added a test #11101 2020-06-14 03:43:42 +03:00
Volodymyr Kuznetsov
713f8f0b22
Added groupArrayArray and groupUniqArrayArray to SimpleAggregateFunction 2020-06-13 17:21:33 -07:00
Alexey Milovidov
f2677a7841 Added a test just in case 2020-06-14 01:30:17 +03:00
Alexey Milovidov
a421e7e4b4 Added a test 2020-06-14 00:13:52 +03:00
Alexey Milovidov
e1ae9500f9 Merge branch 'master' into remove-leader-election-2 2020-06-13 23:42:32 +03:00
alexey-milovidov
f53da4d36b
Merge pull request #11608 from ClickHouse/fix-nullable-prewhere-type
Fix nullable prewhere type
2020-06-13 20:29:12 +03:00
Alexey Milovidov
d8312d0f00 Remove "fail" from test name; fix typo in test name #11151 2020-06-13 20:25:13 +03:00
Azat Khuzhin
901a657417 Rename 01307_data_skip_bloom_filter to 01307_bloom_filter_index_string_multi_granulas
This better reflects the covered case.
2020-06-13 14:20:42 +03:00
alesapin
5d3de747cd Merge remote-tracking branch 'origin/master' into consistent_metadata4 2020-06-13 11:50:27 +03:00
Ildus Kurbangaliev
01d903c60d add minMap and maxMap functions 2020-06-13 08:49:00 +00:00
Alexey Milovidov
18f8861fa0 Better test 2020-06-13 04:35:49 +03:00
Alexey Milovidov
22dd47c13f Added a test 2020-06-13 04:34:05 +03:00
Azat Khuzhin
0b1ff4f9cc Update max_rows_to_read in 00945_bloom_filter_index test
The expected values was incorrect, since for strings we have 1 and 10
and there will be at least two index granulas, hence 12 rows.
2020-06-13 01:37:20 +03:00
Azat Khuzhin
7f52b615e0 Fix bloom filters for String (data skipping indices)
bloom filter was broken for the first element, if all of the following
conditions satisfied:
- they are created on INSERT (in thie case bloom filter hashing uses
  offsets, in case of OPTIMIZE it does not, since it already has
  granulars).
- the record is not the first in the block
- the record is the first per index_granularity (do not confuse this
  with data skipping index GRANULARITY).
- type of the field for indexing is "String" (not FixedString)

Because in this case there was incorrect length and *data* for that string.
2020-06-12 22:46:40 +03:00
alexey-milovidov
13ceaa4779
Merge pull request #11554 from Enmk/extractAllGroups-Horizontal-and-Vertical
extractAllGroupsHorizontal and extractAllGroupsVertical
2020-06-12 16:56:14 +03:00
Ivan Blinkov
e98a91e9f7 Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry 2020-06-12 16:53:00 +03:00
Alexey Milovidov
11c79e1371 Fix JSON in clickhouse-benchmark; add test 2020-06-11 20:53:33 +03:00
Nikolai Kochetov
8234a430a0 Added test. 2020-06-11 19:40:44 +03:00
alesapin
a39d010f94 Merge branch 'master' into consistent_metadata4 2020-06-11 18:47:41 +03:00
alexey-milovidov
89df9915bb
Merge pull request #11592 from ClickHouse/replicated-merge-tree-create-drop-race-garbage
Fix race conditions in CREATE/DROP of different replicas of ReplicatedMergeTree
2020-06-11 17:11:38 +03:00
Nikolai Kochetov
3eed1c8c2b Added test 2020-06-11 16:41:14 +03:00
Ivan Blinkov
b70ed921ea Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry 2020-06-11 12:22:13 +03:00
Ivan Blinkov
706c545248 experiment 2020-06-11 12:18:12 +03:00
Ivan Blinkov
22707508c1 experiment 2020-06-11 12:17:33 +03:00
tavplubix
1777bd0273
Merge pull request #11467 from hexiaoting/showcreate
Add "SHOW CLUSTER(s)" queries support
2020-06-11 12:01:28 +03:00
Vasily Nemkov
50a184acac extractAllGroupsHorizontal and extractAllGroupsVertical
Split tests, fixed some error messages

Fixed test and error reporting of extractGroups
2020-06-11 11:03:17 +03:00
alexey-milovidov
c7be0d6bc0
Merge pull request #11578 from ClickHouse/fix_10240
Fix query_id of http queries
2020-06-11 06:55:04 +03:00
alexey-milovidov
9c20afbc81
Merge pull request #11579 from ClickHouse/fix_11490
Fix segfault in SHOW CREATE TABLE
2020-06-11 06:54:47 +03:00
alexey-milovidov
9e688307cb
Merge pull request #11580 from ClickHouse/fix-bug-prewhere-in-subquery
Fix prewhere in subquery
2020-06-11 06:53:44 +03:00
Alexey Milovidov
c0f8a3b5f2 Added a test 2020-06-11 06:27:20 +03:00
Vitaly Baranov
d6e16629ae
Merge pull request #11028 from Potya/master
Support numeric parameters in Number and String data types
2020-06-10 23:23:59 +03:00
tavplubix
982c85ac6c
Update 01293_show_clusters.reference 2020-06-10 21:13:16 +03:00
Alexander Tokmakov
3f389c1a19 try fix flacky test 2020-06-10 20:58:55 +03:00
Nikolai Kochetov
e2c6d09019 Added test. 2020-06-10 18:06:55 +03:00
Alexander Tokmakov
08073903ed fix query_id of http queries 2020-06-10 17:24:42 +03:00
Alexander Tokmakov
9166ddea41 fix segfault in show create table 2020-06-10 15:53:12 +03:00
alesapin
8be957ecb5 Better checks around metadata 2020-06-10 14:16:31 +03:00
alesapin
ec933d9d03 Better naming 2020-06-10 12:09:51 +03:00
alesapin
4f398b5dea Merge remote-tracking branch 'origin/master' into consistent_metadata4 2020-06-09 23:53:38 +03:00
alexey-milovidov
8e05558a5f
Merge pull request #11540 from ClickHouse/fix-direct-io
Fix direct IO with PREWHERE
2020-06-09 23:53:09 +03:00
alexey-milovidov
324f2ee3ce
Merge pull request #11543 from azat/flacky-01293_system_distribution_queue
Fix 01293_system_distribution_queue flackiness
2020-06-09 23:51:25 +03:00
Nikolai Kochetov
5cc2f318c9
Merge pull request #11495 from vzakaznikov/live_view_support_for_prewhere
Adding support for PREWHERE in live view tables.
2020-06-09 19:09:17 +03:00
alesapin
f7a397242f Merge branch 'master' into consistent_metadata4 2020-06-09 18:59:59 +03:00
alesapin
e3ae0734c9 Better test 2020-06-09 18:04:56 +03:00
alesapin
a5268b7c46
Update 01079_parallel_alter_detach_table_zookeeper.sh 2020-06-09 13:05:01 +03:00
alesapin
96cdeecd81 Better parallel tests 2020-06-09 13:03:22 +03:00
alesapin
30b02b20e5 Merge branch 'master' into fix-direct-io 2020-06-09 12:39:51 +03:00
Azat Khuzhin
ba4d964388 Add comments for 01281_group_by_limit_memory_tracking test 2020-06-09 11:18:08 +03:00
Azat Khuzhin
1a6c1d1796 Fix 01293_system_distribution_queue test flackiness 2020-06-09 11:18:04 +03:00
Ilya Yatsishin
822c19ddad
Merge pull request #11537 from ClickHouse/usability-exception-message-parse-columns-declaration-list
Better exception message when cannot parse columns declaration list
2020-06-09 09:55:40 +03:00
hexiaoting
75075a7b2b Add DISTINCT keyword when show clusters 2020-06-09 10:39:37 +08:00
Alexey Milovidov
09b9a308cb Fix obvious race condition in test 2020-06-09 05:03:22 +03:00
alesapin
223f45685f Review fixes 2020-06-09 05:03:22 +03:00
alesapin
bdeafe830b Better comment 2020-06-09 04:48:30 +03:00
alesapin
508e0f44d1 Fix modify test 2020-06-09 04:48:30 +03:00
Alexey Milovidov
6936da4e5d Fix bad test 2020-06-09 03:42:56 +03:00
Alexey Milovidov
6ee6b751be Added failing test #11539 2020-06-09 03:38:47 +03:00
alexey-milovidov
91d06c7e4f
Merge pull request #11523 from ClickHouse/fixing_01079_tests
Fixing test and benign race condition during table drop
2020-06-09 02:02:39 +03:00
alesapin
0d375e4522 Fix constraints 2020-06-08 21:49:54 +03:00
alesapin
ce73b30505 Review fixes 2020-06-08 21:08:55 +03:00
alesapin
5db83dad07 Better comment 2020-06-08 18:18:33 +03:00
alesapin
68bd636c9c Fix modify test 2020-06-08 18:16:01 +03:00
Alexey Milovidov
7ba2d7e15f Changed timeouts in test 2020-06-08 15:35:57 +03:00
Vitaliy Zakaznikov
5fe67c4292 * Removing supportsPrewhere() from StorageLiveView.h as it is not valid.
* Updating test to check using PREWHERE in query against live view table.
* Updating test to check using PREWHERE in the stored query against the table that does
  not support PREWHWERE.
2020-06-08 13:12:40 +02:00
Alexey Milovidov
4216f2fe37 Merge branch 'master' into fix-aggregation-state-exception-safety-memory-leak 2020-06-08 06:31:20 +03:00
hexiaoting
75768413ad fix errors found by Style Check 2020-06-08 10:23:57 +08:00
Alexey Milovidov
e507f6b836 More crystallized test 2020-06-08 02:01:04 +03:00
Alexey Milovidov
d5443293a3 Added a test 2020-06-08 01:49:26 +03:00
Vitaliy Zakaznikov
75c97ca82a Adding support for PREWHERE in live view tables. 2020-06-08 00:19:23 +02:00
Alexey Milovidov
d8d245354d Added a test 2020-06-07 20:30:55 +03:00
Alexey Milovidov
d3d02a67f4 Speed up build by removing old example programs 2020-06-06 19:19:16 +03:00
alexey-milovidov
3e84b17cf8
Merge pull request #11394 from azat/system.distribution_queue
Add system.distribution_queue table
2020-06-06 18:59:59 +03:00
Anton Popov
5c42408add
Merge pull request #9113 from dimarub2000/group_by_in_order_optimization
[WIP] Optimization of GROUP BY with respect to table sorting key.
2020-06-06 14:25:59 +03:00
alexey-milovidov
42534959e3
Merge pull request #11421 from livace/fix_point_in_polygon_with_nan
Fix pointInPolygon with nan
2020-06-06 12:37:19 +03:00
alexey-milovidov
050ef9eb54
Merge pull request #11455 from azat/INSERT-SELECT-FINAL-pipeline-stuck
Fix Pipeline stuck for INSERT SELECT FINAL
2020-06-06 12:36:07 +03:00
alexey-milovidov
5f99d887cc
Merge pull request #11443 from 4ertus2/strange
Rename setting
2020-06-06 01:45:21 +03:00
Anton Popov
66e31d4311 in-memory parts: several fixes 2020-06-05 23:49:24 +03:00
Vitaly Baranov
92ae3e11fa
Merge pull request #11356 from PerformanceVision/netloc_function
Create a netloc function for extracting network location
2020-06-05 22:13:38 +03:00
Dmitry
a1f8d88cd4 fix new line 2020-06-05 20:42:56 +03:00
Dmitry
9ae9ab2e70 test added 2020-06-05 20:41:47 +03:00
Dmitry
2c7e3eab23 stateful tests updated with setting 2020-06-05 20:03:36 +03:00
Artem Zuikov
ecca78d855
fix trivial count with join (#11454) 2020-06-05 13:28:52 +03:00
Nikolai Kochetov
f2350d3aec
Merge pull request #11415 from azat/SYSTEM-FLUSH-DISTRIBUTED-ON-CLUSTER
ON CLUSTER support for SYSTEM {FLUSH DISTRIBUTED,STOP/START DISTRIBUTED SENDS}
2020-06-05 12:59:38 +03:00
hexiaoting
d2052dd1d4 show clusters 2020-06-05 17:13:13 +08:00
Azat Khuzhin
5deda4c7fd Add regression test for Pipeline stuck error with INSERT SELECT FINAL 2020-06-05 01:11:48 +03:00
Artem Zuikov
ab86ca2fb6 rename v2 2020-06-05 01:10:52 +03:00
Artem Zuikov
6d211bec19 fix trivial count with join 2020-06-05 01:01:40 +03:00
Azat Khuzhin
0f368c804d Fix SYSTEM START/STOP DISTRIBUTED SENDS w/o table name 2020-06-04 20:22:29 +03:00
Artem Zuikov
f18debb108 fix test 2020-06-04 20:00:15 +03:00
tavplubix
52aada4b80
Fix flacky test 2020-06-04 16:47:21 +03:00
alesapin
603917999b
Merge pull request #11431 from ClickHouse/fix_codecs_arguments_crash
Fix segfault with wrong codecs arguments
2020-06-04 16:15:42 +03:00
Artem Zuikov
6cdeb060fb
Fix JOIN over LC and Nullable in key (#11414) 2020-06-04 13:07:22 +03:00
alesapin
7fac00ae15 Fix segfault with wrong codecs arguments 2020-06-04 11:55:56 +03:00
Alexey Ilyukhov
1daf1146e1 Fix pointInPolygon with nan 2020-06-04 03:59:07 +03:00
Azat Khuzhin
389f78ceee Add system.distribution_queue
system.distribution_queue contains the following columns:
- database
- table
- data_path
- is_blocked
- error_count
- data_files
- data_compressed_bytes
2020-06-04 02:36:16 +03:00
Anton Popov
b312ac9786 in-memory parts: fix columns sizes 2020-06-04 01:53:04 +03:00
alexey-milovidov
9e3024976e
Merge pull request #11416 from ClickHouse/add-test-form-11413
Added test from #11413
2020-06-04 01:46:57 +03:00
alexey-milovidov
acf7773942
Merge pull request #11403 from Enmk/geohashesInBox-fix
Fixed geohashesInBox argument range
2020-06-04 01:44:37 +03:00
Azat Khuzhin
799f9f9011 Wrap 01294_system_distributed_on_cluster into db to know db name for ON CLUSTER 2020-06-04 00:06:36 +03:00
Nikolai Kochetov
f68af0b666 Added test. 2020-06-03 22:43:05 +03:00
Anton Popov
11c4e9dde3 in-memory parts: fix 'check' query 2020-06-03 22:19:49 +03:00
Azat Khuzhin
71d0e60dcb ON CLUSTER support for SYSTEM {FLUSH DISTRIBUTED,STOP/START DISTRIBUTED SEND}
It is pretty logical to have ON CLUSTER for managing Distributed tables.
2020-06-03 21:51:52 +03:00
Anton Popov
1ce09e1faa Merge remote-tracking branch 'upstream/master' into polymorphic-parts 2020-06-03 16:27:54 +03:00
Vasily Nemkov
97a1cc1b52 Fixed geohashesInBox argument range 2020-06-03 13:38:44 +03:00
Ruslan
7757c9ec57
Remove arithmetic operations from aggregation functions (#10047) 2020-06-03 13:28:30 +03:00
Anton Popov
caf1e4e8cc in-memory-parts: fixes 2020-06-03 12:51:23 +03:00
Alexander Kuzmenkov
c7d9094a7a
Merge pull request #11259 from ClickHouse/consistent_metadata3
More consistent metadata for secondary indices
2020-06-03 12:23:21 +03:00
Alexander Kuzmenkov
8bf8b44510
Merge pull request #11366 from ClickHouse/fix-SortingTransform-bug
Fix sorting transform bug
2020-06-03 12:11:57 +03:00
Ilya Yatsishin
4b2e92bb40
Merge pull request #11389 from 4ertus2/bugs
Fix logical error in joinGet()
2020-06-03 07:49:03 +03:00
alexey-milovidov
6864016e22
Merge pull request #11324 from ClickHouse/improve-performance-of-client-interactive-mode
Add setting "output_format_pretty_max_value_width".
2020-06-03 00:17:29 +03:00
alexey-milovidov
7ec11cad65
Merge pull request #11350 from ClickHouse/fix-client-vertical-multiline
Fix \G in clickhouse-client multiline mode
2020-06-03 00:13:03 +03:00
Artem Zuikov
7e7aea0ddb better errors for joinGet() 2020-06-02 23:26:41 +03:00
alexey-milovidov
d47d0d7108
Merge pull request #11346 from ClickHouse/optimize-final-should-force-merge-2
OPTIMIZE FINAL should force merge even if concurrent merges are performed (experimental, try 2)
2020-06-02 16:40:20 +03:00
alexey-milovidov
9b07989954
Merge pull request #11348 from ClickHouse/lazy-database-segfault-2
Fix potential segfault when using Lazy database.
2020-06-02 16:37:23 +03:00
Nikolai Kochetov
289c983f17 Add test. 2020-06-02 13:52:05 +03:00
Alexander Kuzmenkov
bd84c3be18
Merge branch 'master' into fuzz_data 2020-06-02 12:49:43 +03:00
Guillaume Tassery
500a8d22fa create netloc function 2020-06-02 15:34:08 +07:00
alesapin
e5eb6071a4 Merge with master 2020-06-02 10:46:58 +03:00
alesapin
1ab3047201 Merge branch 'master' into consistent_metadata3 2020-06-02 10:37:12 +03:00
Alexey Milovidov
1be9a6f6cd Add tests 2020-06-02 07:02:27 +03:00
Anton Popov
38ce4f33fb fix flacky test with ttl 2020-06-02 06:00:44 +03:00
Alexey Milovidov
cd07d61ce7 Updated tests 2020-06-02 05:39:21 +03:00
Alexey Milovidov
80f9a47c72 Added test result 2020-06-02 05:10:38 +03:00
Alexey Milovidov
a6bf4b5d70 Fix error with Lazy database 2020-06-02 05:06:16 +03:00
Alexey Milovidov
d34b1a8791 Merge branch 'master' into improve-performance-of-client-interactive-mode 2020-06-02 04:24:17 +03:00
Alexey Milovidov
877a3725eb Added a test 2020-06-02 03:33:53 +03:00
alexey-milovidov
8e5d672563
Merge pull request #11340 from 4ertus2/bugs
Fix crash in select from StorageJoin
2020-06-02 02:46:08 +03:00
Alexey Milovidov
36c23e240d Update some tests 2020-06-02 02:41:41 +03:00
Alexey Milovidov
2a0da608fd Update tests 2020-06-02 02:31:50 +03:00
alesapin
ad6447398f Fix indices calculation during merge 2020-06-01 22:58:30 +03:00
Anton Popov
e1970f6d28 in-memory parts: fix reading of nested 2020-06-01 20:53:18 +03:00
Artem Zuikov
bfa59adbfe fix select from StorageJoin 2020-06-01 20:27:22 +03:00
Nikolai Kochetov
86d072aff4 Added test. 2020-06-01 19:37:26 +03:00
alesapin
3847ea892d Merge branch 'master' into consistent_metadata3 2020-06-01 13:17:59 +03:00
Artem Zuikov
9028a25f3c
more types in ASOF JOIN (#11301) 2020-06-01 12:38:46 +03:00
Andrei Nekrashevich
1cd888f505 fix 2020-06-01 02:40:38 +03:00
Alexey Milovidov
a76bd99e84 Added setting "output_format_pretty_max_value_width" 2020-06-01 01:12:13 +03:00
Arthur Petukhovsky
54a746e24d Make less calls to clickhouse-client in tests
By @achulkov2
2020-05-31 21:47:54 +03:00
alexey-milovidov
8accde79b5
Merge pull request #11162 from azat/data-skip-index-merging-params-fix
[RFC] Fix data skipping indexes for columns with additional actions during merge
2020-05-31 19:10:53 +03:00
alexey-milovidov
a8f5b10f15
Merge pull request #10621 from azat/enable_optimize_predicate_expression-order
Fix predicates optimization for distributed queries with HAVING
2020-05-31 18:55:35 +03:00
alexey-milovidov
5b2b3739b9
Merge pull request #11318 from devwout/master
Fix visitParamExtractRaw for strings with unbalanced { or [.
2020-05-31 17:52:00 +03:00
alexey-milovidov
1a8c19741e
Merge pull request #11311 from ClickHouse/fix-uninitialized-memory-in-cast
Fix uninitialized memory in conversion
2020-05-31 17:33:06 +03:00
alexey-milovidov
5010cd724e
Merge pull request #11315 from ClickHouse/add-test-for-distributed_low_cardinality_memory_efficient
Added a test for Distributed table with String looking at tables with LowCardinality(String) in presense of memory efficient aggregation setting
2020-05-31 17:30:58 +03:00
alexey-milovidov
bebc6f82fc
Merge pull request #10678 from livace/add_geo_types
Add geo data types Point and Polygon
2020-05-31 17:25:15 +03:00
alexey-milovidov
97d9f218af
Merge pull request #11296 from ClickHouse/fix-false-too-slow
Fix bug with Throttler and query speed estimation
2020-05-31 14:18:29 +03:00
Ewout
70eaae38f2 Fix visitParamExtractRaw for strings with unbalanced { or [.
Closes #11254 .
2020-05-31 00:58:30 +02:00
Alexey Milovidov
3574dfe1db Added test for Distributed table with Seting looking at tables with LowCardinality(String) in presense of memory efficient aggregation setting #6638 2020-05-30 22:07:46 +03:00
alexey-milovidov
3eea042d16
Merge pull request #11243 from ClickHouse/remove-experimental-use-processors-flag-4
Remove some code.
2020-05-30 21:05:14 +03:00
Alexey Milovidov
387843411d Make is more easy 2020-05-30 19:46:58 +03:00
Alexey Milovidov
c24084a46d Fix test 2020-05-30 19:41:45 +03:00
Alexey Milovidov
421a62e978 Merge branch 'master' into fix-false-too-slow 2020-05-30 19:36:55 +03:00
Alexey Milovidov
1b825baf21 Added a test 2020-05-30 19:31:36 +03:00
Alexey Ilyukhov
b84c8fcbd8 Add allow_experimental_geo_types; add test 2020-05-30 18:26:19 +03:00
Andrei Nekrashevich
f3447ee63b fix 2020-05-30 08:47:05 +03:00
Alexey Milovidov
8c8821475c Fix issue #11286; add a test 2020-05-30 00:32:35 +03:00
alexey-milovidov
94887f0c74
Merge pull request #11285 from ClickHouse/fix_fixed_database_tests
Add retries in clickhouse-test before server start
2020-05-29 23:54:36 +03:00
alexey-milovidov
88d6633d90
Merge pull request #11290 from ClickHouse/attempt-to-fix-flacky-test
Attempt to fix flacky test 01108_restart_replicas_rename_deadlock.sh
2020-05-29 23:53:50 +03:00
Alexey Milovidov
2ba268c80a Added a test for #6228 2020-05-29 23:45:47 +03:00
Alexey Milovidov
fe9bd0e918 Added a test for #5732 2020-05-29 23:37:14 +03:00
Alexey Milovidov
cf91793d90 Added a test from @den-crane 2020-05-29 23:05:41 +03:00
Andrey Chulkov
e576919626 delete old tests, rename and (hopefully) fix new tests 2020-05-29 22:48:41 +03:00
Alexey Milovidov
1732888d98 Added a test for network throttler 2020-05-29 22:44:24 +03:00
Alexey Milovidov
6ec9287925 Added a test 2020-05-29 22:37:23 +03:00
alexey-milovidov
1abaca5174
Merge pull request #11276 from ClickHouse/fix-constraints-and-insert-performance
Fix constraints for DEFAULT fields; fix constraints for temporary tables; improve performance of INSERT for small blocks.
2020-05-29 20:04:59 +03:00
Anton Popov
fa05641b06 in-memory parts: partition commands 2020-05-29 19:58:08 +03:00
Anton Popov
c919840722 in-memory parts: partition commands 2020-05-29 18:02:12 +03:00
alexey-milovidov
58c1d96582
Merge pull request #11208 from ClickHouse/escape-sequences-php-mysql-style
Experiment on parsing backslash escapes in a more convenient way #10922
2020-05-29 17:19:00 +03:00
Alexey Milovidov
e940229e71 Attempt to fix flacky test 2020-05-29 17:09:28 +03:00
Alexey Milovidov
080b2ec891 Attempt to fix flacky test 2020-05-29 17:04:16 +03:00
alexey-milovidov
9c21d9674a
Merge pull request #11270 from ClickHouse/fix-flacky-test-optimize
Fix potentially flacky test
2020-05-29 16:37:10 +03:00
alexey-milovidov
e11eeb0ce6
Merge pull request #11265 from ClickHouse/add-a-test-from-donmikel
Add a test from @donmikel
2020-05-29 16:32:07 +03:00
Andrei Nekrashevich
2a63522522 fix 2020-05-29 14:38:20 +03:00
alesapin
0f1c81ea52 Fix test because we don't want to modify AST in memory, just change filter params 2020-05-29 14:30:02 +03:00
alesapin
bd03d1acb9 Remove hardcoded database from some tests and add retries to clickhouse-test 2020-05-29 13:08:11 +03:00
Nikolai Kochetov
0e27f47632 Try update test. 2020-05-29 11:42:55 +03:00
Alexey Milovidov
23d7947549 Fix constraints for DEFAULT fields; fix constraints for temporary tables; improve performance of INSERT for small blocks 2020-05-29 05:08:48 +03:00
Andrei Nekrashevich
af469c0da5 fix issues 2020-05-29 05:06:21 +03:00
Alexey Milovidov
263bc6e097 Added missing file 2020-05-29 03:26:56 +03:00
Anton Popov
4769ce7271 in-memory parts: several fixes 2020-05-29 02:59:13 +03:00
Alexey Milovidov
7df5280060 Fix potentially flacky test 2020-05-29 02:09:11 +03:00
Alexey Milovidov
2b4d9a6349 Add a test from @donmikel 2020-05-29 01:00:01 +03:00
alexey-milovidov
fb4d272f5b
Merge pull request #11258 from vitlibar/protobuf-fix-handling-bad-data
Fix handling bad data while reading in Protobuf format.
2020-05-28 23:26:20 +03:00
Vitaly Baranov
99626a5bd3 Add test for handling malformed protobuf data. 2020-05-28 20:07:54 +03:00
Alexey Milovidov
7853722519 Update tests 2020-05-28 17:18:58 +03:00
Alexey Milovidov
71b7bb9c3a Merge branch 'master' into escape-sequences-php-mysql-style 2020-05-28 16:58:23 +03:00
tavplubix
801c1c1240
Merge pull request #11205 from ClickHouse/fix-view-totals
Fix totals and extremes header for view.
2020-05-28 15:05:34 +03:00
Alexander Kuzmenkov
a697560738
Merge pull request #11224 from ClickHouse/aku/merge-arrow-stream
Merge ArrowStream format #11088
2020-05-28 09:37:40 +03:00
Andrei Nekrashevich
94c5d87ebc fix 2020-05-28 06:16:48 +03:00
alexey-milovidov
cbac07f5eb
Merge pull request #11163 from azat/bump-jemalloc
[WIP] Bump jemalloc to 5.2.1
2020-05-28 01:17:26 +03:00
Anton Kvasha
6ceba0bb12 fix 2020-05-28 00:07:33 +03:00
alexey-milovidov
dffeec8637
Merge pull request #10537 from expl0si0nn/ttl_expr_data_rollup
Support of WHERE and GROUP BY in TTL expressions
2020-05-27 21:35:55 +03:00
Anton Kvasha
75047dec20 Fixed path 2020-05-27 20:36:00 +03:00
Anton Kvasha
85ceaf2bc0 Changed archive type 2020-05-27 18:22:59 +03:00
Artem Zuikov
4fa3628097
test for probably fixed issue (#11221) 2020-05-27 17:25:11 +03:00
Alexander Kuzmenkov
ac263f921e Merge remote-tracking branch 'origin/master' into HEAD 2020-05-27 15:51:03 +03:00
Alexander Kuzmenkov
0fc1268432
Merge pull request #11120 from azat/function-port
Add port() function
2020-05-27 15:27:06 +03:00
alexey-milovidov
2da6a39d5b
Merge pull request #11119 from azat/flacky-test-group_by_limit_memory_tracking
Fix 01281_group_by_limit_memory_tracking flackiness
2020-05-27 14:09:22 +03:00
alexey-milovidov
8bfe21f101
Update 01281_group_by_limit_memory_tracking.sh 2020-05-27 14:09:12 +03:00
Nikolai Sorokin
141ed88751 Allow functions in group by keys; Add default aggregate function; Add more tests 2020-05-27 12:53:15 +03:00
Nikolai Sorokin
ed09f68b8d Better tests 2020-05-27 12:53:15 +03:00
Nikolai Sorokin
c6541b1dad Up test id; Fix clang build 2020-05-27 12:53:15 +03:00
Nikolai Sorokin
9269db072a Better tests 2020-05-27 12:53:15 +03:00
Nikolai Sorokin
a991dcf9f4 Add tests 2020-05-27 12:53:15 +03:00
Andrey Chulkov
49276426aa Merge remote-tracking branch 'upstream/master' into polygon-dict-grids 2020-05-27 03:20:21 +03:00
Azat Khuzhin
ec894e7cb3 Check for POPCNT instruction 2020-05-27 03:01:16 +03:00
bobrovskij artemij
8d69223aaf show_privileges test fix, one more build fix 2020-05-27 01:20:25 +03:00
alexey-milovidov
2aeb6017c1
Merge pull request #11211 from ClickHouse/fix-flacky-test-dist-on-dist
Fix flacky test #11190
2020-05-27 00:49:45 +03:00
Nikolai Kochetov
361b92f083
Merge pull request #11200 from ClickHouse/fix-strict-resize-finishing
Fix StrictResize
2020-05-26 21:31:44 +03:00
Alexey Milovidov
009f57fc2f Fix flacky test #11190 2020-05-26 21:26:17 +03:00
Anton Kvasha
fa47e1dd3f fix 2020-05-26 19:51:03 +03:00
Anton Kvasha
fa12699bc4 fix 2020-05-26 19:49:35 +03:00
Anton Kvasha
f95d307e60 Tests improved 2020-05-26 17:48:14 +03:00
Alexey Milovidov
b2057159c1 Experiment on parsing backslash escapes in a more convenient way #10922 2020-05-26 17:24:20 +03:00
Vasily Nemkov
28a2cc0a82 Functions {to,from}UnixTimestamp64{Milli,Micro,Nano}
* Family of functions to convert DateTime64 to Int64 and back, usefull for
   imporintg/exporting raw timestamp values of certain precision.
 * Docs
 * Tests
 * Fixed ya.make
2020-05-26 16:42:22 +03:00
Nikolai Kochetov
8074e2027f Added test. 2020-05-26 16:32:44 +03:00
Anton Kvasha
00597e033c Test fix 2020-05-26 15:13:19 +03:00
Anton Kvasha
f25166eb9c New tests 2020-05-26 17:38:20 +03:00
Nikolai Kochetov
b16936ba9d Added test. 2020-05-26 13:37:10 +03:00
Ilya Yatsishin
2b155ac989
Merge pull request #11185 from ClickHouse/fix-lambda-lc-args
Fix lambda lc args
2020-05-26 10:27:35 +03:00
Nikolai Kochetov
53a514093a Added test. 2020-05-25 22:22:03 +03:00
potya
2974d81b2e Fix erros and add test 2020-05-25 21:58:30 +03:00
potya
aea97ba9e4 Fix types and add complex test 2020-05-25 20:10:44 +03:00
alesapin
51ffcff75b
Merge pull request #11180 from ClickHouse/revert_flush_logs_in_test
Revert #11023
2020-05-25 17:38:19 +03:00
Sofia Antipushina
f206d74b63 fix align of data && add test 2020-05-25 17:02:55 +03:00
potya
fb08a96582 Add simple test 2020-05-25 14:11:51 +03:00
Nikolai Kochetov
c83014bc76
Merge pull request #11114 from azat/max_threads-simple-query-optimization-fix
Do not reserve extra threads after max threads optimization for simple queries
2020-05-25 14:05:46 +03:00
alesapin
3d9ba9ff8a Revert #11023 2020-05-25 13:06:27 +03:00
hcz
f2e3bcdd15 Improve code style in src and test files of Arrow formats 2020-05-25 10:50:55 +08:00
Alexey Milovidov
75dbfd4652 Fix flacky test 2020-05-25 01:36:00 +03:00
Nikita Vasilev
5801a33b83 Merge remote-tracking branch 'upstream/master' into nikvas0/ssd_dict 2020-05-24 19:08:07 +03:00
Azat Khuzhin
24271ec50f Test for data skip index over column under aggregation
Affected versions: 19.17.9.60+
2020-05-24 16:12:08 +03:00
Azat Khuzhin
9de1a231c9 Add optional default_port argument for the port() function 2020-05-23 23:36:01 +03:00
Azat Khuzhin
aa5247f1fe Get back 01281_group_by_limit_memory_tracking (without flackiness) 2020-05-23 22:57:29 +03:00
Azat Khuzhin
409cff11df Add port() function
It uses domain() (getURLHost()) internally so it has the same
limitations:
- no ipv6 support
- no host-without-dots support (i.e. "foobar")
2020-05-23 20:45:56 +03:00
alexey-milovidov
08c7277d2b
Merge pull request #11144 from ClickHouse/dont-validate-polygons-in-non-constant-case
Fix performance issue with pointInPolygon
2020-05-23 18:54:50 +03:00
tavplubix
6ece9649f1
Merge pull request #11151 from naorlov/CLICKHOUSE-7224
Add `FailedQuery`, `FailedSelectQuery` and `FailedInsertQuery`
2020-05-23 18:47:44 +03:00
Azat Khuzhin
8c69245283 Add a test for max_threads optimization for simple queries 2020-05-23 17:07:43 +03:00
Alexey Milovidov
d5ed38cfe0 Adapted test: do not use points on the edges 2020-05-23 14:27:02 +03:00
Nikita Orlov
d06e7bab7e
issue-7224 Fix failing tests 2020-05-23 13:45:27 +03:00
Nikita Vasilev
d4cc01446c Merge remote-tracking branch 'upstream/master' into nikvas0/ssd_dict 2020-05-23 13:06:47 +03:00
Nikita Orlov
2545efcf2e
issue-7224 Added tests 2020-05-23 02:03:02 +03:00
Azat Khuzhin
88d08f9f39 Move tests from 00740_optimize_predicate_expression to 01056_predicate_optimizer_bugs 2020-05-23 00:36:30 +03:00
Azat Khuzhin
765ed4f89b Fix 01056_predicate_optimizer_bugs 2020-05-23 00:36:30 +03:00
Azat Khuzhin
f19c619dfe Add test from #10613 for enable_optimize_predicate_expression 2020-05-23 00:36:30 +03:00
Azat Khuzhin
6d40c1ea2c Preserve order of expressions during predicates optimization (enable_optimize_predicate_expression)
Before this patch enable_optimize_predicate_expression changes the
order *every* time, so:
  foo AND bar -> bar AND foo

And this causes troubles for distributed queries, since query on shard
will have different order of expressions with the initiating server.
2020-05-23 00:36:30 +03:00
Vitaly Baranov
5a0f356cd6
Merge pull request #11038 from Enmk/parseDateTime64BestEffort_fix
Fixed parseDateTime64BestEffort implementation
2020-05-22 14:40:39 +03:00
alexey-milovidov
e5808c6f2f
Merge pull request #11122 from ClickHouse/aku/addr2line
Remove extra copying from addressToLine
2020-05-22 14:16:46 +03:00
Alexey Milovidov
a2fabd7ff0 Remove unreliable test #11119 2020-05-22 12:36:26 +03:00
alesapin
b9dfa61774
Merge pull request #11042 from CurtizJ/modify-ttl
Apply TTL for old data, after ALTER MODIFY TTL query
2020-05-22 11:12:14 +03:00
Alexander Kuzmenkov
322d731d28 Remove extra copying from addressToLine
The line is already serialized to the same arena, so there is no need to
copy it. Also add this function to query profiler test, so that it has
some coverage.
2020-05-22 03:01:35 +03:00
alexey-milovidov
2d9433242e
Merge pull request #11097 from ClickHouse/azat-memory-tracking-2
Merging #11022
2020-05-21 20:19:59 +03:00
alexey-milovidov
41a3817efa
Merge pull request #11096 from ClickHouse/test-for-ttl-in-system-parts
Test for TTL info in system.parts
2020-05-21 20:19:41 +03:00
Vasily Nemkov
403aae9126 Fixed parseDateTime64BestEffort implementation
Fixed argument resolution issues.
Added tests and made sure -orNull and -orZero variants alwo work correctly.
2020-05-21 17:21:39 +03:00
alexey-milovidov
b480f137f3
Merge pull request #10623 from livace/master
Add point in polygon for non-const polygons
2020-05-21 15:18:24 +03:00
alexey-milovidov
569f20e4c6
Merge pull request #11023 from azat/tests-system-log-cleanup
[RFC] Truncate system.*_log tables before each test
2020-05-21 15:14:25 +03:00
Alexey Milovidov
6669607e17 Merge branch 'master' into vectorize-sum 2020-05-21 15:02:51 +03:00
Alexey Milovidov
80c7e85f38 Disable potentially unreliable check 2020-05-21 13:58:05 +03:00
Alexey Milovidov
886266fdad Attempt to fix an error 2020-05-21 13:57:24 +03:00
Alexey Milovidov
1fca0294fe Fix logical error in test 2020-05-21 13:48:48 +03:00
Alexey Milovidov
c816916fba Fix typo 2020-05-21 13:46:36 +03:00
Alexey Milovidov
38f36f6b58 Merge branch 'memory-tracking' of https://github.com/azat/ClickHouse into azat-memory-tracking-2 2020-05-21 13:00:04 +03:00
Alexey Milovidov
7e4cd8f8d4 Test for TTL info in system.parts 2020-05-21 12:55:39 +03:00
Nikolai Kochetov
986dfe79a5
Merge pull request #10858 from azat/min_mv_insert_block_size
[RFC] Introduce min_insert_block_size_{rows,bytes}_for_materialized_views (for MVs)
2020-05-21 12:52:58 +03:00
hcz
4effdeaa0e Add tests 2020-05-21 12:13:49 +08:00
Azat Khuzhin
77bdb5f462 Add a test for GROUP BY memory accounting
- GROUP BY
- GROUP BY LIMIT
- GROUP BY MEMORY_LIMIT_EXCEEDED
2020-05-21 02:06:55 +03:00
Anton Kvasha
f1893a7e83 Added better test 2020-05-21 00:01:21 +03:00
Anton Popov
d62fe980ef Merge remote-tracking branch 'upstream/master' into modify-ttl 2020-05-20 16:52:30 +03:00
Vitaly Baranov
06d18a4378
Merge pull request #11050 from vitlibar/amosbird_betterdictget
dictGet with table name
2020-05-20 14:18:24 +03:00
Artem Zuikov
9b38324028
fix JOIN with PREWHERE with second analyze() (#11051) 2020-05-20 12:29:23 +03:00
alesapin
dc330ca7cb
Merge pull request #11037 from ClickHouse/alter_rename_and_modify
Fix alter rename with different types of alter
2020-05-20 11:28:13 +03:00
Vitaly Baranov
57bd7afc03 Fix passing dictionary's name to dictGet() with alias. 2020-05-19 21:17:29 +03:00
Amos Bird
ce3c53a00a dictGet* with table name 2020-05-19 20:33:45 +03:00
Nikolai Kochetov
c147badf4f Merge remote-tracking branch 'upstream/master' into min_mv_insert_block_size 2020-05-19 18:24:21 +03:00
alesapin
70e5553204 At least something works 2020-05-19 12:54:56 +03:00
Anton Popov
58ed04dc24 materialize TTL after its modifying 2020-05-19 04:53:01 +03:00
Azat Khuzhin
bd86f15680 Use QueryFinish over magic const in tests
Find all usages with:
  $ git grep 'type[ ]*=[ ]*2' tests/queries/0_stateless/

Sure this is not all...
2020-05-18 21:18:37 +03:00
Azat Khuzhin
32071ba080 Do not add event_date/event_time condition for system.*_log
Also some of them can be even more simplified, since the system.*_log
are empty most of the time there should not be any conditions at all
(i.e. `query` LIKE and so on).
2020-05-18 21:18:37 +03:00
Vitaliy Zakaznikov
59a1c230cd Fixing tests/queries/0_stateless/00979_live_view_watch_continuous_aggregates.py. 2020-05-18 20:17:29 +02:00
Anton Kvasha
4af038e3e9 Test data is stored in archive now 2020-05-18 16:41:18 +03:00
Sofia Antipushina
d2aa881345 Merge branch 'master' of github.com:ClickHouse/ClickHouse 2020-05-18 13:41:03 +03:00
alesapin
1ccd4fb978 Add missed drop in test 2020-05-18 12:24:48 +03:00
alesapin
0395f59b73 Just wait slightly more in test 2020-05-18 12:03:51 +03:00
Alexey Milovidov
738842b846 Moved test #4277 to bugs 2020-05-18 09:20:17 +03:00
Alexey Milovidov
daeaa07c90 Merge branch 'pull-4277' 2020-05-18 09:19:23 +03:00
Alexey Milovidov
65e387f1a3 Added a test 2020-05-18 08:03:58 +03:00
alexey-milovidov
893d05c1a0
Merge pull request #10989 from ClickHouse/fix-test-right-join
Fix non-deterministic test
2020-05-18 07:43:12 +03:00
alexey-milovidov
7efd2a825f
Merge pull request #10463 from ClickHouse/parallel-final
Parallel final
2020-05-18 05:20:18 +03:00
Alexey Milovidov
ed6c8054f0 Fix bad test 2020-05-18 03:48:46 +03:00
Andrey Chulkov
7210e9efb8 move tests left in dbms/ 2020-05-18 03:07:32 +03:00
Andrei Nekrashevich
eba043aaf8 Merge branch 'master' into random_string_utf8_function 2020-05-17 22:53:42 +03:00
alexey-milovidov
f7b1263d41
Merge pull request #10268 from ClickHouse/max-rows-to-sort
Added failing tests about "max_rows_to_sort" setting.
2020-05-17 22:21:30 +03:00
alexey-milovidov
8d3c37992a
Merge pull request #10533 from ClickHouse/alter-key-column-better-exception-message
Better exception message and error code for ALTER of key column #9078
2020-05-17 22:21:14 +03:00
alexey-milovidov
92686fea27
Merge pull request #10974 from ClickHouse/xolm-random_fixed_string_function
Merging  #10866
2020-05-17 22:20:53 +03:00
alexey-milovidov
76dfc37bbf
Merge pull request #10975 from ClickHouse/Potya-master
Merging #10856
2020-05-17 22:20:36 +03:00
Andrei Nekrashevich
9d2801e0d8 fix 2020-05-17 16:07:37 +03:00
alexey-milovidov
7cf3538840
Merge pull request #10270 from ClickHouse/quota-key-in-client
Support quota_key for Native client
2020-05-17 14:09:40 +03:00
Azat Khuzhin
c35c89f61a Add a test for min_insert_block_size_rows_for_materialized_views 2020-05-17 12:19:44 +03:00
alexey-milovidov
6c49967395
Merge pull request #10802 from PerformanceVision/offset_without_limit
Add the ability to set an OFFSET clause without a LIMIT
2020-05-17 12:06:22 +03:00
Alexey Milovidov
59b0435547 Fix tests 2020-05-17 11:25:29 +03:00
Alexey Milovidov
c701ccbec0 Merge branch 'master' of https://github.com/Potya/ClickHouse into Potya-master 2020-05-17 11:19:37 +03:00
alexey-milovidov
1bceb48e65
Merge pull request #10920 from ClickHouse/fix-notNullIn-with-null
Fix not null in with null
2020-05-17 11:16:43 +03:00
Alexey Milovidov
157d0b612c Merge branch 'random_fixed_string_function' of https://github.com/xolm/ClickHouse into xolm-random_fixed_string_function 2020-05-17 10:54:48 +03:00
alexey-milovidov
2ec9d1e9ab
Merge pull request #10512 from ClickHouse/fix-ubsan-decimal-parse
Fix UBSan report in Decimal parse
2020-05-17 10:46:03 +03:00
Alexey Milovidov
de8120d69a Improvement; added a test 2020-05-17 10:17:54 +03:00
Alexey Milovidov
20c9c2d3ec Better test 2020-05-17 09:52:33 +03:00
Alexey Milovidov
1ebd71a230 Updated test reference because new result is correct 2020-05-17 09:48:49 +03:00
Alexey Milovidov
f7087c721e Merge branch 'master' into max-rows-to-sort 2020-05-17 09:08:46 +03:00
Alexey Milovidov
47504dc213 Merge branch 'max-rows-to-sort' of github.com:yandex/ClickHouse into max-rows-to-sort 2020-05-17 08:57:42 +03:00
Alexey Milovidov
3742462119 Merge branch 'master' into max-rows-to-sort 2020-05-17 08:56:42 +03:00
Alexey Milovidov
f4ac1eec04 Merge branch 'master' into quota-key-in-client 2020-05-17 08:15:13 +03:00
Alexey Milovidov
7396790bd9 Update tests 2020-05-17 07:47:32 +03:00
Andrei Nekrashevich
675509ed23 Added function randomStringUTF8 2020-05-17 07:43:53 +03:00
Alexey Milovidov
f8a6fa8728 Update test 2020-05-17 06:18:06 +03:00
Alexey Milovidov
b156ac3cc1 Merge branch 'master' into fix-ubsan-decimal-parse 2020-05-17 05:42:24 +03:00
Alexey Milovidov
7df4748753 Merge branch 'master' into variance-nonnegative 2020-05-17 05:00:59 +03:00
Alexander Tokmakov
f89bf6155b fix bad test 2020-05-17 04:16:56 +03:00
Alexey Milovidov
a9f64b4c1c Ensure that the variance is nonnegative 2020-05-16 22:55:38 +03:00
alesapin
d0b56a4c7d
Merge pull request #10887 from ClickHouse/vzakaznikov-add_alter_rename_column_to_distributed
Vzakaznikov add alter rename column to distributed
2020-05-16 12:54:32 +03:00
alesapin
be4037abb5
Merge pull request #10895 from ClickHouse/fix_multiple_renames
Fix error in multiple rename commands in a single query.
2020-05-16 12:54:04 +03:00
Sofia Antipushina
fa38cf780c Add tests for -Distinct combinator 2020-05-16 03:02:55 +03:00
Nikolai Kochetov
fb38c2a30b
Remove experimental_use_processors setting, part 1. (#10924)
Remove experimental_use_processors setting, part 1.
2020-05-15 22:28:10 +03:00
Anton Popov
c61f1dbac8 Merge remote-tracking branch 'upstream/master' into polymorphic-parts 2020-05-15 16:19:39 +03:00
Vitaly Baranov
d92ac9ea47
Merge branch 'master' into RBAC-10 2020-05-15 14:12:43 +03:00
alesapin
ef1c7da4af
Merge pull request #10757 from ClickHouse/fix-parallel-mv
Fix parallel MV
2020-05-15 14:03:09 +03:00
alesapin
26606dd640 Fix polymorphic parts 2020-05-15 13:36:35 +03:00
alexey-milovidov
689b5094f8
Merge pull request #10926 from ClickHouse/test-empty-external-data
Added a test for empty external data
2020-05-15 10:35:20 +03:00
alexey-milovidov
985b83a228
Merge pull request #10903 from ClickHouse/lexer-unicode-whitespaces
Support for unicode whitespaces in queries.
2020-05-15 10:31:59 +03:00
alexey-milovidov
f4d1f7cb2b
Merge pull request #10918 from ClickHouse/fix_01019_alter_materialized_view_consistent
Fix test 01019_alter_materialized_view_consistent
2020-05-15 10:20:00 +03:00
Anton Popov
14e1a46a8c Merge remote-tracking branch 'upstream/master' into polymorphic-parts 2020-05-15 03:48:27 +03:00
Anton Popov
4c03f48703 in-memory parts: better restoring 2020-05-15 03:39:15 +03:00
Artem Zuikov
8e8a2a17d6 build fixes 2020-05-15 03:01:31 +03:00
Ri
fc7afaa639
Bitonic sort on GPU (OpenCL) (#10232) 2020-05-15 03:01:14 +03:00
Alexey Milovidov
273267ca8b Added a test for empty external data 2020-05-14 20:36:59 +03:00
alesapin
8eb27f6f13 Fix rename with compact parts 2020-05-14 19:56:13 +03:00
Nikolai Kochetov
b81d96b84e Add test. 2020-05-14 17:27:05 +03:00
potya
dc4af074b2 Remove REAl and INT8, add some tests 2020-05-14 17:11:59 +03:00
alesapin
e5c8c8ca02 Fix test 2020-05-14 15:45:42 +03:00
Vitaly Baranov
b1f362b2dc Add system table for access types. 2020-05-14 14:12:20 +03:00
Nikolai Kochetov
4d22374f24 Merged with master. 2020-05-14 12:06:15 +03:00
Nikolai Kochetov
f65305878b
Destructive IAggregateFunction::insertResultInto and ColumnAggregateFunction::convertToValues (#10890)
* Destructive IAggregateFunction::insertResultInto and ColumnAggregateFunction::convertToValues

* Try fix build.

* Try fix build.

* Fix build.

* Make convertToValues static.

* fix build.

* Remove const casts.

* Added comment.

* Fix build.

* Fix build.

* Add test.

* Fix test.
2020-05-14 10:59:14 +03:00
alexey-milovidov
b3d8c09bfb
Merge pull request #10852 from dgrr/format/multiple-queries
Added multiple query formatting on clickhouse-format
2020-05-14 01:06:44 +03:00
Alexey Milovidov
09c3bb2613 Added a test 2020-05-14 00:37:20 +03:00
alexey-milovidov
623b2e5a43
Merge pull request #10849 from ClickHouse/fix_optimize_and_alter_hangs
Fix mutations and OPTIMIZE hangs when replica becomes inactive
2020-05-13 23:41:13 +03:00
Nikolai Kochetov
496d90b613
Merge pull request #10860 from CurtizJ/pk-function
Fix sample with final (addition to #10715)
2020-05-13 23:04:25 +03:00
alesapin
ab760846c2 Fix some rename cases 2020-05-13 20:43:30 +03:00
Vitaly Baranov
66e348a93f Refactoring of getting information about access rights. 2020-05-13 19:40:33 +03:00
dgrr
bd77908c93 Added multiline test 2020-05-13 18:31:23 +02:00
potya
1ceabf1e10 at start 2020-05-13 18:49:17 +03:00
alexey-milovidov
a65601e410
Merge pull request #10874 from hczhcz/patch-0513
Support large tuples in function tupleElement
2020-05-13 18:42:10 +03:00
alexey-milovidov
0433d9c6fc
Merge pull request #10870 from azat/fix-SIGSEGV-in-hash-table-for-string
Fix SIGSEGV in StringHashTable (if such key does not exist)
2020-05-13 18:40:28 +03:00
alesapin
22c7a843a6 Remove already added tests 2020-05-13 16:03:33 +03:00
alesapin
352c402cf2 Merge branch 'add_alter_rename_column_to_distributed' of https://github.com/vzakaznikov/ClickHouse into vzakaznikov-add_alter_rename_column_to_distributed 2020-05-13 14:14:23 +03:00
alesapin
377ef6535d
Merge pull request #10847 from ClickHouse/fix_alter_rename_and_constraints
Fix constraints after column rename
2020-05-13 11:09:55 +03:00
Alexander Tokmakov
032197b015 fix alter and optimize hangs when replica becomes inactive 2020-05-13 10:06:57 +03:00
hcz
4a4914361c Support large tuples in function tupleElement 2020-05-13 11:53:40 +08:00
Alexey Milovidov
3927647fbb Fix test 2020-05-13 06:50:25 +03:00
Alexey Milovidov
32ad64ae01 Fix LIVE VIEW tests 2020-05-13 06:50:14 +03:00
Alexey Milovidov
d52f9d9785 Fix bad test 2020-05-13 06:50:14 +03:00
alexey-milovidov
7fa7afd24d
Merge pull request #10868 from ClickHouse/improve-move-partition-tests
Improve tests for ALTER MOVE
2020-05-13 06:48:37 +03:00
Andrei Nekrashevich
322e5bc4f5 fix issues 2020-05-13 04:22:57 +03:00
Azat Khuzhin
6e11c8a1a2 Add test for missing items in string hashtables via GROUP BY 2020-05-13 03:40:05 +03:00
Andrei Nekrashevich
767a790fce fix issues 2020-05-13 03:20:41 +03:00
Alexey Milovidov
2800df4450 Improve tests for ALTER MOVE 2020-05-13 03:02:53 +03:00
Alexey Milovidov
1b42a6ccdc Fix bad tests 2020-05-13 02:55:16 +03:00
Alexey Milovidov
c57210736b Merge branch 'master' into fix-infinite-loop-in-test 2020-05-13 02:32:14 +03:00
Anton Popov
67213b8ad4 fix sample with final 2020-05-12 21:23:40 +03:00
Nikolai Kochetov
f093c8f206 Fix test. 2020-05-12 17:38:45 +03:00
alesapin
979779e06f Fix constraints after column rename 2020-05-12 14:26:44 +03:00
Alexey Milovidov
c811e1f0d0 Fix double whitespace 2020-05-12 06:41:45 +03:00
alexey-milovidov
75607db571
Merge pull request #10826 from azat/block-sort-fix
Fix columns order after Block::sortColumns()
2020-05-12 06:39:18 +03:00
alexey-milovidov
82668cee6e
Merge pull request #10827 from ClickHouse/fix-logical-error-convert-field-to-type
Fix logical error in convertFieldToType
2020-05-12 05:22:56 +03:00
Anton Popov
a1333895eb
Merge pull request #10791 from oandrew/key-condition-source-type
Use src_type for conversion in KeyCondition
2020-05-12 03:29:43 +03:00
Alexey Milovidov
f61576fdfa Fix logical error in convertFieldToType 2020-05-12 02:53:03 +03:00
Azat Khuzhin
eb97afa9be Add a test for INSERT into Buffer() with different order of columns (via MV) 2020-05-12 02:50:42 +03:00
alexey-milovidov
1e70230991
Merge pull request #10722 from Enmk/DateTime64_fixes
function toStartOfSecond(DateTime64) -> DateTime64
2020-05-11 20:20:58 +03:00
alexey-milovidov
15e38c8b44
Merge pull request #10563 from azat/SELECT-ALIAS-CAST
Fix SELECT of column ALIAS which default expression type different from column type
2020-05-11 20:20:34 +03:00
Vitaliy Zakaznikov
9780da3e74 Adding more tests to check renaming of columns. 2020-05-11 19:01:06 +02:00
alexey-milovidov
0fe9ed93a6
Update 01132_max_rows_to_read.sql 2020-05-11 12:07:11 +03:00
Alexey Milovidov
7d480ffa3d Added failing tests 2020-05-11 12:06:24 +03:00
Vasily Nemkov
2c2005817f New function toStartOfSecond(DateTime64) -> DateTime64
This funtion nullifies sub-second part of DateTime64 value.
2020-05-11 12:06:06 +03:00
Guillaume Tassery
5b6e9f2a7e offset_without_limitMerge branch 'master' of github.com:ClickHouse/ClickHouse into offset_without_limit 2020-05-11 16:05:44 +07:00
alexey-milovidov
33d491edf3
Merge pull request #10516 from azat/dist-GROUP_BY-sharding_key-fixes
Disable GROUP BY sharding_key optimization by default (and fix for WITH ROLLUP/CUBE/TOTALS)
2020-05-11 12:03:27 +03:00
alexey-milovidov
3a982e01d0
Merge pull request #10803 from ClickHouse/slightly-better-test
Slightly better test
2020-05-11 11:59:40 +03:00
Alexey Milovidov
89c8581d4e Fix infinite loop in test 2020-05-11 09:15:47 +03:00
alexey-milovidov
06ba85fdf2
Merge pull request #10795 from ClickHouse/list-licenses
Added "system.licenses" table
2020-05-11 09:00:55 +03:00
Alexey Milovidov
3cfb305664 Slightly better test 2020-05-11 08:52:40 +03:00
Guillaume Tassery
9ed397bc2c add tests 2020-05-11 12:48:19 +07:00
Alexey Milovidov
c5e78d12e7 Merge branch 'master' into list-licenses 2020-05-11 07:35:35 +03:00
Alexey Milovidov
8e551a082c Fix flacky test #10603 2020-05-11 07:33:06 +03:00
Andrew Onyshchuk
1ee875a5fc Add test 2020-05-10 23:15:59 -05:00
alexey-milovidov
40ef113503
Merge branch 'master' into parallel-final 2020-05-11 06:47:44 +03:00
alexey-milovidov
170a341c1f
Trigger CI 2020-05-11 06:40:07 +03:00
alexey-milovidov
27594ff870
Merge pull request #10579 from 4ertus2/some
Test for fixed issue
2020-05-11 06:30:35 +03:00
alexey-milovidov
afd0938b99
Merge pull request #10603 from ClickHouse/fix-mv-scalars
Fix mv scalars
2020-05-11 06:26:19 +03:00
alexey-milovidov
d2c813fa7a
Update 01269_alias_type_differs.sql 2020-05-11 06:23:58 +03:00
Alexey Milovidov
da583760c4 Added "system.licenses" table 2020-05-11 05:39:01 +03:00
Alexey Milovidov
49e57c555d Fixed code; added a test 2020-05-11 03:16:50 +03:00
Nikita Vasilev
607981a458 impr test 2020-05-10 20:32:03 +03:00
Nikita Vasilev
3d41582310 fix 2020-05-10 10:01:10 +03:00
alexey-milovidov
9fbf23bc07
Merge pull request #10782 from ClickHouse/fix-test-query-profiler
Fix flacky test for query profiler
2020-05-10 08:18:44 +03:00
alexey-milovidov
ce671e8b3e
Update 01268_mv_scalars.sql 2020-05-10 05:29:53 +03:00
Alexey Milovidov
668a21b94f Remove racy part of performance-introspection test 2020-05-10 05:25:32 +03:00
Alexey Milovidov
a5ab3f3373 Fix flacky test 2020-05-10 04:25:08 +03:00
Artem Zuikov
f1e331503b Merge branch 'master' into some 2020-05-10 03:46:48 +03:00
Alexey Milovidov
d9257a8682 Merge branch 'arrow-io-format' of https://github.com/FawnD2/ClickHouse into FawnD2-arrow-io-format 2020-05-10 03:26:10 +03:00
alexey-milovidov
b961392871
Merge pull request #10658 from vzakaznikov/fixing_test_00979_live_view_watch_continuous_aggregates
Fixing and re-enabling 00979_live_view_watch_continuous_aggregates.py test.
2020-05-10 03:08:16 +03:00
alexey-milovidov
63c4a7661f
Merge pull request #10715 from CurtizJ/pk-function
Fix usage of primary key wrapped into a function.
2020-05-10 02:08:59 +03:00
Nikolai Kochetov
41baf1ab0f Update tests. 2020-05-09 21:43:16 +03:00
Nikolai Kochetov
264599179f Update test. 2020-05-09 21:43:16 +03:00
Nikolai Kochetov
74b5e19fa5 Added test. 2020-05-09 21:43:16 +03:00
alexey-milovidov
e41e998f4a
Merge pull request #10758 from bgiard/master
Fix serialize/deserialize of denominator of Average functions
2020-05-09 21:22:16 +03:00
Alexey Milovidov
735d04472d Remove flappy test for INSERT INTO LIVE VIEW @vzakaznikov 2020-05-09 21:14:50 +03:00
alexey-milovidov
b707156e09
Trigger CI 2020-05-09 19:19:47 +03:00
Nikita Vasilev
74d5ed65c1 fix tests 2020-05-09 14:48:33 +03:00
alexey-milovidov
699ef4ff52
Merge pull request #10741 from hczhcz/patch-0422
Fix OrNull and OrDefault
2020-05-09 04:38:32 +03:00
alexey-milovidov
5992bae69a
Merge pull request #10736 from ClickHouse/extract-groups-range-check
Added range check for extractGroups function
2020-05-09 04:21:56 +03:00
Baudouin Giard
be2cf70da8 Fix serialize/deserialize of denominator of Average functions
Use writeBinary/readBinary to serialize/deserialize the denominator of Average functions.

Previously it would be transmitted as an unsigned int, which means its value would get corrupted when doing an avgWeighted over a floating point number.

Note: this commit is not backwards compatible!

Signed-off-by: Baudouin Giard <bgiard@bloomberg.net>
2020-05-08 15:10:47 -04:00
Nikolai Kochetov
869c933972 Added test. 2020-05-08 19:15:49 +03:00
hcz
8a60e22223 Fix OrNull and OrDefault 2020-05-08 17:52:54 +08:00
Nikolai Kochetov
766ca03d85
Merge pull request #10728 from ClickHouse/fix-10489
Added test for #10721.
2020-05-08 11:58:29 +03:00
Alexey Milovidov
e6b08799a0 Update test 2020-05-08 02:34:48 +03:00
Alexey Milovidov
a366e6924b Fix typo in test 2020-05-08 02:33:31 +03:00
Alexey Milovidov
1f0d95e5c3 Added range check for extractGroups function 2020-05-08 02:31:15 +03:00
Vitaliy Zakaznikov
6d071c430e Adding stateless test for alter rename column on a distributed table. 2020-05-07 19:39:33 +02:00
Nikolai Kochetov
9605e80a8e Added test. 2020-05-07 18:26:57 +03:00
Nikolai Kochetov
6ef3400894 Added test. 2020-05-07 16:14:16 +03:00
Anton Popov
5fe74b1a3e
Merge pull request #10686 from CurtizJ/fix-nultiple-sets
Fix multiple usages of 'IN' operator
2020-05-07 15:39:41 +03:00