??????Tracking column's origin

2021-05-19 Thread 953396112
Hi James: 1) I guess you want to trace the column's origin in original table. In Calcite, we can use `RelMetadatauery.getColumnOrigin()` to trace the column's origin.The method tracks the origin of columns.Here is a unit test 'org.apache.calcite.test.RelMetadataTest#testCalcColumnOriginsTable' f

Re: Tracking column's origin

2021-05-19 Thread JiaTao Tao
Hi org.apache.calcite.rel.metadata.RelMetadataQuery#getColumnOrigins may help Regards! Aron Tao James Daniel 于2021年5月19日周三 上午12:35写道: > Hi, all. > I am trying to rewrite the query plan by removing some nodes but faced with > issues related to manipulating column ref indexes. > > Let's consid

Tracking column's origin

2021-05-18 Thread James Daniel
Hi, all. I am trying to rewrite the query plan by removing some nodes but faced with issues related to manipulating column ref indexes. Let's consider the following calcite plan: LogicalProject([...]) LogicalJoin(condition=[=($0, $4)], joinType=[inner]) LogicalTableScan(table=[[DB, R]