You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by Kevin Lynx <ke...@gmail.com> on 2015/05/27 12:00:16 UTC
StoragePluginOptimizerRule onMatch problem
HI,
I'm confused about StoragePluginOptimizerRule .onMatch problem, say:
SQL statement:
select name from (select name, length from mongo.torrents.hashes where *length
> 0* limit 10) where length > 0
will call * StoragePluginOptimizerRule .onMatch* method, but
select name from (select name, length from mongo.torrents.hashes where *length
> 0 **and** file_cnt > 0* limit 10) where length > 0
do *NOT*.
Why ? Does that because
super(
RelOptHelper.some(FilterPrel.class, RelOptHelper.any(ScanPrel.class)),
"MongoPushDownFilterForScan")
?