Skip to content

Commit 5de6b5f

Browse files
committed
[PLUGIN-1572] Added error message when Wrangler uses SQL filters and the wrangler stage has more than 1 inputs
1 parent 240bd32 commit 5de6b5f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

wrangler-transform/src/main/java/io/cdap/wrangler/Wrangler.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,12 @@ public void destroy() {
381381
*/
382382
@Override
383383
public void transform(StructuredRecord input, Emitter<StructuredRecord> emitter) throws Exception {
384+
if (PRECONDITION_LANGUAGE_SQL.equals(config.getPreconditionLanguage())) {
385+
throw new IllegalArgumentException("SQL filters are not supported with "
386+
+ "multiple input stages. Please ensure the Wrangler stages with SQL "
387+
+ "filters have only one input.");
388+
}
389+
384390
long start = 0;
385391
List<StructuredRecord> records;
386392

0 commit comments

Comments
 (0)