Alexey Milovidov
b1e06fc136
Better code #2756
2018-07-30 21:00:16 +03:00
Alexey Milovidov
7fe1914a63
Whitespaces #2756
2018-07-30 19:07:20 +03:00
alexey-milovidov
be657c33e6
Merge pull request #2756 from CurtizJ/CLICKHOUSE-3785
...
Clickhouse 3785 Add MurmurHash2
2018-07-30 18:57:38 +03:00
ap11
45ce69e73d
Add case insensitive coalesce ifnull, nullif.
2018-07-30 18:50:12 +03:00
alexey-milovidov
b062262b9f
Update FunctionsHashing.h
2018-07-30 18:45:46 +03:00
ap11
4fe3690cad
minor changes
2018-07-30 16:50:26 +03:00
ap11
d45ce92b89
add tests for murmurhash2
2018-07-30 16:41:07 +03:00
ap11
68bdc4eb12
Add mumurhash2
2018-07-30 15:19:22 +03:00
chertus
b9fd87eff7
Merge branch 'master' into decimal
2018-07-27 20:31:33 +03:00
chertus
492875e0f7
decimal comparisons with other integers
2018-07-26 18:28:14 +03:00
chertus
c1c149d74b
decimal comparisons
2018-07-25 22:38:21 +03:00
alesapin
9adb251689
CLICKHOUSE-3857: Add table table_engines, alias factory base class and columns alias_to and case_insensitive to functions
2018-07-25 19:08:23 +03:00
Alexey Milovidov
7c07f46d50
Style [#CLICKHOUSE-2]
2018-07-24 21:46:23 +03:00
alexey-milovidov
1c200589f5
Update FunctionsArray.h
2018-07-23 19:27:23 +03:00
alexey-milovidov
ff2fdac25c
Update FunctionsArray.h
2018-07-23 19:27:23 +03:00
Maxim Khrisanfov
1a57a05342
Opportunity to work with Array of Enums by passing numeric value #626
2018-07-23 19:27:23 +03:00
Nikolai Kochetov
2bce1f0fb7
Fix tests.
2018-07-20 16:07:51 +03:00
Nikolai Kochetov
df8e030b2d
Fix tests.
2018-07-20 15:30:04 +03:00
Nikolai Kochetov
3a74ec7c0c
Mergred with master
2018-07-20 14:08:54 +03:00
Nikolai Kochetov
bf26fda38d
Added canBeExecutedOnDefaultArguments into IFunction. Don't run function on defaults is this flag is true.
2018-07-20 13:19:07 +03:00
Nikolai Kochetov
e8bd73ff9b
Fixed function makeDictionary for column with dictionary argument.
2018-07-20 13:19:05 +03:00
Nikolai Kochetov
cbbbda2539
Supported serialization of several dictionaries into single part.
...
Run function on nested column of column with dictionary only if arguments have single column with dictionary and other columns are const.
2018-07-20 13:18:21 +03:00
Nikolai Kochetov
9c763f8090
Make DatsTypeWithDictionary independent from index type.
2018-07-20 13:16:27 +03:00
Vadim
b8ae9f7951
[CLICKHOUSE-2830] add FunctionArrayDistinct ( #2670 )
...
* [CLICKHOUSE-2830] add FunctionArrayDistinct
* [#CLICKHOUSE-2830] Add tests and fix
* [CLICKHOUSE-2830] fix bug with array without NULL
* [CLICKHOUSE-2830] fix test
* [CLICKHOUSE-3844] Add suport Tuple and other types in Uniq, EnumerateUniq and Distinct
* [CLICKHOUSE-3844] Add '\n'
* [CLICKHOUSE-3844] fix
* [CLICKHOUSE-2830] del Nullable return type
* Update FunctionsArray.cpp
* [CLICKHOUSE-3844] add new tests
* [CLICKHOUSE-3844] add new tests
2018-07-19 16:53:32 +03:00
alexey-milovidov
164425d1ec
Fix performance regression with prepared sets when they are used inside another subquery. ( #2677 )
...
* Attempt to fix performance regression [#CLICKHOUSE-3796]
* Attempt to fix performance regression [#CLICKHOUSE-3796]
* Attempt to fix performance regression [#CLICKHOUSE-3796]
* Attempt to fix performance regression [#CLICKHOUSE-3796]
* Attempt to fix performance regression [#CLICKHOUSE-3796]
* Attempt to fix performance regression [#CLICKHOUSE-3796]
* Attempt to fix performance regression [#CLICKHOUSE-3796]
* Attempt to fix performance regression [#CLICKHOUSE-3796]
* Added documentation about ClickHouse testing (draft) [#CLICKHOUSE-2]
* Attempt to fix performance regression [#CLICKHOUSE-3796]
* Removed debug output [#CLICKHOUSE-3796]
* Removed debug output [#CLICKHOUSE-3796]
* Updated documentation about ClickHouse testing [#CLICKHOUSE-2]
* Revert "Updated documentation about ClickHouse testing [#CLICKHOUSE-2]"
This reverts commit 9eafc13f3b
.
* Revert "Added documentation about ClickHouse testing (draft) [#CLICKHOUSE-2]"
This reverts commit e28ad4b5fe
.
* Fixed test #2677
* Update InterpreterSelectQuery.cpp
2018-07-19 16:36:21 +03:00
proller
51cdec0bec
CLICKHOUSE-3771: fixes
2018-07-18 12:48:45 +03:00
Alexey Milovidov
0a2e6eca45
Implemented generic case for comparison operators #2026
2018-07-16 09:06:44 +03:00
Alexey Milovidov
0f3d6fe756
Fixed error #2649
2018-07-16 03:30:13 +03:00
Alexey Milovidov
eee02143a8
Implemented more accurate CAST from String to Nullable of Date and DateTime #1322
2018-07-16 03:30:13 +03:00
Alexey Milovidov
297805f719
Implemented toOrZero, toOrNull functions for Date and DateTime arguments (incomplete) #1322
2018-07-16 03:30:13 +03:00
Alexey Milovidov
8533011a49
More accurate conversion to Nullable type in function CAST #1322
2018-07-16 03:30:13 +03:00
Alexey Milovidov
14d5aa061f
Miscellaneous #1322
2018-07-11 22:37:57 +03:00
Alexey Milovidov
b01d7bb5e2
Fixed wrong code #2115
2018-07-06 22:37:58 +03:00
Alexey Milovidov
43111f2ac9
Fixed error with function "has" and Nullable array argument #2115
2018-07-06 22:19:38 +03:00
alexey-milovidov
1e78445a25
Update FunctionsConversion.h
2018-07-06 18:55:26 +03:00
Nikolai Kochetov
7592b6e34a
Fixed monotonic constraints for unsigned integer types.
2018-07-06 18:55:26 +03:00
Nikolai Kochetov
5e3c0c0238
Supported nullable for runningDifference function. #2590
2018-07-04 20:25:48 +03:00
alexey-milovidov
3904ba561f
Merge branch 'master' into CLICKHOUSE-2910
2018-06-28 20:47:25 +03:00
Nikolai Kochetov
acd6c8fafd
Supported array(tuple) arguments for arrayEnumerateUniq function. [#CLICKHOUSE-3794]
2018-06-28 20:15:12 +03:00
Nikolai Kochetov
9f591b8d02
Merged with master.
2018-06-26 17:41:29 +03:00
Nikolai Kochetov
f56d16769b
Added pre and post serialization for IDataType BinaryBulkWithMultipleStreams. Supported dictionary serialization format with single global dictionary (limited wit max_dictionary_size) and additional keys which are stored per granule. Changed IDataType::enumerateStream interface. Added (de)serialization params for binary bulk with multiple stream (de)serialization. Changed IColumn::index interface.
2018-06-26 17:12:21 +03:00
Nikolai Kochetov
58cbcbd5c3
Supported DataTypeWithDictionary in CAST function.
2018-06-26 17:12:21 +03:00
Nikolai Kochetov
df71a25b4f
Removed function makeDictionary, added functions makeDictionaryUInt{8,16,32,64}
2018-06-26 17:12:21 +03:00
proller
e1ae5233df
Add // Y_IGNORE tags
2018-06-21 18:24:36 +03:00
Vitaliy Lyudvichenko
310bb4116e
Merge remote-tracking branch 'origin/master' into CLICKHOUSE-2910
2018-06-19 23:33:11 +03:00
proller
fbe7df73a2
CLICKHOUSE-3762 Build fixes ( #2488 )
...
CONTRIB-254
2018-06-19 21:09:09 +03:00
Vitaliy Lyudvichenko
a0e9d17bfd
Add query_id and host_name to server logs. [#CLICKHOUSE-2910]
2018-06-15 16:49:01 +03:00
alexey-milovidov
fafecb3c25
Better modularity of formats. ( #2492 )
...
* Formats: better modularity (development) #2447
* Formats: better modularity (development) #2447
* Formats: better modularity (development) #2447
* Formats: better modularity (development) #2447
* Formats: better modularity (development) #2447
* Formats: better modularity (development): removed very old tests #2447
* Formats: better modularity (development) #2447
* Formats: better modularity (development) #2447
* Formats: better modularity (development) #2447
* Formats: better modularity (development) #2447
* Formats: better modularity (development) #2447
* Formats: better modularity (development) #2447
* Formats: better modularity (development) #2447
* Formats: better modularity (development) #2447
2018-06-10 22:22:49 +03:00
Alexey Milovidov
29bd48fc7a
Passing settings to ser/de of data types: development #1710
2018-06-08 05:24:27 +03:00
Alexey Milovidov
26d448baad
Passing settings to ser/de of data types: development #1710
2018-06-08 04:51:55 +03:00
Alexey Milovidov
7125db4679
Fixed code with extremely high level of ugliness [#CLICKHOUSE-3764]
2018-06-07 23:25:38 +03:00
proller
cb65528147
Build fixes ( #2481 )
...
* Build fixes
* fix
* Fix package without compiler
* Better
* fix
* fix
* fix
* Build fix
* fix
* fix
* fix
* Build fix
* Fix test
* test fixes
* test: netcat-openbsd
* Compile fixes
* Update AggregateFunctionStatisticsSimple.h
* Update FunctionsRound.h
2018-06-07 17:42:38 +03:00
alexey-milovidov
be4be0758a
Remove escaping in presentational formats ( #2476 )
...
* Removed escaping in presentational formats; changed a way how NULL is output #1729
* Addition to prev. revision #1729
* Addition to prev. revision #1729
* Updated tests #1729
* Updated function visibleWidth to be consistent with Pretty formats #1729
2018-06-07 04:30:29 +03:00
Alexey Milovidov
89b2096fd7
Merge branch 'master' of github.com:yandex/ClickHouse
2018-06-07 00:21:46 +03:00
Alexey Milovidov
a00e5e2c5c
Preparations #2429
2018-06-07 00:13:49 +03:00
Alexey Milovidov
37bd5f175b
Whitespaces #2429
2018-06-06 23:38:02 +03:00
Alexey Milovidov
5fa25968c8
Merge branch 'task_ends_starts' of https://github.com/VadimPE/ClickHouse into VadimPE-task_ends_starts
2018-06-06 23:36:22 +03:00
proller
347579ce46
Cmake: mark system includes as SYSTEM ( #1449 )
...
* contrib: cctz as submodule. update cctz.
* pbuilder: add ubuntu bionic, devel
* Cmake: mark system includes as SYSTEM
* Build fixes
* fix
* Fix package without compiler
* Better
* fix
* fix
* fix
* Build fix
* fix
* fix
* fix
* Cmake: Add SYSTEM to includes for external libs
2018-06-06 23:21:58 +03:00
Vadim
fec000b8dc
Add new tests and new impl
2018-06-06 21:22:49 +03:00
Alexey Milovidov
b9b89a5590
Less dependencies [#CLICKHOUSE-2]
2018-06-05 22:46:49 +03:00
alexey-milovidov
88efe5ad56
Merge pull request #2463 from yandex/pvs-studio
...
Fixes according to PVS-Studio report.
2018-06-04 22:59:47 +03:00
Alexey Milovidov
f467fb38c7
Fixed bug found by PVS-Studio; added test [#CLICKHOUSE-3]
2018-06-04 22:37:58 +03:00
Alexey Milovidov
ca52d96e09
Insignificant changes for PVS-Studio [#CLICKHOUSE-3]
2018-06-04 22:22:27 +03:00
Alexey Milovidov
d811647668
Suppressions for PVS-Studio [#CLICKHOUSE-3]
2018-06-04 18:28:25 +03:00
Alexey Milovidov
1001209e2a
Fixed bug found by PVS-Studio [#CLICKHOUSE-3]
2018-06-04 18:05:19 +03:00
Nikolai Kochetov
1b4c294f01
Added left tuple argument unpacking for IN function if it doesn't equals to set types. [#CLICKHOUSE-3749]
2018-06-04 16:30:38 +03:00
Alexey Milovidov
f5adbceed2
Non significant changes according to clang's -Weverything, part 3 [#CLICKHOUSE-2]
2018-06-03 23:39:06 +03:00
Alexey Milovidov
1c2b024c39
Non significant changes according to clang's -Weverything, part 2 [#CLICKHOUSE-2]
2018-06-03 20:43:56 +03:00
Vadim
31a6613105
fix error
2018-05-30 02:01:36 +03:00
Vadim
3aa24d39d4
Add comparison and fix functions
2018-05-28 23:01:20 +03:00
Vadim
79791ead1e
Add startsWith and endsWith
2018-05-28 01:43:31 +03:00
Alexey Milovidov
13762471da
Changed DayNum_t to DayNum as Amos Bird suggested [#CLICKHOUSE-3]
2018-05-25 16:29:15 +03:00
Nikolai Kochetov
559d944412
Fixed build.
2018-05-21 14:52:02 +03:00
Nikolai Kochetov
937cb2db29
Merged with master.
2018-05-21 14:38:50 +03:00
Nikolai Kochetov
e6adcfaad5
Fixed element types for explicit set in IN function. [#CLICKHOUSE-3730]
2018-05-15 18:38:04 +03:00
proller
efe661b620
Build fixes ( #2347 )
...
* Try fix travis
* fix
* Fix clickhouse-local shared-split link
* fix
* fix
* fix
* Build fixes
* Fix tinfo
* fix
* tinfo -> termcap
2018-05-11 17:16:16 +03:00
Alexey Milovidov
4d9088d3d4
Merge branch 'llvm-jit' of https://github.com/pyos/ClickHouse into pyos-llvm-jit
2018-05-10 18:23:53 +03:00
Alexey Milovidov
93352237d9
Better exception message [#CLICKHOUSE-2]
2018-05-10 18:20:19 +03:00
pyos
c123be1fe4
Fix incorrect phi node edges in if
2018-05-10 17:49:38 +03:00
pyos
6d2259f2cf
Implement jit for comparisons, except for (double, int).
...
That one has some edge cases which I can't be bothered to code.
2018-05-10 17:03:18 +03:00
pyos
4abcef13a1
Merge branch 'pyos-llvm-jit' of https://github.com/yandex/ClickHouse into llvm-jit
2018-05-10 13:19:49 +03:00
Alexey Milovidov
3a059b82d2
Merge branch 'master' of github.com:yandex/ClickHouse into pyos-llvm-jit
2018-05-09 23:34:20 +03:00
Alexey Milovidov
845d6372e7
Fixed linking of tests #2277
2018-05-09 21:33:29 +03:00
Alexey Milovidov
14223a88a3
Fixed build [#CLICKHOUSE-2]
2018-05-09 07:21:40 +03:00
pyos
f060883c4b
Fix a typo
2018-05-08 16:02:32 +03:00
pyos
2d70d9d601
Implement jit for numeric if and multiIf
2018-05-07 23:17:22 +03:00
pyos
1433e6e849
Extract native bool cast; generalize number cast to nullables
2018-05-07 22:21:23 +03:00
pyos
686c1f73fd
Implement IntExp2Impl::compile
2018-05-07 16:36:07 +03:00
pyos
b08dbf2b22
Remove a redundant target_compile_options
2018-05-07 16:33:07 +03:00
Alexey Milovidov
d1b4b5c836
Fixed error; added ProfileEvent #2277
2018-05-07 09:23:18 +03:00
Alexey Milovidov
723cc53948
Applied clang-format to some imported code [#CLICKHOUSE-2]
2018-05-07 05:08:38 +03:00
Alexey Milovidov
c4ff517b8e
Fixed style [#CLICKHOUSE-2]
2018-05-07 05:08:38 +03:00
Alexey Milovidov
1dc1ccc1d8
Applied clang-format #2272
2018-05-07 05:08:38 +03:00
Alexey Milovidov
59bc8e1b48
Applied clang-format to some imported code [#CLICKHOUSE-2]
2018-05-07 05:07:47 +03:00
Alexey Milovidov
619a0dbd8c
Fixed style [#CLICKHOUSE-2]
2018-05-07 05:07:17 +03:00
Alexey Milovidov
90427db854
Applied clang-format #2272
2018-05-07 05:06:55 +03:00
Alexey Milovidov
94369e55d3
Fixed style a bit [#CLICKHOUSE-2]
2018-05-07 05:01:29 +03:00
Alexey Milovidov
956128a67a
Fixed style a bit [#CLICKHOUSE-2]
2018-05-07 05:01:11 +03:00
Alexey Milovidov
ee019183d2
Fixed code #2272
2018-05-06 14:31:14 +03:00
Alexey Milovidov
04d1c8c449
Fixed code #2272
2018-05-06 14:29:17 +03:00