Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.21.0
Description
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
Attachments
Issue Links
- is caused by
-
CALCITE-2812 Add algebraic operators to allow expressing recursive queries
- Closed
- relates to
-
CALCITE-3677 Add assertion to EnumerableTableScan constructor to validate if the table is suitable for enumerable scan
- Closed
-
CALCITE-4054 RepeatUnion containing a Correlate with a transientScan on its RHS causes NPE
- Closed
- links to