alesapin
e7542810bb
Merge with master
2019-08-19 11:20:48 +03:00
Nikolai Kochetov
b8a5e107df
Merge branch 'master' into try-to-remove-dry-run
2019-08-19 09:09:22 +03:00
Nikolai Kochetov
b85c50e7c3
Fix tests.
2019-08-18 17:55:20 +03:00
alexey-milovidov
f36d20915b
Merge pull request #6529 from yandex/better-signals
...
Better debug-ability of fault signals.
2019-08-18 16:44:54 +03:00
alexey-milovidov
1c9fedb77b
Merge pull request #6530 from yandex/metric-log-rectification
...
Metric log rectification
2019-08-18 16:44:21 +03:00
alexey-milovidov
29cc99ad58
Merge pull request #6194 from yurriy/mysql
...
Compatibility with more MySQL clients.
2019-08-18 16:28:13 +03:00
Nikolai Kochetov
cb848159e1
Merged with master.
2019-08-18 14:52:49 +03:00
Alexey Milovidov
9b48906f16
Rectification of MetricLog: simplified code
2019-08-18 03:34:23 +03:00
Alexey Milovidov
968cbda666
Rectification of MetricLog
2019-08-18 03:25:58 +03:00
Alexey Milovidov
16495bab5b
Rectification of MetricLog
2019-08-18 03:04:58 +03:00
proller
d09c5c871b
Build fixes ( #6491 )
...
* Fix build
* cmake: fix cpuinfo
* Fix includes after processors merge
Conflicts:
dbms/src/Processors/Formats/Impl/CapnProtoRowInputFormat.cpp
dbms/src/Processors/Formats/Impl/ParquetBlockOutputFormat.cpp
dbms/src/Processors/Formats/Impl/ProtobufRowInputFormat.cpp
dbms/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp
* Fix build in gcc8
* fix test link
* fix test link
* Fix test link
* link fix
* Fix includes after processors merge 2
Conflicts:
dbms/src/Processors/Formats/Impl/ParquetBlockInputFormat.cpp
* Fix includes after processors merge 3
* link fix
* Fix likely/unlikely conflict with cython
* Fix conflict with protobuf/stubs/atomicops.h
* remove unlikely.h
* Fix macos build (do not use timer_t)
2019-08-18 01:53:46 +03:00
Alexey Milovidov
833256f310
Don't try to get delay of readonly replicas for AsynchronousMetrics
2019-08-18 00:18:22 +03:00
Nikolai Kochetov
ab4018e98e
Fix test.
2019-08-16 19:56:34 +03:00
chertus
133bd92807
ExpressionAnalyzer.appendJoin() refactoring
2019-08-16 19:50:30 +03:00
Nikolai Kochetov
29f4f83c39
Fix build.
2019-08-16 15:54:50 +03:00
Nikolai Kochetov
7da72261a2
Merge branch 'master' into try-to-remove-dry-run
2019-08-16 15:50:48 +03:00
Nikolai Kochetov
18ad0e7e6b
Merged with master.
2019-08-16 13:55:40 +03:00
Nikolai Kochetov
670c8a3e50
Add alwaysReturnsConstant for IFunctionBase.
2019-08-16 13:41:17 +03:00
Nikolai Kochetov
0eb1a931b4
Add alwaysReturnsConstant for IFunctionBase.
2019-08-16 13:29:33 +03:00
Nikolai Kochetov
08021fe125
Add alwaysReturnsConstant for IFunctionBase.
2019-08-16 12:38:12 +03:00
alexey-milovidov
01a046e8ca
Merge pull request #5053 from nikvas0/nikvas0/index_mutate
...
indices and mutations
2019-08-16 02:44:48 +03:00
alexey-milovidov
a466c7aebd
Merge pull request #6299 from CurtizJ/order-by-efficient
...
Optimizations of ranges selection while reading with enabled optimize_read_in_order.
2019-08-16 02:39:53 +03:00
Alexey Milovidov
cf9b41549d
MetricLog: code cleanups; comments
2019-08-16 02:35:54 +03:00
alexey-milovidov
a70bfa13d4
Merge pull request #6467 from nikitamikhaylov/system_metric_log
...
system.metric_log table
2019-08-16 02:28:53 +03:00
Yuriy
25c882e3cc
fixed unbundled build
2019-08-16 00:22:54 +03:00
Nikolai Kochetov
2ef878d7ce
Add alwaysReturnsConstant for IFunctionBase. Set alwaysReturnsConstant=true for ignore.
2019-08-15 22:31:43 +03:00
Nikita Vasilev
053f0ee78d
fix compilation
2019-08-15 20:46:35 +03:00
alesapin
f988ff538b
Less code
2019-08-15 20:02:04 +03:00
Nikita Vasilev
00a5fe7836
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-08-15 19:48:57 +03:00
Yuriy
c5b6d1f9bf
merged origin/master
2019-08-15 19:48:10 +03:00
Nikita Mikhaylov
2cfbd1e194
reused prev_timepoint
2019-08-15 19:39:18 +03:00
Nikita Mikhaylov
854da3b6a2
ms column added
2019-08-15 19:09:43 +03:00
chertus
47a9424190
Merge branch 'master' into refactoring
2019-08-15 18:32:56 +03:00
chertus
e895251bc6
minor changes
2019-08-15 17:22:33 +03:00
chertus
994f9f3cc6
unify ActionsVisitor: rewrite as InDepthNodeVisitor
2019-08-15 16:54:59 +03:00
chertus
1b500ade45
remove duplicated include
2019-08-15 14:22:19 +03:00
CurtizJ
00d98c51c3
fix limit without order
2019-08-15 14:09:41 +03:00
CurtizJ
6ef3b5f9c7
fix usage of global syntax_result in optimizeReadInOrder
2019-08-15 13:15:04 +03:00
Nikolai Kochetov
90cb316457
Added more comments. Fix operator== in ExpressionActions.
2019-08-15 12:51:53 +03:00
Nikolai Kochetov
09dfc26087
Remove _dummy column at InterpreterSelectQuery::unifyStreams.
2019-08-15 11:50:17 +03:00
Nikolai Kochetov
abfaa9620d
Fix style.
2019-08-15 11:09:18 +03:00
Gleb Novikov
f69ceec04c
Removed redundant include of Interpreters/ActionsVisitor.h
2019-08-15 08:40:08 +03:00
chertus
7c566f317c
refactoring: extract SelectQueryExpressionAnalyzer from ExpressionAnalyzer
2019-08-14 22:30:30 +03:00
CurtizJ
0b3d7d8032
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-08-14 21:26:25 +03:00
CurtizJ
a785d4a435
Merge branch 'master' of https://github.com/yandex/ClickHouse into merging_with_ties_and_with_fill
2019-08-14 20:24:47 +03:00
CurtizJ
72b80fe1f7
merging with master
2019-08-14 20:01:47 +03:00
chertus
047a14a189
one more minor refactoring
2019-08-14 19:53:30 +03:00
CurtizJ
eb3a3f44d0
better avoiding of array join in optimizeReadInOrder
2019-08-14 19:15:03 +03:00
chertus
97d6f2218c
minor refactoring
2019-08-14 18:34:32 +03:00
Nikolai Kochetov
b323f08907
Fix build.
2019-08-14 18:23:57 +03:00
alesapin
e391ce813d
refactoring
2019-08-14 18:20:52 +03:00
Nikolai Kochetov
287eb633b8
Merged with master
2019-08-14 18:16:52 +03:00
Nikolai Kochetov
5131b6af4b
Fix header for joins. Make function randConstant not constant.
2019-08-14 18:14:32 +03:00
Nikolai Kochetov
b5c9be75c4
Materialize constant keys in header.
2019-08-14 18:14:32 +03:00
Nikolai Kochetov
0635188104
Allow constants for RemoteBlockInputStream.
2019-08-14 18:14:32 +03:00
Nikolai Kochetov
e10f198d72
Fix build.
2019-08-14 18:14:32 +03:00
chertus
ddde50c542
minor fixes in includes
2019-08-14 17:06:16 +03:00
CurtizJ
22d9bd06cc
Merge branch 'dmitriiut-WITH_TIES_and_WITH_FILL' of https://github.com/dmitriiut/ClickHouse into merging_with_ties_and_with_fill
2019-08-14 16:40:07 +03:00
alexey-milovidov
e5a40eb493
Merge pull request #6458 from 4ertus2/refactoring
...
More ExpressionAnalyzer refactoring
2019-08-14 16:10:36 +03:00
Nikita Mikhaylov
d1e5fcd281
std::move
2019-08-14 16:08:07 +03:00
Nikita Mikhaylov
15bbf080f3
changes after review
2019-08-14 15:54:41 +03:00
CurtizJ
d44d2d1731
rewrite trash code in optimizeReadInOrder and disable read in order optimization with joins
2019-08-14 15:29:21 +03:00
alesapin
949890ee90
Merged
2019-08-14 12:46:30 +03:00
CurtizJ
94bca8315d
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-08-14 01:41:38 +03:00
Nikita Mikhaylov
eed8dd7138
better
2019-08-13 19:48:23 +03:00
Nikita Mikhaylov
e07f3d9d10
refactor
2019-08-13 19:47:12 +03:00
Nikita Mikhaylov
7dba25ff9d
const
2019-08-13 19:17:18 +03:00
Nikita Mikhaylov
c8970ea6d5
nothing
2019-08-13 17:52:35 +03:00
Nikita Mikhaylov
e9fcccff59
conflict resolved
2019-08-13 17:47:19 +03:00
Nikita Mikhaylov
c69684e807
better
2019-08-13 17:40:19 +03:00
Nikita Mikhaylov
875d7aef8b
better
2019-08-13 17:32:32 +03:00
Nikita Mikhaylov
bbe20b3f9f
done
2019-08-13 17:31:46 +03:00
chertus
87fbc2a5cb
minor improvements
2019-08-13 16:48:09 +03:00
chertus
10a1991855
move getAggregates() into SyntaxAnalyzer
2019-08-13 15:39:03 +03:00
alesapin
bf5ec73582
Fix clang build
2019-08-13 14:40:45 +03:00
alesapin
7b1039568c
Revert old changed
2019-08-13 14:24:18 +03:00
chertus
3d00e4b374
remove wrong logic
2019-08-13 13:56:12 +03:00
alesapin
428c753ed7
Merge with master
2019-08-13 11:37:47 +03:00
Nikita Mikhaylov
9650da43ec
wMerge branch 'master' of github.com:yandex/ClickHouse into atomic_zookeeper2
2019-08-13 11:03:42 +03:00
Nikita Mikhaylov
313f72e41a
remove try catch + submodule update
2019-08-13 11:03:31 +03:00
chertus
f2a03d9d51
several fixes
2019-08-13 03:25:51 +03:00
Alexey Milovidov
60504bc2c8
Change logger_name column in text_log to LowCardinality #6037
2019-08-13 02:47:15 +03:00
chertus
15d2561ac8
more ExpressionAnalyzer refactoring
2019-08-12 22:27:09 +03:00
Nikita Mikhaylov
8328a06eec
update renaming metadata files
2019-08-12 19:20:31 +03:00
Nikita Mikhaylov
fafbd2b188
fix drop with memory engine
2019-08-12 15:56:10 +03:00
Nikolai Kochetov
631bbde420
Merged with master.
2019-08-12 13:19:13 +03:00
Nikita Mikhaylov
fd4638aa64
drop materialized view fixed
2019-08-12 13:13:03 +03:00
alexey-milovidov
27c46be554
Merge pull request #6435 from yandex/batch-aggregator
...
Batch aggregator (experimental)
2019-08-12 04:52:22 +03:00
Alexey Milovidov
2570907f44
Removed useless parameter
2019-08-12 00:45:18 +03:00
Gleb Novikov
381ea6cb6e
Merge branch 'master' into table-constraints
2019-08-11 12:38:34 +03:00
alexey-milovidov
8520288044
Merge pull request #6416 from 4ertus2/some
...
Refactoring: move collectUsedColumns() to SyntaxAnalyzer
2019-08-11 05:16:22 +03:00
Alexey Milovidov
cc5b34d778
Addition to prev. revision
2019-08-11 04:00:54 +03:00
Alexey Milovidov
f00fa640ba
Removed old optimization that is now dominated by the new optimization
2019-08-11 02:40:15 +03:00
Alexey Milovidov
011e50cae6
Removed useless function arguments
2019-08-11 02:27:25 +03:00
Alexey Milovidov
3885cc20b8
Improved performance of aggregation without key
2019-08-11 02:22:23 +03:00
Alexey Milovidov
efa51a6cd9
Batch aggregation (experimental)
2019-08-11 01:36:55 +03:00
alexey-milovidov
838c5e535f
Merge pull request #6433 from yandex/prevent-stack-overflow-in-parser
...
Fixed possible stack overflow in parser
2019-08-10 23:58:54 +03:00
Nikita Vasilev
75e381bde4
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-08-10 23:07:50 +03:00
Alexey Milovidov
afef5c6c70
Added stack protection; added a test
2019-08-10 20:51:47 +03:00
Olga Khvostikova
dd6f48342d
Merge pull request #6428 from yandex/low-cardinality-setting-in-cast
...
Fix behavior low cardinality setting in creating materialized view (Fix #6293 )
2019-08-10 18:26:59 +03:00
kreuzerkrieg
112fc71276
adding -Wshadow for GCC
2019-08-09 23:58:16 +03:00
stavrolia
626b75b6a5
Fix behavior low cardinality setting in creating materialized view
2019-08-09 22:17:19 +03:00
chertus
6491de7edd
forget to remove field in last patch
2019-08-09 19:17:01 +03:00
Nikolai Kochetov
2ae3db7920
Merged with master.
2019-08-09 18:32:44 +03:00
Nikolai Kochetov
9bd949fff5
Convert streams structure to sample block in InterpreterSelectQuery.
2019-08-09 17:57:15 +03:00
chertus
e06c994b0e
refactoring: move collectUsedColumns from ExpressionAnalyzer to SyntaxAnalyzer
2019-08-09 17:50:04 +03:00
Nikolai Kochetov
78516083ac
Remove dry_run flag from InterpreterSelectQuery::executeImpl.
2019-08-09 16:42:58 +03:00
Nikolai Kochetov
a1023bebff
Fix tests.
2019-08-09 16:37:42 +03:00
alesapin
2803fcc2ba
Make atomic settings
2019-08-09 16:07:19 +03:00
Nikita Mikhaylov
636793fd89
better
2019-08-09 15:56:19 +03:00
Nikita Mikhaylov
596a3fe1a8
better
2019-08-09 15:54:47 +03:00
Nikita Mikhaylov
4c85e9f481
atomic drop table
2019-08-09 14:17:33 +03:00
Alexey Milovidov
a6e4b34ab4
Fixed unpleasant code #6401
2019-08-08 23:02:30 +03:00
Alexey Milovidov
1437065c70
Fixed tests and error messages #6351
2019-08-08 22:42:34 +03:00
Alexander Tokmakov
ae6efb23b4
Merge branch 'master' into alter_table_drop_detached_part
2019-08-08 22:31:31 +03:00
alesapin
a03fcd9f12
Make settings values atomic to avoid race conditions
2019-08-08 22:29:56 +03:00
alexey-milovidov
35f4e7cf33
Merge pull request #6351 from 4ertus2/some
...
Disable ANY RIGHT and ANY FULL JOINs by default
2019-08-08 19:16:49 +03:00
Alexander Tokmakov
b5eee531a9
fix setting name
2019-08-08 19:08:43 +03:00
Nikolai Kochetov
9ac401573f
Added InterpreterSelectQuery::getSampleBlockImpl. Disable dry_run.
2019-08-08 18:18:28 +03:00
chertus
391574f361
rename setting + disable ANY INNER JOIN too
2019-08-08 17:20:25 +03:00
alesapin
75c3ed967a
Checking updatable for user settings
2019-08-07 19:13:28 +03:00
Nikolai Kochetov
42c2833932
Added function which calculates header for execution step (InterpreterSelectQuery::getHeaderForExecutionStep). Removed InterpreterSelectQuery:;getSampleBlock from StorageDistributed and StorageMerge.
2019-08-07 16:41:36 +03:00
Nikita Vasilev
90ce4608fb
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-08-06 21:07:13 +03:00
Nikolai Kochetov
e73ea8a131
Make InterpreterSelectQuery::analyzeExpressions static.
2019-08-06 16:00:56 +03:00
alexey-milovidov
9dd9553d73
Merge pull request #6344 from amosbird/c9
...
Optimize Count() Cond.
2019-08-06 13:55:45 +03:00
Amos Bird
9950c9442b
Update
2019-08-06 09:34:49 +08:00
chertus
c909e00865
disable ANY RIGHT and ANY FULL JOINs by default
2019-08-05 22:23:02 +03:00
Nikita Vasilev
4e8ab12816
refactoring
2019-08-05 21:22:44 +03:00
Nikita Vasilev
7b8c0f1750
experiment
2019-08-05 21:06:05 +03:00
Amos Bird
a7db425592
Optimize Count() Cond.
...
Follow up https://github.com/yandex/ClickHouse/pull/6028
2019-08-05 22:15:15 +08:00
chertus
ef7d19e143
better JOIN exception messages #5565
2019-08-05 17:03:14 +03:00
CurtizJ
cfe32ad89b
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-08-04 21:43:00 +03:00
Alexey Milovidov
8c05766888
Attempt to simplify text log
2019-08-04 18:51:04 +03:00
alexey-milovidov
a0599214ef
Merge pull request #6103 from nikitamikhaylov/system_text_log
...
Allow to write ClickHouse text logs into system table.
2019-08-04 17:51:34 +03:00
Nikita Vasilev
4a39538625
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-08-04 16:58:21 +03:00
Alexey Milovidov
8b85e09f06
Removed useless includes
2019-08-04 03:34:43 +03:00
Alexey Milovidov
8b8c59d71b
Simplification of #3796
2019-08-04 03:29:32 +03:00
Alexey Milovidov
224bc4df97
Minor modifications + a comment #3796
2019-08-04 03:12:17 +03:00
alexey-milovidov
b045e85469
Merge pull request #3796 from amosbird/hang
...
Fix materialized view with column defaults.
2019-08-04 03:06:40 +03:00
alexey-milovidov
72e3f35924
Merge pull request #6309 from yandex/compiler-no-defaultlibs
...
Avoid extra dependency in Compiler (used with compile = 1 setting)
2019-08-03 18:46:03 +03:00
alexey-milovidov
349ad17436
Merge pull request #6298 from yandex/aku/uint816-nocache
...
Disable consecutive key optimization for UInt8/16.
2019-08-03 06:23:03 +03:00
Alexey Milovidov
ea98bd4ae2
Avoid extra dependency in Compiler (used with compile = 1 setting)
2019-08-03 06:01:13 +03:00
alexey-milovidov
149ed67462
Merge pull request #6281 from yandex/fix-low-cardinality-aggregate-arguments
...
Fix LowCardinality arguments conversion in AggregateFunctionFactory
2019-08-03 01:50:21 +03:00
alexey-milovidov
f149e3b436
Merge pull request #6277 from yandex/aku/pairnoinit
...
Make PairNoInit a simple struct.
2019-08-02 22:56:12 +03:00
alexey-milovidov
f8980e691e
Merge pull request #6274 from CurtizJ/ttl-old-parts
...
TTL improvements.
2019-08-02 22:51:28 +03:00
alexey-milovidov
3e0ce7df58
Merge pull request #6249 from 4ertus2/joins
...
Fix join_use_nulls. Nulls in JOIN keys issue
2019-08-02 22:07:03 +03:00
CurtizJ
e06a53a5d9
fix ranges selection at reading in order
2019-08-02 20:34:29 +03:00
CurtizJ
5f7ebb18ed
more optimal ranges selection at reading in order
2019-08-02 19:16:18 +03:00
Alexander Kuzmenkov
d808fafa8f
Disable consecutive key optimization for UInt8/16.
...
These types use a FixedHashMap for aggregation, which makes lookup
almost free, so we don't have to cache the last lookup result.
This is a part of StringHashMap PR #5417 by Amos Bird.
2019-08-02 18:37:32 +03:00
chertus
c5a661a05c
undo wrong changes
2019-08-01 22:56:29 +03:00
chertus
94813b21ba
restore names deduplication
2019-08-01 22:48:21 +03:00
chertus
479a0a9c8e
fix case with several same keys in join
2019-08-01 22:39:39 +03:00
Nikolai Kochetov
a8378e8ef0
Fix LowCardinality arguments conversion for AggregateFunctionFactory.
2019-08-01 21:22:38 +03:00
chertus
4072214b5d
fix UB in join keys order
2019-08-01 20:27:51 +03:00
Alexander Kuzmenkov
011150fa8a
Make PairNoInit a simple struct.
2019-08-01 19:54:33 +03:00
Nikita Mikhaylov
241751542e
CamelCase
2019-08-01 19:37:50 +03:00
CurtizJ
82f304f81e
add query 'SYSTEM STOP TTL MERGES'
2019-08-01 18:36:12 +03:00
Nikita Mikhaylov
9dbb758133
better style
2019-08-01 15:40:12 +03:00
Nikita Mikhaylov
406f7a2bfe
done
2019-08-01 14:11:08 +03:00
Igr Mineev
0f1e8404dc
Merge branch 'master' of github.com:yandex/ClickHouse into feature_multiple_disks
2019-08-01 13:42:59 +03:00
Nikita Mikhaylov
a9fea0314e
better style
2019-08-01 13:31:29 +03:00
Igr Mineev
fc79ed86ef
Ready for review
2019-08-01 13:29:14 +03:00
alexey-milovidov
e8cac8ab6e
Merge pull request #6253 from yandex/std-filesystem-2
...
Changed boost::filesystem to std::filesystem
2019-08-01 04:32:40 +03:00
Alexey Milovidov
f3921ce3e0
Changed boost::filesystem to std::filesystem
2019-08-01 01:37:41 +03:00
alesapin
cfbae59701
Merge pull request #6236 from yandex/fix_prewhere_remote
...
Fix bug in prewhere + distributed
2019-07-31 23:22:29 +03:00
chertus
10edd76fe4
fix join_use_nulls results for key columns
2019-07-31 23:19:52 +03:00
alesapin
f70b0ed910
Slightly better
2019-07-31 18:05:21 +03:00
alesapin
aed4e5d1c4
Get type from source column
2019-07-31 17:57:14 +03:00
alesapin
4481bf429f
Remove nulltype from assignment
2019-07-31 17:54:58 +03:00
Nikita Mikhaylov
cac7972837
better
2019-07-31 17:18:59 +03:00
Nikita Mikhaylov
ad4459c4a2
fixed flush_logs + added pretty function
2019-07-31 17:03:23 +03:00
alesapin
2254e6fd32
Fix comment
2019-07-31 15:35:23 +03:00
alesapin
46c1e9d1a2
Use COPY_COLUMN instead of PROJECT
2019-07-31 15:33:58 +03:00
chertus
f402ae5092
Merge branch 'master' into joins
2019-07-31 14:40:19 +03:00
alesapin
e6052ec117
Fix bug in prewhere + distributed
2019-07-31 13:22:56 +03:00
alexey-milovidov
94454e514d
Merge pull request #6211 from 4ertus2/asof
...
Support ASOF JOIN ON syntax
2019-07-31 06:00:22 +03:00
alexey-milovidov
10ab19b2e4
Merge pull request #6231 from yandex/bad-server-shutdown
...
Fixed bad server shutdown
2019-07-31 05:53:11 +03:00
alexey-milovidov
7fd6204114
Merge pull request #6197 from yandex/thread_local_rng
...
Less number of "clock_gettime" calls; fixed ABI compatibility between debug/release in Allocator.
2019-07-31 04:36:30 +03:00
Alexey Milovidov
b6275010f2
Fixed error with server shutdown
2019-07-31 02:12:04 +03:00
alexey-milovidov
cb37c79c41
Merge pull request #6201 from yandex/speed-up-dladdr
...
Introspection functions + better stack traces.
2019-07-31 00:49:16 +03:00
chertus
504d548d79
AnalyzedJoin refactoring
2019-07-30 21:39:37 +03:00
Igr Mineev
7f7b47fc0a
Add check of RW access to paths on start. Add multiple disks tests.
2019-07-30 19:15:57 +03:00
Igr Mineev
31c36efa25
Merge branch 'master' of github.com:yandex/ClickHouse into feature_multiple_disks
2019-07-30 19:13:58 +03:00
Nikita Mikhaylov
e06b3b17b3
some changes to log all text logs
2019-07-30 17:04:18 +03:00
chertus
24fd416084
remove unused ExpressionAnalyzer settings
2019-07-30 14:41:11 +03:00
Amos Bird
6db1c02bfd
Fix materialized view with column defaults.
...
https://github.com/yandex/ClickHouse/issues/448
https://github.com/yandex/ClickHouse/issues/3484
https://github.com/yandex/ClickHouse/issues/3450
https://github.com/yandex/ClickHouse/issues/2878
https://github.com/yandex/ClickHouse/issues/2285
2019-07-30 10:49:54 +08:00
Alexey Milovidov
b5b80fb342
Merge branch 'master' into thread_local_rng
2019-07-30 03:19:48 +03:00
Alexey Milovidov
372c4d89b2
Enabled line numbers in stack traces
2019-07-30 01:26:44 +03:00
chertus
7b4ddd268e
support ASOF JOIN ON syntax
2019-07-29 17:58:36 +03:00
Alexander Tokmakov
3c15b87003
Merge branch 'master' into alter_table_drop_detached_part
2019-07-29 14:29:23 +03:00
Yuriy
f1694a1746
build fix
2019-07-29 03:09:17 +03:00
alexey-milovidov
3e9dd7ed42
Merge pull request #6196 from zlobober/patch-2
...
Fix build under gcc-8.2
2019-07-29 02:21:46 +03:00
Max Akhmedov
5e9ea2a905
Remove spaces from empty line
2019-07-28 20:46:48 +03:00
alexey-milovidov
129e88ee26
Merge pull request #6189 from CurtizJ/order-by-efficient
...
Fix reading in order of sorting key and refactoring.
2019-07-28 19:43:49 +03:00
Alexey Milovidov
856cc1b9c5
Added thread_local_rng
2019-07-28 18:30:38 +03:00
Max Akhmedov
f632a0b241
Fix build under gcc-8.2
2019-07-28 18:12:07 +03:00
Yuriy
b1d5f4ca20
disabled mysql_native_password when password is specified as a plain text as it allows to connect to ClickHouse knowing only SHA1 instead of a password
2019-07-28 17:17:33 +03:00
Yuriy
760afb007c
arbitrary passwords
2019-07-28 16:36:27 +03:00
Yuriy
21ce5331d1
implemented mysql_native_password auth plugin for compatibility with mysqljs
2019-07-28 16:12:26 +03:00
Gleb Novikov
8f4883b0d2
Better constraint exception
2019-07-28 15:33:40 +03:00
CurtizJ
b4991b38bf
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-07-28 04:26:43 +03:00
CurtizJ
d69d68f065
rename setting 'optimize_pk_order' and some functions
2019-07-28 04:16:56 +03:00
Yuriy
383fa25c51
resolved conflict
2019-07-28 02:00:15 +03:00
alexey-milovidov
12a15316fd
Merge pull request #6181 from 4ertus2/joins
...
Fix crop column names in GLOBAL JOIN ON
2019-07-28 00:31:29 +03:00
CurtizJ
08d5ebb54d
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-07-27 10:38:10 +03:00
Nikita Vasilev
7efb1bcb12
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-07-27 10:30:43 +03:00
CurtizJ
60289cd764
fix optimizeSortingWithPK
2019-07-27 03:15:22 +03:00
CurtizJ
cb85721cba
handle ExpressionAnalyzer exceptions, while trying to optimize order by, in case of complicated queries
2019-07-27 03:02:04 +03:00
CurtizJ
b1d981ec3a
better pipeline while reading in pk_order
2019-07-27 01:18:27 +03:00
chertus
9f9ba3a06f
restore cropped names in JOIN ON section for distributed queries
2019-07-26 20:43:42 +03:00
qianlixiang
64d65c0123
Fixed mismatched header of prewhere with sample column
2019-07-26 18:48:42 +08:00
alexey-milovidov
2442e65367
Merge pull request #6124 from yandex/merge-profiler
...
Fixes for query profiler.
2019-07-26 03:51:57 +03:00
alexey-milovidov
a3e4c1d39f
Merge pull request #6131 from 4ertus2/joins
...
Better JOIN ON keys extraction
2019-07-26 02:10:45 +03:00
Alexey Milovidov
f4ec18b30f
Merge branch 'system_text_log' of https://github.com/nikitamikhaylov/ClickHouse into nikitamikhaylov-system_text_log
2019-07-26 01:51:19 +03:00
Alexey Milovidov
0cce86db3f
Merge remote-tracking branch 'origin/master' into merge-profiler
2019-07-26 00:41:24 +03:00
Alexey Milovidov
050db07e3d
Merge branch 'master' into merge-profiler
2019-07-25 22:54:22 +03:00
chertus
554e4ab5b8
fix cross alliasing case with JOIN ON
2019-07-25 22:25:51 +03:00
Alexey Milovidov
93c7f6aedf
Merge branch 'fix_ISSUE5695' of https://github.com/TCeason/ClickHouse into TCeason-fix_ISSUE5695
2019-07-25 19:09:18 +03:00
CurtizJ
b1cc019bd4
fix pipeline
2019-07-25 14:00:14 +03:00
chertus
06076e67a3
Merge branch 'master' into joins
2019-07-25 13:48:32 +03:00
CurtizJ
f5b93eb991
fix order by optimization
2019-07-25 13:45:01 +03:00
alexey-milovidov
a985897a07
Update PredicateExpressionsOptimizer.h
2019-07-25 04:05:16 +03:00
alexey-milovidov
3022c4a759
Update PredicateExpressionsOptimizer.cpp
2019-07-25 04:04:03 +03:00
Alexey Milovidov
4c57405770
Added information about revision to trace log
2019-07-24 23:12:32 +03:00
Alexey Milovidov
cfb2066198
Added information about thread number to trace log
2019-07-24 23:10:23 +03:00
chertus
b3123df58e
use source and joined columns to detect JOIN ON right and left keys
2019-07-24 18:37:37 +03:00
CurtizJ
3d706ec20e
support 'order by' optimiation with simple monotonic functions
2019-07-24 17:23:57 +03:00
Nikita Mikhaylov
38607af95f
nothing interesting
2019-07-24 11:26:23 +03:00
Alexey Milovidov
a3f6b70433
Fixed warning from PVS-Studio
2019-07-23 23:07:33 +03:00
chertus
9da1b0089c
visitor for JOIN ON keys extraction
2019-07-23 22:49:15 +03:00
Alexander Tokmakov
3c2172b750
parse and interpret query
2019-07-23 22:25:10 +03:00
Nikita Mikhaylov
811e3ab241
style check
2019-07-23 17:50:38 +03:00
Alexey Milovidov
1b00e99334
Fixed error with initialization of query profiler
2019-07-23 17:30:14 +03:00
Igr
3e017ec69c
Merge branch 'master' into feature_multiple_disks
2019-07-23 16:38:20 +03:00
Igr Mineev
e967c23adb
Add Space interface for reservation. Add move to volume command
2019-07-23 16:34:17 +03:00
Nikita Mikhaylov
14b384f3e5
Merge branch 'master' into system_text_log
2019-07-23 15:51:04 +03:00
chertus
9baf1bf196
Merge branch 'master' into ast
2019-07-23 13:49:18 +03:00
tai
b01f54ade1
ISSUE-5695: support push down predicate to final subquery
2019-07-23 18:22:07 +08:00
Igr Mineev
2925657f5e
Remove non-alter move command.
2019-07-23 12:38:26 +03:00
Nikita Mikhaylov
61412e7f74
changes after review + update config + resolve build fail
2019-07-23 11:22:38 +03:00
alexey-milovidov
e4ad0da6e3
Merge pull request #4247 from laplab/query-poor-mans-profiler
...
Poor man's profiler on query level [Work in progress]
2019-07-23 03:02:58 +03:00
alexey-milovidov
cd6c15b79f
Merge pull request #6057 from dimarub2000/master
...
CREATE TABLE AS table_function()
2019-07-23 02:50:08 +03:00
chertus
eaa3cb557a
move prefer_alias_to_column_name logic out of parser
2019-07-22 22:21:07 +03:00
Nikita Mikhaylov
daa7fc154f
better includes
2019-07-22 19:21:34 +03:00
Nikita Mikhaylov
a80e066769
better
2019-07-22 19:04:15 +03:00
Nikita Mikhaylov
0f3a4a34b4
test + comment
2019-07-22 18:33:38 +03:00
Nikita Mikhaylov
8289472b98
style improvements
2019-07-22 18:09:33 +03:00
Nikita Mikhaylov
c6667ff888
wip
2019-07-22 16:54:08 +03:00
Dmitry Rubashkin
0320de9132
test and fixes
2019-07-22 16:49:16 +03:00
Dmitry Rubashkin
9ffbf65741
Fix of a fix
2019-07-22 15:50:10 +03:00
Dmitry Rubashkin
42efc1051e
fixes of bad commit
2019-07-22 15:35:29 +03:00
Dmitry Rubashkin
d279a685a9
Merge branch
2019-07-22 15:31:17 +03:00
Dmitry Rubashkin
6c6af60194
Fixes after review
2019-07-22 15:18:53 +03:00
alexey-milovidov
adfc369172
Merge pull request #6082 from vitlibar/fix-segfault-in-reload-outdated
...
Fix segfault in ExternalLoader::reloadOutdated().
2019-07-22 01:28:37 +03:00
Alexey Milovidov
b2961bcc31
Added check for empty number of columns; improved test
2019-07-22 00:19:42 +03:00
Alexey Milovidov
8060993ca2
Removed obsolete comment
2019-07-21 23:40:34 +03:00
Alexey Milovidov
fb0d09c5d3
Rename files
2019-07-21 20:03:58 +03:00
Alexey Milovidov
47058e8e11
Fixed error
2019-07-21 05:13:42 +03:00
Alexey Milovidov
7064fe6678
Merge branch 'master' into Immowelt-ThreeDots
2019-07-21 02:21:55 +03:00
alexey-milovidov
b035edefea
Update InterpreterCreateQuery.cpp
2019-07-20 03:02:18 +03:00
alexey-milovidov
175c4655d8
Merge pull request #6043 from 4ertus2/ast
...
Enable 'input_format_defaults_for_omitted_fields' by default
2019-07-20 00:42:01 +03:00
alexey-milovidov
746fe5cdac
Merge pull request #6073 from yandex/aku/loaddb-race
...
Fix a race condition in parallel table loading.
2019-07-20 00:08:09 +03:00
Vitaly Baranov
e64f8e606d
Add comments.
2019-07-20 00:04:19 +03:00
alexey-milovidov
f18e9592a1
Update ExternalLoader.cpp
2019-07-20 00:03:57 +03:00
Vitaly Baranov
5b879e143f
Fix segfault in ExternalLoader::reloadOutdated().
2019-07-20 00:03:25 +03:00
Yuriy
fa2dfcd71d
better
2019-07-19 21:43:52 +03:00
Alexey Milovidov
9ccf5a7c90
Merge branch 'master' into Immowelt-ThreeDots
2019-07-19 19:54:00 +03:00
chertus
e15f6e9752
Merge branch 'master' into ast
2019-07-19 18:01:09 +03:00
Alexander Kuzmenkov
de72d117ce
Fix a race condition in parallel table loading.
...
ThreadSanitizer reported that a data race occurs when we attach to a
database and load its tables concurrently. Remove the custom code that
waits for all tables to load, and replace it with a local thread pool
and its wait() method.
This changes observable behavior: before, we would load the tables
sequentially when loading the system database, or performing an ATTACH
DATABASE query. Now we always load tables of ordinary databases in
parallel.
2019-07-19 17:35:02 +03:00
Mikhail Filimonov
b9f208d54c
reverse order of cropping and removing sensitive data in query
2019-07-19 15:50:11 +02:00
Dmitry Rubashkin
1aca3da121
Fixed inegration
2019-07-19 16:28:28 +03:00
CurtizJ
2797c16930
fix prewhere at fetching columns
2019-07-19 13:14:27 +03:00
Mikhail Filimonov
f13e18d4fb
atomic masker in channel
2019-07-19 10:23:51 +02:00
Mikhail Filimonov
9c2ae4513d
SensitiveDataMasker
2019-07-19 10:22:42 +02:00
CurtizJ
b9dc472071
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-07-19 01:09:59 +03:00
dimarub2000
20a846d753
Merge branch 'master' of github.com:yandex/ClickHouse
2019-07-18 21:52:18 +03:00
Dmitry Rubashkin
7382cb41fa
CREATE TABLE AS table_function()
2019-07-18 21:29:49 +03:00
CurtizJ
a3d25790bd
basic implementation of reading in pk order and 'order by' optimization
2019-07-18 17:41:11 +03:00
alexey-milovidov
a20a39caac
Merge pull request #6036 from vitlibar/remove-unnecessary-try-catch
...
Remove unnecessary try catch
2019-07-17 23:34:37 +03:00
alexey-milovidov
f6c636ce2e
Merge pull request #6039 from nikitamikhaylov/metrics_task
...
AsynchronousMetrics: add a metric for number of databases and total number of tables.
2019-07-17 22:34:37 +03:00
alexey-milovidov
aaee4724c3
Update AsynchronousMetrics.cpp
2019-07-17 22:34:29 +03:00
chertus
fbc0c87c18
enable input_format_defaults_for_omitted_fields & disable (not working) defaults for table functions
2019-07-17 21:30:17 +03:00
Alexey Milovidov
dd97878107
Style
2019-07-17 20:19:55 +03:00
Ivan
af44506ab4
Do not show virtual columns in DESCRIBE TABLE
2019-07-17 18:45:32 +03:00
Nikita Mikhaylov
44db7badbe
done
2019-07-17 18:36:28 +03:00
Alexey Milovidov
eb625cba11
Merge remote-tracking branch 'origin/master' into Immowelt-ThreeDots
2019-07-17 17:49:21 +03:00
alexey-milovidov
ea28254711
Merge pull request #5964 from nikitamikhaylov/logs_bugfix
...
"send_logs_level" bugfix
2019-07-17 17:42:54 +03:00
Vitaly Baranov
ee2fd91e8f
Merge branch 'master' into remove-unnecessary-try-catch
2019-07-17 16:10:58 +03:00
Vitaly Baranov
a01fa50a93
Merge pull request #6011 from vitlibar/check-dictionaries-for-modification-with-unlocked-mutex
...
Check dictionaries for modification with unlocked ExternalLoader::mutex
2019-07-17 16:06:25 +03:00
Vitaly Baranov
503553cbe4
Check dictionaries for modification with unlocked ExternalLoader::mutex
2019-07-17 11:40:35 +03:00
Vitaly Baranov
6d563c51e6
Remove unnecessary try-catch in the constructors of classes derived from IExternalLoadable.
2019-07-17 11:39:36 +03:00
Alexey Milovidov
ef6c7ea5be
Merge COLUMNS matcher (incomplete)
2019-07-16 23:05:00 +03:00
alexey-milovidov
503556ae53
Update ExpressionAnalyzer.cpp
2019-07-16 22:22:05 +03:00
alexey-milovidov
d0c088b9cc
Update ExpressionAnalyzer.cpp
2019-07-16 22:16:25 +03:00
Amos Bird
9fa955403b
Optimize count()
...
Choose the smallest column to count if possible.
2019-07-17 02:29:17 +08:00
Vitaly Baranov
b74dacf9c4
Check dictionaries for modification with unlocked ExternalLoader::mutex
2019-07-16 20:47:18 +03:00
Alexey Milovidov
3793c3cd13
Merge branch 'ThreeDots' of https://github.com/Immowelt/ClickHouse into Immowelt-ThreeDots
2019-07-16 19:41:05 +03:00
alexey-milovidov
14dc9ad801
Merge pull request #6024 from yandex/check_table_old_behaviour
...
Add settings for check query backward compatibility
2019-07-16 15:19:55 +03:00
alesapin
27447d4816
Fix style
2019-07-16 13:50:59 +03:00
Igr Mineev
21e0bec3d0
Merge remote-tracking branch 'upstream/master' into feature_multiple_disks
2019-07-16 13:45:07 +03:00
alesapin
f786c45ac4
Add settings for check query backward compatibility
2019-07-16 13:19:37 +03:00
Yuriy
1d6e31be4d
merged master
2019-07-16 10:33:25 +03:00
Yuriy
c370de432a
better
2019-07-16 10:28:53 +03:00
Yuriy
4df72f18ce
writing packets in parts
2019-07-16 09:39:18 +03:00
Alexey Milovidov
b3c0292613
Fixed error; added test
2019-07-15 19:32:52 +03:00
Nikita Mikhailov
cc5f87e352
Merge branch 'master' of github.com:yandex/ClickHouse into logs_bugfix
2019-07-15 19:31:54 +03:00
Alexey Milovidov
4d14f8c230
Fixed error in query_id printing
2019-07-15 04:07:01 +03:00
alexey-milovidov
a93c76837e
Merge pull request #5953 from abyss7/fix-filter-table
...
Implement getDatabaseName() and rename() for all storages
2019-07-13 00:51:39 +03:00
Maxim Fridental
bb40d4729c
Implement COLUMNS clause
2019-07-12 13:17:38 +02:00
alexey-milovidov
a3dda4053f
Merge pull request #5979 from vitlibar/read-prefix-before-blocks-while-executing-subquery
...
Fix using a table powered by the File engine in a subquery.
2019-07-12 03:20:31 +03:00
Nikolai Kochetov
e9f3d4d6b8
Merge pull request #4914 from yandex/processors
...
Processors
2019-07-11 19:22:02 +03:00
Vitaly Baranov
001e4daf25
Read prefix before blocks while executing subquery.
2019-07-11 16:53:26 +03:00
Nikita Lapkov
9d540abc84
refactor
2019-07-10 20:47:39 +00:00
Ivan Lezhankin
998aa795fc
Merge remote-tracking branch 'upstream/master' into fix-filter-table
2019-07-10 18:14:15 +03:00
NIKITA MIKHAILOV
865606b83c
bugfix client logs + some tests
2019-07-10 16:15:22 +03:00
Ivan Lezhankin
befb3ce15b
Merge branch 'master' into fix-filter-table
2019-07-10 13:27:26 +03:00
Alexey Milovidov
499d798b34
Remove "clickhouse_compression" library because it is not a library (cyclic dependency via IDataType)
2019-07-10 00:37:43 +03:00
Ivan Lezhankin
8a600c39af
Fix build for gtests
2019-07-09 21:53:16 +03:00
Ivan Lezhankin
9f01fa7aaa
Implement getDatabaseName() and rename() for all storages
2019-07-09 18:40:21 +03:00
alesapin
6a3b543e10
Merge branch 'master' of github.com:yandex/ClickHouse into fix_fetch_of_existing_part
2019-07-09 11:21:44 +03:00
alexey-milovidov
d6afdd5a8d
Merge pull request #5941 from 4ertus2/bugs
...
Fix wrong array_join_columns calculation
2019-07-09 03:58:36 +03:00
alexey-milovidov
a8d8eb6b28
Merge pull request #5921 from yandex/pvs-studio-fixes-4
...
A few fixes for PVS-Studio
2019-07-09 01:10:05 +03:00
chertus
ef41b16a44
fix wrong ExpressionAnalyzer.array_join_columns calculation
2019-07-08 23:06:17 +03:00
Alexey Milovidov
e07235e294
Addition to prev. revision
2019-07-08 21:55:06 +03:00
Alexey Milovidov
886e8ea0d4
Merge branch 'master' into pvs-studio-fixes-4
2019-07-08 19:58:42 +03:00
Nikolai Kochetov
209793c981
Merged with master.
2019-07-08 16:00:54 +03:00
Nikolai Kochetov
472f32f718
Remove ThreadGroupThreadPoolCallbacks
2019-07-08 15:49:52 +03:00
Alexey Milovidov
f40b70884f
Two more fixes for PVS-Studio
2019-07-08 05:14:32 +03:00
Alexey Milovidov
4752dae9bb
Allowed unresolvable addresses in cluster configuration #5714
2019-07-08 04:43:41 +03:00
Alexey Milovidov
553e6a273e
Two more fixes for PVS-Studio
2019-07-08 03:51:43 +03:00
Vitaliy Zakaznikov
24a3726235
Merge branch 'master' of https://github.com/vzakaznikov/ClickHouse into liveview
2019-07-07 20:03:14 -04:00
Vitaliy Zakaznikov
259a95a3da
* Updates to fix issues after the merge
2019-07-07 19:57:58 -04:00
Alexey Milovidov
bba2641bd0
A few fixes for PVS-Studio
2019-07-08 02:25:15 +03:00
Nikita Lapkov
e935cb08a8
Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler
2019-07-07 01:06:10 +00:00
Nikita Lapkov
3828684f7a
style
2019-07-06 20:42:03 +00:00
Nikita Lapkov
ef1d84b35a
do not run trace collector without trace_log. do not run query profilers without trace collector.
2019-07-06 20:29:00 +00:00
Alexey Milovidov
338c0d27ca
Added "os_thread_priority" setting
2019-07-06 21:02:28 +03:00
Nikita Lapkov
17e3542a5a
refactor
2019-07-05 22:35:09 +00:00
Nikita Lapkov
aaea6cbfc9
Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler
2019-07-05 21:37:31 +00:00
alexey-milovidov
78c61ab772
Merge pull request #5890 from yandex/dns-cache-updater-allow-drift
...
Allow time drift in DNSCacheUpdater for natural randomization
2019-07-05 21:27:24 +03:00
Alexey Milovidov
0225cb0089
ThreadStatus: removed bad and questionable code
2019-07-05 17:15:05 +03:00
Nikita Lapkov
b8585a5630
refactor and comments
2019-07-05 13:48:47 +00:00
CurtizJ
a49112a14e
Merge branch 'master' of https://github.com/yandex/ClickHouse into order-by-efficient
2019-07-05 16:41:48 +03:00
Alexey Milovidov
5c3cd40db3
Allow time drift in DNSCacheUpdater for natural randomization
2019-07-05 16:20:21 +03:00
alexey-milovidov
2469ec1af3
Merge pull request #5857 from CurtizJ/dns-cache
...
Implement dns cache with asynchronous update.
2019-07-05 15:56:26 +03:00
alexey-milovidov
8b62c96989
Merge pull request #5859 from 4ertus2/joins
...
Fix FULL|RIGHT JOIN with nulls in right table's keys
2019-07-05 14:23:35 +03:00
CurtizJ
410b62f7fa
Merge branch 'clickhouse-4013' of https://github.com/anrodigina/ClickHouse into order-by-efficient
2019-07-05 13:48:04 +03:00
Nikita Lapkov
0f579860f7
Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler
2019-07-04 22:13:51 +00:00
Gleb Novikov
71c2ca0fe9
Merge branch 'master' into table-constraints
2019-07-04 22:40:00 +03:00
Nikolai Kochetov
72afe9b842
Fix heap-use-after-free in ClusterCopier caused by watch which try to use already removed copier object.
2019-07-04 17:48:40 +03:00