You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Juan José Ramos Cassella (JIRA)" <ji...@apache.org> on 2017/11/01 09:53:00 UTC

[jira] [Assigned] (GEODE-3938) Allow query parameters within the to_date preset query function

     [ https://issues.apache.org/jira/browse/GEODE-3938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juan José Ramos Cassella reassigned GEODE-3938:
-----------------------------------------------

    Assignee: Juan José Ramos Cassella

> Allow query parameters within the to_date preset query function
> ---------------------------------------------------------------
>
>                 Key: GEODE-3938
>                 URL: https://issues.apache.org/jira/browse/GEODE-3938
>             Project: Geode
>          Issue Type: New Feature
>          Components: querying
>            Reporter: Juan José Ramos Cassella
>            Assignee: Juan José Ramos Cassella
>
> Currently the {{to_date}} preset query function doesn't allow the user to pass the date to format as a query parameter, which forces the user application to add boilerplate code to manually parse the date.
> Apparently there's no internal blockers preventing such a feature to be enabled, and the change just implies a small change in {{oql.g}}:
> {code}
> conversionExpr :
>   (
>     ...
>         |
>            (  
>               (
>                "to_date"^<AST=org.apache.geode.cache.query.internal.parse.ASTConversionExpr>
>               )
>               TOK_LPAREN!
>               (stringLiteral | queryParam) TOK_COMMA! stringLiteral
>               TOK_RPAREN! 
>            )    
>     ...
>   )
>     ;
> {code}



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