Migrate UDFs to Python 3
Configure the UDFs after upgrade.
In DSG, UDFs are scripted through various codecs. These codecs are scripted in Python that supports the extraction and transformation rules. In versions prior to the DSG 3.0.0.0, UDFs were scripted in Python version 2. However, from 3.0.0.0, Python is upgraded to version 3. While upgrading 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 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#module-lib2to3 for the detailed procedure.
- In the DSG 3.0.0.0, import the converted Python scripts in the UDF codec.