Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7348#discussion_r34541019
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/types/AbstractDataType.scala 
---
    @@ -96,6 +96,24 @@ private[sql] class TypeCollection(private val types: 
Seq[AbstractDataType])
     
     private[sql] object TypeCollection {
     
    +  /**
    +   * Types that can be ordered/compared. In the long run we should 
probably make this a trait
    +   * that can be mixed into each data type, and perhaps create an 
[[AbstractDataType]].
    +   */
    +  val Ordered = TypeCollection(
    +    BooleanType,
    +    ByteType, ShortType, IntegerType, LongType,
    +    FloatType, DoubleType, DecimalType,
    +    TimestampType, DateType,
    +    StringType)
    +
    +  /**
    +   * Types that can be used in bitwise operations.
    +   */
    +  val Bitwise = TypeCollection(
    +    BooleanType,
    --- End diff --
    
    Does boolean support bitwise?


---
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