[ 
https://issues.apache.org/jira/browse/BEAM-7166?focusedWorklogId=235516&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-235516
 ]

ASF GitHub Bot logged work on BEAM-7166:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Apr/19 19:59
            Start Date: 30/Apr/19 19:59
    Worklog Time Spent: 10m 
      Work Description: akedin commented on pull request #8421: [BEAM-7166] Add 
more checks on join condition
URL: https://github.com/apache/beam/pull/8421#discussion_r279912499
 
 

 ##########
 File path: 
sdks/java/extensions/sql/src/test/java/org/apache/beam/sdk/extensions/sql/impl/rel/BeamJoinRelBoundedVsBoundedTest.java
 ##########
 @@ -227,6 +229,68 @@ public void testException_nonEqualJoin() throws Exception 
{
     pipeline.run();
   }
 
+  @Test
+  public void testException_join_condition1() throws Exception {
+    String sql =
+        "SELECT *  "
+            + "FROM ORDER_DETAILS1 o1"
+            + " JOIN ORDER_DETAILS2 o2"
+            + " on "
+            + " o1.order_id = o2.site_id OR o1.price = o2.site_id";
+
+    thrown.expect(UnsupportedOperationException.class);
+    thrown.expectMessage("Operator OR is not supported in join condition");
 
 Review comment:
   Same in other messages
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 235516)
    Time Spent: 1h  (was: 50m)

> Add more checks on join condition
> ---------------------------------
>
>                 Key: BEAM-7166
>                 URL: https://issues.apache.org/jira/browse/BEAM-7166
>             Project: Beam
>          Issue Type: Improvement
>          Components: dsl-sql
>            Reporter: Rui Wang
>            Assignee: Rui Wang
>            Priority: Major
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Join should reject conditions that are not supported. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to