Skip to content

Commit

Permalink
[INLONG-10963][SDK] Transform SQL support CONTAINS function.(apache#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ybszzzziz committed Sep 3, 2024
1 parent b232436 commit 4ec9c9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public Object parse(SourceData sourceData, int rowIndex, Context context) {
Object rightStrObj = rightStrParser.parse(sourceData, rowIndex, context);
String leftStr = OperatorTools.parseString(leftStrObj);
String rightStr = OperatorTools.parseString(rightStrObj);
return leftStr.contains(rightStr);
return (leftStr == null || rightStr == null) ? null : leftStr.contains(rightStr);
}
}

0 comments on commit 4ec9c9a

Please sign in to comment.