drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weijie tong <tongweijie...@gmail.com>
Subject Re: Is it possible to delegate data joins and filtering to the datasource ?
Date Wed, 29 Mar 2017 02:15:29 GMT
my suggestion is you define a rule which matches the DrillJoinRel RelNode ,
then at the onMatch method ,you traverse the join children to find the
ScanRel nodes . You define a new ScanRel which include the ScanRel nodes
you find last step. Then transform the JoinRel to this equivalent new
ScanRel.
Finally , the plan tree will not have the JoinRel but the ScanRel.   You
can let your join plan rule  in the PlannerPhase.JOIN_PLANNING.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message