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

Julian Hyde commented on CALCITE-3670:
--------------------------------------

Schemas live longer than connections. Closing a connection should not close 
resources that belong to a schema, otherwise the next connection that uses that 
schema will get an error.

Because schemas are so long-lived, people who implement schemas should think 
VERY carefully about holding any resources. Usually better to hold the 
resources only when the schema is being constructed.

> Add ability to release resources when connection is closed
> ----------------------------------------------------------
>
>                 Key: CALCITE-3670
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3670
>             Project: Calcite
>          Issue Type: New Feature
>          Components: core
>            Reporter: Vladimir Sitnikov
>            Priority: Major
>
> Calcite schemas might often hold resources to external systems, however, it 
> is not clear when the connection should be released.
> What if Calcite could close schemas that implements Closeable when Calcite 
> connection is closed?



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

Reply via email to