This is an automated email from the ASF dual-hosted git repository.

jihao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new e1e79bf  [TE] Fix MySql data source to read the epoch time stamps 
(#4227)
e1e79bf is described below

commit e1e79bf8561b1fe4ab4b510acdff18b1569490b1
Author: Jihao Zhang <jihzh...@linkedin.com>
AuthorDate: Tue May 21 10:25:30 2019 -0700

    [TE] Fix MySql data source to read the epoch time stamps (#4227)
---
 .../thirdeye/datasource/pinot/resultset/ThirdEyeResultSetUtils.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/datasource/pinot/resultset/ThirdEyeResultSetUtils.java
 
b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/datasource/pinot/resultset/ThirdEyeResultSetUtils.java
index e7d49cc..ee04a78 100644
--- 
a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/datasource/pinot/resultset/ThirdEyeResultSetUtils.java
+++ 
b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/datasource/pinot/resultset/ThirdEyeResultSetUtils.java
@@ -95,7 +95,7 @@ public class ThirdEyeResultSetUtils {
         isISOFormat = true;
         inputDataDateTimeFormatter = 
DateTimeFormat.forPattern(timeFormat).withZone(dateTimeZone);
       }
-      if (sourceName.equals(MYSQL) || sourceName.equals(H2) ) {
+      if (isISOFormat && (sourceName.equals(MYSQL) || sourceName.equals(H2))) {
         serverDataDateTimeFormatter = 
DateTimeFormat.forPattern(timeFormat).withZone(DateTimeZone.getDefault());
       }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to