cmu-db / peloton

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

Handle EXPLAIN in the optimizer and executor #1357

Open chenboy opened 6 years ago

chenboy commented 6 years ago

This PR moves the handling logic of EXPLAIN from the network layer to the execution layer. One reason for this is we don't want to duplicate the logic for different protocols, e.g. psql and JDBC, as it is mentioned in #1350.

Two test cases are added, one of which is a SQL test for the functionality of the EXPLAIN executor. Since we also touch the network layer, an end-to-end test is also added to make sure we didn't break anything in the network layer.

chenboy commented 6 years ago

Blocked by #1368