[
https://issues.apache.org/jira/browse/CALCITE-4320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated CALCITE-4320:
------------------------------------
Labels: pull-request-available (was: )
> JdbcRules JOIN_FACTORY, AGGREGATE_FACTORY, SET_OP_FACTORY, ... create
> relations with wrong convention
> -----------------------------------------------------------------------------------------------------
>
> Key: CALCITE-4320
> URL: https://issues.apache.org/jira/browse/CALCITE-4320
> Project: Calcite
> Issue Type: Sub-task
> Components: core
> Affects Versions: 1.26.0
> Reporter: Vladimir Sitnikov
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {code:java}
> static final RelFactories.JoinFactory JOIN_FACTORY =
> (left, right, hints, condition, variablesSet, joinType, semiJoinDone)
> -> {
> final RelOptCluster cluster = left.getCluster();
> final RelTraitSet traitSet = cluster.traitSetOf(left.getConvention());
> try {
> return new JdbcJoin(cluster, traitSet, left, right, condition,
> variablesSet, joinType);
> {code}
> In practice, JdbcJoin should use JdbcConvention rather than
> {{cluster.traitSetOf(left.getConvention());}}
> I wonder if RelFactories in JdbcRules are dead code.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)