Implement EquiJoinClause.toString()
@@ -38,6 +38,7 @@ import static com.facebook.presto.sql.planner.plan.JoinNode.Type.LEFT;
import static com.facebook.presto.util.SpatialJoinUtils.isSpatialJoinFilter;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.collect.ImmutableList.toImmutableList;
+import static java.lang.String.format;
import static java.util.Objects.requireNonNull;
@Immutable
@@ -306,5 +307,11 @@ public class JoinNode
{
return Objects.hash(left, right);
}
+
+ @Override
+ public String toString()
+ {
+ return format("%s = %s", left, right);
+ }
}
}
