{"action":"opened","issue":{"url":"https://api.github.com/repos/IBMStreams/streamsx.topology/issues/361","repository_url":"https://api.github.com/repos/IBMStreams/streamsx.topology","labels_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/issues/361/labels{/name}","comments_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/issues/361/comments","events_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/issues/361/events","html_url":"https://github.com/IBMStreams/streamsx.topology/issues/361","id":150399080,"number":361,"title":"[Python] subscribe followed by parallel() causes a SPL compilation error","user":{"login":"ddebrunner","id":3769612,"avatar_url":"https://avatars.githubusercontent.com/u/3769612?v=3","gravatar_id":"","url":"https://api.github.com/users/ddebrunner","html_url":"https://github.com/ddebrunner","followers_url":"https://api.github.com/users/ddebrunner/followers","following_url":"https://api.github.com/users/ddebrunner/following{/other_user}","gists_url":"https://api.github.com/users/ddebrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/ddebrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddebrunner/subscriptions","organizations_url":"https://api.github.com/users/ddebrunner/orgs","repos_url":"https://api.github.com/users/ddebrunner/repos","events_url":"https://api.github.com/users/ddebrunner/events{/privacy}","received_events_url":"https://api.github.com/users/ddebrunner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-22T15:24:06Z","updated_at":"2016-04-22T15:24:06Z","closed_at":null,"body":"Modify the sample pubsub/subscribe.py to be (adding the `ts = ts.parallel(3)`:\r\n```\r\ndef main():\r\n  topo = Topology(\"SubscribeSimple\")\r\n\r\n  # Subscribe to streams with Python objects and topic 'simple'\r\n  ts = topo.subscribe('simple')\r\n\r\n  ts = ts.parallel(3)\r\n\r\n  # Print to see some output (in the PE Console log)\r\n  ts.print()\r\n\r\n  streamsx.topology.context.submit(\"DISTRIBUTED\", topo.graph)\r\n```\r\nresults in \r\n\r\n```\r\nSEVERE: /home/streamsadmin/topology/python/streamsx.topology/com.ibm.streamsx.topology/com.ibm.streamsx.topology.topic/topics.spl:43:3: CDISP0817D DETAILS: The Import operator producing the stream that crosses the parallel region boundary is defined here.\r\n\r\n```\r\n\r\nBe interesting to see if the Java api handles this, e.g. by inserting a pass through operator."}}