Artem Zuikov
39b64dff87
Merge pull request #7454 from 4ertus2/refactoring
...
Refactoring: extract non aliases logic out of QueryNormalizer
2019-10-24 14:34:53 +03:00
alesapin
a6199b7e69
Merge with master
2019-10-24 12:33:40 +03:00
Vasily Nemkov
d6ff36c760
Merge remote-tracking branch 'upstream/master' into DateTime64
2019-10-24 07:52:50 +03:00
chertus
20093fa065
extract more logic out of QueryNormalizer
2019-10-23 16:59:03 +03:00
Amos Bird
295864e6e0
better scalar query
2019-10-23 21:37:54 +08:00
alesapin
c3519ff376
Better check of dictionary lifetime for updates
2019-10-23 16:02:40 +03:00
Alexander Kuzmenkov
1a609c27bd
Merge pull request #6243 from ClickHouse/aku/hashtables
...
Introduce String Hash Map to speed up aggregation over short string keys.
2019-10-23 12:52:50 +03:00
alesapin
6a0246f58e
Fix if
2019-10-23 12:40:09 +03:00
alesapin
0abb2e538b
Remove strange logic
2019-10-23 12:36:20 +03:00
alesapin
fb349757ba
Fix ubsan error
2019-10-23 12:27:34 +03:00
alesapin
dc6090a2ac
More readable code in external loader
2019-10-22 16:41:17 +03:00
alesapin
ae42dd1cea
Better doLoading locking logic
2019-10-22 15:57:58 +03:00
alesapin
d3461f9d46
TODO comments
2019-10-22 14:03:16 +03:00
alesapin
4c5d150d7a
Review fixes
2019-10-22 13:47:43 +03:00
Ivan
7ba4e36e73
Don't push to MVs when inserting into Kafka table ( #7265 )
...
* Do not insert values into MV when inserting directly to Kafka
* Add method noPushingToViews() to IStorage interface
To separate InterpreterInsertQuery and StorageKafka
2019-10-22 13:31:28 +03:00
Nikolai Kochetov
2b334a4adb
Review fixes.
2019-10-21 19:26:29 +03:00
chertus
851b00c99f
minor visitors improvement
2019-10-21 19:22:54 +03:00
Nikolai Kochetov
2893c35930
Merged with master.
2019-10-21 18:33:44 +03:00
alesapin
ff7850cfbd
Remove strange code in favor of less strange code
2019-10-21 17:59:35 +03:00
millb
8b8ca9a141
Support redirect improvement
2019-10-21 17:45:57 +03:00
alesapin
f7043c38bd
Less diff
2019-10-21 17:20:42 +03:00
alesapin
fc05110d66
Better naming
2019-10-21 17:07:47 +03:00
alesapin
e4a936cf41
Fix add and reload
2019-10-21 16:54:23 +03:00
Amos Bird
a864447802
Introduce String Hash Map.
...
It speeds up aggregation over short string keys. Use it as a default
aggregation method for string keys.
2019-10-21 16:27:35 +03:00
chertus
4f0859a5fa
Merge branch 'master' into ast
2019-10-21 15:08:05 +03:00
chertus
5ef7376cbf
fix distributed join on
2019-10-21 14:22:22 +03:00
alesapin
26c87e46c9
Merge branch 'master' into dictionaries_ddl_loader
2019-10-21 11:46:49 +03:00
alesapin
35e66d6696
Merge with master
2019-10-21 11:46:11 +03:00
millb
f64f6658ce
Merge branch 'master' into url_engine_problem
2019-10-21 11:44:31 +03:00
alexey-milovidov
8b8cc67873
Merge pull request #7390 from azat/processlist-log-queue_max_wait_ms
...
Add a message in case of queue_wait_max_ms wait takes place
2019-10-20 17:55:36 +03:00
Azat Khuzhin
94948c2579
Add a message in case of queue_wait_max_ms wait takes place
...
Since there no information about this, while this can be interesting,
for example to tune max_concurrent_queries in some cases.
2019-10-18 23:36:12 +03:00
chertus
c5a850240c
better ambiguous column detection in multiple join rewriter
2019-10-18 20:09:17 +03:00
chertus
2533652847
columns match priority: table alias > table name> aliased table name
2019-10-18 19:16:57 +03:00
alesapin
cdc195727e
Fix some races from lazy load and add ugly interface to loader (need to be refactored)
2019-10-18 19:04:09 +03:00
Alexander Kuzmenkov
5e2cc37381
Distinguish Array and Tuple field types when creating from array of Fields. ( #7179 )
2019-10-18 18:57:05 +03:00
Alexander Kuzmenkov
3143fa37d7
Merge pull request #7371 from CurtizJ/fix-optimize-read-in-order
...
Fix optimize_read_in_order with IN and a subquery.
2019-10-18 15:55:53 +03:00
philip.han
5f1b14e313
Remove a dynamically sized array in BloomFilterHash.h
2019-10-18 19:39:10 +09:00
philip.han
1d423fad73
Blocked "nested-array-type" for the bloom_filter
2019-10-18 11:55:01 +09:00
chertus
0f6176cc2d
throw on ambiguous qualified column
2019-10-18 00:08:28 +03:00
alesapin
c29b39002d
Fix race condition, add test
2019-10-17 20:36:53 +03:00
alesapin
05392fd882
Fix deadlock, add test and refactoring
2019-10-17 20:18:54 +03:00
tavplubix
0046b9f137
Wait for jobs to finish on exception (fixes rare segfaults) ( #7350 )
2019-10-17 17:41:27 +03:00
Alexander Kuzmenkov
b62c9e729d
Merge pull request #7215 from ClickHouse/formats_improvements
...
Miscellaneous formats improvements
2019-10-17 17:37:38 +03:00
CurtizJ
546414c015
fix optimize_read_in_order with in subquery
2019-10-17 16:11:27 +03:00
alesapin
6dfe5c7142
Better introspection
2019-10-17 16:05:12 +03:00
Ivan
e595df05d9
Fix CREATE TABLE AS from table with virtual columns ( #7183 )
...
* Disable undefined instrumentation for rdkafka
2019-10-17 14:12:35 +03:00
philip.han
08a348fbd1
Made IN operator support Array(LowCardinality(Nullable(String)))
2019-10-17 19:08:36 +09:00
alesapin
3987a45ea2
Fix build and style
2019-10-17 12:05:48 +03:00
alesapin
a19a699bef
Fix confused variables
2019-10-16 20:52:56 +03:00
chertus
483108f46f
column to table matching refactoring
2019-10-16 20:33:53 +03:00
alesapin
01e23f0a22
Better load of dictionaries
2019-10-16 20:06:52 +03:00
alesapin
b4e0ded048
Almost working
2019-10-16 17:59:52 +03:00
chertus
e6e88241fc
SyntaxAnalyzer refactoring: better getTablesWithColumns()
2019-10-16 17:47:58 +03:00
Alexander Tokmakov
aa9d29d6ae
Merge branch 'master' into formats_improvements
2019-10-16 17:15:13 +03:00
Artem Zuikov
b70ca30447
Merge pull request #7335 from 4ertus2/ast
...
Remove asterisk_left_columns_only setting
2019-10-16 13:57:17 +03:00
Artem Zuikov
3ceeb95145
Merge pull request #7282 from 4ertus2/asof
...
ASOF JOIN inequalities
2019-10-16 13:46:52 +03:00
philip.han
a2bf848e12
Made bloom_filter type of index supporting LowCardinality and Nullable
2019-10-16 15:22:56 +09:00
alesapin
e690a3ca32
Half working code
2019-10-15 21:04:17 +03:00
chertus
ccc8c1ad2a
restore logic for array join (it's probably a hidden error)
2019-10-15 20:39:23 +03:00
Artem Zuikov
cf99f88bc4
PartialMergeJoin flush data on disk ( #7186 )
2019-10-15 19:31:49 +03:00
chertus
c727777a9c
resolve some for review sentences
2019-10-15 18:49:00 +03:00
chertus
9667e54201
remove asterisk_left_columns_only setting
2019-10-15 17:42:57 +03:00
alesapin
3e068b81de
Add loading of external dictionaries
2019-10-15 17:09:57 +03:00
Alexander Kuzmenkov
160d8a6416
Ignore non-convertible values at any depth on the right side of IN
...
operator.
The values that are not convertible to the left argument type can't
match anyway, so it is safe to discard them.
2019-10-14 14:25:03 +03:00
alesapin
ecde224692
More tests
2019-10-14 12:52:43 +03:00
alesapin
155731a676
Merge branch 'master' into dictionaries_ddl_interpreter
2019-10-14 11:49:18 +03:00
Nikolai Kochetov
757488369f
Merge branch 'master' into processors-3
2019-10-12 19:24:02 +03:00
Nikolai Kochetov
51bce40d5e
Merge pull request #7284 from ClickHouse/fix-7216
...
Fix for #7216
2019-10-12 19:20:33 +03:00
Alexander Kuzmenkov
31bd359100
Merge pull request #7231 from ClickHouse/aku/podarray-includes
...
Include PODArray.h into fewer files.
2019-10-12 15:08:41 +03:00
Nikolai Kochetov
25510e3d38
Try to fix perftests.
2019-10-12 13:06:07 +03:00
Vasily Nemkov
8648ebf75c
Initial implementation of DateTime64 parsing functions;
2019-10-12 10:03:38 +03:00
chertus
91c7ae83a3
asof join inequalities
2019-10-11 20:56:26 +03:00
Nikolai Kochetov
217eab0cfa
Fix test.
2019-10-11 20:55:33 +03:00
Nikolai Kochetov
2684bd0d5e
Fixes for 7216
2019-10-11 20:27:54 +03:00
alesapin
967fe64793
Add simpliest tests
2019-10-11 18:22:30 +03:00
Vitaly Baranov
8c24d5e66a
Merge pull request #7235 from vitlibar/RBAC-1
...
RBAC-1
2019-10-11 17:16:32 +03:00
alesapin
ae42dc0d4c
Attach detach and introspection queries for dictionaries
2019-10-11 16:21:52 +03:00
Alexander Kuzmenkov
8a1d57bddb
Include PODArray.h into fewer files.
2019-10-11 14:28:16 +03:00
alesapin
3dfe961291
Merge branch 'master' into dictionaries_ddl_interpreter
2019-10-11 12:14:07 +03:00
Vitaly Baranov
060257c8c5
Remove Authentication::setType() function and fix comments.
2019-10-11 00:48:36 +03:00
Nikolai Kochetov
e48755d045
Merge branch 'master' into processors-and-storages
2019-10-11 00:46:37 +03:00
Nikolai Kochetov
9a89ee8eab
Merge pull request #7264 from ClickHouse/disable-memory-tracker-for-stack-trace
...
Disable memory tracker for exception stack.
2019-10-11 00:45:36 +03:00
Vitaly Baranov
18ccb4d64d
Move backQuote() and quoteString() to a separate file, use StringRefs.
2019-10-11 00:18:52 +03:00
Vitaly Baranov
9f6d9d6130
Move the code which checks client host to a separate class.
2019-10-11 00:18:52 +03:00
Vitaly Baranov
12d1d87d64
Move authentication code to a separate class.
2019-10-11 00:18:52 +03:00
alesapin
2a5713e6e4
Compilable code
2019-10-10 23:47:47 +03:00
Nikolai Kochetov
0ce86e1f8f
Disable memory tracker for exception stack.
2019-10-10 21:55:16 +03:00
alexey-milovidov
9c1c596146
Merge pull request #7252 from ClickHouse/fix-bad-code-in-transform-query-for-external-database
...
Fix bad code in transforming query for external database.
2019-10-10 21:10:36 +03:00
alesapin
67fc3347c2
Preparing databases for dictionaries
2019-10-10 20:33:01 +03:00
Nikolai Kochetov
742b948156
Disable memory tracker for exception stack.
2019-10-10 19:30:33 +03:00
Alexander Kazakov
03c7b7ff8d
Prevent from using non-deterministic functions in mutations of replicated tables ( #7247 )
...
* Added isDeterministic() to IFunctionBuilder i-face
* A test for non-deterministic mutations
* In MutationsInterpreter::validate() ensure deterministic functions
* Adjusted nondeterministic mutation tests
* Moved around some code in MutationsInterpreter::validate()
* Dropped unnecessary check in findFirstNonDeterministicFuncName()
* Corrections to IFunction{Base,Builder} interface
2019-10-10 17:38:08 +03:00
Nikolai Kochetov
ef14df4632
Added more comments.
2019-10-10 17:16:15 +03:00
millb
350f0b8a1c
Merge remote-tracking branch 'origin/url_engine_problem' into url_engine_problem
2019-10-10 16:47:17 +03:00
millb
a00089f0b4
Renamed StorageOfAllowedURL -> RemoteHostFilter
2019-10-10 15:58:06 +03:00
Mikhail Korotov
4710d2184c
Update Context.cpp
2019-10-10 01:24:27 +03:00
millb
a97739f67f
Created class StorageOfAllowedURL
...
Created test for table function remote and remoteSecure
Created check allowed url in remote and remoteSecure
Fixed tests
2019-10-09 23:29:41 +03:00
Alexey Milovidov
b302fec362
Fixed bad code in transformQueryForExternalDatabase
2019-10-09 22:58:50 +03:00
Nikolai Kochetov
9c5ae5f536
Merge branch 'master' into processors-and-storages
2019-10-09 14:12:47 +03:00
alesapin
ef0b2f5936
Merge pull request #7209 from ClickHouse/dictionaries_ddl_parser
...
Dictionaries ddl parser
2019-10-09 12:51:08 +03:00
alexey-milovidov
5c2d478543
Merge pull request #7212 from ClickHouse/aku/field-includes
...
Include Field.h and FieldVisitor.h into fewer files.
2019-10-08 22:40:30 +03:00
alexey-milovidov
b9aa5d812d
Merge pull request #7171 from nikvas0/nikvas0/lazy_db
...
Lazy Database
2019-10-08 22:15:55 +03:00
Alexander Kuzmenkov
2b30f2696c
Include Field.h in less files.
2019-10-08 16:23:24 +03:00
alesapin
cd05564b17
Add show create dictionary
2019-10-08 15:34:04 +03:00
Vasily Nemkov
8792738944
Prohibit implicit conversion of UInt64-Field to DateTime64
2019-10-08 10:01:17 +03:00
alexey-milovidov
bcc4e3f0ba
Merge branch 'master' into issue-6615
2019-10-07 22:12:25 +03:00
Alexander Kuzmenkov
56b065881a
Include FieldVisitors.h in less files.
2019-10-07 20:23:05 +03:00
Alexander Tokmakov
b4d9dc2a90
query parameters in evaluateConstantExpression
2019-10-07 18:46:50 +03:00
alexey-milovidov
d096119529
Merge pull request #7156 from ClickHouse/fix-header-for-now
...
Fix header for function 'now'
2019-10-05 22:35:23 +03:00
alexey-milovidov
ce12fb6b3c
Update ExpressionAnalyzer.cpp
2019-10-05 22:34:57 +03:00
alexey-milovidov
40b22061f0
Update InterpreterSelectQuery.cpp
2019-10-05 22:34:25 +03:00
proller
594c535bd4
Build fixes ( #7063 )
...
* Build fixes
* fix
* Fix
* fix
* Fix install(export..
* Freebsd fixes
* Freebsd fixes
* Fix warning
* fix
* More PRIVATE linking
* Fix review
* Timmy
* fix
* fix
2019-10-05 22:25:31 +03:00
Nikolai Kochetov
95ec0f7c2d
Merged with master.
2019-10-04 20:53:21 +03:00
Nikolai Kochetov
23069ca6d0
Progress for MergeTreeSelectProcessor.
2019-10-04 20:50:07 +03:00
Nikolai Kochetov
627d48c19a
Added ExecutionSpeedLimits.
2019-10-04 20:49:57 +03:00
alexey-milovidov
9c2f3ba41a
Merge pull request #6984 from achimbab/pr_bf
...
Made bloom_filter type of index supporting arrays
2019-10-04 18:08:42 +03:00
Vasily Nemkov
1069812d88
Fixed converting DateTime64-Field on client into DataTypeDateTime64-field type.
...
Since DateTime64 is just a typedef, and there is no explicit Field-type
for it, we have to solely rely on type_hint provided by origin column.
If the hint is missing, there is no way of distinguishing DateTime64
from Decimal64.
Alternative could be having explicit converting code, (and it looks like
it has to be added at some point).
2019-10-04 17:04:17 +03:00
tavplubix
d73db7f779
Merge pull request #6781 from ClickHouse/merging_values_with_expressions
...
Merging Values with expressions
2019-10-04 12:51:22 +03:00
alesapin
cf094cd62b
Merge pull request #7155 from ClickHouse/dictionaries_ddl
...
Preparation of ExternalLoader for Dictionaries DDL
2019-10-03 20:12:19 +03:00
Nikolai Kochetov
76d1412953
Fix actions for distributed.
2019-10-03 18:47:42 +03:00
Nikolai Kochetov
e5c1df010f
Remove allow_different_constant_values from InterpreterSelectQuery.
2019-10-03 15:02:30 +03:00
Nikolai Kochetov
3142955e6c
InterpreterSelectQuery: reuse actions from getSampleBlock in readImpl.
2019-10-03 14:58:52 +03:00
Alexander Kuzmenkov
8e245d4e8c
Merge pull request #7135 from ClickHouse/aku/msan-field
...
Fix some MemorySanitizer warnings for Fields.
2019-10-03 10:33:44 +03:00
Alexander Tokmakov
a58996817f
allow query parameters in Values
2019-10-02 22:54:40 +03:00
Alexander Tokmakov
565c273eaa
Merge branch 'master' into merging_values_with_expressions
2019-10-02 20:51:44 +03:00
Alexander Kuzmenkov
4af8e76bdd
Use proper types for Field.
...
When a Field is inserted into a column, its type should be the same as
the column data type to avoid implicit reinterpret_cast. Change a
couple of usages where these types were different.
2019-10-02 16:48:26 +03:00
chertus
3b0d870804
rename function
2019-10-02 15:06:34 +03:00
Vasily Nemkov
31d5730513
Merge remote-tracking branch 'upstream/master' into DateTime64
2019-10-02 13:54:59 +03:00
Vasily Nemkov
6e813002d5
Proper serialization of DateTime64 also updated functions support.
2019-10-02 08:53:38 +03:00
chertus
c46cc3ff1a
refactoring: remove copy-paste
2019-10-01 21:51:33 +03:00
Artem Zuikov
48ab9afce6
Merge pull request #7122 from 4ertus2/mjoin
...
Squash left-hand blocks in partial merge join (optimization)
2019-10-01 17:23:10 +03:00
chertus
038428bccf
do not affect other SquashingBlockInputStream instances
2019-10-01 16:01:08 +03:00
Vasilyev Nikita
5793a02ef9
impr Lazy database
2019-10-01 15:44:17 +03:00
Nikolai Kochetov
9e74b8a6fe
Disable check for constants in Converting stream while converting to header.
2019-10-01 13:58:39 +03:00
alesapin
8429f46f3c
Return getUpdateTime method to interface
2019-10-01 11:58:47 +03:00
alesapin
709783a1bc
Add missed header
2019-09-30 22:42:31 +03:00
alesapin
0e6331e892
Add comments
2019-09-30 19:54:50 +03:00
alesapin
08681ac210
Preparation for AST configurations for external dictionaries
2019-09-30 19:12:08 +03:00
chertus
5df8f870c4
try remove some PVS errors
2019-09-30 18:45:53 +03:00
millb
9246f258e8
Created ability to configure allowed URL in config.xml without tests.
2019-09-30 18:29:05 +03:00
Alexander Tokmakov
979f235e38
Merge branch 'master' into merging_values_with_expressions
2019-09-30 18:06:58 +03:00
chertus
5212d43ae4
simplify pmj settings
2019-09-30 17:36:45 +03:00
Alexander Kuzmenkov
ec2d9a083c
Remove excessive includes.
2019-09-30 15:31:14 +03:00
alesapin
bc6caba4db
Remove redundant argument
2019-09-30 14:18:01 +03:00
alexey-milovidov
24b3145144
Update evaluateConstantExpression.cpp
2019-09-29 01:12:29 +03:00
alexey-milovidov
102b5a7dd4
Merge pull request #7111 from ClickHouse/dictionaries_ddl
...
Small dictionaries refactoring
2019-09-27 22:05:14 +03:00
root
f54f55bbdc
Add const.
2019-09-28 00:38:13 +08:00
root
bc13482eea
Add globalIn.
2019-09-27 22:24:48 +08:00
alesapin
9ee031413c
Remove a lot of unused code
2019-09-27 15:36:54 +03:00
chertus
baaf0a7c5b
partial_merge_join_optimisations -> partial_merge_join_optimizations
2019-09-27 15:25:02 +03:00
root
0189945ad8
Optimize empty IN subquery and empty INNER/RIGHT JOIN.
2019-09-27 19:06:20 +08:00
alesapin
506dbd49cb
Add missed row
2019-09-27 12:02:06 +03:00
chertus
10eaef1adc
squash left-hand blocks in pmj (phase 2)
2019-09-26 21:51:17 +03:00
alesapin
bba3a96ff4
Remove redundant argument
2019-09-26 20:24:55 +03:00
alesapin
0e28dc4e51
Remove redundant classes
2019-09-26 19:12:15 +03:00
Vasily Nemkov
9cc2baf05c
DataType64 as decimal
...
compiles
2019-09-26 18:12:40 +03:00
alesapin
089e3146c9
Add missed files
2019-09-26 14:19:10 +03:00
alesapin
4fdb5a61e5
Rename ExternalDictionaries to ExternalDictionariesLoader
2019-09-26 13:41:33 +03:00
alesapin
5668f55ab7
Rename ExternalModels to ExternalModelsLoader
2019-09-26 13:23:14 +03:00
alesapin
903f826640
Remove runtime factory and remove one redundant object
2019-09-26 13:08:38 +03:00
chertus
dd08f06c81
squash left-hand blocks in partial merge join
2019-09-25 22:17:32 +03:00
alexey-milovidov
64e889d872
Merge pull request #7070 from 4ertus2/mjoin
...
PartialMergeJoin optimisation (skip not intersected blocks)
2019-09-25 02:24:42 +03:00
chertus
0467229eff
fix all left partial merge join on block borders
2019-09-24 21:21:57 +03:00
Alexander Kuzmenkov
f3bde19b74
Do not use iterators in find() and emplace() methods of hash tables.
...
Instead, these methods return a pointer to the required data as they are
stored inside the hash table. The caller uses overloaded functions to
get the key and "mapped" values from this pointer. Such an interface
avoids the need for constructing iterator-like wrapper objects, which is
especially important for compound hash tables such as the future
StringHashMap.
2019-09-24 17:44:35 +03:00
chertus
80d902a401
fix case with duplicated right keys
2019-09-24 16:45:59 +03:00
Alexey Milovidov
7384e04430
Revert "CHYT-142: extend KeyCondition interface so that it returns BoolMask."
...
This reverts commit 2cacc3cfd2
.
2019-09-24 04:29:26 +03:00
alexey-milovidov
2f195ddb03
Merge pull request #7028 from abyss7/issue-6459
...
Implement cross-compilation support Linux → Darwin
2019-09-24 02:20:17 +03:00
chertus
1f9b8418e0
pmj skip not intersected optimisation
2019-09-23 22:36:47 +03:00
Alexey Milovidov
11e7ea51e9
Fixed compatibility for distributed queries between 19.14 and earlier versions #7068
2019-09-23 22:22:28 +03:00
Alexey Milovidov
8579c26efb
Changed repository URL
2019-09-23 19:18:19 +03:00
chertus
016f3b0a45
fix partial merge join with totals
2019-09-23 17:37:42 +03:00
Ivan Lezhankin
4b143c3e0f
Merge remote-tracking branch 'upstream/master' into issue-6459
2019-09-23 16:07:19 +03:00
philip.han
613927c36c
Removed useless code and improve type checking for bloom_filter index
2019-09-23 12:40:48 +09:00
alexey-milovidov
816ac1ca8d
Merge pull request #7037 from silviucpp/silviu-fix-osx
...
Fix osx build
2019-09-22 04:53:36 +03:00
Silviu Caragea
1fbd2fb6a8
Fix osx build
2019-09-21 21:30:01 +03:00
alexey-milovidov
f8d19f6bf3
Merge pull request #6968 from azat-archive/create_as_skip_indices
...
[RFC] Introduce create_as_skip_indices
2019-09-20 23:53:49 +03:00
alexey-milovidov
1dc58dcb15
Update InterpreterCreateQuery.cpp
2019-09-20 23:53:14 +03:00
alexey-milovidov
2432a68009
Merge pull request #7022 from 4ertus2/bugs
...
Fix "Unknown identifier" in ORDER BY and GROUP BY with Multiple Joins
2019-09-20 23:45:51 +03:00
alexey-milovidov
3f500aad4b
Merge pull request #6976 from sfod/issue-3571
...
Throw exceptions if WITH TOTALS/ROLLUP/CUBE are specified without agg…
2019-09-20 23:39:00 +03:00
Alexander Tokmakov
0080639f79
Merge branch 'master' into merging_values_with_expressions
2019-09-20 23:26:01 +03:00
Alexander Tokmakov
d353746f2b
minor fixes
2019-09-20 22:44:52 +03:00
Ivan Lezhankin
9e46118edd
Merge remote-tracking branch 'upstream/master' into issue-6459
2019-09-20 21:25:55 +03:00
Ivan Lezhankin
8cb0e58bc7
Fix build for all targets
2019-09-20 21:13:51 +03:00
alexey-milovidov
123b8cb43c
Merge pull request #6990 from Akazz/timeout_for_sync_replica_cmd
...
Fixed timeout mechanism for SYNC REPLICA command + simplified related code
2019-09-20 20:32:51 +03:00
alexey-milovidov
aabd6906f2
Merge pull request #6982 from 4ertus2/mjoin
...
PartialMergeJoin bugfixes
2019-09-20 20:19:00 +03:00
chertus
7726130303
fix multiple joins aliasing for order by and group by
2019-09-20 19:01:19 +03:00
Alexander Kazakov
2d807368e1
Adjusted timings in test + more verbose diagnostics
2019-09-20 00:20:58 +03:00
Azat Khuzhin
b2a3db1048
Ignore indices for CREATE TABLE .. AS .. if storage do not support them
2019-09-19 23:55:38 +03:00
chertus
0bc345fdc0
MergeJoin compare nullables
2019-09-19 20:09:59 +03:00
chertus
da14951ecd
implement MergeJoin.joinTotals()
2019-09-19 17:53:03 +03:00
Akazz
4ae3db45c6
Fixed timeout reading in SYNC REPLICA
2019-09-19 14:04:57 +03:00
alexey-milovidov
1fe79ad43c
Merge pull request #6941 from dimarub2000/enums_in_section
...
IN with Enums numeric values
2019-09-19 02:24:34 +03:00
alexey-milovidov
9c675e50bb
Merge pull request #6963 from nicelulu/issue_6616
...
optimize limit 1,0 and test.
2019-09-19 02:23:56 +03:00
chertus
b8b6197288
partial_merge_join settings affects LEFT and INNER JOINs only
2019-09-18 22:12:53 +03:00
chertus
08a28d2dc2
fix pm join bug (wrong right equal range copy)
2019-09-18 21:44:44 +03:00
chertus
194e49e751
fix UB in MergeJoinCursor
2019-09-18 19:46:00 +03:00
Artem Zuikov
aae82eed5a
Merge pull request #6940 from 4ertus2/mjoin
...
PartialMergeJoin
2019-09-18 16:16:10 +03:00
sfod
0bad4b4a05
Throw exceptions if WITH TOTALS/ROLLUP/CUBE are specified without aggregate functions
2019-09-18 16:08:51 +03:00
chertus
dd46c08e90
move JoinCommon funcs out of IJoin.h/cpp
2019-09-18 15:46:57 +03:00
chertus
0cf5bfdf44
fix typo
2019-09-18 15:24:35 +03:00
alexey-milovidov
fe9e110a6a
Merge pull request #6965 from azat-archive/sparsehash-c11
...
Replace libsparsehash with sparsehash-c11
2019-09-18 12:46:13 +03:00
philip.han
b25151b61b
Make bloom_filter-index support some types of Arrays.
2019-09-18 18:32:44 +09:00
alexey-milovidov
03014fe920
Merge pull request #6944 from malkfilipp/add-limit-clause-to-show-queries
...
Add LIMIT clause to SHOW queries
2019-09-18 02:07:45 +03:00
Azat Khuzhin
780341060f
Replace libsparsehash with sparsehash-c11
...
- use sparsehash-c11 over libsparsehash
- fix typos in find_sparsehash and users of the vars (s/SPARCE/SPARSE/)
- drop libsparsehash-dev from docker images (but keep for unbunlded build)
- use ::google over GOOGLE_NAMESPACE
2019-09-18 00:08:20 +03:00
root
f4b7cae998
optimize limit 1,0 and test.
2019-09-18 02:55:59 +08:00
chertus
2b3a4b0650
support const and LC columns in partial merge-join
2019-09-17 21:53:52 +03:00
chertus
58fad78980
support MergeJoin nullable convertion (right side)
2019-09-17 19:55:11 +03:00
Dmitry Rubashkin
2252ee5a90
Branch refactoring.
2019-09-17 11:17:46 +03:00
chertus
da5d35b34e
partial merge join (minimal tested version)
2019-09-16 22:31:22 +03:00
Dmitry Rubashkin
6f68cfc45c
Removed (most probably) redundant if branch. Fixed VALUES table funtion.
2019-09-16 18:44:12 +03:00
chertus
cbd96af079
fix use after free (change Join <-> AnalyzedJoin ownership)
2019-09-16 15:37:46 +03:00
Vitaly Baranov
fae612c3e7
Merge pull request #6907 from PerformanceVision/dict_allow_databases
...
Whitelist for dictionary from the current connected database
2019-09-16 11:52:25 +03:00
malkfilipp
98050c108f
Add LIMIT clause to SHOW queries
2019-09-15 19:07:27 +03:00
Ivan Lezhankin
01fdb802d4
Useful changes
2019-09-15 13:35:12 +03:00
alexey-milovidov
831eebe4dc
Merge pull request #6934 from abyss7/CLICKHOUSE-4643
...
Name temporary external table with existing subquery alias
2019-09-15 09:46:10 +03:00
Vitaly Baranov
a2c9bec468
Fix typo
2019-09-15 01:56:37 +03:00
Vitaly Baranov
c17071caf0
Fix typo
2019-09-15 01:55:22 +03:00
Vitaly Baranov
0fb234c63e
Merge branch 'master' into dict_allow_databases
2019-09-15 01:51:44 +03:00
Dmitry Rubashkin
33e7e1ea93
Int64 added.
2019-09-13 21:25:53 +03:00
Dmitry Rubashkin
2705534be7
Merge branch 'enums_in_section' of github.com:dimarub2000/ClickHouse into enums_in_section
2019-09-13 20:50:53 +03:00
Dmitry Rubashkin
cd95e8e5e5
Fix inconsistent behaviour of IN with Enums
2019-09-13 20:49:53 +03:00
chertus
eb3d87032c
all|any left|inner, not tested
2019-09-13 20:23:32 +03:00
chertus
bd957168d2
any left join (without use_nulls)
2019-09-13 19:17:37 +03:00
Ivan Lezhankin
dc49303baf
Use existing alias as external table name
2019-09-13 16:25:24 +03:00
alesapin
02cff38fef
Merge with master
2019-09-13 13:58:23 +03:00
Nikolai Kochetov
86bee0b8b5
Merge pull request #6684 from yandex/processors-2
...
Processors 2
2019-09-13 11:58:04 +03:00
Guillaume Tassery
214d089bb5
Cosmetic and remove documentation
2019-09-13 10:26:04 +02:00
Guillaume Tassery
bb088fbf65
Write dictionary permission on user instead of dictionary configuration
2019-09-13 10:22:34 +02:00
alexey-milovidov
12c26e6013
Merge pull request #6891 from yandex/low_cardinality_in_native_http
...
Low cardinality in native http
2019-09-13 09:01:08 +03:00
chertus
bb5287841f
make things wrong 2
2019-09-12 21:06:25 +03:00
chertus
f7f2cface9
better nullability flags for JOINs
2019-09-12 17:09:05 +03:00
Nikolai Kochetov
1319168a3a
Merge branch 'master' into processors-2
2019-09-12 16:28:51 +03:00
Nikolai Kochetov
9dea55c284
Do not pin sources for non MergeTree tables.
2019-09-12 16:23:24 +03:00
chertus
441faba0e3
materializeBlockInplace function
2019-09-12 15:59:53 +03:00
chertus
61c940d5a9
better materialization logic in Join.cpp
2019-09-12 15:24:19 +03:00
chertus
fc7ce2753d
extract more common join functions
2019-09-11 21:03:21 +03:00
alesapin
b0fce77c3d
Fix path to data on disk
2019-09-11 20:17:10 +03:00
chertus
a836f0cfd6
fix columns number in MergeJoin
2019-09-11 19:19:33 +03:00
chertus
73dafaa223
better required-right-keys logic
2019-09-11 18:57:09 +03:00
Nikolai Kochetov
a2248868d8
Fix ast type checking.
2019-09-11 18:37:12 +03:00
Nikolai Kochetov
a59ae3826d
Do not flush output stream in copy data. Add special flushing callback to Watch query.
2019-09-11 14:38:05 +03:00
Nikolai Kochetov
96f7eb1141
Change number of aggregating streams.
2019-09-11 13:07:04 +03:00
Amos Bird
8f28a36c17
Use internal iteration over hash tables in Aggregator.
...
For compound hash tables such as the future StringHashMap, an
iterator-based API might be inefficient for iterating over a table or
for merging two tables, because:
1) the key has to be converted to a general format from a from a
component-specific format, which may differ between the components;
2) the information about the component of the compound hash table to
which the value belongs is lost, and has to be recalculated if the
value is reinserted.
A more efficient approach is to use internal iteration, that is,
map-like functions, which avoids unnecessary conversions when iterating,
and allows to use an efficient component-wise approach when merging.
2019-09-10 21:52:53 +03:00
chertus
8afa48fa42
some joins code unification
2019-09-10 21:39:10 +03:00
Alexander Kuzmenkov
160e0faf77
Do not use iterator::getValue() in Aggregator.
...
Use separate key and "mapped" value references instead. This is
important for hash tables that do not store the key/"mapped" pair
directly, and cannot provide this interface without some runtime
overhead.
2019-09-10 20:12:30 +03:00
Nikolai Kochetov
e9e0bd82b9
Change number of aggregating streams.
2019-09-10 20:08:06 +03:00
Nikolai Kochetov
8dd8ab7d1f
Use header in native format created in InterpreterSelectQuery. Fill missed columns in Native format.
2019-09-10 19:31:41 +03:00
chertus
02691f50ef
make things wrong
2019-09-10 17:51:28 +03:00
chertus
1b313eedfa
MergeJoin in progress
2019-09-09 22:43:37 +03:00
Nikolai Kochetov
c9cca3ba8b
Merged with master
2019-09-09 16:20:30 +03:00
Vasily Nemkov
1b0410cee7
Merge commit '50928323ebabe0663e26601c3929ee94b9a5127d' into DateTime64
2019-09-09 16:18:22 +03:00