Skip to content

Commit

Permalink
#2313 Add a clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
homedirectory committed Sep 16, 2024
1 parent e010724 commit 54abeef
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public class Source3BasedOnQueries extends AbstractSource3 {
private final List<SourceQuery3> models;

public Source3BasedOnQueries(final List<SourceQuery3> models, final Integer id, final int sqlId) {
// It is sufficient to use just the first model's yields because all models in a list must share the same yield aliases.
// See YieldInfoNodesGenerator.
super("Q_" + sqlId, id, obtainColumnsFromYields(validateModels(models).getFirst().yields.getYields()));
this.models = ImmutableList.copyOf(models);
}
Expand Down

0 comments on commit 54abeef

Please sign in to comment.