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

updated to send unmarshalled record with schema to kafka topic #7

Merged
merged 1 commit into from
Sep 14, 2022

Conversation

gurjit-sandhu
Copy link

updated to send unmarshalled record with schema to kafka topic and updated test cases

attributeValueStruct.put(attributeName, attributeValue.getBOOL());
}
}
return attributeValueStruct;

Choose a reason for hiding this comment

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

should probably have an else? what if none of the else ifs match?
Also -> i'm sure you recognize the ugliness. Any better way?

Choose a reason for hiding this comment

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

A switch maybe?

Copy link
Author

Choose a reason for hiding this comment

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

yep i will refactor some of this code once i make sure this is working with data in dev. will make it more cleaner and easy to read with comments

Choose a reason for hiding this comment

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

I looked at the underlying AttributeValue.java. hideous code.
private String n; -> screw you!
to be clear, not gurjit's code.

attributeValueStruct.put(attributeName, attributeValue.getBOOL());
}
}
return attributeValueStruct;

Choose a reason for hiding this comment

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

A switch maybe?

@gurjit-sandhu gurjit-sandhu merged commit e8d0240 into master Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants