MaterializationService stores an ArrayTable to represent a materialized tables by default. Instead, I want it to store an object of MyTable (which derives from appropriate super classes). To achieve that, I prepopulated the schema with a TableEntry and viewSql that it materializes. Then, I made sure MaterializationService finds it in https://github.com/apache/incubator-calcite/blob/master/core/src/main/java/org/apache/calcite/materialize/MaterializationService.java#L112
However, the function adds a duplicate entry for the same *viewSql* in: https://github.com/apache/incubator-calcite/blob/master/core/src/main/java/org/apache/calcite/materialize/MaterializationService.java#L159 Why is it this way ? Should line numbers: 157-161 belong within the *if* block of line 114 ? -- Rajat Venkatesh | Engg Lead Qubole Inc | www.qubole.com
