Mani,

Thanks for looking into this! I think going the route of adding a toTimestamp 
is better than modifying the toDate() function.
If we modified toDate, we would have to ensure that things are 
backward-compatible. And I believe the format strings used by DateFormat and 
DateTimeFormatter are different, so there would have to be a third, optional 
parameter added to the function, which may be less friendly to use.

I think we’ll also need to be very clear in the documentation what the 
difference is between the two functions.

Thanks!
-Mark

> On Sep 1, 2020, at 10:17 AM, Mani Jindal <[email protected]> wrote:
> 
>   1.
>      Hi Team ,
> 
>      As of now nifi Supports 3 digit precision for date format NIFI-7230
>      <https://issues.apache.org/jira/browse/NIFI-7230> can you give your
>      valuable suggestions whether we can create new function *toTimestamp*
>   2.
> 
>   *Signature : -*
> 
>   3.
> 
>   *${ts:toTimestamp(<format>, <timezone>, <precision>)} *
> 
> 
> 
> 
> or we can change the existing toDate function to use (Instant & co) to
> support micro/nanoseconds precision.
> 
> Based on your valuable feedback. I will be happy to take this up.
> 
> Thanks and Regards ,
> Mani Jindal

Reply via email to