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

Maksim Timonin commented on IGNITE-15407:
-----------------------------------------

[~amashenkov] ! Hi, could you please have a look on this simple patch. It fixes 
incorrect warn of non-collocated joins in some cases. 

> Wrong warn about non-colocated join.
> ------------------------------------
>
>                 Key: IGNITE-15407
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15407
>             Project: Ignite
>          Issue Type: New Feature
>            Reporter: Maksim Timonin
>            Assignee: Maksim Timonin
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Reproducer: see CheckWarnJoinPartitionedTables
>  
> /** */
> @Test
> public void test() {
>  execute(new SqlFieldsQuery(
>  "CREATE TABLE t1 (k1 VARCHAR PRIMARY KEY, v2 VARCHAR);"));
>  execute(new SqlFieldsQuery(
>  "CREATE TABLE t2 (k1 VARCHAR, ak2 VARCHAR, v3 VARCHAR, PRIMARY KEY(k1, ak2)) 
> with \"AFFINITY_KEY=ak2\";"));
>  String joinType = "INNER JOIN";
>  checkLogListener(false,
>  "SELECT * FROM t1 " + joinType + " t2 on t1.k1 = t2.ak2");
>  checkLogListener(false,
>  "SELECT * FROM t1 " + joinType + " t2 on t1.k1 = t2.ak2 WHERE t2.k1 = ?;", 
> "1");
> }



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to