Open vkonagar opened 6 years ago
@vkonagar Can you provide test cases for this to know what you fixed? Thanks!
@apavlo Andy, I have added a test to verify the query plan correctness with respect to multi-column indexes.
This doesn't fix the cost model for multi-column indexes, which is not currently supported in the optimizer. I have talked to bowei and we will look into that.
As discussed in today's meeting, we want to fix the cost model to consider multi-column indices. Let me see if I can fix it. @GustavoAngulo @nappelson I'm wondering if we have a testing infrastructure for cost model correctness right now?
This is another important fix that we are going to need for TPC-C.
This PR fixes the issue https://github.com/cmu-db/peloton/issues/1299. This changes the way we find index match for predicate columns in IndexScan rule implementation. Specifically, this change makes sure that the optimizer picks a multi-column index only if the predicate columns match the index columns in order.