class PreJoinProjectNode extends ProjectNode {

  @Override
  public Stream<ColumnName> resolveSelectStar(
      final Optional<SourceName> sourceName
  ) {
    return getSource().resolveSelectStar(sourceName)
        .map(name -> aliases.getOrDefault(name, name));
  }

  public  PreJoinProjectNode(
      final PlanNodeId id,
      final PlanNode source,
      final SourceName alias
  );

}