You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 12:32:37 UTC

[GitHub] [beam] damccorm opened a new issue, #19629: Plugging BeamCostModel and Metadata Handlers in JDBC Path

damccorm opened a new issue, #19629:
URL: https://github.com/apache/beam/issues/19629

   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. 
   
   Imported from Jira [BEAM-7895](https://issues.apache.org/jira/browse/BEAM-7895). Original Jira may contain additional context.
   Reported by: riazela.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org