[ https://issues.apache.org/jira/browse/CALCITE-3673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17494660#comment-17494660 ]
Ruben Q L commented on CALCITE-3673: ------------------------------------ Fixed via https://github.com/apache/calcite/commit/9c4f3bb540dd67a0ffefc09f4ebd98d2be65bb14 > ListTransientTable should not leave tables in the schema > -------------------------------------------------------- > > Key: CALCITE-3673 > URL: https://issues.apache.org/jira/browse/CALCITE-3673 > Project: Calcite > Issue Type: New Feature > Components: core > Affects Versions: 1.21.0 > Reporter: Vladimir Sitnikov > Assignee: Ruben Q L > Priority: Major > Labels: pull-request-available > Fix For: 1.30.0 > > Time Spent: 2h 50m > Remaining Estimate: 0h > > 1) org.apache.calcite.schema.impl.ListTransientTable#scan adds itself to a > schema: root.getRootSchema().add(name, this); however, it misses cleanup, so > it looks like a memory leak > 2) ListTransientTable is not implementable with EnumerableTableScan as > org.apache.calcite.tools.RelBuilder#transientScan(java.lang.String, > org.apache.calcite.rel.type.RelDataType) is using > org.apache.calcite.prepare.RelOptTableImpl#create(org.apache.calcite.plan.RelOptSchema, > org.apache.calcite.rel.type.RelDataType, org.apache.calcite.schema.Table, > com.google.common.collect.ImmutableList<java.lang.String>) which creates > RelOptTableImpl with NULL expressionFunction which means > org.apache.calcite.prepare.RelOptTableImpl#getExpression returns null -- This message was sent by Atlassian Jira (v8.20.1#820001)