@@ -226,7 +226,7 @@ CALL admin_catalog.sys.add_acl(
226226Allow `consumer` user to read data :
227227` ` ` sql
228228CALL admin_catalog.sys.add_acl(
229- resource => 'cluster',
229+ resource => 'cluster',
230230 permission => 'ALLOW',
231231 principal => 'User:consumer',
232232 operation => 'READ'
@@ -242,13 +242,13 @@ CALL admin_catalog.sys.list_acl(
242242Output will show like :
243243
244244` ` ` text
245- +------------------------------------------------------------------------------------------------------- +
246- | result |
247- +------------------------------------------------------------------------------------------------------- +
245+ +---------------------------------------------------------------------------------------------+
246+ | result |
247+ +---------------------------------------------------------------------------------------------+
248248| resource="cluster";permission="ALLOW";principal="User:developer";operation="READ";host="*" |
249249| resource="cluster";permission="ALLOW";principal="User:developer";operation="WRITE";host="*" |
250250| resource="cluster";permission="ALLOW";principal="User:consumer";operation="READ";host="*" |
251- +------------------------------------------------------------------------------------------------------- +
251+ +---------------------------------------------------------------------------------------------+
2522523 rows in set
253253` ` `
254254
@@ -260,7 +260,7 @@ USE CATALOG admin_catalog;
260260
261261-- create table using admin credentials
262262CREATE TABLE fluss_order (
263- ` order_key` INT NOT NULL,
263+ ` order_key` INT NOT NULL,
264264 ` total_price` DECIMAL(15, 2),
265265 PRIMARY KEY (`order_key`) NOT ENFORCED
266266);
@@ -540,12 +540,12 @@ CALL admin_catalog.sys.list_acl(
540540```
541541Output will show like:
542542``` text
543- +----------------------------------------------------------------------------------------------------+
544- | result |
545- +----------------------------------------------------------------------------------------------------+
543+ +-------------------------------------------------------------------------------------------------------- +
544+ | result |
545+ +-------------------------------------------------------------------------------------------------------- +
546546| resource="cluster.marketing_db";permission="ALLOW";principal="User:marketing";operation="ALL";host="*" |
547547| resource="cluster.finance_db";permission="ALLOW";principal="User:finance";operation="ALL";host="*" |
548- +----------------------------------------------------------------------------------------------------+
548+ +-------------------------------------------------------------------------------------------------------- +
5495492 rows in set
550550```
551551
@@ -594,7 +594,7 @@ The `marketing` user can operate on their own database:
594594USE CATALOG marketing_catalog;
595595-- create table using marketing user credentials
596596CREATE TABLE `marketing_db `.` order` (
597- ` order_key` INT NOT NULL ,
597+ ` order_key` INT NOT NULL ,
598598 ` total_price` DECIMAL (15 , 2 ),
599599 PRIMARY KEY (` order_key` ) NOT ENFORCED
600600);
@@ -612,7 +612,7 @@ The `finance` user cannot access the `marketing` database:
612612USE CATALOG finance_catalog;
613613-- create table using finance user credentials
614614CREATE TABLE `marketing_db `.` order` (
615- ` order_key` INT NOT NULL ,
615+ ` order_key` INT NOT NULL ,
616616 ` total_price` DECIMAL (15 , 2 ),
617617 PRIMARY KEY (` order_key` ) NOT ENFORCED
618618);
0 commit comments