columnName() {
    const displayName = this.options()["display-name"];
    if (displayName) {
      return displayName;
    }
    const aggregation = this.aggregation();
    if (aggregation.isCustom()) {
      return "expression";
    } else if (aggregation.isMetric()) {
      const metric = aggregation.metric();
      if (metric) {
        // delegate to the metric's definition
        return metric.columnName();
      }
    } else if (aggregation.isStandard()) {
      const short = this.short();
      if (short) {
        // NOTE: special case for "distinct"
        return short === "distinct" ? "count" : short;
      }
    }
    return null;
  }
/**
   * Returns the column name (non-deduplicated)
   */
Returns the column name (non-deduplicated)
Returns the column name ( non - deduplicated )
columnName() {
    const displayName = this.options()["display-name"];
    if (displayName) {
      return displayName;
    }
    const aggregation = this.aggregation();
    if (aggregation.isCustom()) {
      return "expression";
    } else if (aggregation.isMetric()) {
      const metric = aggregation.metric();
      if (metric) {
        return metric.columnName();
      }
    } else if (aggregation.isStandard()) {
      const short = this.short();
      if (short) {
        return short === "distinct" ? "count" : short;
      }
    }
    return null;
  }
columnName ( ) { const displayName = this . options ( ) [ "display-name" ] ; if ( displayName ) { return displayName ; } const aggregation = this . aggregation ( ) ; if ( aggregation . isCustom ( ) ) { return "expression" ; } else if ( aggregation . isMetric ( ) ) { const metric = aggregation . metric ( ) ; if ( metric ) { return metric . columnName ( ) ; } } else if ( aggregation . isStandard ( ) ) { const short = this . short ( ) ; if ( short ) { return short === "distinct" ? "count" : short ; } } return null ; }
Returns the column name (non-deduplicated)
Returns the column name ( non - deduplicated )
// delegate to the metric's definition // NOTE: special case for "distinct"