[
https://issues.apache.org/jira/browse/HIVEMALL-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17003505#comment-17003505
]
ASF GitHub Bot commented on HIVEMALL-289:
-----------------------------------------
myui commented on pull request #225: [HIVEMALL-289] Add str_contain(string str,
array<string> match, boolean or=true) UDF
URL: https://github.com/apache/incubator-hivemall/pull/225
## What changes were proposed in this pull request?
Add str_contain(string str, array<string> match, boolean or=true) UDF
## What type of PR is it?
Feature
## What is the Jira issue?
https://issues.apache.org/jira/browse/HIVEMALL-289
## How was this patch tested?
manual tests on EMR
## How to use this feature?
```sql
select
str_contains('There are apple and orange', array('apple')),
str_contains('There are apple and orange', array('apple', 'banana'), true),
str_contains('There are apple and orange', array('apple', 'banana'),
false);
> true, true, false
```
## Checklist
- [x] Did you apply source code formatter, i.e., `./bin/format_code.sh`, for
your commit?
- [x] Did you run system tests on Hive (or Spark)?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Add str_contain(string str, array<string> match, boolean or=true) UDF
> ---------------------------------------------------------------------
>
> Key: HIVEMALL-289
> URL: https://issues.apache.org/jira/browse/HIVEMALL-289
> Project: Hivemall
> Issue Type: New Feature
> Affects Versions: 0.6.0
> Reporter: Makoto Yui
> Assignee: Makoto Yui
> Priority: Minor
> Fix For: 0.6.2
>
>
> str_contain(string str, array<string> match, boolean and=false)
> {code:java}
> select
> str_contains('There are apple and orange', array('apple')),
> str_contains('There are apple and orange', array('apple', 'banana'), true),
> str_contains('There are apple and orange', array('apple', 'banana'), false);
> > true, false, true{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)