Commit Graph

18781 Commits

Author SHA1 Message Date
alesapin
f68b5216a8 Fix prefix reading and skip check for low cardinality dictionary 2019-07-02 13:55:47 +03:00
alexey-milovidov
aea3fc661a
Merge pull request #5824 from Enmk/double_delta_fix
Fixed DoubleDelta codec edge case
2019-07-02 12:52:40 +03:00
Vasily Nemkov
c5b2ba2a25 Fixed DoubleDelta codec edge case
Casused by mistreating negative double delta value as HUGE unsigned value, crippling compression ratio.
2019-07-02 07:58:03 +03:00
Alexey Milovidov
da04c2f1ce Merge branch 'master' of github.com:yandex/ClickHouse 2019-07-02 03:16:27 +03:00
alexey-milovidov
28ae9f9044
Merge pull request #4828 from laplab/update_libunwind
switch to llvm libunwind
2019-07-02 02:34:01 +03:00
Alexey Milovidov
ed8f81304c Merge branch 'master' of github.com:yandex/ClickHouse 2019-07-02 02:33:28 +03:00
Alexey Milovidov
4e41e8a572 Preparation for #4828: adapted test for build without libunwind 2019-07-02 02:33:15 +03:00
Vitaliy Zakaznikov
b5120931d5 Merge branch 'master' of https://github.com/yandex/ClickHouse into liveview 2019-07-01 18:12:31 -04:00
Nikita Lapkov
5286ab97fd refactor and comments 2019-07-01 22:11:11 +00:00
Vitaliy Zakaznikov
a363189dfc Merge branch 'master' of https://github.com/vzakaznikov/ClickHouse into liveview 2019-07-01 18:05:14 -04:00
Nikita Lapkov
9641d058d0 Merge remote-tracking branch 'upstream/master' into update_libunwind 2019-07-01 21:11:26 +00:00
alexey-milovidov
6890c5e3b3
Merge pull request #5822 from yandex/fix-build-gcc9
fix build on macosx and gcc9
2019-07-01 23:16:11 +03:00
alexey-milovidov
c43dfce041
Merge pull request #5382 from abyss7/issue-5286
Add virtual columns to Kafka Engine tables
2019-07-01 21:30:09 +03:00
alexey-milovidov
bf8c154d3d
Merge pull request #5819 from CurtizJ/fix-segfault-ttl
Fix segfault in TTL merge with non-physical columns in block.
2019-07-01 20:28:26 +03:00
filimonov
c5492e59f1
more accidental spaces 2019-07-01 17:01:10 +02:00
filimonov
051a9ae492
remove accidental spaces 2019-07-01 16:44:45 +02:00
filimonov
2627dec804
fix build on macosx and gcc9 2019-07-01 16:42:05 +02:00
Alexey Milovidov
2acaebb288 Added test 2019-07-01 17:28:39 +03:00
CurtizJ
ecf9feab9c remove extra semicolon 2019-07-01 17:09:22 +03:00
Alexey Milovidov
cb8be105d5 Added missing implementations of IColumn::getFloat64, IColumn::getBool 2019-07-01 16:49:50 +03:00
Ivan Lezhankin
fa5431a524 Don't re-new docker volumes in all tests 2019-07-01 16:49:00 +03:00
chertus
13fa9a07e5 Merge branch 'master' into t64 2019-07-01 16:40:32 +03:00
chertus
37b7ff7a0a fix maning, add comment 2019-07-01 16:35:04 +03:00
CurtizJ
c0a63801fc fix segfault in ttl merge with non-physical columns in block 2019-07-01 15:50:50 +03:00
chertus
5df4ad0f28 Merge branch 'master' into bugs 2019-07-01 14:49:01 +03:00
chertus
0c634129da add IColumn.isNullable() 2019-07-01 14:44:19 +03:00
alexey-milovidov
106a2d0c0f
Merge pull request #4930 from yandex/tsan-miscellaneous
Miscellaneous changes
2019-07-01 11:11:53 +03:00
alexey-milovidov
5fb7bf6854
Update ParallelInputsProcessor.h 2019-07-01 03:15:14 +03:00
Alexey Milovidov
f6c2815134 Merge branch 'master' of github.com:yandex/ClickHouse 2019-07-01 02:54:07 +03:00
Alexey Milovidov
22948ba508 Fixed test 2019-07-01 02:53:56 +03:00
alexey-milovidov
c108882c5f
Merge pull request #5805 from yandex/BHYCHIK-h3-integration
Merge H3 integration
2019-07-01 01:02:16 +03:00
alexey-milovidov
a9cfe4ce91
Merge pull request #5807 from yandex/ngramSearch
Inverting ngramSearch to be more intuitive
2019-07-01 00:43:17 +03:00
alexey-milovidov
1119056b71
Merge pull request #5798 from s-mx/complete_external_loader_methods
complete ExternalLoader method's implementations
2019-07-01 00:42:57 +03:00
Alexey Milovidov
fd2f90488e Simplification 2019-06-30 23:54:06 +03:00
Alexey Milovidov
49ce1cc29b Updated test 2019-06-30 23:39:23 +03:00
Alexey Milovidov
65ce94bb56 Updated performance test 2019-06-30 23:14:45 +03:00
Alexey Milovidov
4b6c21d995 Merge branch 'BHYCHIK-h3-integration' of github.com:yandex/ClickHouse into BHYCHIK-h3-integration 2019-06-30 23:14:03 +03:00
Alexey Milovidov
6eae511b6e Changed order of (lat, lon) to (lon, lat) to be consistent with "greatCircleDistance" function and PostGIS 2019-06-30 23:13:32 +03:00
Alexey Milovidov
e541deb5ca Added performance test 2019-06-30 23:06:04 +03:00
Maxim Sabyanin
663aab6f5b complete ExternalLoader method's implementations 2019-06-30 23:04:21 +03:00
Alexey Milovidov
7591c3b7b2 Fixed error 2019-06-30 22:47:20 +03:00
Alexey Milovidov
7c98327e4d Fixed error 2019-06-30 22:46:23 +03:00
Alexey Milovidov
86093a474f Fixed error 2019-06-30 22:45:23 +03:00
Danila Kutenin
9127c8b27c inverting ngramSearch to be more intuitive 2019-06-30 22:34:17 +03:00
Alexey Milovidov
7ca7d6c774 Initial support for clang-tidy (not yet useful) 2019-06-30 21:56:53 +03:00
Alexey Milovidov
a7fc631de7 Style 2019-06-30 21:55:08 +03:00
Alexey Milovidov
1777313821 Own CMakeLists for H3 because otherwise "m" library does not link correctly 2019-06-30 21:49:57 +03:00
Alexey Milovidov
008f3a247e Merging H3 integration 2019-06-30 21:20:32 +03:00
Alexey Milovidov
b86aca37ea Merge branch 'h3-integration' of https://github.com/BHYCHIK/ClickHouse into BHYCHIK-h3-integration 2019-06-30 19:15:33 +03:00
Alexey Milovidov
0bba515f8f Updated test 2019-06-30 17:29:24 +03:00
Alexey Milovidov
33cff5ee0f Merge remote-tracking branch 'origin/master' into sanych73-prepared_statements 2019-06-30 17:24:15 +03:00
alexey-milovidov
feafcb21bd
Merge branch 'master' into h3-integration 2019-06-30 16:19:11 +03:00
proller
a69990ce27 CLICKHOUSE-4514 Unique query_id among all users (#5430)
* CLICKHOUSE-4514 Unique query_id among all users

* try 1

* Fix

* fix

* use condvar

* fix style

* Update ProcessList.cpp
2019-06-30 16:17:27 +03:00
alexey-milovidov
18535590ce
Merge pull request #5802 from CurtizJ/upstream/systemlog-flushing
Fix shutdown of SystemLogs
2019-06-30 15:51:35 +03:00
Alexey Milovidov
6ad07172ee Fixed error in query formatting 2019-06-30 15:49:06 +03:00
CurtizJ
1a8695ffd9 fix shutdown of system_logs 2019-06-30 04:56:16 +03:00
Alexey Milovidov
725bcd9d02 Merge branch 'master' into sanych73-prepared_statements 2019-06-30 02:59:37 +03:00
Alexey Milovidov
f25b96bed2 Moved a few tests to gtest 2019-06-30 02:23:53 +03:00
Alexey Milovidov
b76d5a7cf0 Added a test (not gtest though) 2019-06-30 01:45:57 +03:00
Alexey Milovidov
299607a301 ThreadPool: more informative error message if exception is thrown before we schedule a next thread #5305 2019-06-30 01:37:46 +03:00
Alexey Milovidov
af1e3b97ea Updated test 2019-06-29 23:09:14 +03:00
Alexey Milovidov
b78b000ec1 Updated test 2019-06-29 23:06:53 +03:00
Alexey Milovidov
3fd3cc3ff4 Updated test 2019-06-29 23:05:41 +03:00
Alexey Milovidov
e2431a571f Updated test 2019-06-29 23:05:11 +03:00
Alexey Milovidov
c7e70df5fc Fixed error with formatting aliases 2019-06-29 21:59:07 +03:00
Alexey Milovidov
d29ab639d9 Updated test 2019-06-29 21:36:34 +03:00
Alexey Milovidov
b8e6cd0311 Updated test 2019-06-29 21:35:23 +03:00
Alexey Milovidov
3adfbff78c Updated test 2019-06-29 21:33:56 +03:00
Alexey Milovidov
22bb0b5ca7 Updated test 2019-06-29 21:32:48 +03:00
Alexey Milovidov
16cfce7ab3 Updated test 2019-06-29 21:32:07 +03:00
Alexey Milovidov
1d3658662a Updated test 2019-06-29 21:30:53 +03:00
Alexey Milovidov
88fc72f0b9 Merge branch 'feature/bloom_filter' of https://github.com/zhang2014/ClickHouse into zhang2014-feature/bloom_filter 2019-06-29 20:44:11 +03:00
alexey-milovidov
87993de98d
Merge pull request #5725 from yandex/PerformanceVision-ignore_scheme
Performance vision ignore scheme
2019-06-29 20:36:23 +03:00
Alexey Milovidov
90898905e0 Allow to DROP database with Dictionary engine 2019-06-29 20:27:32 +03:00
Alexey Milovidov
de8a15b5f4 Removed unused method 2019-06-29 20:19:46 +03:00
Alexey Milovidov
498a2072b5 Fixed bug in query formatting with TEMPORARY tables 2019-06-29 19:58:32 +03:00
Alexey Milovidov
2638bb79f7 Updated test 2019-06-29 19:22:02 +03:00
Alexey Milovidov
6566bb7088 Updated tests 2019-06-29 19:18:59 +03:00
Alexey Milovidov
a8e1c8a7d2 Fixed formatting of invalid queries with ambiguous aliases 2019-06-29 19:13:28 +03:00
Alexey Milovidov
6ff0a88eb3 Fixed minor issue in query formatting 2019-06-29 18:26:19 +03:00
Alexey Milovidov
3197b0748d Updated test 2019-06-29 18:13:52 +03:00
Alexey Milovidov
a643f2f75e Merge branch 'master' into sanych73-prepared_statements 2019-06-29 15:51:56 +03:00
alexey-milovidov
fe542e26f8
Merge pull request #5685 from CurtizJ/upstream/systemlog-flushing
Fix race condition in flushing system log in another way.
2019-06-29 15:46:22 +03:00
alexey-milovidov
e8b58e2a07
Merge pull request #5796 from yandex/excitoon-patch-1
Improved integration tests guide.
2019-06-29 15:36:18 +03:00
alexey-milovidov
a0d3db8d9b
Merge pull request #5787 from yandex/aku/podarray-bytes
Fix initial size of some inline PODArray's.
2019-06-29 15:34:00 +03:00
alexey-milovidov
7474abfea6
Merge pull request #5791 from yandex/aku/store-explicit
Require explicit type in unalignedStore
2019-06-29 15:33:38 +03:00
proller
8b1651ae1f
arcadia fixes (#5795) 2019-06-29 15:04:47 +03:00
Vladimir Chebotarev
1ed6a6a1ce
Improved integration tests guide. 2019-06-29 14:34:26 +03:00
Ivan Lezhankin
1a7cb519fe Final test fix 2019-06-28 23:09:15 +03:00
Danila Kutenin
614ec98a42 Fix runtime of SPLIT_SHARED_LIBRARIES build 2019-06-28 21:26:24 +03:00
Nikita Lapkov
2a131185b0 Merge remote-tracking branch 'upstream/master' into update_libunwind 2019-06-28 18:20:23 +00:00
Nikita Lapkov
f8d2b5effd introduce Backtrace class 2019-06-28 18:06:38 +00:00
Alexander Kuzmenkov
0116c10e41 Require explicit type in unalignedStore
This is a follow-up to PR #5786, which fixed a segfault caused by
an unexpected deduced type for unalignedStore. To prevent future errors
of this kind, require a caller to specify the stored type explicitly.
2019-06-28 20:33:14 +03:00
Alexander Kuzmenkov
a719933c58 Fix initial size of some inline PODArray's.
A template parameter of PODArray named INITIAL_SIZE didn't make its
units clear, which made some callers to erroneously assume that it
specifies the number of elements and not the number of bytes.
Rename it, fix the wrong usages and, where possible, use the
PODArrayWithStackMemory typedef for arrays with inline memory.
2019-06-28 16:03:14 +03:00
alexey-milovidov
18659e367e
Merge pull request #5758 from zlobober/bool_masks
Extend KeyCondition interface so that it returns BoolMask.
2019-06-28 14:51:52 +03:00
alexey-milovidov
b9cbd36487
Merge pull request #5750 from hczhcz/patch-7
Refactor: Improve function registering
2019-06-28 14:50:38 +03:00
alexey-milovidov
1327342040
Merge pull request #5764 from hczhcz/patch-8
Add synonim arrayFlatten <-> flatten
2019-06-28 14:49:05 +03:00
alexey-milovidov
6e77fc4abe
Merge pull request #5775 from yandex/lfalloc2mimalloc
Use mimalloc instead of lfallocator
2019-06-28 14:48:18 +03:00
alexey-milovidov
8b93f086aa
Merge pull request #5777 from proller/fix27
Move file Functions/array/empty.cpp -> Functions/empty.cpp
2019-06-28 14:47:12 +03:00
alexey-milovidov
72b0bdd0d3
Merge pull request #5786 from yandex/awful_delta_codec_bug
Fix bug in delta codec
2019-06-28 14:46:05 +03:00
alexey-milovidov
2f0918eadf
Merge pull request #5785 from fredchenbj/fix/io_endian_portable_on_mac
IO: fix endian portable on macos x
2019-06-28 14:45:20 +03:00
alesapin
cfd8df6568 Fix bug in delta codec caused by genious C++ implicit type conversion and consequent template type deduction 2019-06-28 13:42:36 +03:00
hcz
aea8d93248 Fix tests 2019-06-28 15:17:47 +08:00
fredchenbj
e3b3ca8d0e IO: fix endian portable on macos x
Signed-off-by: fredchenbj <cfworking@163.com>
2019-06-28 15:15:56 +08:00
hcz
fc6140ade8 Add tests 2019-06-28 13:00:26 +08:00
hcz
1d2695cbd2 Add alias flatten/arrayFlatten 2019-06-28 11:55:09 +08:00
Danila Kutenin
407cf9a229 Comments 2019-06-28 00:43:50 +03:00
chertus
f19dee706a move IColumn.isColumnConst() outside of interface 2019-06-27 22:28:52 +03:00
Alexey Milovidov
3c4784a466 Removed obsolete undocumented embedded dictionaries that were used by Yandex.Metrica 2019-06-27 22:18:28 +03:00
chertus
db7c8748e9 remove IColumn.isColumnNullable() 2019-06-27 21:50:20 +03:00
proller
26b941b6d1 Merge remote-tracking branch 'upstream/master' into fix27 2019-06-27 21:43:55 +03:00
proller
da6490c11d renamed: Functions/array/notEmpty.cpp -> Functions/notEmpty.cpp 2019-06-27 21:43:40 +03:00
alexey-milovidov
7ce4cd7861
Merge pull request #5745 from nvartolomei/nv/clickhouse-copier-cross-replication
clickhouse-copier: Allow empty database name
2019-06-27 21:09:00 +03:00
proller
0baaa4b254 Move file Functions/array/empty.cpp -> Functions/empty.cpp 2019-06-27 20:45:41 +03:00
alexey-milovidov
ea37aeb1b4
Merge pull request #5774 from yandex/gcc-9
Compatibility with gcc-9
2019-06-27 20:24:09 +03:00
alexey-milovidov
246f34d8f6
Merge pull request #5768 from abyss7/better-log
Print table name in message about missing column
2019-06-27 18:49:40 +03:00
Danila Kutenin
e67431e455 Use mimalloc instead of lfallocator 2019-06-27 18:13:19 +03:00
Alexey Milovidov
e33d482271 Fixed warning in gcc-9 2019-06-27 17:44:39 +03:00
Maxim Akhmedov
2cacc3cfd2 CHYT-142: extend KeyCondition interface so that it returns BoolMask. 2019-06-27 16:31:33 +03:00
Alexey Milovidov
e3277c191b Fixed idiotic inconsistency in code 2019-06-27 16:26:06 +03:00
Alexey Milovidov
8f3ff6c77a Removed inconsistent whitespaces 2019-06-27 16:20:33 +03:00
chertus
68034103bb fix arrayIndex for new columns's isNullable 2019-06-27 15:49:08 +03:00
proller
aeb7eb42d1 clickhouse-copier: Fix use-after free on shutdown (#5752)
* release script: convert .deb to .rpm and .tgz

* clickhouse-copier: Fix use-after free on shutdown

* Revert "Disable cluster copier tests"

This reverts commit 71872fc3c3.
2019-06-27 15:29:49 +03:00
Nikolai Kochetov
8e4bb58c4c
Merge pull request #5757 from yandex/leader_queries_ddl_worker
Execute some distributed DDL queries on leader
2019-06-27 15:12:37 +03:00
Alexey Milovidov
f6265d332a Fixed bad translation in comment 2019-06-27 14:13:32 +03:00
Ivan Lezhankin
9d3eef80b0 Print table name in message about missing column. 2019-06-27 13:56:04 +03:00
proller
e9a66d427c Fix freebsd build 2019-06-26 23:32:28 +03:00
chertus
65c0d23efa better casts to ColumnNullable 2019-06-26 20:20:33 +03:00
Ivan Remen
718da84f41 Fix 2019-06-26 20:02:31 +03:00
Ivan Remen
c22322a446 3rd party header compile fix 2019-06-26 19:01:18 +03:00
alesapin
197f1eedd2 Remove searcher 2019-06-26 18:22:15 +03:00
alesapin
306e27c152 Return old behaviour 2019-06-26 18:18:12 +03:00
alesapin
b7f173ad2c Execute some distributed DDL queries on leader 2019-06-26 17:52:20 +03:00
Ivan Remen
30c7055d3b Fix 2019-06-26 17:15:29 +03:00
chertus
6fe4640e0b fix ColumnConst.isColumnNullable() and related crash 2019-06-26 15:59:25 +03:00
Alexander Kuzmenkov
cb718c194f Fix a hard-to-spot typo: aggreAGte -> aggregate. 2019-06-26 15:35:27 +03:00
Ivan Remen
93523416d7 Merge remote-tracking branch 'main/master' into h3-integration 2019-06-26 14:52:46 +03:00
alesapin
f740334ee5 Faster scheme search
Add docs
2019-06-26 13:26:34 +03:00
alexey-milovidov
dca6d2947c
Merge pull request #5600 from Enmk/gorilla_column_encoding
Gorilla column encoding
2019-06-26 12:53:12 +03:00
hcz
da206109a6 Move registerFunctionConvertCharset 2019-06-26 16:05:53 +08:00
hcz
97b762ad06 Improve function registering 2019-06-26 15:53:43 +08:00
Ivan Remen
7a5979cc0a Fix bug 2019-06-26 02:11:28 +03:00
Nicolae Vartolomei
59d66bb1d5 clickhouse-copier: Allow empty database name
This is needed to make clickhouse-copier work with cross-replication
setups (also known as [circular replication][1]).

When database name is not specified we rely on `<default_database>`
element from replica stanza.

Example:

```xml
<source_cluster>
    <shard>
        <replica>
            <host>localhost</host>
            <port>9000</port>
            <default_database>r0</default_database>
        </replica>
        <replica>
            <host>localhost</host>
            <port>666</port>
            <default_database>r1</default_database>
        </replica>
    </shard>
    <shard>
        <replica>
            <host>localhost</host>
            <port>666</port>
            <default_database>r0</default_database>
        </replica>
        <replica>
            <host>localhost</host>
            <port>9000</port>
            <default_database>r1</default_database>
        </replica>
    </shard>
</source_cluster>
```

[1]: https://www.altinity.com/blog/2018/5/10/circular-replication-cluster-topology-in-clickhouse
2019-06-25 22:09:11 +00:00
Ivan Remen
d933b024bd Fix now??? 2019-06-26 00:49:42 +03:00
alesapin
71872fc3c3 Disable cluster copier tests 2019-06-25 22:26:26 +03:00
alesapin
bd56f219ab Fix style 2019-06-25 19:15:00 +03:00
alesapin
ff72cf4893 Trying to do everything in one pass 2019-06-25 18:54:47 +03:00
chertus
ebedde9a0d add test 2019-06-25 17:05:17 +03:00
chertus
e681bef71d T64 full transpose variant 2019-06-25 16:59:33 +03:00
alesapin
d3a5759c73 Disable tests and add global timeout 2019-06-25 16:20:04 +03:00