Extensible/rule based query rewrite optimization in Starburst | Synapse