Skip to content

Commit e9f87d8

Browse files
authored
Update 03727_alter_with_localhost_remote.sql
1 parent 6398898 commit e9f87d8

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed
Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,3 @@
11
-- Tags: no-replicated-database, no-parallel
22

3-
DROP USER IF EXISTS test_03727;
4-
CREATE USER test_03727;
5-
6-
CREATE TABLE normal
7-
(
8-
n Int32,
9-
s String
10-
)
11-
ENGINE = MergeTree()
12-
ORDER BY n;
13-
14-
CREATE TABLE secret
15-
(
16-
s String
17-
)
18-
ENGINE = MergeTree()
19-
ORDER BY s;
20-
21-
INSERT INTO normal VALUES (1, '');
22-
INSERT INTO secret VALUES ('secret');
23-
24-
GRANT ALTER UPDATE ON normal TO test_03727;
25-
GRANT READ ON REMOTE to test_03727;
26-
GRANT CREATE TEMPORARY TABLE ON *.* TO test_03727;
27-
28-
EXECUTE AS test_03727 ALTER TABLE normal UPDATE s = (SELECT * FROM remote('localhost', currentDatabase(), 'secret') LIMIT 1) WHERE n=1; -- { serverError ACCESS_DENIED }
29-
30-
DROP USER IF EXISTS test_03727;
3+
-- The test has been removed from the backport because it requires `EXECUTE AS` feature.

0 commit comments

Comments
 (0)