Commit Graph

50 Commits

Author SHA1 Message Date
Robert Schulze
b32b02d844
Merge pull request #40897 from ClickHouse/catboost-bridge-resurrected
Move CatBoost evaluation into clickhouse-library-bridge
2022-09-16 13:12:09 +02:00
Robert Schulze
49136d26aa
docs: fix internal links
The links at the very beginning of
https://clickhouse.com/docs/en/sql-reference/statements/system
don't work. They are reference other sections of the same document. This
is weird because there is a small index already on the right side. I
searched our documentation and this seems to be the only pages which do
so. Therefore removing the links altogether instead of fixing them.
2022-09-13 19:45:46 +00:00
Robert Schulze
3e6821e8d7
fix: repair broken documentation links and update docs 2022-09-13 16:00:53 +00:00
Robert Schulze
fac1be9700
chore: restore SYSTEM RELOAD MODEL(S) and moniting view SYSTEM.MODELS
- This commit restores statements "SYSTEM RELOAD MODEL(S)" which provide
  a mechanism to update a model explicitly. It also saves potentially
  unnecessary reloads of a model from disk after it's initial load.

  To keep the complexity low, the semantics of "SYSTEM RELOAD MODEL(S)
  was changed from eager to lazy. This means that both statements
  previously immedately reloaded the specified/all models, whereas now
  the statements only trigger an unload and the first call to
  catboostEvaluate() does the actual load.

- Monitoring view SYSTEM.MODELS is also restored but with some obsolete
  fields removed. The view was not documented in the past and for now it
  remains undocumented. The commit is thus not considered a breach of
  ClickHouse's public interface.
2022-09-12 19:33:02 +00:00
Robert Schulze
c16707ff00
chore: delete obsolete modelEvaluate() function + SYSTEM.MODELS view
- The deleted function modelEvaluate() was superseded by
  catboostEvaluate().

- Also delete the external model repository, as modelEvaluate() was it's
  last user. Additionally remove the system view SYSTEM.MODELS for
  inspecting the repository.

- SYSTEM RELOAD MODELS is also obsolete. HOWEVER, it was retained and
  made a no-op instead of deleted.

  Why?
  The reason is that RBAC in distributed setups works by storing
  privileges (granted and revoked) as plain SQL statements in Keeper.
  Nodes read these statements at startup and parse them. If a privilege
  for SYSTEM RELOAD MODELS exists but parser doesn't recognize it
  nodes would fail to come up.

  Considered but rejected alternatives:
  - Ignore SYSTEM RELOAD MODELS during parsing RBAC privileges and
    return an error for regular SYSTEM RELOAD MODELS SQL. Special-case
    of no-op behavior, too brittle.
  - Remove SYSTEM RELOAD MODELS manually from Keeper via command-line
    manipulation of Keeper nodes or via SQL by dropping the privileges.
    Needs user intervention during upgrade.
2022-09-08 09:10:11 +00:00
Robert Schulze
912663b719
Revert "Move CatBoost evaluation into clickhouse-library-bridge" 2022-08-31 20:54:43 +02:00
Robert Schulze
64a6aa328e
fix: broken links in documentation (hopefully) 2022-08-29 20:27:06 +00:00
DanRoscigno
726d3c0739 add slugs to all docs 2022-08-26 13:37:11 -04:00
Vadim Volodin
637d293fbd Add SYSTEM UNFREEZE query 2022-06-08 15:21:14 +03:00
rfraposa
5250d9ad11 Removed /ja folder, cleaned up /ru markdown 2022-04-09 07:29:05 -06:00
Alexander Chashnikov
79294b6658
typo 2021-10-04 12:43:52 +03:00
Alexey
c9aab06ab8 markup fixed 2021-09-27 20:27:11 +00:00
Alexey
8f576096ad ru translation 2021-09-27 20:24:12 +00:00
pdv-ru
6bb1d7ba86
Update docs/ru/sql-reference/statements/system.md
Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-08-16 15:55:00 +03:00
pdv-ru
0c7b114533
Update docs/ru/sql-reference/statements/system.md
Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-08-16 15:54:49 +03:00
pdv-ru
71ce5fbbbd
Update docs/ru/sql-reference/statements/system.md
Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-08-16 15:54:34 +03:00
pdv-ru
41931b2ed5
Update docs/ru/sql-reference/statements/system.md
Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-08-16 15:54:13 +03:00
pdv-ru
8f301ed1f0
Update docs/ru/sql-reference/statements/system.md
Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-08-16 15:53:53 +03:00
pdv-ru
36ac5f9e94
Update docs/ru/sql-reference/statements/system.md
Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-08-16 15:53:37 +03:00
pdv-ru
9091a5a048
Update docs/ru/sql-reference/statements/system.md
Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-08-16 15:52:55 +03:00
pdv-ru
49c5496720
Update docs/ru/sql-reference/statements/system.md
Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-08-16 15:51:57 +03:00
pdv-ru
192a9294bd
Update docs/ru/sql-reference/statements/system.md
Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-08-16 15:51:35 +03:00
pdv-ru
e76e9abb2d edit RESTORE REPLICA query 2021-08-04 23:07:38 +03:00
pdv-ru
3a27b724d0 edit h3ToGeo function 2021-08-04 22:47:38 +03:00
pdv-ru
72e868388a Update system.md 2021-08-04 17:29:54 +03:00
pdv-ru
5a33c81c9b Update system.md 2021-08-04 15:34:54 +03:00
Roman Bug
e0b345d99a
Update system.md 2021-07-29 10:44:41 +03:00
pdv-ru
169e48c978 DOCSUP-10607 2021-07-23 15:53:53 +03:00
pdv-ru
760a998946 DOCSUP-10607 2021-07-23 15:38:02 +03:00
Maksim Kita
db1c70975e Compile expressions updated documentation 2021-06-25 23:27:18 +03:00
Pavel Kruglov
0a70304085 Remove database before model name in docs 2021-06-07 13:10:51 +03:00
Dmitriy
d8271c0705 Translate to Russian
Перевел на русский язык.
2021-06-04 20:38:05 +03:00
Dmitriy
50c01d4045 Update system.md
Внес небольшую правку в пример.
2021-05-26 22:29:37 +03:00
Dmitriy
ba82481dde Update system.md
Внес небольшие правки.
2021-04-21 19:42:03 +03:00
sevirov
46b12a9ccd
Update docs/ru/sql-reference/statements/system.md
Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-04-21 19:30:54 +03:00
sevirov
586103d61a
Update docs/ru/sql-reference/statements/system.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-04-20 21:33:40 +03:00
Dmitriy
f1aef7e9a2 Edit and translate to Russian
Поправил английскую версию и выполнил перевод на русский язык.
2021-04-19 21:01:38 +03:00
Alexey Milovidov
8850856276 Remove "Original article" (must be automated instead) 2021-03-15 14:32:26 +03:00
alexey-milovidov
cbf7e947c8
Update system.md 2020-12-11 01:43:07 +03:00
Denny Crane
acd8eada4a
Update system.md
SYSTEM DROP REPLICA  Russian doc
2020-12-07 20:40:04 -04:00
Anna Shakhova
4479cfbcb0
DOCSUP-3871: Document prefer_not_to_merge option (#17090)
* Init commit

* Translation

* Fixed

* Fixed

* Fixed

* Fixed
2020-12-02 22:03:24 +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
Alexey Milovidov
db4db42b65 Fix broken links in docs 2020-10-13 20:23:29 +03:00
Alexander Millin
b7f08f447a
[docs] Fix system.md (#13332)
Co-authored-by: Alexander Millin <a.millin@city-mobil.ru>
2020-08-07 11:48:38 +03:00
BayoNet
52f95e53fb
DOCS-229: insert_distributed_sync (#12579)
* Revolg docsup 727 insert distributed sync setting (#130)

* Add insert_distributed_sync setting

* insert_distributed_sync en doc upd

* Translated to russian.

* Update docs/ru/operations/settings/settings.md

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

* Added the link to the setting in the russian version.

Co-authored-by: Olga Revyakina <revolg@yandex-team.ru>
Co-authored-by: BayoNet <da-daos@yandex.ru>

* Update settings.md

* Update docs/ru/operations/settings/settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
Co-authored-by: Olga Revyakina <revolg@yandex-team.ru>
Co-authored-by: Sergei Shtykov <bayonet@yandex-team.ru>
Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
2020-07-21 15:40:03 +03:00
Nikita Mikhaylov
ab04a6bb62
Merge pull request #11615 from azat/SYSTEM-FLUSH-LOGS-force-table-creation-v2
Force table creation on SYSTEM FLUSH LOGS (v2)
2020-06-17 11:09:19 +04:00
BayoNet
1474dd6d69
DOCS-646: randomString (#11610)
* [CLICKHOUSEDOCS] Document the "randomString" function (#121)

* Add description of randomString function

* Add description for randomString

* Update docs/en/sql-reference/functions/other-functions.md

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

* Update docs/en/sql-reference/functions/other-functions.md

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

* Changed example

* Add russian version

* Fixed links

* Fixed links

Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru>
Co-authored-by: BayoNet <da-daos@yandex.ru>

* CLICKHOUSEDOCS-646: Updated text. Fixed links.

* CLICKHOUSEDOCS-646: Fixed more links.

Co-authored-by: Sergei Shtykov <bayonet@yandex-team.ru>
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru>
2020-06-15 21:44:05 +03:00
Azat Khuzhin
103eb17107 Force table creation on SYSTEM FLUSH LOGS (v2)
After this patch SYSTEM FLUSH LOGS will force system.*_log table
creatoins (only for enabled tables of course).

This will avoid such hacks like:

   set log_queries=1;
   select 1;
   system flush logs;

This is the second version of the patch, since first has a deadlock [1]
(reported by @alesapin). This version does not use separate lock and do
not issue CREATE TABLE from the query execution thread, instead it
activate flushing thread to do so, hence this should be the same as if
the table will be created during flush.

  [1]: https://gist.github.com/alesapin/d915d1deaa27d49aa31223daded02be2

Fixes: #11563
Cc: @alesapin
Cc: @nikitamikhaylov
2020-06-11 23:12:23 +03:00
Eugene Klimov
dfa60e01a0
add SYSTEM STOP/START FETCHES and SYNC REPLICA description (#11444)
* add SYSTEM STOP/START FETCHES and SYNC REPLICA description

Signed-off-by: Slach <bloodjazman@gmail.com>

* fix russian verion

Signed-off-by: Slach <bloodjazman@gmail.com>

* fix typo

Signed-off-by: Slach <bloodjazman@gmail.com>

* add START/STOP REPLICATED SENDS description

Signed-off-by: Slach <bloodjazman@gmail.com>

* Update docs/en/sql-reference/statements/system.md

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

* sync russian and english version

Signed-off-by: Slach <bloodjazman@gmail.com>

* add SYSTEM START/STOP REPLICATION QUEUES

Signed-off-by: Slach <bloodjazman@gmail.com>

* add SYSTEM RESTART REPLICA

Signed-off-by: Slach <bloodjazman@gmail.com>

* add all missed SYSTEM statement descriptions

Signed-off-by: Slach <bloodjazman@gmail.com>

* fix missed link

Signed-off-by: Slach <bloodjazman@gmail.com>

Co-authored-by: Ivan Blinkov <github@blinkov.ru>
2020-06-08 18:23:13 +03:00
Ivan Blinkov
d91c97d15d
[docs] replace underscores with hyphens (#10606)
* Replace underscores with hyphens

* remove temporary code

* fix style check

* fix collapse
2020-04-30 21:19:18 +03:00