We would like to have correctness checks for Python source strings when we construct PythonCallableSource object in Java SDK.
We might launch Python subprocess in PythonCallableSource.of method and call eval function to easily check syntactic correctness. Python parser module from Jython library could also be helpful.
Imported from Jira BEAM-14457. Original Jira may contain additional context.
Reported by: heejong.