Skip to content

Commit

Permalink
Fix python test.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Sep 4, 2015
1 parent 8ff97ed commit efe069a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/pyspark/sql/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,11 @@ def join(self, other, on=None, how=None):
if on is None or len(on) == 0:
jdf = self._jdf.join(other._jdf)
elif isinstance(on[0], basestring):
jdf = self._jdf.join(other._jdf, self._jseq(on))
if how is None:
jdf = self._jdf.join(other._jdf, self._jseq(on), "inner")
else:
assert isinstance(how, basestring), "how should be basestring"
jdf = self._jdf.join(other._jdf, self._jseq(on), how)
else:
assert isinstance(on[0], Column), "on should be Column or list of Column"
if len(on) > 1:
Expand Down

0 comments on commit efe069a

Please sign in to comment.