You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MetaCacheExec displays column IDs in the EXPLAIN output. This adds a layer of indirection to operators trying to triage EXPLAIN output since they would need to look up what the column ID refers to. In addition, it is displayed as an integer, which is somewhat confusing given that DataFusion uses integers to refer to column indexes within the table schema.
Proposed solution
Pass forward the Arc<TableDefinition> to the MetaCacheExec so that it can convert the ColumnId in the predicate to a name.
Alternatives
N/A
Additional Context
The MetaCacheFunctionProvider already has a reference to the TableDefinition here:
Problem
The
MetaCacheExec
displays column IDs in theEXPLAIN
output. This adds a layer of indirection to operators trying to triageEXPLAIN
output since they would need to look up what the column ID refers to. In addition, it is displayed as an integer, which is somewhat confusing given that DataFusion uses integers to refer to column indexes within the table schema.Proposed solution
Pass forward the
Arc<TableDefinition>
to theMetaCacheExec
so that it can convert theColumnId
in the predicate to a name.Alternatives
N/A
Additional Context
The
MetaCacheFunctionProvider
already has a reference to theTableDefinition
here:influxdb/influxdb3_cache/src/meta_cache/table_function.rs
Line 40 in 20d09a8
So, this can be passed directly in the
TableProvider::scan
to the createdMetaCacheExec
.See discussion: #25566 (comment)
The text was updated successfully, but these errors were encountered: