chertus
9c80466230
add comment
2019-04-15 14:22:51 +03:00
alesapin
8cd18c0723
Merge pull request #4991 from yandex/fix_ddl_on_relicated_table
...
Do not send queries received from DDLWorker to leader replica
2019-04-15 13:07:55 +03:00
Anton Popov
7f93f9ad2f
TTL for columns and tables ( #4212 )
...
Add TTL for columns and tables.
2019-04-15 12:30:45 +03:00
Danila Kutenin
b81e0f51f1
fix compilation in clickhouse
2019-04-14 13:37:25 +03:00
chertus
950f8a7042
fix distinct with join
2019-04-12 20:04:38 +03:00
chertus
4192deb5ad
radix sort for asof join
2019-04-12 15:48:00 +03:00
alesapin
f47e3292e1
Do not send queries to leader replica received from DDLWorker
2019-04-12 14:06:05 +03:00
chertus
4707200f83
partially fix distributed_product_mode=local
2019-04-11 22:29:28 +03:00
alexey-milovidov
d083976b88
Merge pull request #4952 from 4ertus2/ast
...
Rewrite ASTSelectQuery (consistent children)
2019-04-11 13:38:44 +03:00
alexey-milovidov
7e7b458eb9
Merge pull request #4938 from 4ertus2/joins
...
Fix unexpected error in case of JOIN + ARRAY JOIN
2019-04-11 13:35:31 +03:00
chertus
ee6c83a2f7
global join: fix wrong name qualification (save replaced table name as alias)
2019-04-10 20:41:19 +03:00
chertus
e53a50e01a
fix pushdown & build
2019-04-09 19:49:52 +03:00
chertus
9329410012
fix use after move
2019-04-09 17:59:06 +03:00
chertus
82dc1fb1db
rewrite ASTSelectQuery (consistent children)
2019-04-09 17:22:35 +03:00
chertus
58d24c0840
join + array join: fix unexpected error
2019-04-08 15:35:26 +03:00
Artem Zuikov
cbb0404d19
Merge pull request #4924 from Gladdy/martijn-asof-speedup
...
Significant speedup of ASOF join
2019-04-06 21:38:46 +03:00
alexey-milovidov
04a163b952
Merge pull request #4922 from yandex/fix-issue-4919
...
Fix types for aggregate functions with low cardinality arguments.
2019-04-06 18:07:25 +03:00
Alexey Milovidov
07334ebad4
Fixed race condition in DNSCacheUpdater
2019-04-06 04:09:15 +03:00
Alexey Milovidov
571bc7065a
Removed unused code related to MemoryTracker
2019-04-06 01:35:56 +03:00
Martijn Bakker
0848f53bed
move the sorted atomic bool first in the class
2019-04-05 21:22:57 +01:00
Martijn Bakker
442c001fd5
fix style
2019-04-05 19:05:24 +01:00
Martijn Bakker
f96a7e401e
remove the list lookup and prevent the global lock
2019-04-05 18:59:48 +01:00
Nikolai Kochetov
523c8e5ec1
Remove LowCardinality from aggregate function argument types. #4919
2019-04-05 19:52:31 +03:00
chertus
aae1e56214
fix typo
2019-04-05 15:57:08 +03:00
chertus
f50a0778fb
fix missing column error message
2019-04-05 15:50:14 +03:00
chertus
e578020bd3
safe tables order in select * with multiple joins
2019-04-04 15:14:10 +03:00
chertus
6b49900e1a
Asterisks for multiple joins CLICKHOUSE-4372
2019-04-03 19:06:05 +03:00
chertus
d5ffbd9b6d
fix multithreaded ASOF JOIN crash
2019-04-02 21:50:35 +03:00
chertus
04efcf2bdc
asof refactoring (searching for the crash reason)
2019-04-02 19:22:14 +03:00
chertus
886e6883e6
fix clang-7 build
2019-04-01 21:37:52 +03:00
chertus
9ed4ac7e82
get rid of macro in AsofRowRefs
2019-04-01 19:44:15 +03:00
Artem Zuikov
b6b9be7b8f
Merge pull request #4867 from Gladdy/martijn-asof-working-bt
...
Return the correct timestamp for the right-hand table of the ASOF join
2019-04-01 15:36:27 +03:00
Artem Zuikov
019c6ca591
Merge pull request #4794 from zhang2014/fix/crash_when_predicate
...
fix crash when predicate optimzer & join on
2019-04-01 15:09:50 +03:00
Martijn Bakker
d4ec3bbf70
fix style
2019-04-01 11:35:37 +01:00
Martijn Bakker
a64b8afc7e
cleanup
2019-04-01 00:09:00 +01:00
Martijn Bakker
27776ca929
fix up wrong assumption that the sample_block_with_keys has same ordering as key_names_right
2019-03-31 22:56:37 +01:00
Martijn Bakker
7ea03f6fa7
appears to work and get the correct timestamps
2019-03-31 22:14:43 +01:00
Martijn Bakker
4a7393cfc6
include the asof column in the block stored. overall not working yet but at least doesnt crash anymore
2019-03-31 20:03:57 +01:00
chertus
11997ed772
fix build
2019-03-31 13:56:54 +03:00
Martijn Bakker
4709b744bb
address the code review issues
2019-03-30 21:30:21 +00:00
Martijn Bakker
3ac66dfdb6
set default asof type value
2019-03-30 13:09:03 +00:00
Martijn Bakker
20e5fb61c4
fix style
2019-03-30 13:02:30 +00:00
Martijn Bakker
4a94545882
add test for multiple supported asof types
2019-03-30 12:52:48 +00:00
Martijn Bakker
7c5febb6aa
Merge branch 'master' into martijn-asof-nomap
2019-03-30 02:02:48 +00:00
Martijn Bakker
389f108807
working multi type asof join columns
2019-03-30 01:32:08 +00:00
alexey-milovidov
0dee8cf79c
Merge pull request #4855 from 4ertus2/joins
...
Fix crash when joining nulluble vs not nullable
2019-03-30 02:15:50 +03:00
Martijn Bakker
89515861df
asof join without using std::map, but still only on u32
2019-03-29 21:20:23 +00:00
Ivan
957d23267b
Minimal implementation of row-level security CLICKHOUSE-4315 ( #4792 )
...
For detailed description see the related PR
2019-03-29 23:31:06 +03:00
alexey-milovidov
cb486da9cd
Merge pull request #4852 from zhang2014/improvement/const_interpreter
...
Const context for insert interpreter
2019-03-29 21:42:35 +03:00
chertus
6bdbf75e30
fix crash when joining nulluble vs not nullable
2019-03-29 21:07:22 +03:00
zhang2014
aab314f154
const insert interpreter
2019-03-29 23:47:16 +08:00
zhang2014
0096ef3524
try fix
2019-03-29 22:25:37 +08:00
Alexey Milovidov
88e94bad74
Removed "assumeMutable" usage in one case
2019-03-29 17:17:29 +03:00
zhang2014
1eb5713a74
fix crash when predicate optimzer & join on
2019-03-29 18:41:26 +08:00
Martijn Bakker
9ac52b9368
fix master merge
2019-03-28 21:06:49 +00:00
Martijn Bakker
46f4557944
Merge branch 'master' into martijn-asof-join
2019-03-28 20:20:17 +00:00
Martijn Bakker
e7a10b8a3e
add inner asof join with tests
2019-03-28 19:31:11 +00:00
Martijn Bakker
817a9244c0
fix up code style
2019-03-28 19:03:57 +00:00
Martijn Bakker
b0fd915724
remove the ASOFSplit struct
2019-03-28 18:35:50 +00:00
chertus
2a5b4b3b31
fix ANY JOIN nulls in right key (ALL JOIN is still affected)
2019-03-27 16:37:11 +03:00
chertus
e92dcd4774
fix clang release build
2019-03-27 01:47:38 +03:00
Martijn Bakker
ac68fc8088
pass the half-enforced style checks such that they cannot be run on a whole file automatically :(
2019-03-26 22:05:51 +00:00
Martijn Bakker
84f40ddf02
fix build as cpp does not do partial function specialization
2019-03-26 20:13:15 +00:00
chertus
274916d944
Merge branch 'master' into nulls
2019-03-26 23:04:39 +03:00
chertus
0a0e986f75
fix crash on join not nullable with nullable
2019-03-26 22:46:03 +03:00
Martijn Bakker
f6987cfa52
have the parser recognize asof joins and feed them through to the executor
...
insert the time series into a struct ready for joining
working version that inserts the data into the hash table using the existing dispatching machinery for various types
working asof left join in clickhouse
add a test for the asof join
do some asof join cleanup
revisit the logic in case the values match between left and right side
2019-03-26 19:17:21 +00:00
alexey-milovidov
b8d9ed6f54
Merge pull request #4723 from 4ertus2/joins
...
Fix LEFT JOIN with const column + lots of Join.cpp refactoring
2019-03-26 19:46:46 +03:00
alexey-milovidov
c2e4942009
Merge pull request #4705 from 4ertus2/ast
...
SelectQueryOptions + fix duplicates in GLOBAL JOIN with asterisks
2019-03-26 19:45:27 +03:00
chertus
aac69eaa2c
Merge branch 'joins' into nulls
2019-03-25 14:54:47 +03:00
proller
d79fd73753
Fix critical naming bug
2019-03-23 14:23:17 +03:00
alexey-milovidov
efc2d91507
Merge pull request #4764 from proller/fix23
...
Move Interpreters/Settings* -> Core/Settings*
2019-03-22 17:49:19 +03:00
alexey-milovidov
b919876a8c
Merge pull request #4758 from yandex/tsan-system-log-fix-race-on-shutdown
...
Fixed TSan report on shutdown
2019-03-22 17:47:35 +03:00
proller
fce9db12b9
Move Interpreters/Settings* -> Core/Settings*
2019-03-22 15:08:30 +03:00
proller
d6d83d4a5c
Allow build without ssl ( #4525 ) ( #4750 )
2019-03-22 14:18:24 +03:00
Alexey Milovidov
41fede9c6b
Fixed TSan report on shutdown
2019-03-21 22:22:38 +03:00
chertus
3e146c7bbd
Merge branch 'master' into joins
2019-03-21 22:01:35 +03:00
chertus
b1f4cc6ed2
fix left join with const column
2019-03-20 20:20:14 +03:00
Nikita Vasilev
c10f10cc0b
Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index
2019-03-20 19:39:18 +03:00
chertus
2ea11f8528
more Joins.cpp refactoring (constexpr if)
2019-03-20 18:52:41 +03:00
chertus
efa4a2bb18
minor changes
2019-03-20 18:15:44 +03:00
chertus
2713d36ce8
syntax: remove tab
2019-03-20 17:49:05 +03:00
chertus
1bb05eb089
more Join.cpp refactoring (hide some logic into AddedColumns)
2019-03-20 17:41:35 +03:00
chertus
2a4da2f687
more refactoring (rename misleading variable)
2019-03-20 16:38:17 +03:00
chertus
e1f015295b
rename functions & add comment
2019-03-20 15:28:45 +03:00
chertus
ef2d77f946
some more refactoring
2019-03-20 15:08:38 +03:00
chertus
e5a9633132
Join.cpp refactoring
2019-03-19 19:53:36 +03:00
chertus
913377fdaf
restore GLOBAL IN column renames
2019-03-18 21:45:49 +03:00
chertus
c9169b0a98
Merge branch 'master' into ast
2019-03-18 20:46:24 +03:00
chertus
1446c50884
fix RowRef initialisation (found by PVS)
2019-03-18 20:43:09 +03:00
chertus
7561ff2ab7
fix dups in GLOBAL JOIN with asterisks
2019-03-18 17:56:33 +03:00
chertus
bd559f8db8
SelectQueryOptions v3 (no inheritance)
2019-03-18 15:05:51 +03:00
chertus
b6e2697101
Merge branch 'master' into ast
2019-03-18 13:36:13 +03:00
Alexey Zatelepin
304c67da99
Merge branch 'master' into fix-add-materialized-column-after
...
Conflicts:
dbms/src/Interpreters/InterpreterCreateQuery.cpp
dbms/src/Interpreters/InterpreterDescribeQuery.cpp
dbms/src/Interpreters/interpretSubquery.cpp
dbms/src/Storages/ColumnsDescription.cpp
2019-03-17 00:46:53 +03:00
alexey-milovidov
ae2d974dda
Merge pull request #4708 from kvap/distributed-limit-by
...
Make the query planner respect LIMIT BY in remote queries
2019-03-16 20:54:06 +03:00
Ivan
8ac3e89628
Merge pull request #4649 from abyss7/iast-as
...
Implement and use method IAST::as<Derived>()
2019-03-15 23:22:46 +03:00
chertus
a63cf1aeef
fix line with PVS warning
2019-03-15 21:04:30 +03:00
chertus
5104665a05
Merge branch 'master' into ast
2019-03-15 19:40:26 +03:00
Alexey Zatelepin
b5a0a3fa23
store all kinds of columns in the same list in ColumnsDescription [#CLICKHOUSE-3101]
2019-03-15 19:37:52 +03:00
Ivan Lezhankin
4f6a494af8
Revert references where they were before refactoring.
2019-03-15 19:14:13 +03:00
chertus
ffc3974934
SelectQueryOptions v2
2019-03-15 18:57:18 +03:00
Constantin S. Pan
df6860d5e0
Make the query planner respect LIMIT BY in remote queries
2019-03-15 15:26:21 +00:00
chertus
53abdccb95
refactoring: extract SelectQueryOptions
2019-03-15 16:49:58 +03:00
Alexey Milovidov
aea3bd2cc9
Fixed potential deadlock in ExternalDictionaries
2019-03-15 03:29:53 +03:00
proller
1a33f4da40
Optional current_thread and memory_tracker ( #4664 )
2019-03-14 21:03:35 +03:00
Ivan Lezhankin
a6ca8bcb10
Merge remote-tracking branch 'upstream/master' into iast-as
2019-03-14 16:05:09 +03:00
alexey-milovidov
f398fb3691
Merge pull request #4661 from 4ertus2/joins
...
Multiple COMMA/CROSS JOINS
2019-03-14 03:10:52 +03:00
alexey-milovidov
f76a9ba4c0
Merge pull request #4654 from bgranvea/create_or_replace_view
...
support for CREATE OR REPLACE VIEW
2019-03-14 02:32:31 +03:00
Ivan Lezhankin
f64118030a
Merge remote-tracking branch 'upstream/master' into iast-as
2019-03-13 17:23:02 +03:00
proller
cf8001b6a9
Fix includes ( #4673 )
2019-03-13 16:58:04 +03:00
Ivan Lezhankin
39f7225bd4
Fix build after merge
2019-03-12 17:07:02 +03:00
chertus
b76e3ad1c4
fix tests
2019-03-12 16:17:17 +03:00
Ivan Lezhankin
4c1a0ca255
Merge remote-tracking branch 'upstream/master' into iast-as
2019-03-12 15:51:18 +03:00
Ivan Lezhankin
67eefa7b12
Revert wrong replacements of dynamic_cast.
...
dynamic_cast to intermediate type is not equivalent to typeid_cast
2019-03-12 15:41:57 +03:00
proller
8227f5fe63
Arcadia fix
2019-03-12 15:06:17 +03:00
chertus
114e55c956
multiple COMMA/CROSS JOIN
2019-03-12 14:06:54 +03:00
chertus
69ed6e549c
Merge branch 'master' into joins
2019-03-11 22:46:21 +03:00
chertus
150fbc43c2
improve CrossToInnerJoinVisitor for multiple JOINS
2019-03-11 22:45:04 +03:00
alexey-milovidov
a4e9c59aa3
Merge pull request #4648 from 4ertus2/joins
...
Refactoring: move JOIN conversions to InterpreterSelectQuery
2019-03-11 22:17:58 +03:00
bgranvea
2029f71869
support for CREATE OR REPLACE VIEW
2019-03-11 17:50:31 +01:00
Ivan Lezhankin
a3a8b2bbf7
Include IAST_fwd.h for using ASTPtr
2019-03-11 17:01:45 +03:00
Ivan Lezhankin
d1ead22073
Rename As<…> → as<…>
2019-03-11 16:22:51 +03:00
Ivan Lezhankin
1e9f7847dc
Merge remote-tracking branch 'upstream/master' into iast-as
2019-03-11 16:11:22 +03:00
chertus
c089d5b88a
CrossToInnerJoinVisitor before JoinToSubqueryTransformVisitor
2019-03-11 16:08:51 +03:00
Ivan Lezhankin
a7e838e328
Replace all other casts to method IAST::As<Derived>
...
Also remove some redundant methods like IsIdentifier() et. al.
2019-03-11 15:49:39 +03:00
chertus
04f5584d72
move JOIn convertions to InterpreterSelectQuery
2019-03-11 15:20:55 +03:00
chertus
09a3b24cbc
join kind helpers
2019-03-11 14:14:09 +03:00
Nikita Vasilev
d171330599
Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index
2019-03-11 13:06:09 +03:00
alexey-milovidov
617a0a8938
Merge pull request #4592 from yandex/fix-concurrent-alters2
...
Fix a race condition during concurrent ALTER COLUMN queries
2019-03-10 19:11:49 +03:00
alexey-milovidov
6db73152d2
Hardening debug build (experimental) ( #4632 )
...
* Hardening debug build: more granular memory mappings and ASLR; add memory protection for mark cache and index
* Addition to prev. revision
* Addition to prev. revision
* Addition to prev. revision
2019-03-10 06:16:51 +03:00
Ivan Lezhankin
0e325c7a4a
Replace const typeid_casts with As<Derived>() method invocations
2019-03-08 12:48:20 +03:00
Nikita Vasilev
a77d20e56d
Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index
2019-03-08 11:13:48 +03:00
Alexey Milovidov
356a5c54b8
Whitespaces
2019-03-08 06:23:34 +03:00
Alex Zatelepin
896b8b15f6
fix build
2019-03-07 23:52:25 +03:00
Alexey Zatelepin
3344955154
separate Read and Write lock holders, better method names
2019-03-07 21:10:21 +03:00
Alexey Zatelepin
ab025805a3
alter intention lock
2019-03-07 20:21:18 +03:00
Nikita Vasilev
fcb82ba901
Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index
2019-03-07 16:55:38 +03:00
Alexey Milovidov
58bfcba361
Merge branch 'master' into dictionaries-dont-check-is-modified-under-lock
2019-03-07 02:46:27 +03:00
alexey-milovidov
b72894d693
Merge pull request #4613 from zlobober/host_context
...
CHYT-67: introduce host context for using CH as a library.
2019-03-07 02:35:15 +03:00
alexey-milovidov
e2fde4f0d8
Merge pull request #4576 from BayoNet/DOCAPI-5203-direct-io-settings
...
DOCAPI-5203 direct i/o settings EN description
2019-03-06 21:34:35 +03:00
Maxim Akhmedov
9a56294fdf
CHYT-67: introduce host context for using CH as a library.
2019-03-06 19:47:47 +03:00
Nikita Vasilev
c428d9a64c
Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index
2019-03-06 16:36:34 +03:00
alexey-milovidov
74f7ef390a
Merge pull request #4595 from 4ertus2/joins
...
Multiple JOINs multiple fixes
2019-03-06 02:55:05 +03:00
chertus
4f80afb158
fix gcc build
2019-03-05 19:34:10 +03:00
Alexey Milovidov
842a9708e9
ExternalDictionaries: don't lock when checking if a dictionary is modified
2019-03-05 19:06:40 +03:00
chertus
049d49333d
undo last change
2019-03-05 18:21:52 +03:00
chertus
22f699c8a0
fix CrossToInnerJoin (empty where crash & where for one table wrong result)
2019-03-05 18:16:59 +03:00
chertus
72fe0115d1
move join convertions to InterpreterSelectQuery
2019-03-05 16:53:39 +03:00
chertus
ea4d3ec661
some multiple join fixes
2019-03-05 15:34:48 +03:00
alexey-milovidov
b311bfb11d
Merge pull request #4583 from yandex/fix-invalidate-query-for-clickhouse-dictionary-source
...
Fix invalidate query for clickhouse dictionary source
2019-03-05 01:27:22 +03:00
chertus
339047fc40
fix multiple joins asterisks qualification
2019-03-04 22:40:58 +03:00