Commit Graph

13852 Commits

Author SHA1 Message Date
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
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
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
5cc8e802d5 Added test #3205 2018-09-25 00:02:40 +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
robot-clickhouse
ca465cd20b Auto version update to [18.14.0] [54409] 2018-09-24 20:52:21 +03:00
zhang2014
f3dcc2ef41 ISSUES-3145 support qualified asterisk 2018-09-24 23:28:18 +08:00
chertus
f09970ff70 add test for inner join [CLICKHOUSE-4001] 2018-09-24 16:55:26 +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
bb654ff307 Fixed trash #3195 2018-09-22 21:12:14 +03:00
Alexey Milovidov
b972742f9a Fixed bad code; updated docs #3195 2018-09-22 21:07:27 +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
9ee53caee0 add test [#CLICKHOUSE-2837] 2018-09-21 19:45:57 +03:00
Alexey Zatelepin
c2c12f22f7 try to immediately delete the part after checksums mismatch [#CLICKHOUSE-2837] 2018-09-21 19:07:21 +03:00
alesapin
2e1f4737f0 Add test 2018-09-21 17:49:27 +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
proller
0047987333 CLICKHOUSE-3885: add partition_key alias (#3166)
* Allow run integration tests from ctest: cmake .. -DENABLE_TEST_INTEGRATION=1 && ninja && ctest -V -R integration

* CLICKHOUSE-3885: add partition_key alias

* fix

* Update ClusterCopier.cpp

* Better test

* fixing..
2018-09-21 13:46: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
7d291142ec Less dependencies [#CLICKHOUSE-2] 2018-09-20 23:51:21 +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
f558d5b2df
Update 00720_with_cube.sql 2018-09-20 20:35:54 +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
5f2db689dc fix tests 2018-09-20 19:32:07 +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
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
Nikolai Kochetov
d8a9525cf9 Added test with low acrdinality and array functions. #3004 2018-09-20 16:53:29 +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
19d00cde7e Added test for low cardinality with in function. #3004 2018-09-20 13:57:52 +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
2878f39e1e Added performance tests #3176 2018-09-19 23:48:25 +03:00
Alexey Milovidov
200860724e More tests #3176 2018-09-19 23:36:32 +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
cf195ed832 Fix test 2018-09-19 20:52:09 +03:00
alesapin
2b3e29f607 Take header from first block in Squashing stream 2018-09-19 20:39:04 +03:00
Nikolai Kochetov
bb570fa1a8 Fix low cardinality serialization test reference. 2018-09-19 17:43:12 +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
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
alesapin
bb4be0515b Add test for segfault 2018-09-19 15:18:10 +03:00
chertus
f39d78b0bc AVG() exception instead of division by zero 2018-09-19 15:11:21 +03:00
CurtizJ
fe0bdbe42c fix test 2018-09-19 15:07:55 +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
alesapin
520446df53 Reorder Squashing and adding default output stream in insert 2018-09-19 14:09:12 +03:00
alesapin
c2f3453fda Reorder Squashing and adding default output stream in insert 2018-09-19 14:06:42 +03:00
Nikolai Kochetov
926dfa82f3 Added test for low cardinality alter add column. #3066 2018-09-19 14:05:21 +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
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
chertus
fee5f24326 test for decimal + column defaults [CLICKHOUSE-3765] 2018-09-18 15:08:54 +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
alexey-milovidov
006119b81d
Merge pull request #3155 from yandex/fix-float-parsing-with-custom-csv-delimiter
Fix float parsing with custom csv delimiter
2018-09-17 22:39:45 +03:00
CurtizJ
43951e4879 add test 2018-09-17 22:16:51 +03:00
alexey-milovidov
c275764647
Merge pull request #3124 from yandex/CLICKHOUSE-3800
CLICKHOUSE-3800: Enable compilation to llvm by default
2018-09-17 21:50:45 +03:00
alexey-milovidov
ded83c215c
Merge pull request #3150 from splichy/fix-storage-kafka-arg-schema
Fix Storage Kafka: Schema positional argument number
2018-09-17 21:49:48 +03:00
alexey-milovidov
c6f90523de
Merge pull request #3153 from 4ertus2/decimal
E-notation for decimal input [issue-3135]
2018-09-17 21:49:00 +03:00
alexey-milovidov
4bcc2f3600
Merge pull request #3154 from yandex/fix-hash-ranged-storage-dictionary
Fix hash ranged storage dictionary
2018-09-17 21:47:56 +03:00
Alexey Milovidov
c96464ca8e Added test #3142 2018-09-17 21:22:56 +03:00
Alexey Milovidov
c00147f37d Fixed parsing of floats in CSV file with custom delimiter #3142 2018-09-17 21:17:30 +03:00
Alexey Milovidov
8ba2ec9365 Merge branch 'master' of github.com:yandex/ClickHouse 2018-09-17 21:13:00 +03:00
Alexey Milovidov
20326bdcda Added comment #3142 2018-09-17 21:12:50 +03:00
Nikolai Kochetov
e0521b1abd Fix range boundaries for RangeHashed dictionary. 2018-09-17 21:06:01 +03:00
CurtizJ
8c9fe80d2d add modificator cube 2018-09-17 21:01:04 +03:00
chertus
7db097a49a support e-notation for decimal input [issue-3135] 2018-09-17 20:07:38 +03:00
Alexandr Krasheninnikov
ff9ff462fc Add tests 2018-09-17 20:02:12 +03:00
alexey-milovidov
13779bc75d
Merge pull request #3152 from zhang2014/fix/ISSUES-3149
ISSUES-3149 fix incorrectly masks rows in views
2018-09-17 18:57:47 +03:00