[ 
https://issues.apache.org/jira/browse/METRON-1168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16159385#comment-16159385
 ] 

ASF GitHub Bot commented on METRON-1168:
----------------------------------------

Github user cestella commented on a diff in the pull request:

    https://github.com/apache/metron/pull/742#discussion_r137894087
  
    --- Diff: 
metron-stellar/stellar-common/src/test/java/org/apache/metron/stellar/dsl/functions/StringFunctionsTest.java
 ---
    @@ -408,6 +408,19 @@ public void testAppendIfMissing() throws Exception {
     
       }
     
    +  @Test
    +  public void testSubstring() throws Exception {
    +    Map<String, Object> variables = ImmutableMap.of("s", "apache metron");
    +    Assert.assertEquals("metron", run("SUBSTRING(s, 7)", variables));
    +    Assert.assertEquals("me", run("SUBSTRING(s, 7, 9)", variables));
    +    Assert.assertNull(run("SUBSTRING(null, 6, 9)", new HashMap<>()));
    --- End diff --
    
    yep


> Add SUBSTRING method to stellar
> -------------------------------
>
>                 Key: METRON-1168
>                 URL: https://issues.apache.org/jira/browse/METRON-1168
>             Project: Metron
>          Issue Type: New Feature
>            Reporter: Casey Stella
>
> Add SUBSTRING function to stellar.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to