Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LYFT][STRMCMP-1152] Code refactoring for s3AndKinesis PTransform #49

Merged
merged 2 commits into from Nov 30, 2020

Conversation

maghamravi
Copy link

Refactoring s3AndKinesis PTransform.

  1. Adding missing dependencies.
  2. Default Kinesis parallelism
  3. Removing namedtuple and using classes.
  4. Variable renaming

@maghamravi
Copy link
Author

/ptal (👀) @premsantosh @glaksh100

Copy link

@premsantosh premsantosh left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks for making this change.

runners/flink/flink_runner.gradle Show resolved Hide resolved
builder = builder.withLatenessInSec(latenessInSec.asLong());
JsonNode maxOutOfOrdernessMillis = node.get("max_out_of_orderness_millis");
if (maxOutOfOrdernessMillis != null) {
builder = builder.withLatenessInSec(maxOutOfOrdernessMillis.asLong()/1000);

Choose a reason for hiding this comment

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

Lets just add a TODO here to change the builder method name later as well.

Copy link
Author

Choose a reason for hiding this comment

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

I made the change to avoid tripping off Beam users. One is developer friendly and the other is streaming pro friendly :) Added a TODO for now.

sdks/python/apache_beam/io/lyft/s3_and_kinesis.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants