Github user davies commented on a diff in the pull request:

    https://github.com/apache/spark/pull/6479#discussion_r31690832
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/GenerateOrdering.scala
 ---
    @@ -18,18 +18,24 @@
     package org.apache.spark.sql.catalyst.expressions.codegen
     
     import org.apache.spark.Logging
    +import org.apache.spark.sql.Row
     import org.apache.spark.sql.catalyst.expressions._
    -import org.apache.spark.sql.types.{BinaryType, StringType, NumericType}
    +import org.apache.spark.sql.types.{BinaryType, NumericType}
    +
    +class BaseOrdering extends Ordering[Row] {
    +  def compare(a: Row, b: Row): Int = {
    +    throw new UnsupportedOperationException
    +  }
    +}
     
     /**
      * Generates bytecode for an [[Ordering]] of [[Row Rows]] for a given set 
of
      * [[Expression Expressions]].
      */
     object GenerateOrdering extends CodeGenerator[Seq[SortOrder], 
Ordering[Row]] with Logging {
    -  import scala.reflect.runtime.{universe => ru}
       import scala.reflect.runtime.universe._
     
    - protected def canonicalize(in: Seq[SortOrder]): Seq[SortOrder] =
    +  protected def canonicalize(in: Seq[SortOrder]): Seq[SortOrder] =
    --- End diff --
    
    yes



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to