Commit Graph

47160 Commits

Author SHA1 Message Date
Alexey Milovidov
0101fa0af9 Fix error 2020-08-26 02:12:16 +03:00
Alexey Ilyukhov
4f7c5fa0af Fix style in requests 2020-08-26 01:55:07 +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 Milovidov
86d99f7c7f Disable "optimize_trivial_insert_select" for one perf test 2020-08-26 01:33:31 +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
421faed3f5
Merge pull request #14047 from 4ertus2/some
Test for AST optimizations with Distributed query
2020-08-26 00:11:44 +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
alexey-milovidov
5405a258a4
Merge pull request #14038 from drag0nglass/patch-1
Update json-import.md
2020-08-25 23:36:06 +03:00
alexey-milovidov
b98f39312c
Merge pull request #14048 from vitlibar/add-test-for-changing-column-type
Add test for changing column's type by performing ADD COLUMN + UPDATE + DROP COLUMN
2020-08-25 23:34:04 +03:00
Alexey Milovidov
e05ad381ce Fix error in clickhouse-benchmark test 2020-08-25 23:33:03 +03:00
alexey-milovidov
e3b1d5e513
Merge pull request #14050 from ClickHouse/fix_no_space_left_message
Fix "no space left" extra info for Poco::Exception
2020-08-25 23:29:38 +03:00
Alexey Milovidov
f77e2149fc Adjust test time 2020-08-25 23:28:38 +03:00
alexey-milovidov
0567a2ce9c
Merge pull request #14058 from Octonica/master
Fixed formatting in en docs , updated client libraries links in all other languages
2020-08-25 23:24:06 +03:00
Alexey Milovidov
f10db9c0bc Merge branch 'master' into client-progress-clobber-data 2020-08-25 23:22:16 +03:00
Alexey Milovidov
8a70c0c9bf Fixup LIVE VIEW tests 2020-08-25 23:21:44 +03:00
Alexey Milovidov
8864356f33 Kludge 2020-08-25 23:09:23 +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
Azat Khuzhin
9971cf2eff Bump zlib-ng (to fix gcc10 build)
[1] is required for gcc10 build, due to incorrect `static_ltree` declaration:

    ld.lld: error: duplicate symbol: static_ltree
    >>> defined at trees.h:6 (../contrib/zlib-ng/trees.h:6)
    >>>            trees.c.o:(static_ltree) in archive contrib/zlib-ng/libzlib.a
    >>> defined at deflate_quick.c:168 (../contrib/zlib-ng/arch/x86/deflate_quick.c:168)
    >>>            deflate_quick.c.o:(.rodata+0x0) in archive contrib/zlib-ng/libzlib.a
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.

  [1]: https://github.com/ClickHouse-Extras/zlib-ng/pull/2
2020-08-25 22:31:19 +03:00
alesapin
e5bc5ea419 Fix compression codec 2020-08-25 22:30:52 +03:00
Sergey Mirvoda
40c9e87aa2
updated client libraries in ja docs 2020-08-25 23:22:11 +05:00
Sergey Mirvoda
8e50bdd6c0
updated client libraries in zh docs 2020-08-25 23:21:32 +05:00
Sergey Mirvoda
0286974f6e
updated client libraries in tr docs 2020-08-25 23:20:52 +05: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
Sergey Mirvoda
a792129723
updated client libraries in fr docs 2020-08-25 23:20:02 +05: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
Sergey Mirvoda
e0adbf5d6a
updated client libraries in fa docs 2020-08-25 23:19:19 +05:00
Sergey Mirvoda
e8d24ae204
updated client libraries in es docs 2020-08-25 23:18:34 +05:00
Sergey Mirvoda
e7a3ae3e4a
updated client libraries in Russian docs 2020-08-25 23:17:46 +05:00
Azat Khuzhin
0a34ae85a3 Use terminal width for the formatted help text of the clickhouse-copier
Like other utils, clickhouse-client and so on (since copier uses Poco,
while other uses boost).
Otherwise clickhouse-copier --help is unreadable.
2020-08-25 21:17:21 +03:00
Sergey Mirvoda
d6ae1a80bf
fixed formatting 2020-08-25 23:14:59 +05:00
Azat Khuzhin
308e094d04 Fix arrayJoin() capturing in lambda
Fixes the following LOGICAL_ERROR:

    $ clickhouse-client -q 'select arrayFilter((a) -> ((a, arrayJoin([[]])) IN (Null, [Null])), [])'
    2020.08.16 00:32:01.967102 [ 1744189 ] {b40a5ebd-d710-4f03-bb18-57db67de1181} <Error> : Logical error: 'Lambda captured argument arrayJoin(array(array())) not found in required columns.'.
    clickhouse-server: ../src/Common/Exception.cpp:45: DB::Exception::Exception(const string&, int): Assertion `false' failed.

Since there are multiple input columns for arrayJoin():

    (gdb) p captured_names_
    $6 = std::vector of length 3, capacity 4 = {"arrayJoin(array(array()))", "arrayJoin(array(array()))", "__set"}

While FunctionCaptureOverloadResolver cannot handle non-unique columns.
2020-08-25 21:06:21 +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
cbdedc39f2
REVERSE ME: workaround for docker/packager/unbundled
Please, reverse this commit after docker/packager/deb image update

Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
2020-08-25 20:34:36 +03:00
alexey-milovidov
0b07121177
Merge pull request #14054 from SergeyMirvoda/patch-1
Yet another .net core client library
2020-08-25 20:30:18 +03:00
Konstantin Podshumok
f4383389d5
sync unbundled/build.sh with a0ae1b2b42
Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
2020-08-25 20:16:44 +03:00
Konstantin Podshumok
cda4472ebc
dockerfiles: verify 3rd party apt repos, disable LLVM in PVS check
Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
2020-08-25 20:16:44 +03:00
Konstantin Podshumok
8ce844a40d
cmake: when USE_STATIC_LIBRARIES prefer bundled brotli
even if UNBUNDLED=ON because libbrotli*.a and similar are not
available in most of the systems

Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
2020-08-25 20:16:44 +03:00
Konstantin Podshumok
e296997b6c
cmake: fix potential curl linking problems
Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
2020-08-25 20:16:44 +03:00
Konstantin Podshumok
68a921cdea
cmake: use bundled rdkafaka for in unbundled tests for now
Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
2020-08-25 20:16:43 +03:00
Konstantin Podshumok
5097793872
cmake: Fix odbc in unbudled
Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
2020-08-25 20:16:43 +03:00
Konstantin Podshumok
8479da3033
cmake: unbundled protobuf: don't expect old c++ API by default
Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
2020-08-25 20:16:43 +03:00
Konstantin Podshumok
5d13c1f03f
cmake: unbundled: libxml2 requires liblzma when building static
Squashed:
- fixup hdfs3-libxml2

Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
2020-08-25 20:16:43 +03:00
Konstantin Podshumok
ef858027d4
unbundled: fix detection of mariadb headers
Squashed:
- unbundled: add warning about mariadbclient dependencies

Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
2020-08-25 20:16:42 +03:00