File: alter_catalog.sql

package info (click to toggle)
sqlfluff 3.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,000 kB
  • sloc: python: 106,131; sql: 34,188; makefile: 52; sh: 8
file content (18 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- Transfer ownership of the catalog to another user
ALTER CATALOG some_cat OWNER TO `alf@melmak.et`;
ALTER CATALOG some_cat OWNER TO my_group;

-- SET is allowed as an optional keyword
ALTER CATALOG some_cat SET OWNER TO `alf@melmak.et`;
ALTER CATALOG some_cat SET OWNER TO my_group;

-- Set and unset catalog tags
ALTER CATALOG some_cat SET TAGS ('tag1'='value1');
ALTER CATALOG some_cat SET TAGS ('tag2'='value2', 'tag3'='value3');
ALTER CATALOG some_cat UNSET TAGS ('tag1');
ALTER CATALOG some_cat UNSET TAGS ('tag2', 'tag3');

-- Enable/Inherit/Disable Predictive Optimization
ALTER CATALOG some_cat ENABLE PREDICTIVE OPTIMIZATION;
ALTER CATALOG some_cat INHERIT PREDICTIVE OPTIMIZATION;
ALTER CATALOG some_cat DISABLE PREDICTIVE OPTIMIZATION;