Alexey Milovidov
c4e5f8a500
Added test for RIGHT JOIN #1731
2018-01-09 20:31:52 +03:00
Amos Bird
a3d2a4fe4d
NonJoinedBlockInputStream generates duplicate records across block.
...
This patch fixes the iterator incrementation.
2018-01-09 20:30:07 +03:00
proller
694c6ed243
Cmake: move all gtest stuff to one place in dbms/CMakeLists.txt
2018-01-09 20:29:17 +03:00
Alexey Milovidov
d1141ff03b
Merge branch 'master' of github.com:yandex/ClickHouse
2018-01-09 20:27:37 +03:00
Alexey Milovidov
fa522ea946
Addition to e505e87bb4
[#CLICKHOUSE-2].
2018-01-09 20:27:08 +03:00
alexey-milovidov
6b758edbbc
Update gen-compiler-includes.sh
2018-01-09 20:24:25 +03:00
Roman Tsisyk
3a97fbd0e7
Remove hard-coded paths in Interpreters/Compiler.cpp
...
Interpreters/Compiler.cpp contained hard-coded paths for system's
includes needed for query compiler. These paths were not portable
between different Linux distros and gcc/clang versions. For example,
Debian/Ubuntu use /usr/lib/gcc/x86_64-linux-gnu/*/include,
RHEL/Fedora use /usr/lib/gcc/x86_64-redhat-linux/*/include,
others use /usr/lib/gcc/*/include (without x86_64-XXX triplet).
Patch 68850012b
"Embedded compiler fixes" attempted to fix this problem
by adding CMAKE_LIBRARY_ARCHITECTURE after /usr/lib. Unfortunally,
CMAKE_LIBRARY_ARCHITECTURE is not defined on RHEL/Fedora because someone
decided to omit "-gnu" from x86_64-redhat-linux (see RHBZ#1531678).
Patch 70e35d0bc
"Build fixes (#1718 )" added a workaround for
undefined CMAKE_LIBRARY_ARCHITECTURE on RHEL/Fedora, but hasn't fixed
problem with missing /usr/lib/gcc/x86_64-redhat-linux/*/include/
in the list of hardcoded paths.
Remove hard-coded paths and get the list of `-isystem` includes directly
from bundled clickhouse-clang.
Other changes:
- Enable RPATH for the build directory to get working binaries
without installing them by `make install`.
2018-01-09 20:24:25 +03:00
Roman Tsisyk
5cea83a98d
Unbundle contrib/googletest
...
Allow to use system libgtest-dev/gtest-devel when -DUNBUNDLED is ON.
2018-01-09 20:15:31 +03:00
proller
e505e87bb4
Fix format_schema_path in default config
2018-01-09 20:02:52 +03:00
robot-metrika-test
ee2ea696ba
Auto version update to [54331]
2018-01-09 10:46:57 +03:00
Alexey Milovidov
e2d70943b8
Unification of Nested: development [#CLICKHOUSE-2].
2018-01-02 12:11:13 +03:00
Alexey Milovidov
4371778144
Unification of Nested: development [#CLICKHOUSE-2].
2018-01-02 09:13:22 +03:00
Alexey Milovidov
fffad2bb3b
Added test [#CLICKHOUSE-2].
2018-01-02 08:56:26 +03:00
Alexey Milovidov
c4687b5fb9
Unification of Nested: development [#CLICKHOUSE-2].
2018-01-02 08:54:34 +03:00
zhang2014
b7639c2324
ISSUES-957 update 00553_buff_exists_materlized_column.sql
2018-01-01 19:56:52 +08:00
zhang2014
6fe64aa346
ISSUES-957 fix not work when materialized columns with buff table
2018-01-01 19:54:14 +08:00
Alexey Milovidov
005f6b96fa
Added function "sleepEachRow" for testing purposes #1713
2017-12-30 07:50:12 +03:00
Alexey Milovidov
b96ae0aa0e
Added function "sleepEachRow" for testing purposes #1713
2017-12-30 07:29:51 +03:00
Alexey Milovidov
68de761e6a
Fixed comment [#CLICKHOUSE-2].
2017-12-30 07:03:49 +03:00
Alexey Milovidov
993a5e44d0
Inverted dependencies in StorageFactory (continued) [#CLICKHOUSE-2].
2017-12-30 07:00:39 +03:00
Alexey Milovidov
ffca152c45
Inverted dependencies in StorageFactory [#CLICKHOUSE-2].
2017-12-30 07:00:39 +03:00
Alexey Milovidov
7244514859
Less dependencies in StorageFactory: development [#CLICKHOUSE-2].
2017-12-30 07:00:39 +03:00
proller
70e35d0bcc
Build fixes ( #1718 )
...
* Embedded compiler fixes
* common lib not needed for clang and lld
* Fix pthread link
* Fix shared build
* Arm fixes 1
* arm fix
* Unused fix
* Build fixes
* release --pbuilder
* release pbuilder fix
* FORCE_PBUILDER_CREATE=1 release
* release: Auto use clang with sanitizers
* Fix build without poco data odbc lib. zlib arm build fix.
* Fix freebsd build and build without mysql
* Tests: Dont eat my cpu!
* Test me
2017-12-29 18:48:20 +03:00
proller
1610abdd5c
Tests: Dont eat my cpu!
2017-12-29 16:59:01 +03:00
Nikolai Kochetov
645a8d86f2
fix build
2017-12-28 21:33:07 +03:00
Nikolai Kochetov
ea41197c51
merger with master
2017-12-28 21:20:53 +03:00
Alexey Milovidov
7a2fcd3055
Fixed build on AArch64 [#CLICKHOUSE-1700]
2017-12-28 19:51:53 +03:00
robot-metrika-test
f998b0c859
Auto version update to [54330]
2017-12-28 18:27:14 +03:00
proller
7a813002aa
Build fixes
2017-12-28 15:58:39 +03:00
robot-metrika-test
5baa388708
Auto version update to [54329]
2017-12-28 13:55:24 +03:00
Alexey Milovidov
4c3fba2719
Table functions MySQL and ODBC: development [#CLICKHOUSE-3114].
2017-12-28 08:26:45 +03:00
Alexey Milovidov
cefb5b61fd
Table functions MySQL and ODBC: development [#CLICKHOUSE-3114].
2017-12-28 08:15:09 +03:00
Alexey Milovidov
10bf086397
Table functions MySQL and ODBC: development [#CLICKHOUSE-3114].
2017-12-28 07:59:04 +03:00
Alexey Milovidov
28c6804c10
Miscellaneous [#CLICKHOUSE-2].
2017-12-28 07:50:14 +03:00
Alexey Milovidov
fcdd5de47d
Revert "Removed questionable code (2) [#CLICKHOUSE-2]."
...
This reverts commit fcabe8b888
.
2017-12-28 07:39:19 +03:00
Alexey Milovidov
0fa9383d3e
Revert "Addition to prev. revision [#CLICKHOUSE-2]"
...
This reverts commit bc4a5794d9
.
2017-12-28 07:39:01 +03:00
Alexey Milovidov
798299ba89
Merge branch 'aavdonkin-master'
2017-12-28 07:33:55 +03:00
Alexey Milovidov
1fecbc3ef4
Merging [#CLICKHOUSE-3114]
2017-12-28 07:33:35 +03:00
Alexey Milovidov
9f2cd7a304
Merging [#CLICKHOUSE-3114]
2017-12-28 07:29:53 +03:00
Alexey Milovidov
4448766266
Merging [#CLICKHOUSE-3114]
2017-12-28 07:28:05 +03:00
Alexey Milovidov
4cde48fb20
Merge branch 'master' of github.com:yandex/ClickHouse
2017-12-28 01:40:42 +03:00
Alexey Milovidov
104b09604a
Merging [#CLICKHOUSE-3114]
2017-12-28 00:45:05 +03:00
Alexey Milovidov
7e6a6df99e
Merge branch 'master' into aavdonkin-master
2017-12-27 23:13:02 +03:00
proller
fc9c1813f8
Fix shared build
2017-12-27 23:07:16 +03:00
proller
4f894a677a
Fix pthread link
2017-12-27 23:07:16 +03:00
proller
f5f976a464
common lib not needed for clang and lld
2017-12-27 23:07:16 +03:00
proller
68850012bd
Embedded compiler fixes
2017-12-27 23:07:16 +03:00
proller
f9d3c01a01
Add package clickhouse-test, allow testing in pbuilder ( #1709 )
...
* Allow 32bit build (with warning)
* Add package clickhouse-test
* Test fixes
* fix
* fix
* clickhouse-test: aloow work in read-only queries dir (--tmp)
* Fix test
2017-12-27 22:01:57 +03:00
Alexey Milovidov
f5b1ad1fa2
Merge branch 'master' into aavdonkin-master
2017-12-27 21:50:01 +03:00
Alexey Milovidov
b79aa5db4e
Update documentation about required ZK version; Miscellaneous #1458
2017-12-27 21:34:58 +03:00
proller
8c01852dc6
Fix test
2017-12-27 19:18:51 +03:00
proller
015a6c469b
clickhouse-test: aloow work in read-only queries dir (--tmp)
2017-12-27 19:04:15 +03:00
robot-metrika-test
becb843d18
Auto version update to [54328]
2017-12-27 11:09:36 +03:00
Alexey Milovidov
09262ae0d7
Merge branch 'master' of github.com:yandex/ClickHouse
2017-12-27 01:56:30 +03:00
Alexey Milovidov
b2fcf06353
Merging [#CLICKHOUSE-3114]
2017-12-27 00:34:06 +03:00
proller
26c39af91e
Allow 32bit build (with warning)
2017-12-26 22:28:41 +03:00
Alexey Zatelepin
280c147a89
remove dependency to StorageReplicatedMergeTree [#CLICKHOUSE-2]
2017-12-26 22:15:15 +03:00
proller
da1233fe3f
Fix missing includes
2017-12-26 22:02:00 +03:00
Alexey Milovidov
f87761df90
Merged with master; applied clang-format with newer files [#CLICKHOUSE-3114].
2017-12-26 21:32:17 +03:00
Alexey Milovidov
203363ea73
Merge branch 'master' of github.com:yandex/ClickHouse
2017-12-26 20:53:36 +03:00
Alexey Milovidov
7a60d773ec
Fixed strange code [#CLICKHOUSE-2].
2017-12-26 20:53:31 +03:00
alexey-milovidov
9bf06a26cc
Update PODArray.h
2017-12-26 20:52:22 +03:00
chenxing.xc
e7efee8f41
fix potential memory issue
2017-12-26 20:52:22 +03:00
Alexey Milovidov
a629039b08
Revert "Disable failed test."
...
This reverts commit e9b3d45c06
.
2017-12-26 20:40:30 +03:00
alexey-milovidov
06bc58bb7c
Merge pull request #1705 from ekonkov/master
...
Allow tests to be excluded from execution
2017-12-26 20:40:07 +03:00
alexey-milovidov
7a0281dd20
Update RangeHashedDictionary.cpp
2017-12-26 20:37:21 +03:00
Evgeny Konkov
e9b3d45c06
Disable failed test.
2017-12-26 17:43:00 +03:00
Evgeny Konkov
2f5ae0766e
Disable tests with additional message.
...
By default disabled tests not running.
Add command line switch to force execution of disabled tests.
2017-12-26 17:42:41 +03:00
Nikolai Kochetov
ca77f3d861
fixed NULL value for range hased dictionary range_min and range_max keys [#CLICKHOUSE-3521]
2017-12-26 15:52:58 +03:00
Nikolai Kochetov
5a3506eada
merged with master
2017-12-26 13:54:39 +03:00
Alexey Milovidov
014641a5d9
Addition to prev. revision [#CLICKHOUSE-2]
2017-12-26 01:51:11 +03:00
Alexey Milovidov
c89041ce63
Removed questionable code (2) [#CLICKHOUSE-2].
2017-12-26 01:51:04 +03:00
Alexey Milovidov
ec71908b00
Revert "Removed questionable code (2) [#CLICKHOUSE-2]."
...
This reverts commit fcabe8b888
.
2017-12-26 00:57:29 +03:00
Alexey Milovidov
827e82efa6
Revert "Addition to prev. revision [#CLICKHOUSE-2]"
...
This reverts commit bc4a5794d9
.
2017-12-26 00:57:19 +03:00
Alexey Milovidov
bc4a5794d9
Addition to prev. revision [#CLICKHOUSE-2]
2017-12-26 00:50:55 +03:00
Alexey Milovidov
fcabe8b888
Removed questionable code (2) [#CLICKHOUSE-2].
2017-12-26 00:32:33 +03:00
Alexey Milovidov
5bacda2ed2
Merge branch 'master' of github.com:yandex/ClickHouse
2017-12-26 00:11:56 +03:00
Alexey Milovidov
a85b2e5a95
Removed questionable code [#CLICKHOUSE-2].
2017-12-26 00:10:46 +03:00
Nikolai Kochetov
64fd3fe35a
added test for Dictionary(range_hashed) [#CLICKHOUSE-3521]
2017-12-25 23:55:45 +03:00
Nikolai Kochetov
0c082b134d
fixed engine Dictionary(range_hashed) for open interval date keys [#CLICKHOUSE-3521]
2017-12-25 23:55:37 +03:00
proller
3c54be8d5b
Add hostname_in_path=true option to garaphite config ( #1701 )
...
* Add hostname_in_path=true option to garaphite config
* fix style
* Update config.xml
2017-12-25 23:36:24 +03:00
Alexey Milovidov
73ae622b12
Moved functions to work with tuples to separate file [#CLICKHOUSE-2].
2017-12-25 22:10:25 +03:00
Alexey Milovidov
bcfde7c6c0
Get rid of DataTypeNested, part 2 [#CLICKHOUSE-2].
2017-12-25 21:58:39 +03:00
Nikolai Kochetov
2ed66515ff
Date type for range_min and range_max in Dictionare(range_hashed) [#CLICKHOUSE-3521]
2017-12-25 21:29:04 +03:00
Alexey Zatelepin
c3348e27a4
shorter [#CLICKHOUSE-2]
2017-12-25 20:31:14 +03:00
proller
fb7047bfe8
Fix 32bit build
2017-12-25 20:17:32 +03:00
alexey-milovidov
94cd6fc061
Update 00544_insert_with_select.sql
2017-12-25 19:02:02 +03:00
zhang2014
2e54dcf9b6
ISSUES-1682 support insert into with select
2017-12-25 19:02:02 +03:00
proller
ccf7c1f760
pbuilder: install package and make simple query ( #1671 )
...
* pbuilder: install package and make simple query
* use B92test-pkg from system
* Fix
2017-12-25 19:01:03 +03:00
alexey-milovidov
c1701e3a0e
Update 00542_access_to_temporary_table_in_readonly_mode.sql
2017-12-25 18:59:35 +03:00
Kirill Shvakov
4099907d51
Add test readonly and temporary tables
2017-12-25 18:59:35 +03:00
alexey-milovidov
9ed28abdb4
Update 00541_to_start_of_fifteen_minutes.sql
2017-12-25 18:58:37 +03:00
Kirill Shvakov
d87aad45e6
add test toStartOfFifteenMinutes
2017-12-25 18:58:37 +03:00
Alexey Zatelepin
b07dbf52c6
remove unused function [#CLICKHOUSE-2]
2017-12-25 14:40:59 +03:00
Alexey Milovidov
454de9243e
Fixed build [#CLICKHOUSE-2]
2017-12-25 10:18:27 +03:00
Alexey Milovidov
04eb0b896c
Added proper support for Nullable arguments for function OR #1416
2017-12-25 09:33:51 +03:00
Alexey Milovidov
9b914cf93e
Simplification #1416
2017-12-25 08:48:53 +03:00
Alexey Milovidov
d899d3f8f5
Added functions toNumberOrNull from String argument #1322
2017-12-25 08:22:33 +03:00
Alexey Milovidov
de8e504e02
Miscellaneous [#CLICKHOUSE-2].
2017-12-25 07:10:43 +03:00
Alexey Milovidov
f7838e7e39
Miscellaneous [#CLICKHOUSE-2].
2017-12-25 07:09:48 +03:00
Alexey Milovidov
8ff93487e3
Miscellaneous [#CLICKHOUSE-2].
2017-12-25 07:01:46 +03:00
Alexey Milovidov
a168c77ee4
Proper conversions from String to Nullable types if the value cannot be parsed: development #1322
2017-12-25 05:57:54 +03:00
Alexey Milovidov
4e2764c2af
Added test #1683
2017-12-25 04:38:51 +03:00
Alexey Milovidov
a71b04e377
Fixed "join_use_nulls" mode #1544
2017-12-25 03:38:45 +03:00
Alexey Milovidov
671b731c90
Removed useless calls [#CLICKHOUSE-2].
2017-12-25 03:37:13 +03:00
Alexey Milovidov
f87cc75734
Fixed build [#CLICKHOUSE-2].
2017-12-24 13:12:49 +03:00
Alexey Milovidov
82d429f7ed
Allow for function "tupleElement" to get an edge of Array of Tuple (preparation for natural support of Nested) [#CLICKHOUSE-2].
2017-12-24 12:56:30 +03:00
Alexey Milovidov
0f51be4191
Added support for named tuples in function tupleElement [#CLICKHOUSE-2].
2017-12-24 12:34:40 +03:00
Alexey Milovidov
5c2c4b34f3
Fixed query formatting in presense of tupleElement operator with complex constant expression in right hand side [#CLICKHOUSE-2].
2017-12-24 12:33:36 +03:00
Alexey Milovidov
9aa0ebff01
Merge branch 'master' of github.com:yandex/ClickHouse
2017-12-24 10:59:39 +03:00
Alexey Milovidov
7ee1c81d45
Fixed DISTINCT if all columns are constant [#CLICKHOUSE-3505].
2017-12-24 10:59:26 +03:00
Marek Vavruša
aed35f16ca
StorageKafka: move limits to individual Kafka streams instead of UnionBlockInputStream
...
The UnionBlockInputStream might read an extra block from the asynchronous child streams otherwise,
which will never be used, but offsets for this block would be committed, which would result in
lost messages.
2017-12-24 09:57:20 +03:00
Marek Vavruša
77393287ab
StorageKafka: make commit message only if messages are consumed
2017-12-24 09:57:20 +03:00
Marek Vavruša
ad59a1460e
IProfilingBlockInputStream: check limits before reading block
...
This makes one pointless check before the first block is read, but
is necessary to prevent reading blocks from storages like Kafka where
messages are read only once.
2017-12-24 09:57:20 +03:00
Alexey Milovidov
90aa544573
Unification of aggregate function combinators [#CLICKHOUSE-3511].
2017-12-24 09:51:23 +03:00
Alexey Milovidov
486a498b9f
Merge branch 'master' of github.com:yandex/ClickHouse
2017-12-24 09:50:28 +03:00
Alexey Milovidov
acb341b2c9
Unification of aggregate function combinators [#CLICKHOUSE-3511].
2017-12-24 09:50:11 +03:00
Chen Yufei
11c1f0ecc1
Fix LimitBlockInputStream creation.
...
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
2017-12-24 08:21:30 +03:00
Alexey Milovidov
9d60bcf3f9
Added test for unrestricted aggregate function combinators [#CLICKHOUSE-3511].
2017-12-24 02:30:20 +03:00
Alexey Milovidov
ffce4dea50
Merge branch 'master' of github.com:yandex/ClickHouse
2017-12-24 02:17:39 +03:00
Alexey Milovidov
cc79fb6684
Implemented -ForEach aggregate functions combinator for multiple arguments; added test for -ForEachIf and -IfForEach variants [#CLICKHOUSE-3511].
2017-12-24 02:16:42 +03:00
proller
371d3907b5
Fix dictionary FunctionDictGetOrDefault
2017-12-24 02:16:40 +03:00
Alexey Milovidov
1ba80c6768
Fixed typo [#CLICKHOUSE-2].
2017-12-24 02:06:59 +03:00
Alexey Milovidov
3a7a6d6318
Get rid of DataTypeNested [#CLICKHOUSE-2838].
2017-12-23 07:29:34 +03:00
Alexey Milovidov
334e349d75
Fixed test [#CLICKHOUSE-2].
2017-12-23 07:25:01 +03:00
Alexey Milovidov
e5a33e6332
Added test for the case when Nullable condition is optimized to PREWHERE #1626
2017-12-23 05:52:13 +03:00
Alexey Milovidov
bd14d22d22
Added test from Marek #1650
2017-12-23 05:06:25 +03:00
Alexey Milovidov
b5af4c95bf
Using IDataType::equals to compare for type equivalence #1650
2017-12-23 04:55:46 +03:00
Alexey Milovidov
a1fe019b5c
Fixed possibility of infinite recursion in IFunction::defaultImplementationForConstantArguments when wrong number of arguments is passed to a function [#CLICKHOUSE-2].
2017-12-23 04:54:51 +03:00
Alexey Milovidov
75f9ff1717
Fixed error found by M.Filimonov [#CLICKHOUSE-2].
2017-12-23 04:35:25 +03:00
Alexey Milovidov
62bccc4eef
Updated test [#CLICKHOUSE-2].
2017-12-23 04:28:50 +03:00
Alexey Milovidov
61174e9150
Better implementation for IDataType::equals method #1650
2017-12-23 04:05:29 +03:00
Alexey Milovidov
d6dc25b09e
Fixed wording #1650
2017-12-23 03:21:49 +03:00
Alexey Milovidov
609133ea01
Added aggregate function sumKahan [#CLICKHOUSE-2].
2017-12-23 02:26:30 +03:00
Alexey Milovidov
59dce5187a
Merge branch 'master' into kahan-sum
2017-12-23 02:12:05 +03:00
Alexey Milovidov
7e60152e72
Added comments; added test [#CLICKHOUSE-2].
2017-12-23 02:08:57 +03:00
Alexey Milovidov
69a7761812
Added simple, non-numerically stable variants of statistical functions; use it by default; old functions are accessible under -Stable suffix, like varPopStable [#CLICKHOUSE-2].
2017-12-23 01:59:45 +03:00
Alexey Milovidov
a7b8541cea
Implemented faster and not numerically stable versions of statistical functions [#CLICKHOUSE-2].
2017-12-23 01:23:03 +03:00
Alexey Milovidov
22ef87b763
Fixed bad test [#CLICKHOUSE-2].
2017-12-23 01:11:08 +03:00
Alexey Milovidov
2f8a79eee6
Kahan summation: development [#CLICKHOUSE-2].
2017-12-23 01:02:52 +03:00
Alexey Milovidov
eebdac1f0e
Fixed build #1676
2017-12-22 22:26:56 +03:00
Alexey Milovidov
5e39b55f60
Added PR changes #1676
2017-12-22 22:20:18 +03:00
Alexey Milovidov
3d4906e04c
Merge branch 'master' of https://github.com/kshvakov/ClickHouse-Server into kshvakov-master
2017-12-22 22:13:35 +03:00
proller
4f2b4efa25
UNION ALL: mismatch size #1444 ( #1446 )
...
* UNION ALL: mismatch size #1444
* Fix test reference
* restore InterpreterSelectQuery::initQueryAnalyzer
2017-12-22 21:30:42 +03:00
proller
daab7adf6f
client --ignore-error option (useful with --multiquery) ( #1652 )
...
* client --ignore-error option (useful with --multiquery)
* --ignore_error via lexer
2017-12-22 21:29:37 +03:00
proller
9b8972b4c8
Add bad queries from #1563 ( #1653 )
...
* cmake fix
* load shell_config.sh
* env bash
* fix
* use $CLICKHOUSE_CLIENT
* fix
* curl 1
* curl2
* curl3
* fix
* fix
* fix
* fix
* ExtractFromConfig --try
* fix
* fix
* Add symlinks to package
* fix bundle
* fix
* fix
* fix package
* clickhouse-test --order option
* client --ignore-error option (useful with --multiquery)
* add bad queries from @filimonov
* More queries
* --ignore_error via lexer
* fix
* rename
2017-12-22 21:29:03 +03:00
Alexey Zatelepin
6d5ce3fa9a
revert BackgroundSchedulePool usage in Replicated tables
2017-12-22 21:25:54 +03:00
Kirill Shvakov
af400da8eb
add toStartOfFifteenMinutes function
2017-12-22 13:04:24 +02:00
Kirill Shvakov
34470ab6ca
Merge branch 'master' of https://github.com/yandex/ClickHouse
2017-12-22 11:38:06 +02:00
Alexey Milovidov
b9ca36e5ad
Added test [#CLICKHOUSE-2].
2017-12-22 06:59:48 +03:00
Alexey Milovidov
622f0b62e0
Fixed nullptr dereference when trying to create incorrect data types [#CLICKHOUSE-2].
2017-12-22 06:55:49 +03:00
Alexey Milovidov
7a15be8e63
Fixed behaviour of "visitParamExtract" functions according to the documentation [#CLICKHOUSE-2].
2017-12-22 05:25:03 +03:00
Alexey Milovidov
0972d7586a
Added support for toQuarter, toRelativeQuarterNum functions. Enabled toRelativeHour/Minute/Second for Date arguments. Made function 'now' case insensitive. Added function 'dateDiff' that is needed for ODBC driver [#CLICKHOUSE-2].
2017-12-22 04:54:29 +03:00
Alexey Milovidov
74f191dfd3
Introduced intExp functions; using it where appropriate; make them available in SQL [#CLICKHOUSE-3].
2017-12-22 02:46:34 +03:00
Alexey Milovidov
46c733ec11
Added test for the issue found by StarWix [#CLICKHOUSE-3].
2017-12-22 02:00:32 +03:00
Alexey Milovidov
fca5d5f2c7
Use better implementation for exp10 [#CLICKHOUSE-2].
2017-12-22 02:00:32 +03:00
Alexey Milovidov
5b59a6f4cb
Whitespace [#CLICKHOUSE-2].
2017-12-21 20:43:32 +03:00
proller
9fc417ae15
Fix freebsd build
2017-12-21 16:07:24 +03:00
Alexey Milovidov
6e691269ad
Updated instruction [#CLICKHOUSE-2].
2017-12-21 05:31:32 +03:00
Alexey Milovidov
0744b9118f
Fixed test [#CLICKHOUSE-2].
2017-12-21 05:18:21 +03:00
Alexey Milovidov
128c4a38d6
Merge branch 'fix_aggregate_functions' of https://github.com/silviucpp/ClickHouse into silviucpp-fix_aggregate_functions
2017-12-21 05:14:21 +03:00
Alexey Milovidov
b198766dad
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
ec3ec48309
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
bf9c301784
Simplification of aggregate functions: compatibility details [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
ef6d3be53a
Simplification of aggregate functions: compatibility details [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
60d7a9f428
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
ac5433bfbb
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
025041937a
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
c7c868cb99
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
de3f1ee629
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
e316ea67af
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
6fe1b175a0
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
d7a36519da
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
b3f4d439fb
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
178deea21c
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
36cbd50842
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
584a263d79
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Alexey Milovidov
c990740b33
Simplification of aggregate functions: development [#CLICKHOUSE-2].
2017-12-21 05:08:25 +03:00
Roman Tsisyk
0e556c2b03
Fix compilation without SSE 4.2
...
Fixes "'hash64' was not declared in this scope" on aarch64.
2017-12-21 00:48:17 +03:00
Marek Vavruša
fd260c31ba
CapnpProtoRowInputStream: fixed build in current master, added docs
2017-12-21 00:46:50 +03:00
Marek Vavruša
3e1ce9bf26
StorageKafka: nicer interface for claiming consumers
2017-12-21 00:46:50 +03:00
Marek Vavruša
9c57def8df
StorageKafka: update comments
2017-12-21 00:46:50 +03:00
Marek Vavruša
c6e959d1e9
StorageKafka: extended configuration, parallel consumers, offset tracking
...
This contains many fixes and corrections for the Kafka engine.
Most notably it now supports extended configuration similarly to GraphiteMergeTree.
Now it also allows specification of consumer count to parallelize consumption of
multiple partitions both in materialized views and in SELECT queries.
The offsets are now committed in the insertSuffix() method after all rows
are successfully read. If an exception is thrown during reading, affected consumer
unsubscribes from all assignments and rejoins the consumer group to rewind offsets.
This means that the consumer won't lose messages in case of write failures.
2017-12-21 00:46:50 +03:00
Marek Vavruša
6d4f106f11
StorageMaterializedView: update dependencies on DETACH TABLE
...
Previously the dependencies were updated only on DROP TABLE, so
detaching a materialized view and inserting to source table thrown an exception.
2017-12-21 00:46:50 +03:00
Marek Vavruša
fb1aa84973
Fixed clang build on macOS
...
- Make sure to use dynamic linking on macOS to avoid OpenSSL static linking bug
- Use -std=c++17 in CFLAGS for files in contrib
- Avoid bad support for thread_local on macOS with clang altogether
2017-12-21 00:46:50 +03:00
Amos Bird
e7af27c4e0
Better iostream debugger with adl.
...
This patch fixes some issues related to DUMP() debugging. Opening std and
placing all Core related classed inside DB namespace enable proper adl support.
It also adds better sfinae guards to Field constructor which somehow breaks <<
overloads.
2017-12-20 21:44:42 +03:00
Alexey Zatelepin
c422b5b2e4
take PreCommitted parts into account when calculating total merge size [#CLICKHOUSE-3508]
2017-12-20 20:52:28 +03:00
Alexey Zatelepin
835b957e95
add comments [#CLICKHOUSE-3508]
2017-12-20 20:40:36 +03:00
Alexey Zatelepin
d35baafde8
check PreCommitted parts when executing log entries and in PartChecker [#CLICKHOUSE-3508]
2017-12-20 20:04:14 +03:00
Alexey Zatelepin
2340e55d0e
revert to old behaviour of getPartIfExists() [#CLICKHOUSE-3508]
2017-12-20 20:04:14 +03:00
Silviu Caragea
d60dfc9f0a
Fix potential memory leak
2017-12-20 12:46:29 +02:00
Kirill Shvakov
d40d0657e0
Merge branch 'master' of https://github.com/yandex/ClickHouse
2017-12-20 10:21:25 +02:00
Kirill Shvakov
59aa1359c8
Access to TEMPORARY TABLES for read-only users
2017-12-20 09:52:06 +02:00
Alexey Milovidov
3124ffea67
Fixed error in prev. revision [#CLICKHOUSE-2].
2017-12-20 02:14:37 +03:00
Alexey Milovidov
6c8a0e70fd
Additions after merge [#CLICKHOUSE-2].
2017-12-19 23:09:15 +03:00
alexey-milovidov
7a97d08b04
Merge branch 'master' into CLICKHOUSE-3361
2017-12-19 23:03:17 +03:00
Alexey Milovidov
c8d8016bbb
Fixed bad code [#CLICKHOUSE-2].
2017-12-19 22:56:48 +03:00
Nikolai Kochetov
39ec3f7d74
changed exception message, added comments
2017-12-19 22:51:59 +03:00
Alexey Milovidov
b48d934c3d
Merge branch 'master' of github.com:yandex/ClickHouse
2017-12-19 22:46:11 +03:00
Alexey Milovidov
548cb4e658
Fixed bad code in Client.cpp [#CLICKHOUSE-2].
2017-12-19 22:46:02 +03:00