Commit Graph

116 Commits

Author SHA1 Message Date
Azat Khuzhin
a110e0f022 Allow to ignore errors while pushing to MATERILIZED VIEW
This can be useful in the following scenarious:

- you want to duplicate the data to another table and you don't care
  about the errors
- you want to duplicate system.*_log to another server, you are adding
  materialized view that will push to Distributed table, but you don't
  want to miss original blocks in the local system.*_log
- you want to push some data to a 3d party service, using i.e. URL
  engine.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-02-21 16:28:38 +01:00
Dale Mcdiarmid
9c4d3e0ffb link docs to blogs 2023-01-17 15:38:10 +00:00
Smita Kulkarni
1f89db78a5 Added is_create_parameterized_view flag in ActionsVisitor, added functions for column manipulation for parameterized view in StorageView, updated tests to fix flaky test issues and addressed small review comments- 40907 Parameterized views as table functions 2023-01-03 11:00:39 +01:00
Smita Kulkarni
953e1068b5 Merge branch 'master' into 40907_Parameterized_views_as_table_functions 2022-11-28 19:10:32 +01:00
Camilo Sierra
ca3f819401
Update docs/en/sql-reference/statements/create/view.md
Co-authored-by: Dan Roscigno <dan@roscigno.com>
2022-11-23 16:53:21 +01:00
Camilo Sierra
bbf311ea94
We can not update the select query
An issue was opened as the select query was not updated after the alert of the view was executed, this is because the select gets ignored, the only way to change it is DROP/CREATE the view again.
So I want to add this information into our doc.
2022-11-18 12:31:33 +01:00
Smita Kulkarni
3034229c37 Merge branch 'master' of github.com:ClickHouse/ClickHouse into 40907_Parameterized_views_as_table_functions 2022-10-17 18:37:31 +02:00
Smita Kulkarni
614fd4cf42 Added is_parameterized_view to Context and removed flag from ASTs, updated to use tryGetTable, addressed review comments - 40907 Parameterized views as table functions 2022-10-17 18:11:22 +02:00
Alexey Milovidov
b9159db82f Remove temporary live views 2022-10-08 00:16:36 +02:00
Smita Kulkarni
ec95294621 Merge branch 'master' into 40907_Parameterized_views_as_table_functions 2022-10-05 11:48:14 +02:00
Reinaldy Rafli
b52d58dcae
docs(statements): specify ON CLUSTER clause for CREATE ROLE 2022-10-02 09:51:17 +07:00
Dan Roscigno
4f23f6ef25
fix other links
Co-authored-by: Yakov Olkhovskiy <99031427+yakov-olkhovskiy@users.noreply.github.com>
2022-09-27 14:07:35 -04:00
Smita Kulkarni
bbc33a54b2 Addressed review comments - 40907 Parameterized views as table functions
Implementation
* Fix for clang-today build fails - updated to use const in Context.cpp & const function in ActionsVisitior.cpp
* Updated to use QueryParameterVisitor to check if query has query parameters
* Updated executeTableFunction to check if table/table exists instead of try-catch approach
* Fixed small review comments and style comments.
Documentation:
* Addressed review comments and added the LIVE view part which was removed by mistake in the previous commits.
2022-09-27 16:30:59 +02:00
DanRoscigno
4be153cbd3 fix link from intro 2022-09-27 10:21:35 -04:00
Smita Kulkarni
f801772a86 40907 Parameterized views as table functions
Implementation:
* Updated parsers by adding a bool allow_query_parameters while creating ordinary view, which is used in interpreters to allow query parameters in SELECT.
* Added a check in ActionsVisitor if multiple parameters have same names while creating parameterised view.
* Added bool in StorageView to represent parameterized view.
* Updated processing of SELECT with parameter values to check for views and added substitution of values in the query parameters.

Testing:
* Added a test tests/queries/0_stateless/02428_parameterized_view.sql

Documentation:
* Updated the english documentation for VIEW.
2022-09-23 14:04:43 +02:00
DanRoscigno
5b5fcc56aa add slugs 2022-08-28 10:53:34 -04:00
Vxider
0246a3f415 Merged with master 2022-06-04 17:22:22 +00:00
rfraposa
869967de41 Remove H1 anchor tags from docs 2022-06-02 04:55:18 -06:00
Vxider
2232d47c5a update windowview doc for alter, inner engine, and populate 2022-05-28 12:23:30 +00:00
rfraposa
8f01fe9c49 Revised /en folder 2022-04-09 07:34:21 -06:00
rfraposa
5250d9ad11 Removed /ja folder, cleaned up /ru markdown 2022-04-09 07:29:05 -06:00
Alexey Milovidov
9854b55835
Revert "Format changes for new docs" 2022-04-04 02:05:35 +03:00
rfraposa
560471f991 Update /sql-reference docs 2022-03-29 22:06:21 -06:00
Vxider
7eb18ea21e watch events support for window view 2021-12-12 07:45:55 +00:00
vxider
52fa82b4d4 rename window-view function to time window function 2021-12-10 09:43:44 +00:00
Vxider
b74af1af5d fix window view docs 2021-12-10 00:51:31 +08:00
vxider
eb759c83f6 window view docs improvement 2021-12-08 14:43:26 +00:00
vxider
ed17afbdb3 rename window function to window view function 2021-12-07 10:31:49 +00:00
vxider
03dc76da15 add window view doc(en) 2021-12-07 10:05:19 +00:00
Roman Bug
bb5c92276d
Update docs/en/sql-reference/statements/create/view.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-10-01 18:26:09 +03:00
Roman Bug
50ef202b12
Update docs/en/sql-reference/statements/create/view.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-10-01 18:25:57 +03:00
romanzhukov
c0ba8d1a04 Fix crosslink. 2021-09-29 21:31:18 +03:00
romanzhukov
e312156b1c Add note about Materialized views 2021-09-29 17:52:39 +03:00
olgarev
2570e270d7
DOCSUP-13593: Alter view (#28911)
* Alter mv and lv (en)

* Translated to Russian. Fixes.

* Fixes

* Update docs/en/sql-reference/statements/alter/view.md

Co-authored-by: Ivan Blinkov <github@blinkov.ru>

Co-authored-by: Ivan Blinkov <github@blinkov.ru>
2021-09-17 12:07:32 +03:00
Thomas Berdy
e5511944bc
doc: Warn about MV using column names during insertion 2021-08-27 18:40:35 +02:00
Alexey Milovidov
d87d833691 Remove trailing whitespaces from docs 2021-07-29 18:20:55 +03:00
Romain Neutron
7b515c7235
Avoid short syntax 2021-05-27 21:44:11 +02:00
michon470
27fdd823ba
Update docs/en/sql-reference/statements/create/view.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-03-29 00:16:02 +03:00
michon470
5b865a15ea
Update docs/en/sql-reference/statements/create/view.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-03-29 00:15:48 +03:00
michon470
ca071ec971
Update docs/en/sql-reference/statements/create/view.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-03-29 00:13:59 +03:00
michon470
d8931e504e
Merge branch 'master' into kuriatnikovm-DOCSUP-7105-translate_changes 2021-03-25 16:32:39 +03:00
alexey-milovidov
06ce573c3c
Update view.md 2021-03-22 23:44:31 +03:00
Mikhail
5c21dd747a changes according to task comment 2021-03-21 08:57:55 +03:00
Mikhail
a51df819f6 Update view.md 2021-03-21 06:34:15 +03:00
Mikhail
665b6006ab Minor 2021-03-16 17:30:23 +03:00
Mikhail
59a4d69826 Changes translated 2021-03-15 00:51:35 +03:00
Taleh Zaliyev
347a79360c
Add link to DROP VIEW for EN docs 2021-03-14 17:47:50 +03:00
Vitaliy Zakaznikov
c2a71dda1f Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into live-view-docs 2021-02-21 09:50:02 -05:00
Vitaliy Zakaznikov
46f67fa8ac Adding examples to live view docs. 2021-02-21 09:45:20 -05:00
Vitaliy Zakaznikov
3d2788e1b5 Fixes and updates to live view docs. 2021-02-08 19:23:32 -05:00
Vitaliy Zakaznikov
5769822c53 Fixing rendering. 2021-02-08 17:28:31 -05:00
Vitaliy Zakaznikov
0270b96ffb Adding example of using WATCH and WATCH ... EVENTS to live view
description.
2021-02-08 17:18:37 -05:00
Vitaliy Zakaznikov
52e9b9d739 Minor updates to the live view docs. 2021-02-08 16:56:25 -05:00
Vitaliy Zakaznikov
cd097e250b Fix type in live view reference. 2021-02-08 16:29:47 -05:00
Vitaliy Zakaznikov
2e113a0faf Update to live view docs. 2021-02-08 16:24:05 -05:00
Vitaliy Zakaznikov
fd396d1d36 Starting to add documentation for live views. 2021-02-08 16:08:32 -05:00
George
a23853c141 minor fixes 2021-02-06 12:42:07 +03:00
George
004c33847e Added original article 2021-02-03 11:17:33 +03:00
George
3d522e5da9 Updated description 2021-02-03 10:56:53 +03:00
George
10a4cd7b8a First draft 2021-02-02 15:09:36 +03:00
damozhaeva
6db9ee4300
DOCSUP-3172: Edit and translate to Russian (#16153)
* Edit and traslate to Russian.

* Update docs/ru/engines/table-engines/integrations/kafka.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* Update docs/ru/interfaces/http.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* Update docs/ru/interfaces/http.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* Ticket.

* http.

* kafka ru

Co-authored-by: Daria Mozhaeva <dmozhaeva@yandex-team.ru>
Co-authored-by: BayoNet <da-daos@yandex.ru>
2020-11-02 19:54:23 +03:00
Roman Bug
9ec78855cd
DOCSUP-2806: Add meta header in RU (#15801)
* DOCSUP-2806: Add meta intro.

* DOCSUP-2806: Update meta intro.

* DOCSUP-2806: Fix meta.

* DOCSUP-2806: Add quotes for meta headers.

* DOCSUP-2806: Remove quotes from meta headers.

* DOCSUP-2806: Add meta headers.

* DOCSUP-2806: Fix quotes in meta headers.

* DOCSUP-2806: Update meta headers.

* DOCSUP-2806: Fix link to nowhere in EN.

* DOCSUP-2806: Fix link (settings to tune)

* DOCSUP-2806: Fix links.

* DOCSUP-2806:Fix links EN

* DOCSUP-2806: Fix build errors.

* DOCSUP-2806: Fix meta intro.

* DOCSUP-2806: Fix toc_priority in examples datasets TOC.

* DOCSUP-2806: Fix items order in toc.

* DOCSUP-2806: Fix order in toc.

* DOCSUP-2806: Fix toc order.

* DOCSUP-2806: Fix order in toc.

* DOCSUP-2806: Fix toc index in create

* DOCSUP-2806: Fix toc order in create.

Co-authored-by: romanzhukov <romanzhukov@yandex-team.ru>
Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
2020-10-26 13:29:30 +03:00
Denis Zhuravlev
ae8c6e57c1
Doc change. Update view.md (#12643)
* Update view.md

OR REPLACE / ON CLUSTER

* Update docs/en/sql-reference/statements/create/view.md

Co-authored-by: Ivan Blinkov <github@blinkov.ru>
2020-07-21 22:22:33 +03:00
Ivan Blinkov
ffe2cecb1b
[docs] split the ALTER article (#12502)
* initial split

* initial adjust links

* make en buildable

* re-normalize
2020-07-15 00:02:41 +03:00
Ivan Blinkov
ceac649c01
[docs] split misc statements (#12403) 2020-07-11 14:05:49 +03:00
Ivan Blinkov
258d2fd499
[docs] split various kinds of CREATE queries into separate articles (#12328)
* normalize

* split & adjust links

* re-normalize

* adjust ru links

* adjust ja/tr links

* partially apply e0d19d2aea

* reset contribs
2020-07-09 18:10:35 +03:00