Skip to content

Commit

Permalink
feat: keep up with pr apache#11105
Browse files Browse the repository at this point in the history
  • Loading branch information
emptyOVO committed Sep 14, 2024
1 parent 9d65299 commit 7e597f9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void testRegexpExtractFunction() throws Exception {
List<String> output5 =
processor2.transform("The quick brown fox quick|quick|QAQ|2|1|3", new HashMap<>());
Assert.assertEquals(1, output5.size());
Assert.assertEquals(output5.get(0), "result=null");
Assert.assertEquals(output5.get(0), "result=");
String transformSql3 = "select regexp_extract(string1,string2) from source";
TransformConfig config3 = new TransformConfig(transformSql3);
TransformProcessor<String, String> processor3 = TransformProcessor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void testRegexpCountFunction() throws Exception {
List<String> output3 =
processor2.transform("The quick brown fox quick|quick|QAQ|2|1|3", new HashMap<>());
Assert.assertEquals(1, output3.size());
Assert.assertEquals(output3.get(0), "result=null");
Assert.assertEquals(output3.get(0), "result=");
String transformSql3 = "select regexp_count(string1,string2) from source";
TransformConfig config3 = new TransformConfig(transformSql3);
TransformProcessor<String, String> processor3 = TransformProcessor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void testRegexpExtractAllFunction() throws Exception {
"Name: John, Age: 25, Location: NY|Name: (\\\\w+), Age: (\\\\d+), Location: (\\\\w+)|1|4|3",
new HashMap<>());
Assert.assertEquals(1, output4.size());
Assert.assertEquals(output4.get(0), "result=null");
Assert.assertEquals(output4.get(0), "result=");

String transformSql2 = "select regexp_extract_all(string1,string2) from source";
TransformConfig config2 = new TransformConfig(transformSql2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ public void testRegexFunction() throws Exception {
List<String> output3 =
processor2.transform("User: Alice, ID: 12345|User: (\\\\w+), ID: (\\\\d+)|5|2|1|3", new HashMap<>());
Assert.assertEquals(1, output3.size());
Assert.assertEquals(output3.get(0), "result=null");
Assert.assertEquals(output3.get(0), "result=");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void testRegexpInstrFunction() throws Exception {
List<String> output5 =
processor2.transform("The quick brown fox quick|quick|QAQ|2|1|3", new HashMap<>());
Assert.assertEquals(1, output5.size());
Assert.assertEquals(output5.get(0), "result=null");
Assert.assertEquals(output5.get(0), "result=");
String transformSql3 = "select regexp_instr(string1,string2) from source";
TransformConfig config3 = new TransformConfig(transformSql3);
TransformProcessor<String, String> processor3 = TransformProcessor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ public void testRegexpReplaceFunction() throws Exception {
List<String> output3 =
processor3.transform("User: Alice, ID: 12345|\\\\d+|QAQ|2|1|3", new HashMap<>());
Assert.assertEquals(1, output3.size());
Assert.assertEquals(output3.get(0), "result=null");
Assert.assertEquals(output3.get(0), "result=");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void testRegexpSubstrFunction() throws Exception {
"abcdef|\\\\d+|1|2|3",
new HashMap<>());
Assert.assertEquals(1, output3.size());
Assert.assertEquals(output3.get(0), "result=null");
Assert.assertEquals(output3.get(0), "result=");

String transformSql2 = "select regex_substr(string1) from source";
TransformConfig config2 = new TransformConfig(transformSql2);
Expand All @@ -66,7 +66,7 @@ public void testRegexpSubstrFunction() throws Exception {
List<String> output5 =
processor2.transform("The quick brown fox quick|quick|QAQ|2|1|3", new HashMap<>());
Assert.assertEquals(1, output5.size());
Assert.assertEquals(output5.get(0), "result=null");
Assert.assertEquals(output5.get(0), "result=");
String transformSql3 = "select regex_substr(string1,string2) from source";
TransformConfig config3 = new TransformConfig(transformSql3);
TransformProcessor<String, String> processor3 = TransformProcessor
Expand Down

0 comments on commit 7e597f9

Please sign in to comment.