You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/08/25 13:50:21 UTC

[jira] [Commented] (METRON-394) Create Stellar Date Functions to Use with Profile 'Group By'

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

ASF GitHub Bot commented on METRON-394:
---------------------------------------

GitHub user nickwallen opened a pull request:

    https://github.com/apache/incubator-metron/pull/231

    METRON-394 Create Stellar Date Functions to Use with Profile 'Group By'

    ### [METRON-394](https://issues.apache.org/jira/browse/METRON-394)
    
    [METRON-392](https://issues.apache.org/jira/browse/METRON-392) and #230  Allows a user to optionally define a custom set of 'groupBy' expressions that controls how Profile data is persisted. This is intended to allow for contiguous scans when training on subsets of the data.
    
    A common use case would be grouping the data by some calendar period, like day of week. This would allow a contiguous scan to access all profile data, for example, on Mondays only. The Stellar expression DAY_OF_WEEK(start) would achieve this.
    
    The following functions have been added for this purpose.
    * WEEK_OF_MONTH
    * WEEK_OF_YEAR
    * DAY_OF_WEEK
    * DAY_OF_MONTH
    * DAY_OF_YEAR
    * MONTH
    * YEAR


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nickwallen/incubator-metron METRON-394

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-metron/pull/231.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #231
    
----
commit 12873b151eafaa05c712efb42261fc3ca5e5bf43
Author: Nick Allen <ni...@nickallen.org>
Date:   2016-08-25T13:44:37Z

    METRON-394 Create Stellar Date Functions to Use with Profile 'Group By'

----


> Create Stellar Date Functions to Use with Profile 'Group By'
> ------------------------------------------------------------
>
>                 Key: METRON-394
>                 URL: https://issues.apache.org/jira/browse/METRON-394
>             Project: Metron
>          Issue Type: Improvement
>            Reporter: Nick Allen
>            Assignee: Nick Allen
>
> METRON-392 Allows a user to optionally define a custom set of 'groupBy' expressions that controls how Profile data is persisted. This is intended to allow for contiguous scans when training on subsets of the data.
> A common use case would be grouping the data by some calendar period, like day of week. This would allow a contiguous scan to access all profile data, for example, on Mondays only. The Stellar expression DAY_OF_WEEK(start) would achieve this.
> The following functions would be useful to have for this purpose.
> * WEEK_OF_MONTH
> * WEEK_OF_YEAR
> * DAY_OF_WEEK
> * DAY_OF_MONTH
> * DAY_OF_YEAR
> * MONTH
> * YEAR



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)