You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/08/26 11:01:00 UTC

[jira] [Commented] (FLINK-9432) Support extract epoch, decade, millisecond, microsecond

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

ASF GitHub Bot commented on FLINK-9432:
---------------------------------------

snuyanzin opened a new pull request #6614: [FLINK-9432] Support extract timeunit: DECADE, EPOCH, ISODOW, ISOYEAR…
URL: https://github.com/apache/flink/pull/6614
 
 
   ## What is the purpose of the change
   The PR provides implementation of `extract` function for timeunits: `decade`, `epoch`, `isodow`, `isoyear`, 'millisecond`,`microsecond`
   
   ## Brief change log
   
   - support timeunits `extract`
   - documentation updates (mention all possible timeunits for `extract`)
   - tests
   
   ## Verifying this change
     - *Added tests validates the result of `extract` call*
     - *Added tests validates that `extract` of `isodow`, `isodoy`, `epoch`, `decade` for time is incorrect*
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no)
     - The serializers: (no)
     - The runtime per-record code paths (performance sensitive): (no)
     - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
     - The S3 file system connector: (no)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes)
     - If yes, how is the feature documented? (docs)
       functions.md updated
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Support extract epoch, decade, millisecond, microsecond
> -------------------------------------------------------
>
>                 Key: FLINK-9432
>                 URL: https://issues.apache.org/jira/browse/FLINK-9432
>             Project: Flink
>          Issue Type: New Feature
>            Reporter: Sergey Nuyanzin
>            Assignee: Sergey Nuyanzin
>            Priority: Major
>              Labels: pull-request-available
>
> The task is to separate activity from depending on https://issues.apache.org/jira/browse/CALCITE-2303 from all others that could be done without upgrade avatica/calcite in  https://issues.apache.org/jira/browse/FLINK-8518
> Now the implementations of next functions are blocked
> {code:sql}
> extract(decade from ...)
> extract(epoch from ...)
> extract(millisecond from ...)
> extract(microsecond from ...)
> extract(isodow from ...)
> extract(isoyear from ...)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)