Skip to content

Commit

Permalink
add types test
Browse files Browse the repository at this point in the history
  • Loading branch information
dshaaban01 committed Jan 9, 2025
1 parent 78d8129 commit 63167ef
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/Dialect/Substrait/types.mlir
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
// RUN: substrait-opt -split-input-file %s \
// RUN: | FileCheck %s

// CHECK-LABEL: substrait.plan
// CHECK: relation
// CHECK: %[[V0:.*]] = named_table @t1 as ["a"] : tuple<!substrait.date>
// CHECK-NEXT: yield %0 : tuple<!substrait.date>

substrait.plan version 0 : 42 : 1 {
relation {
%0 = named_table @t1 as ["a"] : tuple<!substrait.date>
yield %0 : tuple<!substrait.date>
}
}

// -----

// CHECK-LABEL: substrait.plan
// CHECK: relation
// CHECK: %[[V0:.*]] = named_table @t1 as ["a", "b"] : tuple<f32, f64>
Expand Down

0 comments on commit 63167ef

Please sign in to comment.