hbutani/spark-druid-olap

Enable rewrites against the underlying Fact table

hbutani opened this issue · 0 comments

For example for tpch queries: allow the query to be written against lineitembase
The original thought was to add table properties to the underlying table recording the fact that it is associated with a Druid Index/Datasource. But this will not work because these table properties are not exposed in BaseRelation. So at the time of query rewrite we have lost the association between a LogicalRelation Operator and the underlying Table