Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-13444

Regex and JEXL expression operations does not work if the field contains hyphens

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Data Prep
    • Labels:
    • Rank:
      1|i00ctb:

      Description

      If the field contains hyphens then the directives containing JEXL expressions and regular expressions fails.

       

      Example:

       

      send-to-error exp:{latitude-deg < 45} 

       

      Error:

      2018-05-17 09:46:28,166 - ERROR [service-http-executor-813:c.c.w.s.d.DirectivesService@639] - co.cask.wrangler.api.DirectiveExecutionException
      co.cask.wrangler.api.RecipeException: co.cask.wrangler.api.DirectiveExecutionException
      	at co.cask.wrangler.executor.RecipePipelineExecutor.execute(RecipePipelineExecutor.java:141) ~[wrangler-core-3.0.4.jar:na]
      	at co.cask.wrangler.service.directive.DirectivesService.executeDirectives(DirectivesService.java:1269) ~[unpacked/:na]
      	at co.cask.wrangler.service.directive.DirectivesService.execute(DirectivesService.java:574) ~[unpacked/:na]
      	at co.cask.wrangler.service.directive.DirectivesService00b1e4d131d4dd7369b61b38c6576c5c.execute(Unknown Source) [na:na]
      	at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source) ~[na:na]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_131]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_131]
      	at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:80) [co.cask.http.netty-http-0.16.0.jar:na]
      	at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:38) [co.cask.http.netty-http-0.16.0.jar:na]
      	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [io.netty.netty-3.6.6.Final.jar:na]
      	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [io.netty.netty-3.6.6.Final.jar:na]
      	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [io.netty.netty-3.6.6.Final.jar:na]
      	at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) [io.netty.netty-3.6.6.Final.jar:na]
      	at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) [io.netty.netty-3.6.6.Final.jar:na]
      	at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) [io.netty.netty-3.6.6.Final.jar:na]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_131]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_131]
      	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_131]
      Caused by: co.cask.wrangler.api.DirectiveExecutionException: null
      	at co.cask.directives.row.SendToError.execute(SendToError.java:122) ~[wrangler-core-3.0.4.jar:na]
      	at co.cask.directives.row.SendToError.execute(SendToError.java:53) ~[wrangler-core-3.0.4.jar:na]
      	at co.cask.wrangler.executor.RecipePipelineExecutor.execute(RecipePipelineExecutor.java:124) ~[wrangler-core-3.0.4.jar:na]
      	... 17 common frames omitted
      
       

        Attachments

          Activity

            People

            • Assignee:
              bhooshan Bhooshan Mogal
              Reporter:
              sree Sreevatsan Raman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: