Skip to content

Commit 98e5931

Browse files
committed
Add SET scalar_subquery_error_on_multiple_rows=false; and set all tpch query tests to strict
1 parent b265ee8 commit 98e5931

File tree

3 files changed

+27
-23
lines changed

3 files changed

+27
-23
lines changed

duckdb

Submodule duckdb updated 2003 files

src/substrait_extension.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ static void ToSubFunction(ClientContext &context, TableFunctionInput &data_p, Da
163163
return;
164164
}
165165
auto new_conn = Connection(*context.db);
166+
// If error(varchar) gets implemented in substrait this can be removed
167+
new_conn.Query("SET scalar_subquery_error_on_multiple_rows=false;");
166168

167169
unique_ptr<LogicalOperator> query_plan;
168170
string serialized;
@@ -195,6 +197,8 @@ static void ToJsonFunction(ClientContext &context, TableFunctionInput &data_p, D
195197
return;
196198
}
197199
auto new_conn = Connection(*context.db);
200+
// If error(varchar) gets implemented in substrait this can be removed
201+
new_conn.Query("SET scalar_subquery_error_on_multiple_rows=false;");
198202

199203
unique_ptr<LogicalOperator> query_plan;
200204
string serialized;

0 commit comments

Comments
 (0)