GitHub user cloud-fan opened a pull request: https://github.com/apache/spark/pull/13648
[SQL][DOC][minor] document the contract of encoder serializer expressions ## What changes were proposed in this pull request? In our encoder framework, we imply that serializer expressions should use `BoundReference` to refer to the input object, and a lot of codes depend on this contract(e.g. ExpressionEncoder.tuple). This PR adds some document and assert in `ExpressionEncoder` to make it clearer. ## How was this patch tested? existing tests You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloud-fan/spark comment Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/13648.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #13648 ---- commit cdda303ed624aaf3389fb190ff8c473f06afa681 Author: Wenchen Fan <wenc...@databricks.com> Date: 2016-06-13T20:26:01Z document the contract of encoder serializer expressions ---- --- 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