In Dataiku, the functions defined in the project library do not have access to the global variables. This becomes a problem when we create global objects such as sparkContext and SQLContext. Is there a way to fix this?
For example, I created two identical functions, one placed in a library module (ca.py) and one placed in the main program (Main.py).
Calling x=getglobal() will run without a problem. However, when calling y=getglobal2() it will throw an error saying: "global name 'GVarX' is not defined.