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

    https://github.com/apache/spark/pull/9190#discussion_r42700920
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/Column.scala ---
    @@ -70,6 +76,13 @@ class Column(protected[sql] val expr: Expression) 
extends Logging {
       override def hashCode: Int = this.expr.hashCode
     
       /**
    +   * Provides a type hint about the expected return value of this column.  
This information can
    +   * be used by operations such as `select` on a [[Dataset]] to 
automatically convert the
    +   * results into the correct JVM types.
    +   */
    +  def as[T : Encoder]: TypedColumn[T] = new TypedColumn[T](expr)
    --- End diff --
    
    add since version


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to