It all depends on how you write your rules. If you write them so that they apply too generally, then the rules themselves are at fault.
If you write rules that only optimize for your input format, then you should be fine. On Jul 2, 2017 9:41 AM, "Muhammad Gelbana" <[email protected]> wrote: > I wrote a plugin for a custom JDBC datasource. This plugin registers a > couple of rules. > > When I ran an SQL query that uses parquet files, I found that a rule of my > JDBC plugin was invoked to optimize the query ! > > I believe this is a mistake. Please correct me if I'm wrong. > > I'm saying this is a mistake because a rule registered by a plugin that > utilizes a specific datasource should only be concerned about queries > executed by that plugin. > > Query optimizations for a JDBC datasource won't probably work for queries > targeted for parquet files ! > > What do you think ? > > Gelbana >
