When using Upsolver SQLake, if my source table has 100's of columns, and I want to include most of them in a transformation, but exclude a few, can I do that without having to explicitly map every column in the transformation SQL?
For example, if my source table has 5 columns, (col1, col2, col3, col4, col5), and in my transformation I do not want to include col3. I could use the following SQL:
SELECT col1, col2, col4, col5 FROM sourcetable
However, if my source table has 1000 columns, I'd rather not have to type out 999 columns if I don't have to.
I was looking for an option to generate SQL, or some option to exclude certain columns from a transformation.
SQLake supports an EXCEPT parameter in the transformation job definition. The transformation SQL will be evaluated, however columns in the EXCEPT reference will be excluded in the target table.
In this case, all columns from "source_table" will be written into "target_table" except for col3.