Alexander Tokmakov
9e566d997e
fix insert select from mysql(...)
2019-12-16 17:28:44 +03:00
Alexander Tokmakov
55f60a6bad
hold shared pointers to table function Storage and Context from InterpreterSelectQuery
2019-11-15 21:42:32 +03:00
alesapin
40a5cf4bb9
Forbidden to use column name more than once in insert query.
2019-11-08 12:57:32 +03:00
Ivan
7ba4e36e73
Don't push to MVs when inserting into Kafka table ( #7265 )
...
* Do not insert values into MV when inserting directly to Kafka
* Add method noPushingToViews() to IStorage interface
To separate InterpreterInsertQuery and StorageKafka
2019-10-22 13:31:28 +03:00
Nikolai Kochetov
8dd8ab7d1f
Use header in native format created in InterpreterSelectQuery. Fill missed columns in Native format.
2019-09-10 19:31:41 +03:00
CurtizJ
7accc09066
Merge branch 'palasonic-add-input-function' of https://github.com/palasonic1/ClickHouse into merging_input_function
2019-09-04 15:25:20 +03:00
Alexey Milovidov
aac0b27daa
Fixed possible deadlock in distributed queries
2019-08-31 15:18:14 +03:00
Ivan
5851316742
Don't interrupt copyData() used inside Kafka materialized views ( #6597 )
...
* Print better offsets on commit
* Stop consumption on the read buffer level
* Don't use cancellation in the middle of copyData()
* Add test
* Disable squashing stream for Kafka materialized views
* Commit last read message, since rdkafka auto-modifies offset
2019-08-29 18:36:07 +03:00
Alexey Milovidov
17a1938f0f
Addition to prev. revision
2019-08-25 01:04:36 +03:00
Alexey Milovidov
3fef8e92ad
Merging CONSTRAINTS support
2019-08-25 00:20:20 +03:00
Gleb Novikov
381ea6cb6e
Merge branch 'master' into table-constraints
2019-08-11 12:38:34 +03:00
Alexey Milovidov
afef5c6c70
Added stack protection; added a test
2019-08-10 20:51:47 +03:00
Gleb Novikov
8f4883b0d2
Better constraint exception
2019-07-28 15:33:40 +03:00
Dmitry Rubashkin
7382cb41fa
CREATE TABLE AS table_function()
2019-07-18 21:29:49 +03:00
Gleb Novikov
71c2ca0fe9
Merge branch 'master' into table-constraints
2019-07-04 22:40:00 +03:00
Ivan Lezhankin
9fd048cdbd
Allow to select virtual columns in materialized view
2019-06-18 19:32:37 +03:00
palasonicq
ea86a758a1
Added some improvements after code review
2019-05-30 23:12:44 +03:00
Gleb Novikov
9e6625441c
Returned context to CheckConstraintsBlockOutputStream constructor
2019-05-19 10:19:44 +03:00
Gleb Novikov
d1492fc05d
Removed context from CheckConstraintsBlockOutputStream
2019-05-19 10:17:06 +03:00
Gleb Novikov
300ec160f4
Constraints MVP
2019-05-19 08:27:00 +03:00
zhang2014
aab314f154
const insert interpreter
2019-03-29 23:47:16 +08: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 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
chertus
53abdccb95
refactoring: extract SelectQueryOptions
2019-03-15 16:49:58 +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
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
Ivan Lezhankin
0e325c7a4a
Replace const typeid_casts with As<Derived>() method invocations
2019-03-08 12:48:20 +03:00
Alexey Zatelepin
3344955154
separate Read and Write lock holders, better method names
2019-03-07 21:10:21 +03:00
Alexey Zatelepin
0d7ab9e3ea
allow acquiring read lock to a table out of order if it was already locked by the same query [#CLICKHOUSE-3789]
...
this is important in preventing ALTER deadlocks
2019-02-27 21:34:38 +03:00
Vitaly Baranov
76aae5f5d0
Add support for settings 'format_schema' in a "INSERT INTO table FORMAT" query.
2019-02-20 05:32:29 +03:00
alesapin
dc98b50f14
Fix HTTP insert
2019-02-08 16:24:24 +03:00
alesapin
b0a77ff3f7
Allow to insert from any format
2019-02-07 16:58:36 +03:00
alesapin
48bd750856
Fix perf-test input data and refactor two tests
2019-02-07 16:18:04 +03:00
Alexey Milovidov
19f4652959
Fixed bugs found by PVS-Studio
2019-01-09 18:44:20 +03:00
chertus
3db00b7b98
Merge branch 'master' into issue-3578
2018-12-05 14:43:14 +03:00
Ivan Lezhankin
8b5a05947c
Remove redundant information from RWLock.
...
And fix broken exception in some race conditions
2018-11-28 18:50:52 +03:00
chertus
65d34ca231
do not override current_database in context [CLICKHOUSE-3578]
2018-11-15 18:03:13 +03:00
chertus
2fe3cdb3f5
restore lost commits [CLICKHOUSE-3578]
2018-11-12 17:52:30 +03:00
chertus
d2518fdb3f
more refactoring: funcs to extract database_and_table from AST
2018-10-29 22:04:28 +03:00
alesapin
94287f3199
Finally fixed
2018-09-20 18:35:52 +03:00
alesapin
c13ffed085
Remove redundant changes
2018-09-20 16:26:32 +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
2b3e29f607
Take header from first block in Squashing stream
2018-09-19 20:39:04 +03:00
alesapin
e1c8045055
Fix error with header
2018-09-19 15:56:56 +03:00
alesapin
520446df53
Reorder Squashing and adding default output stream in insert
2018-09-19 14:09:12 +03:00