[ 
https://issues.apache.org/jira/browse/SPARK-15407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15819926#comment-15819926
 ] 

Hyukjin Kwon commented on SPARK-15407:
--------------------------------------

Hi [~hvanhovell], I just wonder if we should resolve this as {{Won't Fix}} or 
{{Not A Problem}}.

> Floor division
> --------------
>
>                 Key: SPARK-15407
>                 URL: https://issues.apache.org/jira/browse/SPARK-15407
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 1.6.1
>            Reporter: Joao Ferreira
>
> I'm unable to perform floor division on DataFrame columns:
> df.withColumn("d_date", df.d_date // 100)
> Will produce:
> TypeError: unsupported operand type(s) for //: 'Column' and 'int'
> My column is of the int type. Basic operations such as 
> sum/division/subtraction work fine.
> The inner workings of PySpark mention a floor function inside 
> sql/functions... but the actual code to perform this operation is missing.
> Am I missing anything?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to