What is a renaming object?
It is an object that underwent a name change during the migration, following the changes configured in Redshift Studio.
The renaming report is presented in a table format, and contains the following columns:
Copy CREATE SCHEMA Renaming_example_schema ;
CREATE TABLE Renaming_example_schema .Renaming_example_table_tl (
id INT ,
name VARCHAR ( 100 )
);
INSERT INTO Renaming_example_schema.Renaming_example_table_tl(id, name ) VALUES ( 1 , "tom" );
SELECT * FROM Renaming_example_schema.Renaming_example_table_tl;
CREATE TABLE DB_1 .MASTER.Renaming_example_table_tl_v2 (
id INT ,
name VARCHAR ( 100 )
);
INSERT INTO DB_1.MASTER.Renaming_example_table_tl_v2(id, name ) VALUES ( 1 , "tom" );
SELECT * FROM DB_1.MASTER.Renaming_example_table_tl_v2;
CREATE TABLE NoRenaming_db .NoRenaming_schema.NoRenamingTable_test (
id INT ,
name VARCHAR ( 100 )
)
INSERT INTO NoRenaming_db.NoRenaming_schema.NoRenamingTable_test(id, name ) VALUES ( 1 , "tom" );
SELECT * FROM NoRenaming_db.NoRenaming_schema.NoRenamingTable_test;
Copy CREATE SCHEMA IF NOT EXISTS Target_Renaming_example_schema
COMMENT = '{ "origin": "sf_sc", "name": "snowconvert", "version": { "major": 0, "minor": 0, "patch": "0" }, "attributes": { "component": "redshift", "convertedOn": "10/23/2024" }}'
;
CREATE TABLE Target_Renaming_example_schema .Target_Renaming_example_table_tl (
id INT ,
name VARCHAR ( 100 )
)
COMMENT = '{ "origin": "sf_sc", "name": "snowconvert", "version": { "major": 0, "minor": 0, "patch": "0" }, "attributes": { "component": "redshift", "convertedOn": "10/23/2024" }}';
INSERT INTO Target_Renaming_example_schema.Target_Renaming_example_table_tl (id, name ) VALUES ( 1 , "tom" );
SELECT * FROM
Target_Renaming_example_schema.Target_Renaming_example_table_tl;
CREATE TABLE Target_DB_1 .MASTER.Renaming_example_table_tl_v2 (
id INT ,
name VARCHAR ( 100 )
)
COMMENT = '{ "origin": "sf_sc", "name": "snowconvert", "version": { "major": 0, "minor": 0, "patch": "0" }, "attributes": { "component": "redshift", "convertedOn": "10/23/2024" }}';
INSERT INTO Target_DB_1.MASTER.Renaming_example_table_tl_v2 (id, name ) VALUES ( 1 , "tom" );
SELECT * FROM
Target_DB_1.MASTER.Renaming_example_table_tl_v2;
CREATE TABLE NoRenaming_db .NoRenaming_schema.NoRenamingTable_test (
id INT ,
name VARCHAR ( 100 )
)
COMMENT = '{ "origin": "sf_sc", "name": "snowconvert", "version": { "major": 0, "minor": 0, "patch": "0" }, "attributes": { "component": "redshift", "convertedOn": "10/23/2024" }}'
INSERT INTO NoRenaming_db.NoRenaming_schema.NoRenamingTable_test (id, name ) VALUES ( 1 , "tom" );
SELECT * FROM
NoRenaming_db.NoRenaming_schema.NoRenamingTable_test;
Renaming and reporting are only available for top-level objects. Embedded objects will not appear in the report and renaming will not be applied to these objects.