I am new to dataform and am migrating some ETL activities that involve Pivot and Unpivot.
I have created a config {type: “operations”} etc but in the query string that I am building for Execute Immediate I am extracting the column names from the schema:
select column_name from myProject.myDataset.INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = ${ref(“myTable”)}
but ${ref(“myTable”)} returns the fully qualified myProject.myDataset.myTable and causes an error. How can I get just the table name from ${ref()}?
Similarly, how can I get just the myProject.myDataset part of the qualified name?