Github user brkyvz commented on the issue: https://github.com/apache/spark/pull/17250 Good point @budde. I can think of two options: 1. Leave it as a constructor param 2. Make the `Builder` class non-generic and have the `build` function take the message handler: ```scala class Builder { def build(): KinesisInputDStream[Array[Byte]] def buildWithMessageHandler[T](f: Record => T): KinesisInputDStream[T] } ``` It's a matter of taking it as the first parameter or the final parameter. There are other ways to do it as well, but will throw runtime exceptions instead of at compile time. cc @rxin for input on APIs
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org