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

Vladimir Sitnikov commented on CALCITE-3780:
--------------------------------------------

[~amaliujia], I bumped into 
{{org.apache.calcite.adapter.enumerable.EnumUtils.SessionizationEnumerator}} 
and {{HopEnumerator}} by accident, and I have a couple review comments there:
1) {{LinkedList}} is almost never a right choice. {{ArrayList}} or 
{{ArrayDequeue}} should work better in most cases: they consume less memory and 
they work faster (they do not require wrapper nodes)
2) The list should be final

> SESSION Table-valued Function
> -----------------------------
>
>                 Key: CALCITE-3780
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3780
>             Project: Calcite
>          Issue Type: Sub-task
>            Reporter: Rui Wang
>            Assignee: Rui Wang
>            Priority: Major
>             Fix For: 1.23.0
>
>
> We can create SESSION table-valued function to replace GROUP BY SESSION for 
> inactive gap session functionality:
> {code:sql}
> SELECT *
> FROM TABLE SESSION (
>   data => TABLE Bid ,
>   timecol => DESCRIPTOR ( bidtime ) ,
>   keycol => DESCRIPTOR(key),
>   inactive_gap => INTERVAL '10' MINUTES )
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to