You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2019/10/18 22:44:00 UTC

[GitHub] [incubator-pinot] jihaozh commented on a change in pull request #4718: [TE] support row count metric for Pinot

jihaozh commented on a change in pull request #4718: [TE] support row count metric for Pinot
URL: https://github.com/apache/incubator-pinot/pull/4718#discussion_r336699471
 
 

 ##########
 File path: thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/auto/onboard/AutoOnboardPinotMetadataSource.java
 ##########
 @@ -154,7 +158,7 @@ private boolean shouldRemoveDataset(DatasetConfigDTO datasetConfigDTO, Set<Strin
       List<MetricConfigDTO> metrics = metricDAO.findByDataset(datasetConfigDTO.getDataset());
       int metricCount = metrics.size();
       for (MetricConfigDTO metric : metrics) {
-        if (!metric.isDerived()) {
+        if (!metric.isDerived() && !metric.getName().equals(ROW_COUNT)) {
 
 Review comment:
   No, won't add a column. In ThirdEye, we will map "ROW_COUNT" to a count(*) metric. 
   This line is to ensure that the metric won't be removed automatically.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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