From f3e38190be9bd1928ad9f7cfe35d21c939c4e97c Mon Sep 17 00:00:00 2001 From: Dalia Shaaban <144673861+dshaaban01@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:07:15 +0100 Subject: [PATCH] add types test --- test/Dialect/Substrait/types.mlir | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/Dialect/Substrait/types.mlir diff --git a/test/Dialect/Substrait/types.mlir b/test/Dialect/Substrait/types.mlir new file mode 100644 index 0000000..99b6011 --- /dev/null +++ b/test/Dialect/Substrait/types.mlir @@ -0,0 +1,14 @@ +// RUN: substrait-opt -split-input-file -split-input-file %s \ +// RUN: | FileCheck %s + +// CHECK-LABEL: substrait.plan +// CHECK: relation +// CHECK: %[[V0:.*]] = named_table @t1 as ["a"] : tuple +// CHECK-NEXT: yield %0 : tuple + +substrait.plan version 0 : 42 : 1 { + relation { + %0 = named_table @t1 as ["a"] : tuple + yield %0 : tuple + } +} \ No newline at end of file