cmu-db / peloton

The Self-Driving Database Management System
http://pelotondb.io
Apache License 2.0
2.03k stars 622 forks source link

Add cardinality estimate to AbstractPlan object #1475

Closed GustavoAngulo closed 6 years ago

GustavoAngulo commented 6 years ago

This PR adds the optimizer's cardinality estimate to the AbstractPlan object for use during plan execution. Includes test cases to verify it works. This is part of #1467 to add more optimizer estimates to plans.

Additionally, this PR adds an optimizer_test_util class with useful helper functions for creating test tables and generating plans. Future and possibly existing test cases should inherit from this class.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 76.736% when pulling a8c779cf91c40b640898a14a79fcd2e6180db1c5 on GustavoAngulo:add_cardinality_estimate into e738acb956306d6914a5a94e6773f410a3eae4a1 on cmu-db:master.