Alireza Samadianzakaria created BEAM-7895:
---------------------------------------------

             Summary: Plugging BeamCostModel and Metadata Handlers in JDBC Path
                 Key: BEAM-7895
                 URL: https://issues.apache.org/jira/browse/BEAM-7895
             Project: Beam
          Issue Type: New Feature
          Components: dsl-sql
            Reporter: Alireza Samadianzakaria


Currently the SQL Transform Path uses BeamCostModel and custom MetadataHandler 
for NonCumulativeCost.

Similar to what we have done in CalciteQueryPlanner, we need to plug the 
followings in the JDBC Path:

1- Plug BeamCostModel.FACTORY as the CostFactory for the planner.

2- Plug NonCumulativeCostImpl.SOURCE for estimating nonCumulativeCost of the 
nodes.

3- Plug RelMdNodeStats.SOURCE as a handler to estimate NodeStatsSource.

 

Alternatively, if we plug our cost model in JDBC path, since both paths are 
using the same cost model, we can remove NonCumulativeCostImpl.SOURCE as 
handler from both of them and instead of using beamComputeSelfCost(), we can 
override computeSelfCost for all the nodes. 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to