Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackie-Jiang committed Mar 4, 2019
1 parent 7932f09 commit 5854f5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private void validateSchema() {
org.apache.avro.Schema avroSchema = _avroReader.getSchema();
for (FieldSpec fieldSpec : _fieldSpecs) {
String fieldName = fieldSpec.getName();
Field avroField = avroSchema.getField(fieldSpec.getName());
Field avroField = avroSchema.getField(fieldName);
if (avroField == null) {
LOGGER.warn("Pinot field: {} does not exist in Avro Schema", fieldName);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
/**
* The <code>RecordReader</code> interface is used to read records from various file formats into {@link GenericRow}s.
* Pinot segments will be generated from {@link GenericRow}s.
* <p>NOTE: for time column, record reader should be able to read both incoming and outgoing time (see
* {@link RecordReaderUtils#extractFieldSpecs(Schema)} for details).
*/
public interface RecordReader extends Closeable {

Expand Down

0 comments on commit 5854f5e

Please sign in to comment.