nwangtw commented on a change in pull request #3109: Add withStream() in 
Streamlet to support stream selection
URL: https://github.com/apache/incubator-heron/pull/3109#discussion_r235586373
 
 

 ##########
 File path: 
heron/api/tests/scala/org/apache/heron/streamlet/scala/impl/StreamletImplTest.scala
 ##########
 @@ -245,6 +246,62 @@ class StreamletImplTest extends BaseFunSuite {
     verifySupplierStreamlet(supplierStreamlet2)
   }
 
+  test("StreamletImpl should support split and withStream transformation") {
+    val supplierStreamlet = builder
+      .newSource(() => Math.random)
+      .setName("Supplier_Streamlet_1")
+      .setNumPartitions(20)
+
+    val splitted = supplierStreamlet
 
 Review comment:
   In that case, the default streamid is used. An error will be thrown during 
submission because of stream not available.
   
   The error happens during submission, let me think what is the best way to 
cover it in UT.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to