[ 
https://issues.apache.org/jira/browse/BEAM-7895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ismaël Mejía updated BEAM-7895:
-------------------------------
    Status: Open  (was: Triage Needed)

> 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
>            Priority: Major
>
> 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