alesapin
791a1422de
Enable merge with DIRECT_IO when summary size of participating parts more than 10GB
2018-10-31 12:24:58 +03:00
alesapin
892ab4ce8a
Better code for check on null values inside array IN expression
2018-10-31 12:17:47 +03:00
chertus
4ff0391ca6
DatabaseAndTableWithAlias - the only place for db & table expraction from AST
2018-10-30 19:31:21 +03:00
chertus
d2518fdb3f
more refactoring: funcs to extract database_and_table from AST
2018-10-29 22:04:28 +03:00
Alex Zatelepin
83ac918bab
Merge pull request #3477 from hotid/master
...
stop generating empty WHERE () section in mysql queries (#3431 )
2018-10-29 18:23:14 +03:00
alesapin
b944a068d0
Merge pull request #3487 from yandex/fix_nullable_array_at_client
...
Add validation of array data
2018-10-29 18:09:11 +03:00
Alex Zatelepin
fc99b7d389
style fixes
2018-10-29 17:17:58 +03:00
alesapin
444b6e1e43
Add validation of array data
2018-10-29 16:18:41 +03:00
Artem Zuikov
ccfb51b8dd
Merge pull request #3476 from 4ertus2/joins
...
ExpressionAnalyzer refactoring - remove duplicated code
2018-10-29 11:36:06 +03:00
Sabyanin Maxim
73e9f5057d
fix code style checker errors
2018-10-27 23:39:59 +03:00
Sabyanin Maxim
65bd40e290
Merge branch 'master' of github.com:yandex/ClickHouse into CLICKHOUSE-4032
2018-10-27 22:33:52 +03:00
proller
c35c979285
CLICKHOUSE-4085 system.contributors ( #3452 )
...
* CLICKHOUSE-4085 system.contributors
* fi
* Fix random
2018-10-26 20:43:50 +03:00
hotid
f22779ad15
stop generating empty WHERE () section in mysql queries
2018-10-26 20:14:43 +03:00
Alexey Zatelepin
e4e38f71e1
allow empty header in RemoteBlockOutputStream #3411
...
The bug with inserts to Distributed tables was introduced in https://github.com/yandex/ClickHouse/pull/3171
It added a workaround specifically for inserting in the Native format without specifying the list of columns.
Native (as opposed to other formats) historically supports this. To signal that the input block structure
shouldn't conform to any fixed header in this case, the remote server started sending empty header block.
This commit adds support for empty headers to RemoteBlockOutputStream.
2018-10-26 18:26:07 +03:00
chertus
95c618b163
ExpressionAnalyzer: remove duplicated code
2018-10-26 18:13:02 +03:00
Alex Zatelepin
a54dff25aa
Merge pull request #3457 from yandex/fix_non_deterministic_compile
...
Don't unfold non deterministic expressions CLICKHOUSE-4077
2018-10-26 15:59:33 +03:00
alesapin
20b20d04f9
Include from env
2018-10-26 12:22:33 +03:00
alesapin
64b1108989
Merge branch 'master' of github.com:yandex/ClickHouse into fix_non_deterministic_compile
2018-10-25 20:01:22 +03:00
alesapin
a4dd489165
Do not build compiled functions
2018-10-25 19:52:28 +03:00
alesapin
3a9311d3ad
Now default block can have size more than one
2018-10-25 19:02:20 +03:00
proller
713c44c3db
Build fixes ( #3466 )
2018-10-25 18:23:41 +03:00
alesapin
c3159af898
Enlarge constant default column if it's empty
2018-10-25 17:54:00 +03:00
chertus
19a69004f0
fix crash with non const scale in toDecimal()
2018-10-25 16:53:25 +03:00
Ivan Lezhankin
0592081f2f
Reduce maximum allowable size of |HashSet|.
2018-10-25 16:17:29 +03:00
chertus
480bee07db
hotfix for distributed DDLs over secure port [CLICKHOUSE-4089]
2018-10-25 14:35:19 +03:00
Artem Zuikov
fd6fc3d2cb
Merge pull request #3460 from 4ertus2/joins
...
USE database for ON CLUSTER DDLs [CLICKHOUSE-4036]
2018-10-25 14:15:23 +03:00
chertus
e8f9e3c2a2
better fix for distributed DDL [CLICKHOUSE-4036] [CLICKHOUSE-4015]
2018-10-25 12:40:30 +03:00
proller
7dafcacd15
Build fixes ( #3459 )
2018-10-24 20:20:27 +03:00
chertus
6375009c81
Merge branch 'master' into joins
2018-10-24 19:43:48 +03:00
chertus
7a24e9b8ff
one more minor fix
2018-10-24 18:41:28 +03:00
chertus
a844d10a9a
minor fix
2018-10-24 18:39:37 +03:00
chertus
58f14b0db2
USE database for ON CLUSTER DDLs [CLICKHOUSE-4036]
2018-10-24 18:31:07 +03:00
Ivan Lezhankin
aa6a69b635
Add TODO comment
2018-10-24 17:28:23 +03:00
Ivan Lezhankin
69ebaaeed6
Merge branch '3958/many_templates' of github.com:abyss7/ClickHouse into 3958/many_templates
2018-10-24 17:24:52 +03:00
Ivan Lezhankin
9296ef5008
Temporarily disable precalculated bias estimations for precisions other than 17.
2018-10-24 17:23:57 +03:00
CurtizJ
06e955e92a
fix combine hashes
2018-10-24 16:12:59 +03:00
alesapin
54a1f0c2a6
enable compiled expressions byt default
2018-10-24 14:36:02 +03:00
alesapin
070d75c7c9
Don't unfold non deterministic expressions
2018-10-24 14:31:23 +03:00
Amos Bird
3cf2177268
Flexible fields assignment
...
Field f;
before:
f = Int64(-42);
after:
f = -42;
2018-10-24 08:47:33 +08:00
alexey-milovidov
bb00bb8592
Merge pull request #3405 from yandex/CLICKHOUSE-2211
...
CLICKHOUSE-2211: Fix aio reading (with correct buffer size), reduce M…
2018-10-24 01:37:05 +03:00
alexey-milovidov
10abde5b62
Merge pull request #3441 from CurtizJ/CLICKHOUSE-1834
...
Setting for TCP keepalive. [CLICKHOUSE-1834]
2018-10-23 23:21:15 +03:00
alexey-milovidov
165890a3e6
Merge pull request #3453 from yandex/fix-union-header
...
Fix union header
2018-10-23 23:18:36 +03:00
alesapin
1c77cf51ce
Remove compile_expressions by default
2018-10-23 21:25:55 +03:00
CurtizJ
68f2bea4ba
fix style
2018-10-23 21:07:20 +03:00
Nikolai Kochetov
d2f0925685
Uniform headers for union stream. #2156
2018-10-23 21:01:38 +03:00
CurtizJ
e3dea84265
support more hash functions for tuples
2018-10-23 20:43:09 +03:00
alesapin
72e435893d
Better comment
2018-10-23 14:19:01 +03:00
alexey-milovidov
4bf54337b9
Merge pull request #3292 from CurtizJ/order-by-efficient
...
Efficiently finish sorting by (x, y) stream, that already sorted by (x) [CLICKHOUSE-4022]
2018-10-23 11:34:22 +03:00
alexey-milovidov
21e7c25134
Update FinishSortingBlockInputStream.cpp
2018-10-23 11:32:28 +03:00
alexey-milovidov
9c3278f378
Merge pull request #3400 from zhang2014/fix/ISSUES-2312
...
ISSUES-2312 fix nested view & joined view without database
2018-10-23 11:21:29 +03:00
Alexey Milovidov
bac6b6f381
Fixed error #2863
2018-10-23 11:19:47 +03:00
CurtizJ
7963e952f1
rename setting to tcp_keep_alive
2018-10-23 02:02:57 +03:00
Alexey Milovidov
b8cfa77ea0
Fixed build [#CLICKHOUSE-2]
2018-10-22 23:58:16 +03:00
alexey-milovidov
98c2ed582c
Merge pull request #2863 from VadimPE/ISSUES-2581
...
ISSUES-2581 fix SELECT with sequential consistency
2018-10-22 23:55:33 +03:00
alexey-milovidov
2deb510c59
Merge branch 'master' into master
2018-10-22 23:45:26 +03:00
alexey-milovidov
57e6dc3477
Merge pull request #3385 from VadimPE/CLICKHOUSE-1791
...
[CLICKHOUSE-1791] add modulo for Date and DateTime
2018-10-22 23:38:40 +03:00
alexey-milovidov
1c3c4c0890
Update FunctionsArithmetic.h
2018-10-22 23:35:28 +03:00
alexey-milovidov
00d49602d3
Merge pull request #3404 from CurtizJ/CLICKHOUSE-3274
...
Add lock for .inner. table while insert. [CLICKHOUSE-3274]
2018-10-22 23:32:12 +03:00
alexey-milovidov
fd86a6bea5
Update AggregateFunctionUniqCombined.cpp
2018-10-22 22:38:46 +03:00
alexey-milovidov
bd148bb082
Update AggregateFunctionUniqCombined.cpp
2018-10-22 22:37:55 +03:00
alexey-milovidov
f90783d885
Update AggregateFunctionUniqCombined.cpp
2018-10-22 22:36:32 +03:00
alexey-milovidov
c8868cffaa
Update AggregateFunctionUniqCombined.cpp
2018-10-22 22:34:39 +03:00
alexey-milovidov
72b3ec1ffa
Merge pull request #3428 from 4ertus2/joins
...
Мore ExpressionAnalyser refactoring, add unit-test for it
2018-10-22 22:24:39 +03:00
CurtizJ
a05aa5448d
add setting keep_alive
2018-10-22 21:09:55 +03:00
Ivan Lezhankin
2a53716043
Move the precision template argument one level up.
2018-10-22 20:18:08 +03:00
Alexey Zatelepin
bd38b4f560
add clear error message #275
2018-10-22 15:38:04 +03:00
VadimPE
31794b7a46
fix codestyle
2018-10-22 14:58:56 +03:00
alexey-milovidov
28fc99c556
Merge pull request #3430 from yandex/fix_subquery_global_counter
...
Add global counter to subqueries
2018-10-22 14:56:31 +03:00
alesapin
c6debd1c33
Better comment
2018-10-22 14:30:24 +03:00
Ivan Lezhankin
19ed7b6ae9
Minor optimizations
2018-10-22 13:00:37 +03:00
chertus
a62fae8332
Merge branch 'master' into joins
2018-10-22 11:25:43 +03:00
chertus
d4699bd9d2
fix FieldToDataType for Decimal128
2018-10-22 11:25:11 +03:00
alesapin
dcc8ca49d7
Add global counter to subqueries
2018-10-20 00:03:45 +03:00
proller
2659e94573
Fix use after pop_back()
2018-10-19 20:27:38 +03:00
proller
67eb30d192
CLICKHOUSE-4074 Fix merge_tree_uniform_read_distribution=0
2018-10-19 19:31:51 +03:00
chertus
b784f754a7
minor settings changes
2018-10-19 18:42:47 +03:00
chertus
dcf04ac36d
unit-test for ExpressionAnalyzer [CLICKHOUSE-3996]
2018-10-19 18:33:40 +03:00
Alex Zatelepin
4449d7e059
Update FinishSortingBlockInputStream.cpp
2018-10-19 16:21:50 +03:00
CurtizJ
6ff8a60460
fix style
2018-10-19 16:04:50 +03:00
CurtizJ
8a72ddd94b
wip on finish sorting
2018-10-19 15:02:31 +03:00
proller
abfe675097
Build fixes ( #3419 )
2018-10-18 22:28:05 +03:00
chertus
5aedca40c2
fix asan
2018-10-18 22:27:28 +03:00
Ivan Lezhankin
28ea773b9e
Use a single "place" for a default precision constant.
...
Also update stateless tests.
2018-10-18 21:38:45 +03:00
Marek Vavruša
37e03bd938
StorageKafka: check dependencies recursively, add max_block setting
...
Changes:
* Check table dependencies recursively before starting streaming
* Use actual number of created consumers when streaming
* Add size limits hint to Kafka consumer stream
* Configurable `kafka_max_block_size` per table
2018-10-18 09:20:34 -07:00
Ivan Lezhankin
45e6fd8cd2
Fix compilation with gcc and code style
2018-10-18 18:25:39 +03:00
chertus
a32e06d298
more ExpressionAnalyzer refactoring [CLICKHOUSE-3996]
2018-10-18 18:03:14 +03:00
VadimPE
f2db463ab0
fix bug with merge part, wich us inserted with quorum
2018-10-18 17:14:07 +03:00
VadimPE
451114c9a3
rename partition -> part
2018-10-18 15:16:53 +03:00
VadimPE
4a93d3b836
fix addedparts
2018-10-18 14:51:40 +03:00
Ivan Lezhankin
e16081d4d4
Fix initialization of precision.
2018-10-18 14:15:47 +03:00
alesapin
87bb06fdd8
CLICKHOUSE-2211: Add exception for impossible case
2018-10-18 12:24:16 +03:00
alesapin
fe6406eac1
CLICKHOUSE-2211: Fix accident delition
2018-10-17 19:18:14 +03:00
alesapin
d78d569d42
CLICKHOUSE-2211: Fix aio reading (with correct buffer size), reduce MergeTreeReader creation and add useless test
2018-10-17 17:56:15 +03:00
Ivan Lezhankin
6d783ef013
Move-away "uniqCombined" as a separate aggregated function with HLL precision
2018-10-17 17:31:06 +03:00
CurtizJ
f86b9d3983
add lock for .inner. table
2018-10-17 17:11:20 +03:00
CurtizJ
d81ed27004
add lock for .inner. table
2018-10-17 17:08:52 +03:00
Artem Zuikov
52e94ecc5a
Merge pull request #3368 from 4ertus2/joins
...
Extract visitors from ExpressionAnalyser [CLICKHOUSE-3996]
2018-10-17 15:48:42 +03:00
chertus
5d3f03a6d2
minor refactoring (function naming)
2018-10-17 14:06:46 +03:00
chertus
40f1805bf4
fix gcc build
2018-10-17 13:59:05 +03:00
zhang2014
133363e8e3
ISSUES-2312 fix nested view & joined view without database
2018-10-17 14:35:16 +08:00
alexey-milovidov
7566ffe751
Merge pull request #3398 from yandex/better-startup-time
...
Better server startup time
2018-10-17 08:58:23 +03:00
Alexey Milovidov
44f5c735aa
Temporary disable "enable_optimize_predicate_expression" setting by default #1777
2018-10-17 06:46:06 +03:00
Alexey Milovidov
99a64d3b92
Presumably better #2278
2018-10-17 06:13:00 +03:00
Alexey Milovidov
427eba3451
Improved server startup time #2278
2018-10-17 05:34:14 +03:00
Alexey Milovidov
a7090f4fab
Improved server startup time #2278
2018-10-17 04:59:24 +03:00
Alexey Milovidov
aa227795ef
Improved server startup time #2278
2018-10-17 04:31:28 +03:00
Alexey Milovidov
7c4d24ce39
Added comment [#CLICKHOUSE-3901]
2018-10-17 00:25:45 +03:00
Alexey Milovidov
98543b7c41
Fixed vertical merge of multidimensional Nested structures [#CLICKHOUSE-3901]
2018-10-17 00:22:41 +03:00
chertus
27d66a45c3
extract more visitors from ExpressionAnalyzer [CLICKHOUSE-3996]
2018-10-16 22:00:05 +03:00
alesapin
457f8fd495
Merge pull request #3389 from yandex/CLICKHOUSE-4067
...
CLICKHOUSE-4067: Fixes in odbc dictionaries. Now dictionaries receive…
2018-10-16 15:37:23 +03:00
chertus
4071155043
better ActionsVisitor extraction [CLICKHOUSE-3996]
2018-10-16 15:34:20 +03:00
chertus
e6e28d2451
Merge branch 'master' into joins
2018-10-16 13:10:32 +03:00
Artem Zuikov
3359ba06c3
Merge pull request #3391 from 4ertus2/decimal
...
fix for Decimal128 group by [issue-3378]
2018-10-16 13:07:11 +03:00
chertus
29bd00f9f4
simple fix for Decimal128 group by [issue-3378]
2018-10-16 10:31:17 +03:00
chertus
465cb6d267
fix for Decimal128 group by [issue-3378]
2018-10-15 22:14:08 +03:00
proller
0cf72f9b26
clickhouse-odbc#125 : Make TIMESTAMP alias for DateTime type for allowing CAST(x AS TIMESTAMP)
2018-10-15 18:10:34 +03:00
alesapin
c951ec7bad
CLICKHOUSE-4067: Fixes in odbc dictionaries. Now dictionaries receives bridge path from global config (as it was before). Quotation performed on table and schema independently. Add tests with postgres interaction. Update documentation
2018-10-15 17:49:23 +03:00
VadimPE
e331f15ffd
CLICKHOUSE-1791 add modulo for nonIntegral divisor
2018-10-15 16:24:01 +03:00
VadimPE
7b6f0f5372
CLICKHOUSE-1791 add modulo for date
2018-10-15 15:53:05 +03:00
Sabyanin Maxim
e050bc0428
Merge branch 'master' into CLICKHOUSE-4032
2018-10-14 18:35:45 +03:00
Sabyanin Maxim
ab050c8466
add comment section in column declaration.
...
add comment column type in alter method.
add comment section in system.columns.
2018-10-14 18:30:06 +03:00
Alexey Milovidov
50234013b5
Whitespaces [#CLICKHOUSE-4016]
2018-10-14 11:23:21 +03:00
Kirill Shvakov
5600c35847
check drop type
2018-10-14 00:37:16 +03:00
Kirill Shvakov
0f509b9eb5
ReplicatedMergeTree: send drop request to the leader replica
2018-10-13 23:58:04 +03:00
Alexey Milovidov
f720a5bf95
Fixed typos in code #3373
2018-10-13 17:33:43 +03:00
Alexey Milovidov
72e2996e3e
Fixed incompatibility when versions prior to 18.12.17 are used on remote servers and newer is used on initiating server, and GROUP BY both fixed and non-fixed keys, and when two-level group by method is activated [#CLICKHOUSE-4035]
2018-10-13 02:43:25 +03:00
Alexey Milovidov
98859f232b
Merge branch 'master' into group_by_two_level_compatibility
2018-10-13 02:13:30 +03:00
alexey-milovidov
845e8b19d8
Merge pull request #3367 from yandex/CLICKHOUSE-4060
...
CLICKHOUSE-4060: Use individual context for each function
2018-10-12 22:08:16 +03:00
chertus
9120d5f38e
extract visitor from ExpressionAnalyser [CLICKHOUSE-3996]
2018-10-12 18:41:28 +03:00
alesapin
72ef357a02
Fix typo assignment
2018-10-12 17:52:39 +03:00
alexey-milovidov
8b4e58460a
Merge pull request #3366 from 4ertus2/decimal
...
Conditional for UUID [CLICKHOUSE-4016]
2018-10-12 17:06:29 +03:00
alexey-milovidov
b1ceb4bfc8
Merge pull request #3362 from yandex/nullable-types-from-external-databases
...
Allow Nullable types in MySQL, ODBC and MongoDB external sources
2018-10-12 16:59:01 +03:00
alesapin
17150fd688
CLICKHOUSE-4060: Use individual context for each function
2018-10-12 16:03:57 +03:00
chertus
688b5aa8e4
Conditional for UUID [CLICKHOUSE-4016]
2018-10-12 14:23:05 +03:00
Alexandr Krasheninnikov
468ca70683
Minor review fixes
2018-10-12 11:46:53 +03:00
Alexandr Krasheninnikov
92916d3b8d
Merge https://github.com/yandex/ClickHouse into base64_functions
2018-10-12 11:29:01 +03:00
Alexey Milovidov
0573b80288
Allow Nullable types in MySQL, ODBC and MongoDB external sources #3284
2018-10-12 05:41:54 +03:00
Alexey Milovidov
4bb8da039f
Allow Nullable types in MySQL, ODBC and MongoDB external sources #3284
2018-10-12 05:26:48 +03:00
Alexey Milovidov
d5bfe37879
Allow Nullable types in MySQL, ODBC and MongoDB external sources #3284
2018-10-12 05:09:47 +03:00
Alexey Milovidov
f8e5a22e03
Fixed "timeSlot" and "timeSlots" functions [#CLICKHOUSE-4016]
2018-10-12 03:40:19 +03:00
Alexey Milovidov
6e39e021f0
Disable "compile_expressions" setting by default because it is not production ready [#CLICKHOUSE-4060]
2018-10-12 03:21:24 +03:00
Alexey Milovidov
f650bde97d
Merge branch 'master' into fix-function-if
2018-10-12 02:49:06 +03:00
alexey-milovidov
12772c2cd5
Merge pull request #3357 from yandex/check-for-array-join-in-prewhere
...
Added check for invalid PREWHERE
2018-10-12 01:32:44 +03:00
Alexey Milovidov
218366e17f
Fixed error introduced in #3342
2018-10-12 00:31:36 +03:00
alexey-milovidov
27a07a9d90
Merge pull request #3356 from yandex/llvm-better-exception-messages
...
LLVM compiler: better exception messages.
2018-10-12 00:18:42 +03:00
Alexey Milovidov
e752271d99
Added check for invalid PREWHERE #3336
2018-10-11 23:52:25 +03:00
alexey-milovidov
42e18a4615
Merge pull request #3355 from 4ertus2/joins
...
Extract one more visitor from ExpressionAnalyzer [CLICKHOUSE-3996]
2018-10-11 23:33:35 +03:00
Alexey Milovidov
7d6365d139
LLVM compiler: better exception messages [#CLICKHOUSE-2]
2018-10-11 23:31:41 +03:00
chertus
c593d9a971
extract ExecuteScalarSubqueriesVisitor from ExpressionAnalyser [CLICKHOUSE-3996]
2018-10-11 22:28:59 +03:00
alexey-milovidov
9f494b0278
Merge pull request #3351 from CurtizJ/CLICKHOUSE-3974
...
Create client_info when it`s not initialized [CLICKHOUSE-3974]
2018-10-11 22:09:25 +03:00
CurtizJ
1f71a97881
create client_info when it`s not initialized
2018-10-11 19:57:21 +03:00
alexey-milovidov
150be189ac
Merge pull request #3348 from 4ertus2/decimal
...
SummingMergeTree for Decimal128 [issue-3282]
2018-10-11 19:54:29 +03:00
Alexandr Krasheninnikov
41281ad397
Make compilation on-demand
2018-10-11 19:25:17 +03:00
alesapin
e68f9d2193
CLICKHOUSE-4055: LibraryDictionarySource -- set null_value from config for absent values
2018-10-11 18:21:12 +03:00
chertus
5896e45dac
SummingMergeTree for Decimal128 [issue-3282]
2018-10-11 17:33:01 +03:00
CurtizJ
c565c75350
fix style
2018-10-11 12:27:16 +03:00
Marek Vavruša
0652302d9a
Common/MemoryTracker: fix metrics not being updated after MemoryTracker reset
...
The #3230 fixed a problem with memory accounting, but it introduces a regression
in which the memory tracker isn't reset until there are zero queries in process list.
This makes it difficult to see in tests as there's always just one query in-flight,
but in production it produces a sawtooth memory usage pattern that resets when
the allocated memory exceeds set memory limits and all queries are terminated.
2018-10-10 17:37:41 -07:00
Alexey Milovidov
e3773c5d0c
Fixed code that was out of style #3145
2018-10-11 00:01:53 +03:00
Alexey Milovidov
55923011b5
Attempt to fix use-after-free, try 1 #3145
2018-10-10 23:44:50 +03:00
Alexey Milovidov
55bc2b812b
Miscellaneous #3145
2018-10-10 23:44:19 +03:00
Alexey Milovidov
75221c478a
Miscellaneous #3145
2018-10-10 23:37:01 +03:00
Alexey Milovidov
2c0ea27377
Miscellaneous #3145
2018-10-10 23:35:21 +03:00
Alexey Milovidov
5e50e6bfef
Fixed strange code #3145
2018-10-10 23:26:04 +03:00
alexey-milovidov
b9ecc4b819
Merge pull request #3340 from CurtizJ/issue-3253
...
Fix unnecessarily preparations for join at initial server [ISSUE-3253]
2018-10-10 23:04:13 +03:00
alexey-milovidov
5795b559c6
Merge pull request #3342 from 4ertus2/decimal
...
Confitional for Decimal (without arrays) [CLICKHOUSE-3765]
2018-10-10 23:00:17 +03:00
alexey-milovidov
297f9cec38
Merge pull request #3341 from yandex/fix-point-in-poligon
...
Fix point in poligon
2018-10-10 22:09:13 +03:00
chertus
aa9f17b8df
Merge branch 'master' into decimal
2018-10-10 21:39:57 +03:00
chertus
94c9a544f2
If for Decimal (basic support) [CLICKHOUSE-3765]
2018-10-10 21:37:54 +03:00
CurtizJ
16bea3d008
remove logs
2018-10-10 20:09:09 +03:00
CurtizJ
815380b8b2
fix unnecessarily preparations for join at initial server
2018-10-10 20:07:21 +03:00
Nikolai Kochetov
935030a94a
Fixed precision issue. Repaced foat with auto.
2018-10-10 19:35:09 +03:00
Vadim
25b100c1f0
Update StorageReplicatedMergeTree.cpp
2018-10-10 19:23:50 +03:00
chertus
1b7354f809
disable AST logging
2018-10-10 19:23:27 +03:00
VadimPE
4db6eab5a3
ISSUES-2581 fix name
2018-10-10 19:20:15 +03:00
Alexey Zatelepin
d9a0432c6c
don't quote single-field partition keys #3109 [#CLICKHOUSE-4054]
2018-10-10 18:57:04 +03:00
alexey-milovidov
34bd8568b6
Merge pull request #3339 from liuyimin-bytedance/master
...
Issue 3269 Fix incorrect OR evaluation when multiples ORs are optimized to IN
2018-10-10 16:42:24 +03:00
alexey-milovidov
fe79529627
Update LogicalExpressionsOptimizer.cpp
2018-10-10 16:41:44 +03:00
liuyimin
019677c55b
Add fake range for tuple ASTFunction generated by Optimizer so that prepared set indexation works correctly
2018-10-10 21:31:18 +08:00
alexey-milovidov
4e6fd3e3fe
Merge pull request #3337 from VadimPE/CLICKHOUSE-3021
...
[CLICKHOUSE-3021] fix bug with unsupported value in CREATE TABLE
2018-10-10 16:23:17 +03:00
alexey-milovidov
2aa255f8b0
Update InterpreterCreateQuery.cpp
2018-10-10 16:23:06 +03:00
VadimPE
d4a56af660
ISSUES-2581 fix bug with new partition
2018-10-10 16:22:55 +03:00
Vadim
56bfc25d9a
Update InterpreterCreateQuery.cpp
2018-10-10 16:15:17 +03:00
Vadim
834267054e
Update InterpreterCreateQuery.cpp
2018-10-10 16:14:29 +03:00
VadimPE
779a178347
CLICKHOUSE-3021 fix bug with unsupported value in CREATE TABLE
2018-10-10 15:50:29 +03:00
alesapin
8591038748
Fix style and clang build
2018-10-10 11:38:54 +03:00
Alexey Milovidov
0b3a8cb489
Merge branch 'joins' of https://github.com/4ertus2/ClickHouse into 4ertus2-joins
2018-10-10 04:06:06 +03:00
Alexander Krasheninnikov
5ff30ebb3d
Initial implementation
2018-10-10 04:04:07 +03:00
alexey-milovidov
1472e3ae66
Merge pull request #3210 from alex-krash/jdbc-bridge
...
External database access unification (jdbc/odbc bridges)
2018-10-10 02:26:56 +03:00
alexey-milovidov
54e933f9dc
Update DictionarySourceFactory.cpp
2018-10-10 02:21:19 +03:00
alexey-milovidov
1dba31a313
Merge pull request #3332 from yandex/fix-performance-regression-while-parsing-jsoneachrow
...
Fix performance regression in parsing JSONEachRow format.
2018-10-10 02:09:22 +03:00
alexey-milovidov
a867009747
Merge pull request #3324 from 4ertus2/decimal
...
Decimal dictionaries support [CLICKHOUSE-4045]
2018-10-10 00:49:37 +03:00
alexey-milovidov
ab198e77d1
Merge pull request #3329 from 4ertus2/master
...
get64 for Decimal32/64; remove allow_experimental_decimal_type [issue-3282]
2018-10-10 00:40:29 +03:00
Alexey Milovidov
7b24ad570c
Inline some functions #3223
2018-10-10 00:38:06 +03:00
Alexey Milovidov
681929cbda
Attempt to fix performance regression while parsing JSONEachRow #3223
2018-10-10 00:32:15 +03:00
Alexey Milovidov
c014168c5f
Attempt to fix performance regression while parsing JSONEachRow #3223
2018-10-10 00:21:52 +03:00
Alexey Milovidov
a432ff335e
Attempt to fix performance regression while parsing JSONEachRow #3223
2018-10-10 00:09:48 +03:00
alexey-milovidov
b7766333ab
Merge pull request #3330 from CurtizJ/CLICKHOUSE-4005
...
Interpret empty null_value in external dictionaries as type default value [ClLICKHOUSE-4005]
2018-10-09 23:44:18 +03:00
Alexey Milovidov
798c3d2e4d
Merge remote-tracking branch 'origin/master' into fix-performance-regression-while-parsing-jsoneachrow
2018-10-09 23:42:21 +03:00
alexey-milovidov
caaa7ff98e
Merge pull request #3331 from yandex/fix-point-in-poligon
...
Fix point in poligon
2018-10-09 23:41:35 +03:00
Alexey Milovidov
4a31c1c18a
Attempt to fix performance regression while parsing JSONEachRow #3223
2018-10-09 22:46:35 +03:00
Nikolai Kochetov
1f348a09ca
Fix calcLinestringRotation angle. #3309
2018-10-09 22:38:37 +03:00
Alexey Milovidov
9a50300e42
Minor modifications #3223
2018-10-09 21:14:30 +03:00
Alexey Milovidov
e4b4b5a4fc
Better diagnostic for JSONEachRow format #3223
2018-10-09 21:06:52 +03:00
alexey-milovidov
052fc2b674
Merge pull request #3223 from veloman-yunkan/jsoneachrow_bugfix
...
Fix for issue #3297
2018-10-09 21:05:51 +03:00
CurtizJ
5f2f1f589f
interpret empty null_value as default value
2018-10-09 20:43:25 +03:00
alesapin
32c6d0c699
Merge pull request #3182 from VadimPE/CLICKHOUSE-3947
...
CLICKHOUSE-3947 add LIKE and IN () for ODBC and MySQL
2018-10-09 20:12:32 +03:00
chertus
ee40c0cec9
undo changes from another pull request
2018-10-09 20:02:30 +03:00
chertus
c7bf0e77ea
add get64() for Decimal32 and Decimal64; remove allow_experimental_decimal_type setting [issue-3282]
2018-10-09 19:50:42 +03:00
Alexandr Krasheninnikov
27f288641e
Fix config reference, header inclusion and failed tests
2018-10-09 18:03:41 +03:00
chertus
b360fc895a
comment for TranslateQualifiedNamesVisitor [CLICKHOUSE-4001]
2018-10-09 17:41:19 +03:00
chertus
ec8d3b388d
move DumpASTNode to own file, style fixes [CLICKHOUSE-4001]
2018-10-09 17:32:11 +03:00
Alexey Milovidov
227ff8c606
Fixed comment [#CLICKHOUSE-2]
2018-10-09 17:30:05 +03:00
VadimPE
bcf8d5517e
CLICKHOUSE-3947 fix const
2018-10-09 17:21:19 +03:00
VadimPE
da712d0036
CLICKHOUSE-3947 fix copy-paste and const
2018-10-09 17:13:08 +03:00
chertus
20b733aaf0
Merge branch 'master' into joins
2018-10-09 13:47:01 +03:00
alesapin
9946154908
CLICKHOUSE-3943: Rename FLUSH SYSTEM TABLES query to FLUSH LOGS, better tests
2018-10-09 13:05:27 +03:00
chertus
f21c4c898e
Decimal dictionaries support [CLICKHOUSE-4045]
2018-10-08 22:45:17 +03:00
Alexey Milovidov
64c7e357e8
Fixed error #3230
2018-10-08 08:30:03 +03:00
Alexey Milovidov
80faec76e8
Merge remote-tracking branch 'origin/master' into fix-memory-tracker
2018-10-08 00:09:18 +03:00
alexey-milovidov
469243b33b
Merge pull request #3306 from yandex/length-aliases
...
Added compatibility aliases for "length" and "lengthUTF8"
2018-10-07 23:26:57 +03:00
alexey-milovidov
36c3feea80
Merge pull request #3270 from yandex/left-join-right-keys-fix
...
Left join right keys fix
2018-10-07 23:26:40 +03:00
Alexey Milovidov
964a6e5771
Make function "concat" case insensitive for compatibility [#CLICKHOUSE-20]
2018-10-05 22:58:01 +03:00
Alexey Milovidov
9e1c51aca4
Added compatibility aliases for "length" and "lengthUTF8" [#CLICKHOUSE-20]
2018-10-05 22:52:42 +03:00
Alexey Milovidov
a66beb5ec1
Fixed error #3230
2018-10-05 22:29:49 +03:00
Alexey Milovidov
5503822983
Merge branch 'master' into fix-memory-tracker
2018-10-05 18:15:50 +03:00
CurtizJ
5a01eb3d5e
add test
2018-10-05 17:35:35 +03:00
Nikolai Kochetov
064facd8de
Updated test.
2018-10-05 10:43:58 +03:00
Marek Vavruša
5d5c99ebee
Formats/CapnProtoRowInputStream: fix column mismatch in list of structures
...
The fields are lexicographically sorted to make traversal easier,
but their order must be preserved when collecting fields from structures.
For example, a list with a structure like `{b @0 :Text, a @1 :Text}` would
read `a` first despite being second, which would cause a mismatch.
2018-10-04 15:59:27 -07:00
alexey-milovidov
47dd173007
Merge pull request #3281 from 4ertus2/summap
...
sumMap for number-based types
2018-10-05 00:12:57 +03:00
alexey-milovidov
ba62a24926
Merge pull request #3283 from yandex/FileOpenFixes_CLICKHOUSE-3943_
...
File open fixes clickhouse 3943
2018-10-05 00:00:47 +03:00
alexey-milovidov
b9d1eb4154
Merge pull request #3298 from yandex/fix-prewhere-with-altered-columns
...
Fix prewhere with altered columns
2018-10-04 23:57:11 +03:00
Nikolai Kochetov
b1fa3fab9d
Fix prewhere whith final. #2827
2018-10-04 21:18:54 +03:00
CurtizJ
8c2060b48a
wip on finish sorting
2018-10-04 17:55:02 +03:00
Alexandr Krasheninnikov
d94b574644
Removing destructor
2018-10-04 16:19:08 +03:00
CurtizJ
dd9516a810
wip on finish sorting
2018-10-04 13:24:51 +03:00
alesapin
5a218a7363
CLICKHOUSE-3943: Change naming
2018-10-04 11:52:56 +03:00
Nikolai Kochetov
a6d0094835
Fix readnig missing column with prewhere. #2827
2018-10-04 10:51:06 +03:00
alesapin
252f9d0080
CLICKHOUSE-3943: Style
2018-10-03 20:12:38 +03:00
alesapin
441069fc5c
[WIP] CLICKHOUSE-3943: Store last_readed_mark in MergeTreeThreadBlockInputStream and don't recreate reader if it stopped in appropriate position
2018-10-03 20:10:23 +03:00
chertus
5b987f02d7
sumMap for number-based types [issue-3277]
2018-10-03 17:22:28 +03:00
Alexandr Krasheninnikov
82200bc16a
Added error codes, bridge startup, fixed destructor in XDBC stuff
2018-10-03 15:10:57 +03:00
VadimPE
40350c47e1
CLICKHOUSE-3947 del unused result_string
2018-10-03 15:10:35 +03:00
VadimPE
8df97e32af
CLICKHOUSE-3947 fix bug with query.clone()
2018-10-03 15:03:39 +03:00
Alexandr Krasheninnikov
c7fee9374c
fix formatting errors according code review
2018-10-03 13:44:43 +03:00
VadimPE
4152c34fbb
CLICKHOUSE-4021 fix build
2018-10-03 13:08:02 +03:00
Nikolai Kochetov
c4c14de02f
Join aliases and duplicating columns fixes.
...
Join aliases and duplicating columns fixes. [#CLICKHOUSE-3994] #3145
2018-10-02 21:17:39 +03:00
Nikolai Kochetov
c470cf1e26
Fix joined keys from right column with left join. [#CLICKHOUSE-3994]
2018-10-02 21:16:47 +03:00
alesapin
7d79192ad7
Merge pull request #3267 from yandex/CLICKHOUSE-4025
...
Fix join of unjoinable thread
2018-10-02 18:39:53 +03:00
alesapin
c9880ad9c0
Fix join of unjoinable thread
2018-10-02 16:38:28 +03:00
alexey-milovidov
147a2a13c2
Merge pull request #3257 from amosbird/master
...
Correct wcwidth computation for pretty outputs.
2018-10-02 16:23:41 +03:00
Amos Bird
7df73088ab
Correct wcwidth computation for pretty outputs.
2018-10-02 10:06:18 +08:00
Alexey Milovidov
78aaf537b1
Merge branch 'master' of github.com:yandex/ClickHouse
2018-10-02 00:50:18 +03:00
Alexey Milovidov
698be017e9
Changes after merge #3208
2018-10-02 00:49:56 +03:00
Sabyanin Maxim
8f7c2b5821
first try
2018-10-01 23:16:50 +03:00
alexey-milovidov
94b0432faa
Merge pull request #3262 from proller/fix17
...
Arcadia sync
2018-10-01 22:00:01 +03:00
alexey-milovidov
7c6b08c21c
Merge pull request #3251 from CurtizJ/table-db-macros
...
Support {database} and {table} macros in ReplicatedMergeTree [CLICKHOUSE-3897]
2018-10-01 21:45:52 +03:00
alexey-milovidov
6432cff455
Update Macros.h
2018-10-01 21:45:39 +03:00
proller
ca03cd6606
Sync with arcadia
2018-10-01 18:43:48 +03:00
Vadim
0849e1e218
Update transformQueryForExternalDatabase.cpp
2018-10-01 17:06:36 +03:00
VadimPE
d0981b733d
CLICKHOUSE-3947 add recursive search for constant expressions
2018-10-01 16:27:39 +03:00
CurtizJ
ed77e40dfe
fix implicit macros
2018-10-01 12:01:50 +03:00
alexey-milovidov
a4736275c6
Merge pull request #3208 from vavrusa/master
...
PushingToViewsBlockOutputStream: process blocks concurrently
2018-10-01 04:42:55 +03:00
alexey-milovidov
c4939a1bec
Update PushingToViewsBlockOutputStream.cpp
2018-10-01 04:39:00 +03:00
alexey-milovidov
33578cb1b1
Merge pull request #3216 from vavrusa/capnproto-tuple-nested
...
Formats/CapnProtoRowInputStream: support Nested and Tuple, fix alignm…
2018-10-01 04:34:06 +03:00
alexey-milovidov
ff53aa4947
Update CapnProtoRowInputStream.cpp
2018-10-01 04:33:36 +03:00
alexey-milovidov
fac040c39a
Update CapnProtoRowInputStream.cpp
2018-10-01 04:31:48 +03:00
alexey-milovidov
fd04b2b89a
Merge pull request #3215 from vavrusa/fix-kafka-lockups
...
Storages/Kafka: fixed deadlocks, moved to background pool
2018-10-01 04:30:03 +03:00
alexey-milovidov
bb0f76dd25
Update StorageKafka.cpp
2018-10-01 04:29:17 +03:00
alexey-milovidov
b9e6b02719
Update StorageKafka.cpp
2018-10-01 04:26:52 +03:00
zhang2014
6778220ffd
ISSUES-3232 remake interpreter_subquery when rewrite subqueries
2018-09-30 17:27:59 +08:00
Alexey Milovidov
613061cee5
Fixed incompatibility when versions prior to 18.12.17 are used on remote servers and newer is used on initiating server, and GROUP BY both fixed and non-fixed keys, and when two-level group by method is activated [#CLICKHOUSE-4035]
2018-09-28 23:17:38 +03:00
CurtizJ
b7b7314ecb
remove redundant code
2018-09-28 22:13:16 +03:00
CurtizJ
e0d3aed0c4
remove redundant code
2018-09-28 22:10:16 +03:00
chertus
69b9c25801
Merge branch 'master' into joins
2018-09-28 20:09:05 +03:00
chertus
4c8112138c
Merge branch 'master' into joins
2018-09-28 20:02:25 +03:00
alexey-milovidov
a149233d99
Merge pull request #3246 from yandex/low-cardinality-fixes
...
Low cardinality fixes
2018-09-28 19:50:53 +03:00
alexey-milovidov
c6ab6fa1a8
Merge pull request #3247 from CurtizJ/fix-thread-group
...
Fix distributed "CREATE TABLE AS SELECT" query.
2018-09-28 18:54:49 +03:00
Anton Popov
49438ed1a1
Update DDLWorker.cpp
2018-09-28 18:35:30 +03:00
CurtizJ
ed3c744055
fixes
2018-09-28 18:30:03 +03:00
chertus
292a885533
fix typo in quantiles func registration
2018-09-28 18:08:37 +03:00
chertus
59df909f87
more ast debug info
2018-09-28 18:01:13 +03:00
proller
ec11bef633
Build fixes ( #3181 )
2018-09-28 17:53:20 +03:00
CurtizJ
009c973312
remove redundant comment
2018-09-28 16:47:34 +03:00
CurtizJ
f9fb73ce2e
fix distributed "create table as select" query
2018-09-28 16:44:39 +03:00
chertus
593b3ae338
one more minor fix
2018-09-28 15:13:01 +03:00
alexey-milovidov
b84a499a93
Merge pull request #3231 from zhang2014/fix/ISSUES-3225
...
ISSUES-3225 fix alias conflict when predicate optimization
2018-09-28 14:46:54 +03:00
chertus
b4ea89e1f3
minor fix
2018-09-28 14:46:52 +03:00
chertus
669ab71502
rename files according to class name
2018-09-28 13:52:08 +03:00
Nikolai Kochetov
97add69825
Rename WithDictionary to LowCardinality.
2018-09-28 13:44:59 +03:00
Alexey Milovidov
138e70197e
Fixed comments and docs #3241
2018-09-28 06:42:08 +03:00
Alexey Milovidov
169dbfe200
Fixed discrepancy between default values of "log_queries" and "log_query_threads" settings [#CLICKHOUSE-4030]
2018-09-28 06:40:39 +03:00
Alexander Krasheninnikov
ceea4b9b33
New bridge interaction, quote identifier via api
2018-09-28 05:46:33 +03:00
chertus
57d2c9db60
AST debug stuff: DumpASTNode, TranslateQualifiedNamesVisitor, hide AST explain command [CLICKHOUSE-4001]
2018-09-27 22:25:18 +03:00
Alexandr Krasheninnikov
4b431264db
Implement quote getter from ODBC
2018-09-27 18:23:42 +03:00
Nikolai Kochetov
5a211b1ab7
More comments.
2018-09-27 18:16:47 +03:00
Nikolai Kochetov
65c8a00e51
Fix low cardinality functions result cache if function can't be executed on default arguments.
2018-09-27 17:45:35 +03:00
CurtizJ
90240cb64b
support database and table macros
2018-09-27 13:01:10 +03:00
chertus
041cef5968
explain ast [CLICKHOUSE-4001]
2018-09-27 12:47:21 +03:00
zhang2014
b35ab511cb
ISSUES-3225 fix alias conflict when predicate optimization
2018-09-27 14:29:38 +08:00
Marek Vavruša
a971a0bc07
PushingToViewsBlockOutputStream: process blocks concurrently
...
The current model is to process blocks for attached views in sequence.
This is not ideal when the processing time for each view varies, or is
blocking (for example with replicated tables), as processing of next-in-line
view is blocked by wait in it's predecessor.
This commit changes the behavior to process 2 or more attached views concurrently.
2018-09-26 15:22:06 -07:00
alexey-milovidov
03d85227d1
Merge pull request #3229 from yandex/fix-datetime-conversion-when-inserting-in-values-format
...
Fix conversion between Date and DateTime when inserting in VALUES format and "input_format_values_interpret_expressions" is true
2018-09-27 00:20:04 +03:00
Alexey Milovidov
30da8de1b6
Send log message about peak memory usage to client #3230
2018-09-27 00:19:49 +03:00
Alexey Milovidov
99927a3518
Returned logging peak memory usage in query scope #3230
2018-09-27 00:10:43 +03:00
Alexey Milovidov
0928acdf8a
Removed dead code #3230
2018-09-27 00:02:54 +03:00
Alexey Milovidov
dd88c092b7
Attempt to fix inconsistent values in total memory tracker #3143
2018-09-26 23:45:40 +03:00
alexey-milovidov
28bd1e8eff
Merge pull request #3224 from 4ertus2/decimal
...
Supertypes for decimal and integers [issue-3218]
2018-09-26 22:47:10 +03:00
Alexey Milovidov
e90484db77
Fix conversion between Date and DateTime when inserting in VALUES format and "input_format_values_interpret_expressions" is true #3226
2018-09-26 22:43:10 +03:00
chertus
4442437396
minor fix
2018-09-26 18:34:53 +03:00
alexey-milovidov
b6e53d22e1
Merge pull request #3200 from yandex/low-cardinality-function-result-cache
...
Added cache for low cardinality function result.
2018-09-26 18:12:48 +03:00
alexey-milovidov
2471332dfc
Update IFunction.h
2018-09-26 18:02:56 +03:00
chertus
a564b05ec7
supertypes for decimal and ints [issue-3218]
2018-09-26 17:59:23 +03:00
alexey-milovidov
6374094f0c
Merge pull request #3202 from zhang2014/fix/ISSUES-3145
...
ISSUES-3145 support qualified asterisk
2018-09-26 17:41:01 +03:00
chertus
3ff2cfb4af
fix div by zero in decimal var/stddev
2018-09-26 15:38:36 +03:00
chertus
b48402e871
intDiv, intDivOrZero for decimal [issue-3221]
2018-09-26 15:12:45 +03:00
alexey-milovidov
60000481e4
Merge pull request #3219 from topvisor/add_biz_to_insignificant_second_level_domains
...
Update firstSignificantSubdomain function
2018-09-26 14:54:43 +03:00
Veloman Yunkan
3e96f32833
Fixed the bug introduced by PR#3144
...
The pre-existing optimization in the function
JSONEachRowRowInputStream::readColumnName() (that was extracted
during the refactoring step of PR#3144) imposed a restriction
on its usage - reading from the input stream might invalidate the return
value of that function, and this is what happenned in readJSONObject()
after the call to skipColonDelimiter().
One way of fixing the problem while preserving the original optimization
intact would be to defer the call to skipColonDelimiter() until the
variable name_ref was fully consumed, however that would result in worse
code (skipColonDelimiter() would need to be called in three different
places where it doesn't really belong).
Therefore I preferred to slightly weaken the optimization by always
copying the key name into the current_column_name data member.
2018-09-26 11:27:04 +00:00
chertus
69dd660919
fix crash on decimal division by zero [issue-3221]
2018-09-26 14:25:50 +03:00
decaseal
963988ddf2
Update firstSignificantSubdomain function
...
Add "biz" domain to list of "insignificant" second-level domains
2018-09-26 12:39:04 +03:00
Marek Vavruša
cbbcb6d9df
Formats/CapnProtoRowInputStream: support Nested and Tuple, fix alignment issues
...
This updated contrib/capnproto to a newer version that fixes problems with
unaligned access to message frames.
It also adds support for parsing Struct types as Tuple (named or unnamed),
and Nested array types.
The `struct X { a @0 :UInt64; b @1 :Text }` in Cap'nProto is equivalent to
`x Tuple(a UInt64, b String)` in ClickHouse.
Arrays of Struct types such as `y List(X)` are equivalent to `y Nested(a UInt64, b String)`.
2018-09-25 22:51:35 -07:00
Marek Vavruša
ea32434888
Storages/Kafka: fixed deadlocks, moved to background pool
...
This fixes two deadlocks in Kafka engine found previously:
* When exception is thrown before starting reading, consumer
was never returned to the storage. Now it is claimed only
when actually starting reading.
* Fixed lockup on deinitialization when consumer only unsubscribed,
but didn't close, and the endine then timeouted when waiting for
consumer destruction.
This also moves the stream thread to background worker pool.
The reason for that is that it will compete with other tasks for
time, so it will form a backpressure on insertion when the system
is busy.
2018-09-25 22:51:07 -07:00
Alexey Milovidov
57822ad592
Improvement #3205
2018-09-26 04:30:07 +03:00
Alexey Milovidov
042536177d
Merge branch 'master' into order-by-remerge
2018-09-26 04:24:35 +03:00
Alexey Milovidov
b11a84b895
Merge branch 'master' of github.com:yandex/ClickHouse into every_function_in_own_file_5
2018-09-26 03:36:20 +03:00
Alexey Milovidov
0e7caa05fa
Every function in its own file, part 5 [#CLICKHOUSE-2]
2018-09-26 03:32:38 +03:00
Alexey Milovidov
27b7654abc
Every function in its own file, part 5 [#CLICKHOUSE-2]
2018-09-26 03:31:40 +03:00
chertus
96ceca6c05
fix decimal to int, int to decimal convertion [issue-3177]
2018-09-25 19:03:50 +03:00
Alexandr Krasheninnikov
647d1041f1
Implement jdbc/idbc bridge connectors
2018-09-25 17:29:44 +03:00
Nikolai Kochetov
d526859011
Added cache for low cardinality function result. [#CLICKHOUSE-3904]
2018-09-25 16:48:52 +03:00
zhang2014
b887ec8e98
ISSUES-3145 support qualified asterisk
2018-09-25 10:42:51 +08:00
Alexander Krasheninnikov
fe8affa1cf
Initial
2018-09-25 03:21:20 +03:00
alexey-milovidov
002331be1b
Merge pull request #3204 from CurtizJ/CLICKHOUSE-3527
...
Better code in #3101 .
2018-09-25 00:28:11 +03:00
Alexey Milovidov
9fbde09725
Memory tracker: added watermark logging #3205
2018-09-24 23:57:10 +03:00
Alexey Milovidov
81e2fe14e5
Better messages #3205
2018-09-24 23:30:02 +03:00
Alexey Milovidov
8e7c6598e8
Added remerge step to process ORDER BY with LIMIT when memory usage is high #3179
2018-09-24 23:07:30 +03:00
Alexey Milovidov
17b8e20922
Failover for hosts with missing DNS records while connecting to ZooKeeper #3201
2018-09-24 22:09:12 +03:00
CurtizJ
d0ed96aa04
better code
2018-09-24 22:08:11 +03:00
Alexey Milovidov
73f68b5ee4
Miscellaneous [#CLICKHOUSE-2]
2018-09-24 21:44:09 +03:00
Alexey Milovidov
5f6328646a
utils/check-style/check-style -n #3101
2018-09-24 21:02:25 +03:00
alexey-milovidov
b6c7d71a03
Merge pull request #3101 from CurtizJ/CLICKHOUSE-3527
...
CLICKHOUSE-3527 Fix race while parallel ddl queries
2018-09-24 20:59:57 +03:00
zhang2014
f3dcc2ef41
ISSUES-3145 support qualified asterisk
2018-09-24 23:28:18 +08:00
VadimPE
28102bc3b5
ISSUES-2581 get pointer to max_blocls
2018-09-24 12:53:28 +03:00
alexey-milovidov
4185351c8d
Merge pull request #3197 from yandex/fix_odbc_table_function
...
Fix odbc table function
2018-09-23 18:48:02 +03:00
alesapin
7c47644f7b
Reuse base class function
2018-09-23 12:16:16 +03:00
alexey-milovidov
76cb9ff873
Update Context.cpp
2018-09-22 18:22:54 +03:00
alesapin
2aee8a5814
Fix odbc table function
2018-09-22 17:58:03 +03:00
alexey-milovidov
65f7c390f0
Merge pull request #3159 from zhang2014/fix/ISSUES-3134
...
ISSUES-3134 fix merge and distributed engine query stage
2018-09-22 00:09:06 +03:00
alexey-milovidov
433e8cce26
Merge pull request #3194 from yandex/fix-replica-cyclic-fetch
...
Fix cyclical failed fetches when merges don't produce identical result
2018-09-21 23:05:40 +03:00
alexey-milovidov
babc145f5f
Merge pull request #3188 from yandex/fix_segfault_3151
...
Add isState for array function combinator
2018-09-21 22:30:15 +03:00
Alexey Zatelepin
c2c12f22f7
try to immediately delete the part after checksums mismatch [#CLICKHOUSE-2837]
2018-09-21 19:07:21 +03:00
Vadim
8c413e3f1f
Update ReplicatedMergeTreeQuorumAddedParts.h
2018-09-21 18:20:31 +03:00
VadimPE
17aa0356e5
del include
2018-09-21 18:15:35 +03:00
VadimPE
33545a41b6
fix style. And del getMaxBlock...()
2018-09-21 18:07:43 +03:00
VadimPE
8b8697bc5d
Merge remote-tracking branch 'origin/master' into ISSUES-2581
2018-09-21 17:11:57 +03:00
Alexey Zatelepin
230a9fff2d
Write the columns list of the resulting part in the same order as all_columns [#CLICKHOUSE-13]
2018-09-21 15:40:34 +03:00
VadimPE
60653fc042
CLICKHOUSE-3947 fix style
2018-09-21 14:33:58 +03:00
alexey-milovidov
b1eb66c03e
Merge branch 'master' into low-cardinality-fixes
2018-09-21 13:43:37 +03:00
alexey-milovidov
17d50ecef0
Merge pull request #3186 from CurtizJ/CLICKHOUSE-3979
...
Fix bug in Cube #3172
2018-09-21 13:38:46 +03:00
alexey-milovidov
4a54a1c310
Merge pull request #3138 from yandex/low-cardinality-group-by
...
Low cardinality group by
2018-09-21 13:38:20 +03:00
Nikolai Kochetov
3e742a6b55
Review fixes.
2018-09-21 12:49:43 +03:00
alesapin
4d29141957
Add isState for array function combinator
2018-09-21 12:37:09 +03:00
Nikolai Kochetov
94bb37f261
Fix low cardinality permutation.
2018-09-21 11:52:07 +03:00
CurtizJ
b355ac8e71
fix bug
2018-09-21 10:23:31 +03:00
zhang2014
e0e805b1f6
ISSUES-3134 fix merge and distributed engine query stage
2018-09-21 11:19:25 +08:00
zhang2014
8a8189c7e9
ISSUES-3134 fix merge and distributed engine query stage
2018-09-21 09:08:44 +08:00
zhang2014
80d83bb50f
ISSUES-3134 fix merge and distributed engine query stage
2018-09-21 09:08:44 +08:00
zhang2014
882125dd6d
ISSUES-3134 fix merge and distributed engine query stage
2018-09-21 09:08:44 +08:00
Alexey Milovidov
8bfdcc6464
Fix style [#CLICKHOUSE-2]
2018-09-20 23:57:06 +03:00
Alexey Milovidov
16dacff488
Fixed build [#CLICKHOUSE-2]
2018-09-20 23:50:58 +03:00
Alexey Milovidov
47934d1cce
Merge branch 'master' of github.com:yandex/ClickHouse
2018-09-20 23:21:37 +03:00
Alexey Milovidov
d95300eb7f
Less dependencies [#CLICKHOUSE-2]
2018-09-20 23:21:29 +03:00
alexey-milovidov
5d3027d4d0
Merge pull request #3171 from yandex/fix_segfault_on_incomplete_block
...
Reorder Squashing and adding default output stream in insert
2018-09-20 21:11:45 +03:00
alexey-milovidov
be77567e4f
Update AddingDefaultBlockOutputStream.cpp
2018-09-20 21:09:01 +03:00
alexey-milovidov
e74615f29e
Update AddingDefaultBlockOutputStream.cpp
2018-09-20 21:07:10 +03:00
alexey-milovidov
4a095d8433
Merge pull request #3172 from CurtizJ/CLICKHOUSE-3979
...
Add modificator CUBE [CLICKHOUSE-3979]
2018-09-20 21:04:56 +03:00
CurtizJ
a6841f5882
Merge remote-tracking branch 'origin/CLICKHOUSE-3979' into CLICKHOUSE-3979
2018-09-20 21:01:46 +03:00
alexey-milovidov
0d2c6dff24
Update Aggregator.h
2018-09-20 20:59:47 +03:00
CurtizJ
b89feb1572
replace bool by enum
2018-09-20 20:51:42 +03:00
alexey-milovidov
06b5c53335
Update TwoLevelHashTable.h
2018-09-20 20:44:10 +03:00
alexey-milovidov
a52de29fbf
Update ColumnWithDictionary.h
2018-09-20 20:41:54 +03:00
alexey-milovidov
a2d8ee1caa
Merge pull request #3183 from 4ertus2/refactoring
...
refactoring: hide ASTIdentifier kind
2018-09-20 20:38:06 +03:00
Nikolai Kochetov
ce8329d802
Fix test with names tuples.
2018-09-20 20:36:16 +03:00
alexey-milovidov
7a9500a3f1
Update InterpreterSelectQuery.cpp
2018-09-20 20:33:47 +03:00
Anton Popov
dd1b130048
Update CubeBlockInputStream.cpp
2018-09-20 20:32:57 +03:00
alexey-milovidov
cdcb301937
Merge pull request #3176 from yandex/format-date-time-further-attempts
...
Performance improvement of formatDateTime.
2018-09-20 20:29:22 +03:00
CurtizJ
8644853558
optimize
2018-09-20 18:46:37 +03:00
alesapin
94287f3199
Finally fixed
2018-09-20 18:35:52 +03:00
Alexey Milovidov
3eb183f21e
Fixed build; better #3176
2018-09-20 17:46:31 +03:00
VadimPE
3547334ba5
fix
2018-09-20 17:39:02 +03:00
VadimPE
c377389f62
CLICKHOUSE-3947 add LIKE and IN ()
2018-09-20 17:34:30 +03:00
Nikolai Kochetov
673acbdf94
Added more comments.
2018-09-20 17:19:12 +03:00
Alexey Zatelepin
0ec0a24bc9
fix use of temp variable after it gets out of scope
2018-09-20 16:55:22 +03:00
alesapin
c13ffed085
Remove redundant changes
2018-09-20 16:26:32 +03:00
Nikolai Kochetov
d66527ec15
Fix functions with Array(LowCardinality) arguments. #3004
2018-09-20 16:16:30 +03:00
chertus
6442b5b167
refactoring: hide ASTIdentifier kind
2018-09-20 16:13:33 +03:00
alesapin
0f12e028a5
Fix insert for native format
2018-09-20 15:59:33 +03:00
alesapin
dfa3e7e1cd
Missed changes
2018-09-20 14:40:04 +03:00
alesapin
b87a084f38
Strict order of evaluated and added columns
2018-09-20 14:16:15 +03:00
Nikolai Kochetov
d2fbc3df58
Fix in function for low cardinality argument. #3004
2018-09-20 13:55:10 +03:00
CurtizJ
f9ff586415
optimize
2018-09-20 13:44:13 +03:00
Nikolai Kochetov
5e4c5dd1c9
Fix functions on low cardinality with cons tesult.
2018-09-20 11:32:33 +03:00
Alexey Milovidov
2236435ed8
Added comment #2770
2018-09-19 23:23:33 +03:00
Alexey Milovidov
68a4ad0034
Added comment #2770
2018-09-19 23:22:58 +03:00
Alexey Milovidov
b396818632
Added comment #2770
2018-09-19 23:20:39 +03:00
Alexey Milovidov
44de6a0317
Improved performance 1.5..1.8 times #2770
2018-09-19 23:07:46 +03:00
alesapin
2b3e29f607
Take header from first block in Squashing stream
2018-09-19 20:39:04 +03:00
VadimPE
89d408224b
fix bug with part_name
2018-09-19 18:07:20 +03:00
VadimPE
2396b44519
fix
2018-09-19 17:44:30 +03:00
Nikolai Kochetov
2df05cf620
Fix native deserealization for nullable low cardinality.
2018-09-19 17:43:07 +03:00
Nikolai Kochetov
b93ea8e7cc
Fixed default value index for LowCardinality(Nullable).
2018-09-19 17:42:59 +03:00
VadimPE
66b4a606d5
fix bug with add new partition in quorum
2018-09-19 17:34:41 +03:00
Alexey Zatelepin
b7cb8d1ae1
write correct columns list when UPDATEd part doesn't contain all columns [#CLICKHOUSE-13]
2018-09-19 16:04:52 +03:00
alesapin
e1c8045055
Fix error with header
2018-09-19 15:56:56 +03:00
chertus
f39d78b0bc
AVG() exception instead of division by zero
2018-09-19 15:11:21 +03:00
CurtizJ
31bf960bfe
add new syntax
2018-09-19 14:18:38 +03:00
Nikolai Kochetov
79e3ae2f75
Fix cast Null to LowCardinality(Nullable). #3066
2018-09-19 14:11:52 +03:00
VadimPE
f05d93897b
Del old class
2018-09-19 14:10:56 +03:00
alesapin
520446df53
Reorder Squashing and adding default output stream in insert
2018-09-19 14:09:12 +03:00
VadimPE
17ffa8c310
fix class for added parts
2018-09-19 14:08:04 +03:00
alesapin
c2f3453fda
Reorder Squashing and adding default output stream in insert
2018-09-19 14:06:42 +03:00
Alexey Zatelepin
badefe14bc
allow ON CLUSTER for ALTER UPDATE #3158
2018-09-19 14:01:09 +03:00
Nikolai Kochetov
1c611e2ad5
Fix low cardinality column deserialization from empty stream. #3114
2018-09-19 13:27:46 +03:00
VadimPE
96b117cb00
Revert "Update ReplicatedMergeTreeQuorumWriter.h"
...
This reverts commit e3add7f0c7
.
2018-09-19 13:23:52 +03:00
CurtizJ
8f7daa75d1
update comments
2018-09-19 12:34:07 +03:00
alexey-milovidov
5ac1c763b1
Merge pull request #3165 from yandex/fix-prewhere-from-storage-merge-over-distributed
...
Fix reading from merge over distributed with prewhere.
2018-09-19 00:10:34 +03:00
Alexey Milovidov
2b74fd8a01
Style #2770
2018-09-18 22:44:15 +03:00
Alexey Milovidov
ead7baa805
Little better #2770
2018-09-18 22:41:42 +03:00
Alexey Milovidov
7b1da2cd73
Improved performance two times #2770
2018-09-18 22:29:29 +03:00
Nikolai Kochetov
501940fa7e
Fix reading from merge over distributed with prewhere.
2018-09-18 22:01:29 +03:00
Alexey Milovidov
9ff5f28de4
Little better #2770
2018-09-18 21:58:05 +03:00
Alexey Milovidov
765b85e021
utils/check-style/check-style -n
2018-09-18 21:52:31 +03:00
Alexey Milovidov
dc7963a957
Merge branch 'alex-krash-function_format_date'
2018-09-18 21:51:14 +03:00
CurtizJ
e4c1ca91c1
update tests
2018-09-18 21:41:54 +03:00
Alexey Milovidov
41bde049ab
Merge remote-tracking branch 'origin/master' into alex-krash-function_format_date
2018-09-18 21:39:02 +03:00
alexey-milovidov
282e9aea45
Merge pull request #3161 from 4ertus2/refactoring
...
Some refactoring - DataTypeWithSimpleSerialization helper class
2018-09-18 21:37:30 +03:00
Anton Popov
f550b21a8f
Merge branch 'master' into CLICKHOUSE-3527
2018-09-18 21:35:54 +03:00
CurtizJ
3177f3f6a9
update ddl guard
2018-09-18 21:33:15 +03:00
Alexey Milovidov
b8cbedee27
Merging #2770
2018-09-18 21:31:43 +03:00
Alexey Milovidov
ac73431451
Formatting; fixed error; fixed memory leak; miscellaneous #2770
2018-09-18 19:42:25 +03:00
chertus
0300256a07
add comment
2018-09-18 19:29:44 +03:00
Alexey Milovidov
dde8ca03cf
Merge branch 'function_format_date' of https://github.com/alex-krash/ClickHouse into alex-krash-function_format_date
2018-09-18 19:19:29 +03:00
Alexey Milovidov
a918461216
Merge branch 'master' of github.com:yandex/ClickHouse
2018-09-18 19:17:36 +03:00
alexey-milovidov
67d559f3ef
Merge pull request #3163 from Bloxy-info/fix-negative-cumsum
...
fix arrayCumSumNonNegative that it does not accumulative negative values
2018-09-18 19:15:15 +03:00
alexey-milovidov
00dbf64176
Update arrayCumSumNonNegative.cpp
2018-09-18 19:14:01 +03:00
Alexey Milovidov
65f074715b
Miscellaneous #3123
2018-09-18 19:12:23 +03:00
chertus
ba2f1a17b2
refactoring: class DataTypeWithSimpleSerialization [CLICKHOUSE-2]
2018-09-18 16:31:51 +03:00
daoready
889d5139ef
fix arrayCumSumNonNegative that it does not accumulative negative values
2018-09-18 14:55:14 +03:00
Alexander Krasheninnikov
64533ff4df
Add support for Date, filled documentation
2018-09-18 03:32:24 +03:00
Alexey Milovidov
599ec4c577
Merge branch 'veloman-yunkan-jsoneachrow_import_nested'
2018-09-17 23:36:01 +03:00
Alexey Milovidov
46ef387ce3
Style #3144
2018-09-17 23:35:21 +03:00
Alexey Milovidov
8852660b24
Merge branch 'jsoneachrow_import_nested' of https://github.com/veloman-yunkan/ClickHouse into veloman-yunkan-jsoneachrow_import_nested
2018-09-17 23:26:43 +03:00