[
https://issues.apache.org/jira/browse/DATAFU-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14085787#comment-14085787
]
Matthew Hayes commented on DATAFU-65:
-------------------------------------
Also don't use 'matches' as below. This is a reserved keyword and you'll get
an error.
{code}
data2 = FOREACH data GENERATE AhoCorasickMatch(text, dictionary) AS matches;
{code}
> Aho-Corasick Pig UDF
> --------------------
>
> Key: DATAFU-65
> URL: https://issues.apache.org/jira/browse/DATAFU-65
> Project: DataFu
> Issue Type: Bug
> Affects Versions: 1.3.0
> Environment: Drought
> Reporter: Russell Jurney
> Fix For: 1.3.0
>
> Original Estimate: 8h
> Remaining Estimate: 8h
>
> I need to use the Aho-Corasick algorithm for efficient sub-string matching. A
> java implementation is available at
> https://github.com/robert-bor/aho-corasick and is available on maven central:
> http://maven-repository.com/artifact/org.arabidopsis.ahocorasick/ahocorasick/2.x
> A Pig UDF will be very helpful to me.
> How do I add a maven dependency with gradle?
--
This message was sent by Atlassian JIRA
(v6.2#6252)