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

few changes to fix issues #2

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

few changes to fix issues #2

wants to merge 8 commits into from

Conversation

dorjeetsering
Copy link

Made few changes while running secor for input team and signal secor

zyuan-paytm and others added 8 commits September 23, 2019 11:23
# Conflicts:
#	src/main/java/com/pinterest/secor/common/AvroSchemaRegistry.java
#	src/main/java/com/pinterest/secor/common/ConfigurableAvroSchemaRegistry.java
#	src/main/java/com/pinterest/secor/common/SecorSchemaRegistryClient.java
#	src/main/java/com/pinterest/secor/io/impl/AvroParquetFileReaderWriterFactory.java
#	src/test/java/com/pinterest/secor/io/impl/AvroParquetFileReaderWriterFactoryTest.java
# Conflicts:
#	src/main/java/com/pinterest/secor/util/orc/VectorColumnFiller.java
# Conflicts:
#	src/main/java/com/pinterest/secor/reader/SecorKafkaMessageIterator.java
#	src/main/java/com/pinterest/secor/util/orc/JsonFieldFiller.java
@@ -68,7 +68,6 @@ public GenericRecord deserialize(String topic, byte[] message) {
GenericRecord record = (GenericRecord) deserializer.deserialize(topic, message);
if (record != null) {
Schema schema = record.getSchema();
schemas.put(topic, schema);
Copy link

@ruccoon ruccoon May 14, 2020

Choose a reason for hiding this comment

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

hi @dorjeetsering, just curious here, do we need remove this line, looks like nothing get updated to the record

Copy link
Author

Choose a reason for hiding this comment

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

That's the main change we want. We can remove the null check block.
if (record != null) {
Schema schema = record.getSchema();
}

Copy link

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants