Repository: spark Updated Branches: refs/heads/branch-1.4 0df461e08 -> fec3041a6
[SPARK-7394][SQL] Add Pandas style cast (astype) Author: kaka1992 <[email protected]> Closes #6313 from kaka1992/astype and squashes the following commits: 73dfd0b [kaka1992] [SPARK-7394] Add Pandas style cast (astype) ad8feb2 [kaka1992] [SPARK-7394] Add Pandas style cast (astype) 4f328b7 [kaka1992] [SPARK-7394] Add Pandas style cast (astype) (cherry picked from commit 699906e538a3d03636adab546ca86d06d5d89293) Signed-off-by: Reynold Xin <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/fec3041a Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/fec3041a Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/fec3041a Branch: refs/heads/branch-1.4 Commit: fec3041a6ccc7848d8b27f61b92c27d3d573b75b Parents: 0df461e Author: kaka1992 <[email protected]> Authored: Thu May 21 11:50:39 2015 -0700 Committer: Reynold Xin <[email protected]> Committed: Thu May 21 11:51:26 2015 -0700 ---------------------------------------------------------------------- python/pyspark/sql/column.py | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/fec3041a/python/pyspark/sql/column.py ---------------------------------------------------------------------- diff --git a/python/pyspark/sql/column.py b/python/pyspark/sql/column.py index d03bb6d..baf1ecb 100644 --- a/python/pyspark/sql/column.py +++ b/python/pyspark/sql/column.py @@ -302,6 +302,8 @@ class Column(object): raise TypeError("unexpected type: %s" % type(dataType)) return Column(jc) + astype = cast + @ignore_unicode_prefix @since(1.3) def between(self, lowerBound, upperBound): --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
