Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter notebooks create invalid SPL code when the project name is a reserved word in SPL #2474

Closed
ghost opened this issue Jun 4, 2020 · 0 comments · Fixed by #2475
Closed
Labels

Comments

@ghost
Copy link

ghost commented Jun 4, 2020

The topology declaration

topo = Topology(name="MyTopology")

creates invalid SPL code when the CPD project has the name stream:

namespace stream;
@spl__project(id='bd31ce22-2921-47a2-b00a-54446faf0af7',name='stream')
public composite MyTopology
{ ...

stream is a reserved word in SPL and cannot be the SPL namespace.

In general, the SPL namespace must not be a reserved word, whatever is defined in the topology declaration or in the environment (PROJECT_NAME, DSX_PROJECT_NAME).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant