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

Julian Hyde edited comment on CALCITE-4753 at 8/24/21, 5:29 PM:
----------------------------------------------------------------

It doesn't make sense. FunctionContext is used at prepare time. DataContext is 
around at execute time. If the query is executed several times, the function 
might be executed against several DataContext instances.

Maybe you can explain your use case a bit more.


was (Author: julianhyde):
It doesn't make sense. FunctionContext is used at prepare time. DataContext is 
around at execute time. If the query is executed several times, the function 
might be executed against several DataContext instances. 

> Extend FunctionContext with a DataContext getter
> ------------------------------------------------
>
>                 Key: CALCITE-4753
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4753
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Paweł Łoziński
>            Priority: Major
>
> Certain functions may need access to information stored in the DataContext 
> during execution. Since it is already present in FunctionContext 
> implementation, the proposal would be to expose it via a getter.



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

Reply via email to