zhengruifeng commented on PR #53113:
URL: https://github.com/apache/spark/pull/53113#issuecomment-3550217068

   I was trying to cache the converters `{datetype: converter}` and then found 
that UDT cannot be used as the key.
   
   > I think the general direction should be making __eq__ strict.
   
   @gaogaotiantian sounds good, another solution is to just remove the __eq__ 
method in UDT, then  it should use DataType.__eq__
   
   
https://github.com/apache/spark/blob/9380e91f8bbdc5b7d6855815ea352070d1e248fb/python/pyspark/sql/types.py#L115-L125


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to