KazydubB commented on a change in pull request #1635: DRILL-7021: HTTPD Throws 
NPE and Doesn't Recognize Timeformat
URL: https://github.com/apache/drill/pull/1635#discussion_r262831816
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/store/httpd/HttpdLogRecord.java
 ##########
 @@ -109,8 +117,36 @@ public void set(final String field, final Long value) {
       if (w != null) {
         LOG.trace("Parsed field: {}, as long: {}", field, value);
         w.writeBigInt(value);
+      } else {
+        LOG.warn("No 'long' writer found for field: {}", field);
       }
-      else {
+    }
+  }
+
+  /**
+   * This method is referenced and called via reflection. This is added as a 
parsing target for the parser. It will get
+   * called when the value of a log field is a timesstamp data type.
+   *
+   * @param field name of field
+   * @param value value of field
+   */
+  @SuppressWarnings("unused")
+  public void setTimestamp(final String field, final String value) {
 
 Review comment:
   Avoid using `final` unnecessarily.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to