Skip to content

Commit

Permalink
Add test case for multiple inserts in sql (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulimo authored Dec 15, 2023
1 parent a6df16a commit ec656b5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/FlowtideDotNet.Substrait.Tests/SqlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1267,5 +1267,24 @@ SELECT c1 + 1 FROM testtable
}
}, opt => opt.AllowingInfiniteRecursion().IncludingNestedObjects().ThrowingOnMissingMembers().RespectingRuntimeTypes());
}

[Fact]
public void TestMultipleInserts()
{
builder.Sql(@"
CREATE TABLE testtable (
c1 any,
c2 any
);
INSERT INTO output
SELECT c1 FROM testtable;
INSERT INTO output
SELECT c1 FROM testtable;
");

var plan = builder.GetPlan();
}
}
}

0 comments on commit ec656b5

Please sign in to comment.