@Override
  public RelOptCost getScanCost(HiveTableScan ts, RelMetadataQuery mq) {
    return algoUtils.computeScanCost(mq.getRowCount(ts), mq.getAverageRowSize(ts));
  }
Cost model for Tez execution engine.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/cost/HiveOnTezCostModel.java