Skip to content

Commit e8270d7

Browse files
cpcloudbkietz
authored andcommitted
ARROW-14351: [IR] Add projection list to Source node
- Add projection field indices to Source - Regenerate code Closes apache#11439 from cpcloud/ARROW-14351 Authored-by: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Signed-off-by: Benjamin Kietzman <bengilgit@gmail.com>
1 parent 2ae84e8 commit e8270d7

2 files changed

Lines changed: 36 additions & 4 deletions

File tree

‎cpp/src/generated/Relation_generated.h‎

Lines changed: 27 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎experimental/computeir/Relation.fbs‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,15 @@ table Source {
186186
filter: Expression;
187187
/// Schemas are explicitly optional
188188
schema: org.apache.arrow.flatbuf.Schema;
189+
/// An optional list of field indices indicating which columns should be read
190+
/// from the source. Columns excluded from this listing will instead be replaced
191+
/// with all-null placeholders to guarantee that the schema of the source is
192+
/// unaffected by this projection.
193+
///
194+
/// A missing value indicates all columns should be read.
195+
///
196+
/// The behavior of an empty list is undefined.
197+
projection: [FieldIndex];
189198
}
190199

191200
/// The varieties of relations

0 commit comments

Comments
 (0)