You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ji...@apache.org on 2019/05/21 17:25:34 UTC

[incubator-pinot] branch master updated: [TE] Fix MySql data source to read the epoch time stamps (#4227)

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 <ji...@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-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org