In the DSG, UDFs are scripted through various codecs. These codecs are scripted in Python and support the extraction and transformation rules. In versions prior to the DSG 3.0.0.0, UDFs were scripted in Python version 2. In versions later that 3.0.0.0, Python has been upgraded to version 3. While upgrading the DSG to version 3.0.0.0 or beyond, scripts coded in Python version 2 must be migrated to Python version 3. This ensures that the UDFs are compatible with the latest version of the DSG and run correctly.
Run the following steps to migrate the UDFs to python 3.
- Extract Python scripts from any UDFs in older DSG versions.
- Using a library, such as, python 2to3, convert the exported UDFs written in python 2 to python 3. Refer to https://docs.python.org/3/library/2to3.html for the detailed procedure.
- In the DSG 3.0.0.0, import the converted Python scripts in the UDF codec.