You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2015/04/03 02:24:59 UTC
[jira] [Resolved] (SPARK-6243) The Operation of match did not
conside the scenarios that order.dataType does not match NativeType
[ https://issues.apache.org/jira/browse/SPARK-6243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Armbrust resolved SPARK-6243.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.4.0
Issue resolved by pull request 4959
[https://github.com/apache/spark/pull/4959]
> The Operation of match did not conside the scenarios that order.dataType does not match NativeType
> --------------------------------------------------------------------------------------------------
>
> Key: SPARK-6243
> URL: https://issues.apache.org/jira/browse/SPARK-6243
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Zhongshuai Pei
> Fix For: 1.4.0
>
>
> It did not conside that order.dataType does not match NativeType.
> val comparison = order.dataType match {
> case n: NativeType if order.direction == Ascending =>
> n.ordering.asInstanceOf[Ordering[Any]].compare(left, right)
> case n: NativeType if order.direction == Descending =>
> n.ordering.asInstanceOf[Ordering[Any]].reverse.compare(left, right)
> }
--
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