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

Rui Wang commented on CALCITE-3780:
-----------------------------------

[~jmxie]

Thanks. I got the example. Technically there is still a website key there, but 
as sounds like there is only data of one single website thus session key is not 
required.

I will think of how to address this requirement. There are three options: 1) 
reorder arguments to make descriptor be the last argument thus we can make it 
optional. 2) accept empty descriptor. 3) descriptor becomes nullable.

> 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