[
https://issues.apache.org/jira/browse/SPARK-36003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon resolved SPARK-36003.
----------------------------------
Fix Version/s: 3.2.0
Resolution: Fixed
Issue resolved by pull request 33285
[https://github.com/apache/spark/pull/33285]
> Implement unary operator `invert` of integral ps.Series/Index
> -------------------------------------------------------------
>
> Key: SPARK-36003
> URL: https://issues.apache.org/jira/browse/SPARK-36003
> Project: Spark
> Issue Type: Improvement
> Components: PySpark
> Affects Versions: 3.2.0
> Reporter: Xinrong Meng
> Assignee: Xinrong Meng
> Priority: Major
> Fix For: 3.2.0
>
>
>
> {code:java}
> >>> ~ps.Series([1, 2, 3])
> Traceback (most recent call last):
> ...
> pyspark.sql.utils.AnalysisException: cannot resolve '(NOT `0`)' due to data
> type mismatch: argument 1 requires boolean type, however, '`0`' is of bigint
> type.;
> 'Project [unresolvedalias(NOT 0#1L,
> Some(org.apache.spark.sql.Column$$Lambda$1365/2097273578@53165e1))]
> +- Project [__index_level_0__#0L, 0#1L, monotonically_increasing_id() AS
> __natural_order__#4L]
> +- LogicalRDD [__index_level_0__#0L, 0#1L], false
> {code}
>
> Currently, unary operator `invert` of integral ps.Series/Index is not
> supported. We ought to implement that following pandas' behaviors.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]