Github user MechCoder commented on the pull request:

    https://github.com/apache/spark/pull/4099#issuecomment-70717091
  
    @jkbradley Thanks for the clarification. I gave a few attempts, but I don't 
think I'm doing it the right way. This is what you mean right?
    
    Presently in `SQLUserDefinedType` we have `udt` of type Class which 
inherits from a `UserDefinedType`. This corresponds to the class tag generated 
by `classOf[VectorUDT]` in the annotation.
    
    But now since we have changed `VectorUDT` to an object, in 
`SQLUserDefinedType` I need to change the definition of `udt` such that it 
corresponds to an instance of the class (or) an object rather than the class 
itself. But how do I do this?
    
    Also, is it possible in cases where instantiation needs variables in the 
constructor? For example in this case 
(https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/test/ExamplePointUDT.scala#L31)
 ?
    
    



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