The document describes a tool called EPtoSQL that can compile physical execution plans built by optimizers like DevelOPs into valid SQL queries that can be tested on Microsoft SQL Server. It works by translating logical operators in a physical plan like merge joins and loop joins into their SQL Server equivalents like MERGE JOIN and INNER LOOP JOIN, and by addressing complications that can arise during translation like handling selections over joins. The overall procedure involves subexpression elimination and ensuring semantics are preserved at each step.
11. Translating Physical Plans
¢ Some complications
$ Selection over join with same attributes
$ Join over selection with same attributes
12. Translating Physical Plans
¢ Some complications
$ Selection over join with same attributes
$ Join over selection with same attributes
¢ Subexpression elimination