in java/clickhouse-client/src/main/java/com/epam/deltix/clickhouse/selector/SelectBuilder.java [55:74]
public JoinNode(SubqueryNode left, SubqueryNode right, JoinType joinType, List<String> onExpressions, List<String> usingColumns) {
if (left == null)
throw new IllegalArgumentException("left");
if (right == null)
throw new IllegalArgumentException("right");
if (onExpressions == null && usingColumns == null)
throw new IllegalArgumentException("ON and USING cannot be simultaneously null");
if (onExpressions != null && usingColumns != null)
throw new IllegalArgumentException("ON and USING cannot be simultaneously not null");
this.left = left;
this.right = right;
this.joinType = joinType;
this.onExpressions = onExpressions;
this.usingColumns = usingColumns;
}