Hi guys, I'm trying to work out how I could access the QueryContext inside a StoragePluginOptimizerRule.
I've basically implemented the Parquet pushdown filtering, but I really need to access the session settings (for whether or not we're using the new Parquet reader so we can completely pushdown a filter and also for providing a setting to enable/disable pushdown filters). I've looked in a fair bit of detail, but there doesn't seem to be a way to access this. If this is not the way I should be implementing it, can anyone make some suggestions? I really want to do full pushdown when using the new Parquet reader, but I have no easy way to detect it's going to be used. P.S. In cases where we "fall back" to the new Parquet reader, I don't do a full pushdown (as detecting that is done further down than the planner). This could be fixed in the future, but for now I'm happy for just when that setting is true.
