[ 
https://issues.apache.org/jira/browse/IGNITE-21162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17822678#comment-17822678
 ] 

Ignite TC Bot commented on IGNITE-21162:
----------------------------------------

{panel:title=Branch: [pull/11175/head] Base: [master] : No blockers 
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/11175/head] Base: [master] : New Tests 
(1)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Calcite SQL{color} [[tests 
1|https://ci2.ignite.apache.org/viewLog.html?buildId=7767080]]
* {color:#013220}IgniteCalciteTestSuite: JoinTypeHintPlannerTest.testTableHints 
- PASSED{color}

{panel}
[TeamCity *--> Run :: All* 
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=7767157&buildTypeId=IgniteTests24Java8_RunAll]

> Use table SQL hints
> -------------------
>
>                 Key: IGNITE-21162
>                 URL: https://issues.apache.org/jira/browse/IGNITE-21162
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Vladimir Steshin
>            Assignee: Vladimir Steshin
>            Priority: Major
>              Labels: ise
>             Fix For: 2.17
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Calcite parses and creates hints for 2 SQL nodes:
> 1) For SqlKind.SELECT в SqlToRelConverter.convertQuery() / 
> SqlToRelConverter.convertSelectImpl()
> 2) For SqlKind.TABLE_REF in SqlToRelConverter.convertFrom() . Here a hint 
> comes directly to a table / table scan
> Currently, we skip #2 in _IgniteTable.toRel()_ not using 
> _RelOptTable.ToRelContext.getTableHints()_ . This would allow to set hints 
> more precisely:
> {code:sql}
> SELECT T1.V1, T2.V2 FROM TBL1 T1 JOIN TBL2 /*+ FORCE_INDEX(TBL2_IDX2) */ T2 
> on T1.V3=T2.V3 and T1.V2=T2.V2 WHERE T2.V1 = ?;
> {code}
> or
> {code:sql}
> SELECT T1.V1, T2.V2 FROM TBL1 T1 JOIN TBL2 /*+ MERGE_JOIN */ T2 on 
> T1.V3=T2.V3 and T1.V2=T2.V2 WHERE T2.V1 = ?;
> {code}
> MIght be useful int sub-queries or when aliases are used.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to