Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants