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

    https://github.com/apache/spark/pull/17770#discussion_r113633693
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
    @@ -203,7 +204,7 @@ class Dataset[T] private[sql](
        * custom objects, e.g. collect.  Here we resolve and bind the encoder 
so that we can call its
        * `fromRow` method later.
        */
    -  private val boundEnc =
    +  private lazy val boundEnc =
    --- End diff --
    
    We can't let `boundEnc` as lazy val because we need early exception when 
the encoder can't be resolved.


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