Commit Graph

874 Commits

Author SHA1 Message Date
Sergei Trifonov
fe88a7991d
Merge branch 'master' into readonly-settings-allow 2022-09-12 16:20:40 +02:00
Rich Raposa
b9e9d776f0
Update delete.md 2022-09-09 15:55:57 -06:00
rfraposa
4af246a2e0 Feedback 2022-09-09 13:59:21 -06:00
Rich Raposa
9870957621
Update docs/en/sql-reference/statements/delete.md
Co-authored-by: Ivan Blinkov <github@blinkov.ru>
2022-09-09 12:16:54 -06:00
Rich Raposa
50789126a8
Update docs/en/sql-reference/statements/delete.md
Co-authored-by: Ivan Blinkov <github@blinkov.ru>
2022-09-09 12:15:59 -06:00
Rich Raposa
34c2c4bb52
Merge branch 'master' into lightweight-delete 2022-09-09 12:13:51 -06:00
Sergei Trifonov
76eb001e78 add test for changeable_in_readonly + fix SQL in docs 2022-09-09 14:01:29 +02:00
rfraposa
18f5b5e5b0 Add docs for lightweight deletes 2022-09-08 16:05:56 -06:00
Vincent Bernat
fab1b40928 docs: mention SYNC modifier for DROP and DETACH statements 2022-09-08 15:21:59 +02: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
53836bbeeb
Fix typo
The system view is called 'role*_*grants', documented on page
'role*-*grants.md'.
2022-09-02 12:49:50 +00:00
Denny Crane
e3af5a7a11
Doc. Added ON CLUSTER cluster in couple places (#40874) 2022-09-01 13:31:22 +02:00
Robert Schulze
912663b719
Revert "Move CatBoost evaluation into clickhouse-library-bridge" 2022-08-31 20:54:43 +02:00
Robert Schulze
ca01286028
Merge pull request #39629 from ClickHouse/catboost-bridge
Move CatBoost evaluation into clickhouse-library-bridge
2022-08-31 16:16:11 +02:00
Robert Schulze
64a6aa328e
fix: broken links in documentation (hopefully) 2022-08-29 20:27:06 +00:00
DanRoscigno
c4b8137d31 replace symlinks 2022-08-29 12:19:50 -04:00
DanRoscigno
5b5fcc56aa add slugs 2022-08-28 10:53:34 -04:00
DanRoscigno
71409f8f67 trying tags with Algolia 2022-08-15 11:08:46 -04:00
DanRoscigno
ced68e9298 add title frontmatter 2022-08-15 09:27:20 -04:00
Nityananda Gohain
0b82fb7816
Extra semicolon removed from the TTL example
This PR removes an extra semicolon from the TTL example.
2022-08-03 12:52:06 +05:30
alesapin
2dfb547847
Merge pull request #39054 from SmitaRKulkarni/add-option-for-outfile-to-print-stdout
Add an option to INTO OUTFILE to also print details to standard output.
2022-07-27 13:51:38 +02:00
Robert Schulze
7d653b3bd8
Merge pull request #39495 from ClickHouse/mark-qpl-deflate-experimental
Mark new codec DEFLATE_QPL as experimental + cosmetics
2022-07-26 19:00:21 +02:00
Vladimir C
3bd5ca9b6a
Merge pull request #39271 from vdimir/join-alg-setting
Cleanup logic around join_algorithm setting, add docs
2022-07-26 11:00:22 +02:00
Robert Schulze
2785783def
Mark DEFLAPT_QPL as 'experimental' codec + cosmetics 2022-07-24 20:10:11 +00:00
mergify[bot]
0933dd7904
Merge branch 'master' into add-option-for-outfile-to-print-stdout 2022-07-23 19:50:10 +00:00
vdimir
e8834c5ea3
Remove trailing whitespaces from docs/en/sql-reference/statements/select/join.md 2022-07-21 14:53:40 +00:00
jasperzhu
c044c67745
Merge branch 'master' into dev_intel_iaa_deflate 2022-07-19 15:32:57 +08:00
Denny Crane
577978026a
Update partition.md 2022-07-17 21:09:01 -03:00
jinjunzh
d3d0605c00 add words of caution into documentation 2022-07-15 14:33:51 -04:00
Smita Kulkarni
1dc2187f9c Addressed review comments
Implementation:
- Added a new buffer ForkWriteBuffer takes a vector of WriteBuffer and writes data to all of them. It uses the buffer of the first element as its buffer and copies data from first buffer to all the other buffers
Testing:
- Updated tests/queries/0_stateless/02346_into_outfile_and_stdout.sh
Documentation:
- Updated the english documentation for SELECT.. INTO OUTFILE with AND STDOUT.
2022-07-14 22:47:38 +02:00
Smita Kulkarni
c7967fb721 Add an option to INTO OUTFILE to also print details to standard output.
Implementation:
- Added a bool to ASTQueryWithOutput & patched the usage in ClientBase.
- Added a new buffer TeeWriteBuffer which extends from WriteBufferFromFile (used to write data to the file) and has WriteBufferFromFileDescriptor (used to write data to stdout). The WriteBufferFromFileDescriptor uses the same buffer as TeeWriteBuffer.
- Added a new bool select_into_outfile_and_stdout in ClientBase to enable/disable progress rendering.

Testing:
 - Added a test tests/queries/0_stateless/02346_into_outfile_and_stdout.sh

Documentation:
- Updated the english documentation for the new option in SELECT.
2022-07-09 10:12:46 +02:00
Alexey Milovidov
74d02aeca7
Merge pull request #38907 from evillique/compression_level
Add compression level for data export
2022-07-07 22:27:21 +03:00
Nikolay Degterinsky
fcb6cfb6df Fix style issues 2022-07-07 08:31:55 +00:00
Nikolay Degterinsky
54d210d714 Add documentation 2022-07-07 01:59:00 +00:00
Denny Crane
db357f4a3c
Update index.md 2022-07-06 20:57:49 -03:00
Denny Crane
71c4e738d0
Update update.md 2022-07-06 20:55:06 -03:00
Denny Crane
f96225cca4
Update partition.md 2022-07-06 20:50:13 -03:00
Denny Crane
d51f9b954b
Update exchange.md 2022-07-06 20:41:01 -03:00
Nikolay Degterinsky
efcb1c368f
Merge pull request #38800 from railwayc/master
Update drop.md
2022-07-05 11:08:41 +02:00
chen
a0956465cf
Update drop.md 2022-07-04 19:34:26 +08:00
chen
4ca0c50d57
Update function.md
create function already support on cluster.
2022-07-04 19:24:54 +08:00
GruffGemini
572e540217
docs (en, group-by.md): fixed broken links 2022-06-30 09:29:18 +03:00
xinhuitian
ccb4802ab1 fix some wrong links in alter docs 2022-06-25 14:01:41 +08:00
Alexey Milovidov
ff8c52b087
Update partition.md 2022-06-25 06:11:37 +03:00
xinhuitian
3bb765ae1f fix some wrong titles and links in alter docs 2022-06-24 22:24:48 +08:00
DanRoscigno
aafe91a8ca add H3 tages for Algolia search 2022-06-22 14:48:18 -04:00
Dmitry Novik
00aca924d0 Update GROUP BY clause docs 2022-06-16 22:45:28 +00:00
Robert Schulze
a0d936cc9f
Small follow-up for FPC codec
- add paper reference + doxygen

- remove endianness handling (ClickHouse assumes little endian)

- documentation

- other minor stuff
2022-06-15 14:21:28 +02:00
Dan Roscigno
e85e450200
Merge pull request #37621 from Vxider/wv-doc
Update Window View document, add alter, inner engine, and populate
2022-06-14 12:28:18 -04:00
Vadim Volodin
637d293fbd Add SYSTEM UNFREEZE query 2022-06-08 15:21:14 +03: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
Yakov Olkhovskiy
ce1df15e1c
Merge pull request #37377 from ClickHouse/sha256_hash-with-salt
Allow SALT in CREATE USER user1 IDENTIFIED WITH sha256_hash
2022-05-21 14:36:22 -04:00
Yakov Olkhovskiy
6b62144090 docs spelling fix 2022-05-20 08:57:18 -04:00
Yakov Olkhovskiy
a5e421581d docs fix 2022-05-20 01:30:45 -04:00
Yakov Olkhovskiy
b7bc40ce58 documentation updated 2022-05-19 22:16:08 -04:00
Azat Khuzhin
01e1c5345a Add separate CLUSTER grant
In case you have different roles for the same user on multiple clusters,
ON CLUSTER query can help to overcome some limitations.

Consider the following example:
- cluster_with_data, dev_user (readonly=2)
- stage_cluster, dev_user (readonly=0)

So when you will execute the following query from stage_cluster, it will
be successfully executed, since ON CLUSTER queries has different system
profile:

    DROP DATABASE default ON CLUSTER cluster_with_data

This is not 100% safe, but at least something.

Note, that right now only ON CLUSTER query it self is supported, but
separate clusters are not (i.e. GRANT CLUSTER some_cluster_name TO
default), since right now grants sticked to database+.

v2: on_cluster_queries_require_cluster_grant
v3: fix test and process flags as bit mask
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-16 13:57:45 +03:00
Ramazan Polat
72a2a1d8fe
update materialize index notation 2022-05-16 00:28:49 +03:00
小蝌蚪
11cc8639ca
Add a missing **ESTIMATE** in explain syntax 2022-04-28 00:10:59 +08:00
rfraposa
6576fd88c1 EOL fixes 2022-04-19 13:50:45 -06:00
rfraposa
fb08c5b7e1 Merge branch 'master' into docs-staging 2022-04-15 07:25:27 -06:00
rfraposa
1afe4300e8 Fixed broken links 2022-04-11 09:55:54 -06:00
rfraposa
d9e6f780db Fixed broken links 2022-04-10 23:01:34 -06:00
rfraposa
4da4259c78 Added reference docs to sidebar 2022-04-10 21:27:48 -06: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
Yakov Olkhovskiy
7dbe8bc2dc major bugs fixed, tests added, docs updated 2022-04-07 01:21:24 -04:00
Yakov Olkhovskiy
90c4cd3de7
Merge branch 'master' into interpolate-feature 2022-04-05 14:39:07 -04:00
Alexey Milovidov
9854b55835
Revert "Format changes for new docs" 2022-04-04 02:05:35 +03:00
rfraposa
72a00e2c62 Fixed broken links 2022-04-02 17:38:54 -06:00
Rich Raposa
e6191511cf
Merge branch 'ClickHouse:master' into master 2022-04-01 11:43:48 -06:00
rfraposa
e5ee39541e Fixing conflicts with source repo 2022-04-01 11:34:35 -06:00
rfraposa
560471f991 Update /sql-reference docs 2022-03-29 22:06:21 -06:00
Yakov Olkhovskiy
de58f5988d
Update table.md
allow EPHEMERAL without expression
2022-03-29 04:01:20 -04:00
rfraposa
c05bf7beb4 Testing new /en folder 2022-03-28 23:09:17 -06:00
Yakov Olkhovskiy
5ae6f800c6 Update order-by.md
INTERPOLATE fix
2022-03-19 03:03:24 -04:00
Yakov Olkhovskiy
5c8a77dade Update order-by.md
INTERPOLATE fix
2022-03-19 03:02:51 -04:00
Yakov Olkhovskiy
4f892dc9da Update order-by.md
INTERPOLATE is added
2022-03-19 03:02:20 -04:00
Yakov Olkhovskiy
90888ea95b Update index.md
INTERPOLATE is added
2022-03-19 03:00:29 -04:00
Denny Crane
fd910af86d
Update limit-by.md 2022-03-06 13:37:33 -04:00
Yong Wang
838d931137
Update array-join.md 2022-02-23 18:37:13 -05:00
Yong Wang
8a5ac182f0
Update array-join.md 2022-02-23 18:32:37 -05:00
Nikolai Kochetov
ab288642f6 Merge branch 'master' into ephemeral-column 2022-02-15 10:03:34 +00:00
Denny Crane
2daacc1a3e
Update column.md 2022-02-11 15:40:20 -04:00
yakov-olkhovskiy
465dee928c
Update table.md 2022-02-08 21:09:52 -05:00
yakov-olkhovskiy
42ea826acb
Update table.md
EPHEMERAL specifier is added
2022-02-08 11:35:14 -05:00
cmsxbc
a33bd4c623
Merge branch 'master' into addressToLineWithInlines 2022-02-08 08:54:15 +08:00
Anton Popov
861ce6ae94
Update order-by.md 2022-02-05 02:07:45 +03:00
Mohamad Fadhil
8f1030378a
Add INTERVAL STEP example in SELECT .. ORDER BY WITH FILL documentation
This corresponds to the merged PR https://github.com/ClickHouse/ClickHouse/pull/30927
2022-02-04 10:02:42 +08:00
cmsxbc
8b916a67e5 Merge branch 'master' into addressToLineWithInlines 2022-02-01 19:37:18 +08:00
zhangxiao871
7f2f7fa993 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into yandex-master 2022-01-30 13:46:52 +08:00
alexey-milovidov
379f8d3d7e
Update use.md 2022-01-29 01:09:46 +03:00
mergify[bot]
c9a1c9a896
Merge branch 'master' into system_on_cluster 2022-01-28 10:42:26 +00:00
mergify[bot]
61ac72ca32
Merge branch 'master' into addressToLineWithInlines 2022-01-27 12:02:56 +00:00
Maksim Kita
10cba358cf
Merge pull request #33952 from grant88/patch-1
Update user.md
2022-01-26 22:29:14 +01:00
zhangxiao871
1bd74dda63 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into yandex-master 2022-01-26 17:40:32 +08:00
zhangxiao871
20b669f330 Supports all types of SYSTEM query ON CLUSTER clause. 2022-01-26 17:40:00 +08:00
cmsxbc
58dd1a2d5c
add function addressToLineWithInlines 2022-01-25 19:13:47 +08:00
grantovsky
d7ad03a37f
Update user.md
removed keyword 'NAME' from HOST instruction
2022-01-24 16:54:42 +03:00
mergify[bot]
5ef5e1d558
Merge branch 'master' into karnevil-DOCSUP-18631 2022-01-24 12:09:59 +00:00
mlkui
4041fbc062
Update check-table.md
Right should be:

If `check_query_single_value_result` = 1, the `CHECK TABLE` query shows the general table check status.

Old wrong:

If `check_query_single_value_result` = 0, the `CHECK TABLE` query shows the general table check status.
2022-01-23 19:19:21 +08:00
cnmade
4043529300 Translate zh/sql/statements:rev translate 2022-01-18 11:40:29 +08:00
cnmade
fc38cffd33 Translate zh/sql/statements index and use document 2022-01-18 11:06:41 +08:00
Anton Popov
a25f2518e3
Merge pull request #33141 from 1over/feature_default_keyword
Add support of DEFAULT keyword for INSERT
2022-01-18 02:04:37 +03:00
13DaGGeR
c1ab96bf0f
Fix typo: OPTMIZE -> OPTIMIZE 2022-01-13 13:32:45 +03:00
Kseniia Sumarokova
e6ea7c361d
Merge pull request #32836 from stigsb/explain-table-override
Add `EXPLAIN TABLE OVERRIDE` for pre-validating overrides.
2022-01-10 09:58:16 +03:00
Anselmo D. Adams
883b83acb0
Update dictionary.md 2021-12-30 19:43:54 -03:00
Anselmo D. Adams
5df89e978e
Update dictionary.md
Fixed order of DICTIONARY term in create statement
2021-12-30 19:33:31 -03:00
Stig Bakken
6b4a16977e Add some docs for EXPLAIN TABLE OVERRIDE 2021-12-30 09:02:28 +01:00
alexey-milovidov
255c4c92b9
Merge pull request #33233 from freedomDR/doc_projection_fix
improve projection doc describe
2021-12-29 21:09:33 +03:00
Denny Crane
035d757cc1
Update grant.md 2021-12-28 14:13:41 -04:00
Vladimir C
78710d71b5
Specify sql syntax in code snippets in join.md 2021-12-28 10:49:35 +03:00
Tatiana Kirillova
8dc204c280 fix diff and translate 2021-12-27 21:23:09 +03:00
freedomDR
d41ba4dc0f improve projection describe 2021-12-27 15:39:35 +00:00
Tatiana Kirillova
a4d364ab03 update text 2021-12-26 14:03:49 +03:00
Tatiana Kirillova
e3e1fe74c1 update 2021-12-26 13:55:49 +03:00
Tatiana Kirillova
05a33abf26 OR operator in ON section for JOIN 2021-12-26 13:38:22 +03:00
Andrii Buriachevskyi
6a0a0efd29 Update docs with DEFAULT keyword for INSERT statement 2021-12-24 13:45:43 +01:00
dalei2019
11c85fe66b
Update role.md 2021-12-21 16:03:37 +08:00
alesapin
3cee6d37db
Merge pull request #32746 from fanofxiaofeng/patch-1
name -> table_name
2021-12-16 10:45:56 +03:00
Denny Crane
41fc080c04
Update group-by.md 2021-12-15 12:18:50 -04:00
靳阳
14ca6aa92b
name -> table_name
fix possible wrong word
2021-12-14 19:21:12 +08: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
cmsxbc
366ee3deba
Support PostgreSQL style ALTER MODIFY COLUMN 2021-11-30 21:07:14 +08:00
Vladimir C
ef2571af06
Merge pull request #31585 from lehasm/alexey-sm-DOCSUP-14893-document-COMPRESSION 2021-11-30 11:36:45 +03:00
Vladimir C
c6d49769d9
Apply suggestions from code review 2021-11-30 11:36:03 +03:00
Alexey
bc4047ef24 updates 2021-11-28 19:26:51 +00:00
Alexey
b8a3f62734 updates 2021-11-28 08:20:57 +00:00
Alexey
031cd54cea Updated INSERT INTO 2021-11-28 07:59:40 +00:00
Alexey
2664b664a7 INSERT INTO syntax reverted 2021-11-27 20:05:28 +00:00
karnevil13
9a60033fef
Merge branch 'master' into karnevil-DOCSUP-18631 2021-11-23 01:05:12 +03:00
karnevil13
77df8ce0dd DOCSUP-18631: Edit and translate 2021-11-23 00:44:08 +03:00
Alexey
83886b76a3 INSERT INTO TABLE FUNCTION draft 2021-11-22 19:17:00 +00:00
Kseniia Sumarokova
32911193de
Merge pull request #31394 from lehasm/alexey-sm-DOCSUP-17653-doc-WHERE-EXISTS
DOCSUP-17653: document EXISTS(subquery)
2021-11-22 08:57:53 +03:00
Alexey
8943908cf0 INSERT FROM INFILE draft 2021-11-21 11:28:17 +00:00
Alexey
b17b05590c INTO OUTFILE description updated 2021-11-20 18:44:45 +00:00
Alexey
122b42c36a Formatting updated. Spelling fix.
2 paragraphs reordered.
2021-11-20 08:44:36 +00:00
Alexey
ef6443f3f5 Translated paragraph about NULL from ru to en.
Copied corresponding example
2021-11-19 19:21:50 +00:00
SuperDJY
dd2972b8c3
return fake create query when executing show create table on system's tables. (#31391)
* clarify that cannot show create table of system's tables

* clarify that cannot show create table of system's tables in the document

* bypass test style-check for required `database=currentDatabase()` because `show create table` do not have condition

* rename supportsShowCreateTable to isSystemStorage

* build fake create query for show create table of system's tables

* fix tests for show create table on system's table:

1. only build fake create query when cannot get real query
2. only test rocksdb when it's enabled.

* fix test for show create table system.tables

* fix test for ASTCreateQuery set table and database

* change to LOGICAL_ERROR when cannot get in_memory metadata

Co-authored-by: tavplubix <tavplubix@gmail.com>

* implement common getCreateQueryFromStorage

Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-11-19 13:25:55 +03:00
alexey-milovidov
3e62f8a548
Merge pull request #30448 from FArthur-cmd/remove_comments_for_enc_docs
Remove comments for enc docs
2021-11-18 09:42:59 +03:00
Alexey
40952d53ac Small text change
Removed See Also EXISTS from WHERE
2021-11-13 19:47:50 +00:00
Alexey
ba0d57b90e Added example to WHERE 2021-11-13 19:46:38 +00:00
Alexey
398e164e46 en draft (EXISTS) 2021-11-12 20:02:26 +00:00
Denny Crane
22a32c46bd
Update dictionary.md 2021-11-12 13:00:34 -04:00