Skip to content

Feature/startingoffsets latest#55

Merged
kevinwallimann merged 4 commits intodevelopfrom
feature/startingoffsets-latest
Nov 5, 2019
Merged

Feature/startingoffsets latest#55
kevinwallimann merged 4 commits intodevelopfrom
feature/startingoffsets-latest

Conversation

@kevinwallimann
Copy link
Copy Markdown
Collaborator

No description provided.

import za.co.absa.hyperdrive.ingestor.implementation.transformer.column.selection.ColumnSelectorStreamTransformer
import za.co.absa.hyperdrive.ingestor.implementation.transformer.factories.StreamTransformerAbstractFactory
import za.co.absa.hyperdrive.shared.configurations.ConfigurationsKeys.ColumnSelectorStreamTransformerKeys
import za.co.absa.hyperdrive.shared.configurations.ConfigurationsKeys.{ColumnSelectorStreamTransformerKeys, KafkaStreamReaderKeys}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KafkaStreamReaderKeys - Unused import statement ?

@@ -58,7 +59,7 @@ private[manager] class CheckpointOffsetManager(val topic: String, val checkpoint

if (startingOffsets.isDefined) {
Copy link
Copy Markdown
Collaborator

@jozefbakus jozefbakus Nov 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rewrite if statement to something like this:

   startingOffsets match {
      case Some(startOffset) =>
        logger.info(s"Setting starting offsets for topic '$topic' = $startOffset.")
        streamReader.option(WORD_STARTING_OFFSETS, startOffset)
      case None =>
        logger.info(s"No offsets to set for topic '$topic'.")
        streamReader
    } 

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw you can use triple backticks ``` to make multiline code comments

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@kevinwallimann kevinwallimann changed the base branch from feature/partitioned-writer to develop November 5, 2019 12:47
@kevinwallimann kevinwallimann merged commit a6eba81 into develop Nov 5, 2019
@kevinwallimann kevinwallimann deleted the feature/startingoffsets-latest branch November 5, 2019 13:05
@kevinwallimann kevinwallimann modified the milestones: v1.1.0, v2.0.0 Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants