This is an automated email from the ASF dual-hosted git repository. xhsun 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 0706138 [TE] fix mock data source (#4189) 0706138 is described below commit 07061381b3619637d311ff00d9ddf2bdb77b8e47 Author: Xiaohui Sun <xh...@linkedin.com> AuthorDate: Tue May 7 21:04:21 2019 -0700 [TE] fix mock data source (#4189) * [TE] fix mock data source * [TE] fix a typo in the configuration --- .../config/data-sources/data-sources-config.yml | 52 +++++++++++----------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/thirdeye/thirdeye-pinot/config/data-sources/data-sources-config.yml b/thirdeye/thirdeye-pinot/config/data-sources/data-sources-config.yml index 1c8379d..b889767 100644 --- a/thirdeye/thirdeye-pinot/config/data-sources/data-sources-config.yml +++ b/thirdeye/thirdeye-pinot/config/data-sources/data-sources-config.yml @@ -1,28 +1,6 @@ -dataSourceConfigs: - - className: org.apache.pinot.thirdeye.datasource.sql.SqlThirdEyeDataSource - properties: - H2: - db: jdbc:h2:./config/h2db - user: sa - password: sa - datasets: - - tableName: "H2.H2.daily" - timeColumn: "date" - granularity: "1DAYS" - timeFormat: "yyyy-MM-dd" - timezone: "UTC" - metrics: - value: "SUM" - dataFile: "daily.csv" - - tableName: "H2.H2.hourly" - timeColumn: "datetime" - granularity: "1HOURS" - timeFormat: "yyyy-MM-dd HH:mm:ss" - timezone: "UTC" - metrics: - value: "SUM" - dataFile: "hourly.csv" +# Please put the mock data source as the first in this configuration. +dataSourceConfigs: - className: org.apache.pinot.thirdeye.datasource.mock.MockThirdEyeDataSource properties: populateMetaData: true @@ -208,4 +186,28 @@ dataSourceConfigs: std: 15 edge: mean: 20 - std: 3 \ No newline at end of file + std: 3 + + - className: org.apache.pinot.thirdeye.datasource.sql.SqlThirdEyeDataSource + properties: + H2: + db: jdbc:h2:./config/h2db + user: sa + password: sa + datasets: + - tableName: "H2.H2.daily" + timeColumn: "date" + granularity: "1DAYS" + timeFormat: "yyyy-MM-dd" + timezone: "UTC" + metrics: + value: "SUM" + dataFile: "daily.csv" + - tableName: "H2.H2.hourly" + timeColumn: "datetime" + granularity: "1HOURS" + timeFormat: "yyyy-MM-dd HH:mm:ss" + timezone: "UTC" + metrics: + value: "SUM" + dataFile: "hourly.csv" \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org