Commit Graph

52203 Commits

Author SHA1 Message Date
alexey-milovidov
75a78e6c20
Update BackgroundJobsExecutor.h 2020-11-26 07:09:05 +03:00
alexey-milovidov
aca4da7a2b
Update Install.cpp 2020-11-26 07:07:48 +03:00
alexey-milovidov
747453b008
Merge pull request #17051 from hexiaoting/bugfix_fuzzbits
Bug fix for funciton fuzzBits
2020-11-26 06:41:20 +03:00
Alexey Milovidov
85d3e62275 Remove timeSeriesGroupSum 2020-11-26 05:46:28 +03:00
Alexey Milovidov
2ff3e96e95 Many fixes in Install script 2020-11-26 05:11:55 +03:00
Alexey Milovidov
e89d1632a1 Improvements of Install script 2020-11-26 04:44:26 +03:00
alexey-milovidov
fb3a69b298
Merge pull request #17254 from azat/fix-dist-query-cancelation
Fix "Unexpected packet Data received from client"  for Distributed queries
2020-11-26 03:46:27 +03:00
alexey-milovidov
c438b43892
Merge pull request #17375 from ClickHouse/always-working-test
Added a test for what was always working
2020-11-26 03:29:14 +03:00
alexey-milovidov
f7a9d716b4
Merge pull request #17358 from qianmoQ/patch-2
Fixed a problem with the translation of clickhouse-local.md document
2020-11-26 03:27:39 +03:00
alexey-milovidov
f4c2c42b5a
Merge pull request #17360 from qianmoQ/fix-docs
Fixed a problem with the translation of introduction
2020-11-26 03:27:26 +03:00
alexey-milovidov
2e76f8b103
Merge pull request #17384 from nikhilnadig28/patch-1
Fixing typo in tutorial.md
2020-11-26 03:26:56 +03:00
alexey-milovidov
2d5072844f
Update InsertQuerySettingsPushDownVisitor.h 2020-11-26 03:25:08 +03:00
alexey-milovidov
f3c12397c2
Update RadixSort.h 2020-11-26 03:20:43 +03:00
Nikita Mikhaylov
ede023a237
rerun tests to be sure 2020-11-26 01:24:42 +03:00
Alexander Kuzmenkov
394b81ac46 Merge remote-tracking branch 'origin/master' into HEAD 2020-11-25 23:38:55 +03:00
Azat Khuzhin
0b47f4a9e9 Fix optimize_trivial_count_query with partition predicate
Consider the following example:

    CREATE TABLE test(p DateTime, k int) ENGINE MergeTree PARTITION BY toDate(p) ORDER BY k;
    INSERT INTO test VALUES ('2020-09-01 00:01:02', 1), ('2020-09-01 20:01:03', 2), ('2020-09-02 00:01:03', 3);

- SELECT count() FROM test WHERE toDate(p) >= '2020-09-01' AND p <= '2020-09-01 00:00:00'
  In this case rpn will be (FUNCTION_IN_RANGE, FUNCTION_UNKNOWN (due to strict), FUNCTION_AND)
  and for optimize_trivial_count_query we cannot use index if there is at least one FUNCTION_UNKNOWN.
  since there is no post processing and return count() based on only the first predicate is wrong.

  Before this patch FUNCTION_UNKNOWN was allowed for optimize_trivial_count_query, and the result was wrong.

And two examples above just to show the difference, the behaviour hadn't been changed with this patch:

- SELECT * FROM test WHERE toDate(p) >= '2020-09-01' AND p <= '2020-09-01 00:00:00'
  In this case will be (FUNCTION_IN_RANGE, FUNCTION_IN_RANGE (due to non-strict), FUNCTION_AND)
  so it will prune everything out and nothing will be read.

- SELECT * FROM test WHERE toDate(p) >= '2020-09-01' AND toUnixTimestamp(p)%5==0
  In this case will be (FUNCTION_IN_RANGE, FUNCTION_UNKNOWN, FUNCTION_AND)
  and all, two, partitions will be scanned, but due to filtering later none of rows will be matched.
2020-11-25 23:09:17 +03:00
Azat Khuzhin
32f69dc76f Cleanup 01505_trivial_count_with_partition_predicate 2020-11-25 23:09:17 +03:00
Nikolai Kochetov
729272391f
Merge branch 'master' into ip-dict-no-trie 2020-11-25 23:07:19 +03:00
Nikolai Kochetov
99f1151236
Update arcadia_skip_list.txt 2020-11-25 23:06:37 +03:00
tavplubix
6477251ea1
Update BackgroundJobsExecutor.h 2020-11-25 23:06:00 +03:00
Azat Khuzhin
3f67e320dd Fix parsing of SETTINGS clause of the INSERT ... SELECT ... SETTINGS query
Before this patch the following query ignores the settings for INSERT:

   insert into test_parallel_insert select * from numbers_mt(65535*2) settings max_insert_threads=10

And the reason is that SETTINGS was parsed by the SELECT parser.
Fix this by push down the SETTINGS from the SELECT to INSERT.

Also note that since INSERT parser does not use ParserQueryWithOutput the
following works:

   insert into test_parallel_insert select * from numbers_mt(65535*2) format Null settings max_insert_threads=10
2020-11-25 22:53:58 +03:00
Azat Khuzhin
36dc23668d Fix formatting of SETTINGS clause of the INSERT query 2020-11-25 21:32:10 +03:00
Nikita Mikhaylov
f3f06dccac
Merge pull request #17121 from yshrotciv/patch-1
Update replication.md
2020-11-25 21:29:19 +03:00
Azat Khuzhin
688cb6b4d9 Update date_time_short perf test for toUnixTimestamp(Date()) 2020-11-25 21:17:11 +03:00
nikitamikhaylov
44f4064e9b update test 2020-11-25 20:51:07 +03:00
nikitamikhaylov
02a80230f8 remove comments 2020-11-25 20:51:07 +03:00
nikitamikhaylov
71d6126c6b better 2020-11-25 20:51:07 +03:00
nikitamikhaylov
4246971961 fix tests 2020-11-25 20:51:07 +03:00
nikitamikhaylov
d1eb9f02dd style 2020-11-25 20:51:06 +03:00
nikitamikhaylov
de9dc3a43f update copy pasted test 2020-11-25 20:51:06 +03:00
nikitamikhaylov
0779c7e0c3 better 2020-11-25 20:51:06 +03:00
nikitamikhaylov
b3087d0eb3 comments 2020-11-25 20:51:06 +03:00
nikitamikhaylov
f764332070 better merge 2020-11-25 20:51:06 +03:00
nikitamikhaylov
3f874af323 new interface for the function
(cherry picked from commit 89547e77cf)
2020-11-25 20:51:06 +03:00
nikitamikhaylov
85ac4c4f36 better
(cherry picked from commit 516b152af3)
2020-11-25 20:51:06 +03:00
Alexey Milovidov
fb234c2b17 Fix comments
(cherry picked from commit 7065e50c74)
(cherry picked from commit 1f21160041)
2020-11-25 20:51:06 +03:00
Alexey Milovidov
be84bd1aba Add missing file
(cherry picked from commit 2f3415be5d)
(cherry picked from commit a819558889)
2020-11-25 20:51:06 +03:00
Alexey Milovidov
a7739d9afb Make the code less bad
(cherry picked from commit 911cd77c1a)
(cherry picked from commit ac7267ce48)
2020-11-25 20:51:06 +03:00
nikitamikhaylov
88fec92921 initial
(cherry picked from commit 158665e84f)
2020-11-25 20:51:06 +03:00
nikitamikhaylov
9177ba3c02 test added 2020-11-25 20:51:06 +03:00
nikitamikhaylov
02ce3ed4e7 style 2020-11-25 20:51:06 +03:00
nikitamikhaylov
de75c96a75 better 2020-11-25 20:51:06 +03:00
nikitamikhaylov
13081370ba mann-whitney 2020-11-25 20:51:06 +03:00
nikitamikhaylov
9afe579225 small refactor 2020-11-25 20:51:06 +03:00
nikitamikhaylov
78b510eaa1 naming 2020-11-25 20:12:14 +03:00
nikitamikhaylov
214b5b8649 better 2020-11-25 20:04:25 +03:00
nikitamikhaylov
8e53b80b89 done 2020-11-25 19:50:07 +03:00
alesapin
68c8219edf Add test for mutation with empty partition 2020-11-25 18:13:27 +03:00
alexey-milovidov
532cd4beaa
Merge pull request #17405 from ClickHouse/revert-17351-dependabot/pip/docs/tools/mkdocs-macros-plugin-0.5.0
Revert "Bump mkdocs-macros-plugin from 0.4.20 to 0.5.0 in /docs/tools"
2020-11-25 18:05:48 +03:00
alexey-milovidov
2ca24c0f16
Revert "Bump mkdocs-macros-plugin from 0.4.20 to 0.5.0 in /docs/tools" 2020-11-25 18:05:36 +03:00