Github user yssharma commented on the issue:

    https://github.com/apache/spark/pull/18029
  
    For review @budde @brkyvz ^ this looks in a good state.
    @brkyvz - I still didn't quite get the code bit you shared, would love to 
make changes if you could explain that piece of your mind please.
    
    Where exactly would this part fit-
    ```
    trait InitialPosition {
      def setInitialPosition(clientConf: KinesisClientLibConfiguration): 
KinesisClientLibConfiguration
    }
    
    case object Latest {
      override def setInitialPosition(clientConf: 
KinesisClientLibConfiguration): KinesisClientLibConfiguration = {
        
clientLibConf.withInitialPositionInStream(InitialPositionInStream.LATEST)
      }
    }
    
    case object TrimHorizon {
      override def setInitialPosition(clientConf: 
KinesisClientLibConfiguration): KinesisClientLibConfiguration = {
        
clientLibConf.withInitialPositionInStream(InitialPositionInStream.TRIM_HORIZON)
      }
    }
    
    case class AtTimestamp(timestamp: Date) {
      override def setInitialPosition(clientConf: 
KinesisClientLibConfiguration): KinesisClientLibConfiguration = {
        clientLibConf. withTimestampAtInitialPositionInStream(timestamp)
      }
    }
    ```


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to