- The following transforms might make original row information invalid or otherwise unavailable. In these cases, the reference returns null values:
When working with datasets sourced from Parquet files, the
$sourcerownumberreference is not supported.
The following example generates a new column containing the source row number for each row in the dataset, if available:
If you have already used the
$filepath reference, as in the previous example, you can combine these two columns to create a unique key to the source of each row:
$col variable is a reference to the column that is currently being evaluated. This variable references the state of the current dataset, instead of the original source.
In the following example, all columns in the dataset that are of String type are converted to uppercase:
In the above, the wildcard applies the edit to each column. Each column is tested to see if it is mismatched with the String data type. If mismatched, the value in the column (
$col) is written. Otherwise, the value in the column is converted to uppercase (