You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2017/01/12 10:02:03 UTC
[jira] [Resolved] (SPARK-15407) Floor division
[ https://issues.apache.org/jira/browse/SPARK-15407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen resolved SPARK-15407.
-------------------------------
Resolution: 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org