public static SqlSelectBlock makeSelect(SqlDistinct node) {
    SqlSelectBlock result = _makeSelect(node.getSubNode());
    result.setDistinct(true);

    // Sort conditions must now become part of the projection

    return result;
  }