Skip to content

Commit

Permalink
fix python test
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-fan committed May 8, 2015
1 parent 239730c commit 8df6199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyspark/sql/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1309,13 +1309,13 @@ def getField(self, name):
>>> df = sc.parallelize([Row(r=Row(a=1, b="b"))]).toDF()
>>> df.select(df.r.getField("b")).show()
+---+
|r.b|
|r[b]|
+---+
| b|
+---+
>>> df.select(df.r.a).show()
+---+
|r.a|
|r[a]|
+---+
| 1|
+---+
Expand Down

0 comments on commit 8df6199

Please sign in to comment.