Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the problem was in the test class:

SELECT * FROM testA JOIN testA ON testB.a=testA.a;

In JdbcJoinOperator.java‎
the code looks good.

Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public String createSqlClause(Connection connection, FunctionCompiler compiler)
final String rightTableName = right.field0;
final String rightKey = right.field1;

return "JOIN " + leftTableName + " ON " +
return "JOIN " + rightTableName + " ON " +
rightTableName + "." + rightKey
+ "=" + leftTableName + "." + leftKey;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void testWithHsqldb() throws SQLException {
System.out.println();

assertEquals(
"SELECT * FROM testA JOIN testA ON testB.a=testA.a;",
"SELECT * FROM testA JOIN testB ON testB.a=testA.a;",
sqlQueryChannelInstance.getSqlQuery()
);
}
Expand Down
Loading