Github user gzm0 commented on the pull request:

    https://github.com/apache/spark/pull/1759#issuecomment-51741900
  
    We could add methods to records that let yoi specify the target type:
    
    ```x.name[String]```
    
    It's unclear though how this could be converted into case classes 
automatically, for example. 
    
    Another option would be to query the DB at compile time (throgh a 
`EXPLAIN`). It is a requirement anyway to have a DB aligned with the code, so 
making a DB available at compile time is just a matter of configuration. 
    
    On the other hand, in terms of "determinism" of what the compiler yields, 
this is sub-optimal.


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