From 8927d7a44320ebbb4fc534b02cae01f79fb2ade8 Mon Sep 17 00:00:00 2001 From: Ben Kirwin Date: Wed, 29 Nov 2023 21:06:14 -0500 Subject: [PATCH] Check errors are returned in the SLT --- test/sqllogictest/persist-fast-path.slt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/sqllogictest/persist-fast-path.slt b/test/sqllogictest/persist-fast-path.slt index 9ed3c430273b0..ad614d06a4f12 100644 --- a/test/sqllogictest/persist-fast-path.slt +++ b/test/sqllogictest/persist-fast-path.slt @@ -114,6 +114,13 @@ true true true +# Errors should always be returned even when the limit is small +statement ok +CREATE MATERIALIZED VIEW erroring AS SELECT 10.0 / (value - 1) FROM numbers; + +query error db error: ERROR: Evaluation error: division by zero +SELECT * FROM erroring LIMIT 10; + # Does not apply when the limit is high, or when mixed with features # that might require a full scan.