datafu-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zach Beniash (JIRA)" <>
Subject [jira] [Commented] (DATAFU-92) Create UDF to extract tuple out of bad in a specified index
Date Sun, 14 Jun 2015 18:19:00 GMT


Zach Beniash commented on DATAFU-92:

Actually the third parameter can have other values then null.
As a matter of fact I already implemented the UDF and tested it, but didn't got the time to
align my environment for submitting the code (and probably won't have the time soon). So I
attached to this issue  the code + example for the third parameter, to be used as a reference
for your implementation.
Please see attached files.

> Create UDF to extract tuple out of bad in a specified index
> -----------------------------------------------------------
>                 Key: DATAFU-92
>                 URL:
>             Project: DataFu
>          Issue Type: New Feature
>    Affects Versions: 1.3.0
>            Reporter: Zach Beniash
>              Labels: UDF
>             Fix For: 1.3.0
>         Attachments:
>   Original Estimate: 24h
>  Remaining Estimate: 24h
> Create a new UDF that is similar to "FirstTupleFromBag" but this one will be more general,
and not only the first tuple.
> This new UDF can be called "TupleFromBag" and will get three parameters:
> 1. DataBag
> 2. Index
> 3. Optional Default Tuple
> There should be a consideration to refactor FirstTupleFromBag to call TupleFromBag, for
reusability consideration.

This message was sent by Atlassian JIRA

View raw message