ClickHouse/tests/queries/0_stateless/01271_show_privileges.reference

151 lines
8.1 KiB
Plaintext
Raw Normal View History

2020-05-12 21:46:14 +00:00
SHOW DATABASES [] DATABASE SHOW
SHOW TABLES [] TABLE SHOW
SHOW COLUMNS [] COLUMN SHOW
SHOW DICTIONARIES [] DICTIONARY SHOW
SHOW [] \N ALL
2022-09-19 12:02:51 +00:00
SHOW FILESYSTEM CACHES [] \N ALL
2020-05-12 21:46:14 +00:00
SELECT [] COLUMN ALL
INSERT [] COLUMN ALL
ALTER UPDATE ['UPDATE'] COLUMN ALTER TABLE
ALTER DELETE ['DELETE'] COLUMN ALTER TABLE
ALTER ADD COLUMN ['ADD COLUMN'] COLUMN ALTER COLUMN
ALTER MODIFY COLUMN ['MODIFY COLUMN'] COLUMN ALTER COLUMN
ALTER DROP COLUMN ['DROP COLUMN'] COLUMN ALTER COLUMN
ALTER COMMENT COLUMN ['COMMENT COLUMN'] COLUMN ALTER COLUMN
ALTER CLEAR COLUMN ['CLEAR COLUMN'] COLUMN ALTER COLUMN
ALTER RENAME COLUMN ['RENAME COLUMN'] COLUMN ALTER COLUMN
2021-08-01 15:34:18 +00:00
ALTER MATERIALIZE COLUMN ['MATERIALIZE COLUMN'] COLUMN ALTER COLUMN
2020-05-12 21:46:14 +00:00
ALTER COLUMN [] \N ALTER TABLE
2021-09-23 07:31:59 +00:00
ALTER MODIFY COMMENT ['MODIFY COMMENT'] TABLE ALTER TABLE
2020-05-12 21:46:14 +00:00
ALTER ORDER BY ['ALTER MODIFY ORDER BY','MODIFY ORDER BY'] TABLE ALTER INDEX
2020-08-27 13:10:10 +00:00
ALTER SAMPLE BY ['ALTER MODIFY SAMPLE BY','MODIFY SAMPLE BY'] TABLE ALTER INDEX
2020-05-12 21:46:14 +00:00
ALTER ADD INDEX ['ADD INDEX'] TABLE ALTER INDEX
ALTER DROP INDEX ['DROP INDEX'] TABLE ALTER INDEX
ALTER MATERIALIZE INDEX ['MATERIALIZE INDEX'] TABLE ALTER INDEX
ALTER CLEAR INDEX ['CLEAR INDEX'] TABLE ALTER INDEX
ALTER INDEX ['INDEX'] \N ALTER TABLE
ALTER ADD PROJECTION ['ADD PROJECTION'] TABLE ALTER PROJECTION
ALTER DROP PROJECTION ['DROP PROJECTION'] TABLE ALTER PROJECTION
ALTER MATERIALIZE PROJECTION ['MATERIALIZE PROJECTION'] TABLE ALTER PROJECTION
ALTER CLEAR PROJECTION ['CLEAR PROJECTION'] TABLE ALTER PROJECTION
ALTER PROJECTION ['PROJECTION'] \N ALTER TABLE
2020-05-12 21:46:14 +00:00
ALTER ADD CONSTRAINT ['ADD CONSTRAINT'] TABLE ALTER CONSTRAINT
ALTER DROP CONSTRAINT ['DROP CONSTRAINT'] TABLE ALTER CONSTRAINT
ALTER CONSTRAINT ['CONSTRAINT'] \N ALTER TABLE
ALTER TTL ['ALTER MODIFY TTL','MODIFY TTL'] TABLE ALTER TABLE
ALTER MATERIALIZE TTL ['MATERIALIZE TTL'] TABLE ALTER TABLE
ALTER SETTINGS ['ALTER SETTING','ALTER MODIFY SETTING','MODIFY SETTING','RESET SETTING'] TABLE ALTER TABLE
2020-05-12 21:46:14 +00:00
ALTER MOVE PARTITION ['ALTER MOVE PART','MOVE PARTITION','MOVE PART'] TABLE ALTER TABLE
2021-04-14 02:05:41 +00:00
ALTER FETCH PARTITION ['ALTER FETCH PART','FETCH PARTITION'] TABLE ALTER TABLE
2021-02-24 16:56:07 +00:00
ALTER FREEZE PARTITION ['FREEZE PARTITION','UNFREEZE'] TABLE ALTER TABLE
2021-08-28 16:09:35 +00:00
ALTER DATABASE SETTINGS ['ALTER DATABASE SETTING','ALTER MODIFY DATABASE SETTING','MODIFY DATABASE SETTING'] DATABASE ALTER DATABASE
2020-05-12 21:46:14 +00:00
ALTER TABLE [] \N ALTER
2021-08-28 16:09:35 +00:00
ALTER DATABASE [] \N ALTER
2020-05-12 21:46:14 +00:00
ALTER VIEW REFRESH ['ALTER LIVE VIEW REFRESH','REFRESH VIEW'] VIEW ALTER VIEW
ALTER VIEW MODIFY QUERY ['ALTER TABLE MODIFY QUERY'] VIEW ALTER VIEW
ALTER VIEW [] \N ALTER
ALTER [] \N ALL
CREATE DATABASE [] DATABASE CREATE
CREATE TABLE [] TABLE CREATE
CREATE VIEW [] VIEW CREATE
CREATE DICTIONARY [] DICTIONARY CREATE
CREATE TEMPORARY TABLE [] GLOBAL CREATE
2022-02-09 11:57:11 +00:00
CREATE FUNCTION [] GLOBAL CREATE
2020-05-12 21:46:14 +00:00
CREATE [] \N ALL
DROP DATABASE [] DATABASE DROP
DROP TABLE [] TABLE DROP
DROP VIEW [] VIEW DROP
DROP DICTIONARY [] DICTIONARY DROP
2022-02-09 11:57:11 +00:00
DROP FUNCTION [] GLOBAL DROP
2020-05-12 21:46:14 +00:00
DROP [] \N ALL
TRUNCATE ['TRUNCATE TABLE'] TABLE ALL
OPTIMIZE ['OPTIMIZE TABLE'] TABLE ALL
2022-06-19 15:17:46 +00:00
BACKUP [] TABLE ALL
2020-05-12 21:46:14 +00:00
KILL QUERY [] GLOBAL ALL
2022-03-11 12:06:44 +00:00
KILL TRANSACTION [] GLOBAL ALL
MOVE PARTITION BETWEEN SHARDS [] GLOBAL ALL
2020-05-12 21:46:14 +00:00
CREATE USER [] GLOBAL ACCESS MANAGEMENT
ALTER USER [] GLOBAL ACCESS MANAGEMENT
DROP USER [] GLOBAL ACCESS MANAGEMENT
CREATE ROLE [] GLOBAL ACCESS MANAGEMENT
ALTER ROLE [] GLOBAL ACCESS MANAGEMENT
DROP ROLE [] GLOBAL ACCESS MANAGEMENT
ROLE ADMIN [] GLOBAL ACCESS MANAGEMENT
CREATE ROW POLICY ['CREATE POLICY'] TABLE ACCESS MANAGEMENT
ALTER ROW POLICY ['ALTER POLICY'] TABLE ACCESS MANAGEMENT
DROP ROW POLICY ['DROP POLICY'] TABLE ACCESS MANAGEMENT
2020-05-12 21:46:14 +00:00
CREATE QUOTA [] GLOBAL ACCESS MANAGEMENT
ALTER QUOTA [] GLOBAL ACCESS MANAGEMENT
DROP QUOTA [] GLOBAL ACCESS MANAGEMENT
CREATE SETTINGS PROFILE ['CREATE PROFILE'] GLOBAL ACCESS MANAGEMENT
ALTER SETTINGS PROFILE ['ALTER PROFILE'] GLOBAL ACCESS MANAGEMENT
DROP SETTINGS PROFILE ['DROP PROFILE'] GLOBAL ACCESS MANAGEMENT
SHOW USERS ['SHOW CREATE USER'] GLOBAL SHOW ACCESS
SHOW ROLES ['SHOW CREATE ROLE'] GLOBAL SHOW ACCESS
SHOW ROW POLICIES ['SHOW POLICIES','SHOW CREATE ROW POLICY','SHOW CREATE POLICY'] TABLE SHOW ACCESS
2020-05-12 21:46:14 +00:00
SHOW QUOTAS ['SHOW CREATE QUOTA'] GLOBAL SHOW ACCESS
SHOW SETTINGS PROFILES ['SHOW PROFILES','SHOW CREATE SETTINGS PROFILE','SHOW CREATE PROFILE'] GLOBAL SHOW ACCESS
SHOW ACCESS [] \N ACCESS MANAGEMENT
ACCESS MANAGEMENT [] \N ALL
SYSTEM SHUTDOWN ['SYSTEM KILL','SHUTDOWN'] GLOBAL SYSTEM
SYSTEM DROP DNS CACHE ['SYSTEM DROP DNS','DROP DNS CACHE','DROP DNS'] GLOBAL SYSTEM DROP CACHE
SYSTEM DROP MARK CACHE ['SYSTEM DROP MARK','DROP MARK CACHE','DROP MARKS'] GLOBAL SYSTEM DROP CACHE
SYSTEM DROP UNCOMPRESSED CACHE ['SYSTEM DROP UNCOMPRESSED','DROP UNCOMPRESSED CACHE','DROP UNCOMPRESSED'] GLOBAL SYSTEM DROP CACHE
2021-03-28 02:55:41 +00:00
SYSTEM DROP MMAP CACHE ['SYSTEM DROP MMAP','DROP MMAP CACHE','DROP MMAP'] GLOBAL SYSTEM DROP CACHE
2020-05-12 21:46:14 +00:00
SYSTEM DROP COMPILED EXPRESSION CACHE ['SYSTEM DROP COMPILED EXPRESSION','DROP COMPILED EXPRESSION CACHE','DROP COMPILED EXPRESSIONS'] GLOBAL SYSTEM DROP CACHE
2022-06-23 13:57:12 +00:00
SYSTEM DROP FILESYSTEM CACHE ['SYSTEM DROP FILESYSTEM CACHE','DROP FILESYSTEM CACHE'] GLOBAL SYSTEM DROP CACHE
2022-08-10 14:29:50 +00:00
SYSTEM DROP SCHEMA CACHE ['SYSTEM DROP SCHEMA CACHE','DROP SCHEMA CACHE'] GLOBAL SYSTEM DROP CACHE
2020-05-12 21:46:14 +00:00
SYSTEM DROP CACHE ['DROP CACHE'] \N SYSTEM
SYSTEM RELOAD CONFIG ['RELOAD CONFIG'] GLOBAL SYSTEM RELOAD
2022-09-16 11:19:39 +00:00
SYSTEM RELOAD USERS ['RELOAD USERS'] GLOBAL SYSTEM RELOAD
2020-12-01 02:15:38 +00:00
SYSTEM RELOAD SYMBOLS ['RELOAD SYMBOLS'] GLOBAL SYSTEM RELOAD
2020-05-12 21:46:14 +00:00
SYSTEM RELOAD DICTIONARY ['SYSTEM RELOAD DICTIONARIES','RELOAD DICTIONARY','RELOAD DICTIONARIES'] GLOBAL SYSTEM RELOAD
SYSTEM RELOAD MODEL ['SYSTEM RELOAD MODELS','RELOAD MODEL','RELOAD MODELS'] GLOBAL SYSTEM RELOAD
2021-09-17 15:42:20 +00:00
SYSTEM RELOAD FUNCTION ['SYSTEM RELOAD FUNCTIONS','RELOAD FUNCTION','RELOAD FUNCTIONS'] GLOBAL SYSTEM RELOAD
2020-05-12 21:46:14 +00:00
SYSTEM RELOAD EMBEDDED DICTIONARIES ['RELOAD EMBEDDED DICTIONARIES'] GLOBAL SYSTEM RELOAD
SYSTEM RELOAD [] \N SYSTEM
2021-04-21 10:34:07 +00:00
SYSTEM RESTART DISK ['SYSTEM RESTART DISK'] GLOBAL SYSTEM
SYSTEM MERGES ['SYSTEM STOP MERGES','SYSTEM START MERGES','STOP MERGES','START MERGES'] TABLE SYSTEM
2020-05-12 21:46:14 +00:00
SYSTEM TTL MERGES ['SYSTEM STOP TTL MERGES','SYSTEM START TTL MERGES','STOP TTL MERGES','START TTL MERGES'] TABLE SYSTEM
SYSTEM FETCHES ['SYSTEM STOP FETCHES','SYSTEM START FETCHES','STOP FETCHES','START FETCHES'] TABLE SYSTEM
SYSTEM MOVES ['SYSTEM STOP MOVES','SYSTEM START MOVES','STOP MOVES','START MOVES'] TABLE SYSTEM
SYSTEM DISTRIBUTED SENDS ['SYSTEM STOP DISTRIBUTED SENDS','SYSTEM START DISTRIBUTED SENDS','STOP DISTRIBUTED SENDS','START DISTRIBUTED SENDS'] TABLE SYSTEM SENDS
SYSTEM REPLICATED SENDS ['SYSTEM STOP REPLICATED SENDS','SYSTEM START REPLICATED SENDS','STOP REPLICATED SENDS','START REPLICATED SENDS'] TABLE SYSTEM SENDS
2020-05-12 21:46:14 +00:00
SYSTEM SENDS ['SYSTEM STOP SENDS','SYSTEM START SENDS','STOP SENDS','START SENDS'] \N SYSTEM
SYSTEM REPLICATION QUEUES ['SYSTEM STOP REPLICATION QUEUES','SYSTEM START REPLICATION QUEUES','STOP REPLICATION QUEUES','START REPLICATION QUEUES'] TABLE SYSTEM
SYSTEM DROP REPLICA ['DROP REPLICA'] TABLE SYSTEM
2020-05-12 21:46:14 +00:00
SYSTEM SYNC REPLICA ['SYNC REPLICA'] TABLE SYSTEM
SYSTEM RESTART REPLICA ['RESTART REPLICA'] TABLE SYSTEM
SYSTEM RESTORE REPLICA replica [ON CLUSTER cluster] (#13652) * initial commit: add setting and stub * typo * added test stub * fix * wip merging new integration test and code proto * adding steps interpreters * adding firstly proposed solution (moving parts etc) * added checking zookeeper path existence * fixing the include * fixing and sorting includes * fixing outdated struct * fix the name * added ast ptr as level of indirection * fix ref * updating the changes * working on test stub * fix iterator -> reference * revert rocksdb submodule update * fixed show privileges test * updated the test stub * replaced rand() with thread_local_rng(), updated the tests updated the test fixed test config path test fix removed error messages fixed the test updated the test fixed string literal fixed literal typo: = * fixed the empty replica error message * updated the test and the code with logs * updated the possible test cases, updated * added the code/test milestone comments * updated the test (added more testcases) * replaced native assert with CH one * individual replicas recursive delete fix * updated the AS db.name AST * two small logging fixes * manually generated AST fixes * Updated the test, added the possible algo change * Some thoughts about optimizing the solution: ALTER MOVE PARTITION .. TO TABLE -> move to detached/ + ALTER ... ATTACH * fix * Removed the replica sync in test as it's invalid * Some test tweaks * tmp * Rewrote the algo by using the executeQuery instead of hand-crafting the ASTPtr. Two questions still active. * tr: logging active parts * Extracted the parts moving algo into a separate helper function * Fixed the test data and the queries slightly * Replaced query to system.parts to direct invocation, started building the test that breaks on various parts. * Added the case for tables when at least one replica is alive * Updated the test to test replicas restoration by detaching/attaching * Altered the test to check restoration without replica restart * Added the tables swap in the start if the server failed last time * Hotfix when only /replicas/replica... path was deleted * Restore ZK paths while creating a replicated MergeTree table * Updated the docs, fixed the algo for individual replicas restoration case * Initial parts table storage fix, tests sync fix * Reverted individual replica restoration to general algo * Slightly optimised getDataParts * Trying another solution with parts detaching * Rewrote algo without any steps, added ON CLUSTER support * Attaching parts from other replica on restoration * Getting part checksums from ZK * Removed ON CLUSTER, finished working solution * Multiple small changes after review * Fixing parallel test * Supporting rewritten form on cluster * Test fix * Moar logging * Using source replica as checksum provider * improve test, remove some code from parser * Trying solution with move to detached + forget * Moving all parts (not only Committed) to detached * Edited docs for RESTORE REPLICA * Re-merging * minor fixes Co-authored-by: Alexander Tokmakov <avtokmakov@yandex-team.ru>
2021-06-20 08:24:43 +00:00
SYSTEM RESTORE REPLICA ['RESTORE REPLICA'] TABLE SYSTEM
SYSTEM SYNC DATABASE REPLICA ['SYNC DATABASE REPLICA'] DATABASE SYSTEM
2022-05-25 20:20:13 +00:00
SYSTEM SYNC TRANSACTION LOG ['SYNC TRANSACTION LOG'] GLOBAL SYSTEM
2020-05-12 21:46:14 +00:00
SYSTEM FLUSH DISTRIBUTED ['FLUSH DISTRIBUTED'] TABLE SYSTEM FLUSH
SYSTEM FLUSH LOGS ['FLUSH LOGS'] GLOBAL SYSTEM FLUSH
SYSTEM FLUSH [] \N SYSTEM
2021-12-30 20:39:43 +00:00
SYSTEM THREAD FUZZER ['SYSTEM START THREAD FUZZER','SYSTEM STOP THREAD FUZZER','START THREAD FUZZER','STOP THREAD FUZZER'] GLOBAL SYSTEM
2022-06-08 12:09:59 +00:00
SYSTEM UNFREEZE ['SYSTEM UNFREEZE'] GLOBAL SYSTEM
2020-05-12 21:46:14 +00:00
SYSTEM [] \N ALL
dictGet ['dictHas','dictGetHierarchy','dictIsIn'] DICTIONARY ALL
addressToLine [] GLOBAL INTROSPECTION
2022-01-08 12:21:39 +00:00
addressToLineWithInlines [] GLOBAL INTROSPECTION
2020-05-12 21:46:14 +00:00
addressToSymbol [] GLOBAL INTROSPECTION
demangle [] GLOBAL INTROSPECTION
INTROSPECTION ['INTROSPECTION FUNCTIONS'] \N ALL
FILE [] GLOBAL SOURCES
URL [] GLOBAL SOURCES
REMOTE [] GLOBAL SOURCES
MONGO [] GLOBAL SOURCES
2022-04-13 07:35:37 +00:00
MEILISEARCH [] GLOBAL SOURCES
2020-05-12 21:46:14 +00:00
MYSQL [] GLOBAL SOURCES
2020-12-28 13:56:46 +00:00
POSTGRES [] GLOBAL SOURCES
2021-05-28 17:00:26 +00:00
SQLITE [] GLOBAL SOURCES
2020-05-12 21:46:14 +00:00
ODBC [] GLOBAL SOURCES
JDBC [] GLOBAL SOURCES
HDFS [] GLOBAL SOURCES
S3 [] GLOBAL SOURCES
2022-03-21 06:28:48 +00:00
HIVE [] GLOBAL SOURCES
2020-05-12 21:46:14 +00:00
SOURCES [] \N ALL
CLUSTER [] GLOBAL ALL
2020-05-12 21:46:14 +00:00
ALL ['ALL PRIVILEGES'] \N \N
NONE ['USAGE','NO PRIVILEGES'] \N \N