[ 
https://issues.apache.org/jira/browse/OOZIE-3140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16292688#comment-16292688
 ] 

Andras Piros commented on OOZIE-3140:
-------------------------------------

[~mladenkov] can you please put {{coordinator.xml}}, {{workflow.xml}}, and 
{{job.properties}} details here? Much appreciated.

> Add toInteger() basic EL function 
> ----------------------------------
>
>                 Key: OOZIE-3140
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3140
>             Project: Oozie
>          Issue Type: New Feature
>          Components: workflow
>    Affects Versions: 4.3.0
>            Reporter: Mladen Kovacevic
>            Priority: Minor
>
> The set of Basic EL Functions described in the docs section 4.2.2 should be 
> extended to include a basic function called toInteger(). This is useful so 
> that we can define parameters in the properties files that we can easily 
> convert from String to Integer to pass into functions that accept int as 
> input parameters.
> For example, many of the Dataset or Date EL functions take 'int' as input, 
> such as coord:dateOffset [1], coord:offset [2] and certainly numerous others.
> Currently, any parameter defined in the job properties file is considered a 
> String, and can not be used out of the box as an input parameter to these 
> functions.
> Having a simple toInteger() function can help simplify this.
> [1] 
> https://oozie.apache.org/docs/4.3.0/CoordinatorFunctionalSpec.html#a6.9.1._coord:dateOffsetString_baseDate_int_instance_String_timeUnit_EL_Function
> [2] 
> https://oozie.apache.org/docs/4.3.0/CoordinatorFunctionalSpec.html#a6.6.2._coord:offsetint_n_String_timeUnit_EL_Function_for_Synchronous_Datasets



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to