apache / apache/beam

Check syntactic errors in Python source string for Java PythonCallableSource object

Open
#21,568 0 comments 0 reactions 0 assignees View on GitHub
core cross-language improvement java P2
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

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](https://issues.apache.org/jira/browse/BEAM-14457). Original Jira may contain additional context.
Reported by: heejong.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.