Dependencies & cluster requirements
Dependencies & cluster requirements
Dependencies:
- ProphecySparkAlteryxPython 0.0.7+
- UC dedicated clusters not supported
- UC standard clusters not supported
- Livy clusters not supported
If you want to create new columns based on a set of conditions (rather than perform in-place replacement), you can use business rules.
Parameters
If a value does not meet a condition, then it will be replaced with a null value.
Expressions must be in Spark SQL format.
Example
If you have a dataset with a numeric column and need to apply an upper limit to its values dynamically, you can use the DynamicReplace gem. In this example, any value in a certain column over 200,000 (like 250,000) will be replaced with the value 200,000.Define datasets
The DynamicReplace gem requires two inputs. These are:- The original dataset. This contains the target column(s) for replacement and is the in0 of the DynamicReplace gem.
- The parameters dataset. This contains the dynamic replacement parameters and is the in1 of the DynamicReplace gem.
- If the value of a sale is more than 200,000, it is replaced with 200,000.
- If the value of a sale is less than or equal to 200,000, it remains unchanged.
Configure the gem
Once you have both datasets in your pipeline:- Add a DynamicReplace gem to the pipeline canvas.
- Connect the inputs to the DynamicReplace gem.
- Configure the DynamicReplace gem.

