[
https://issues.apache.org/jira/browse/IMPALA-13793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Becker resolved IMPALA-13793.
------------------------------------
Resolution: Implemented
> Always close expressions
> ------------------------
>
> Key: IMPALA-13793
> URL: https://issues.apache.org/jira/browse/IMPALA-13793
> Project: IMPALA
> Issue Type: Improvement
> Components: Backend
> Reporter: Daniel Becker
> Assignee: Daniel Becker
> Priority: Major
>
> The Expr class has a Close() method, which is currently only used for
> releasing 'cache_entry_', which is used for UDF or UDAF functions. If Close()
> is not called for an Expr that uses 'cache_entry_', a DCHECK fails in the
> destructor of Expr.
> However, if an Expr does not use 'cache_entry_' is not closed, nothing
> happens. Classes holding Expr objects should always close expressions because
> they may use 'cache_entry_'. However, if tests fail to include cases where
> 'cache_entry_' is used, bugs may not be detected: one such case was
> [IMPALA-13770|http://issues.apache.org/jira/browse/IMPALA-13770].
> We should always enforce closing expressions to make it easier to detect bugs.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)