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

   @gaogaotiantian That's a good point. 
   
   ```py
   assert type1 == type2  # True
   ```
   
   This case looks `False`.
   
   E.g., the builtin type `DecimalType` returns `False` if the argument is 
different:
   
   ```py
   >>> from pyspark.sql.types import DecimalType
   >>> DecimalType(10,0) == DecimalType(20,0)
   False
   ```
   
   We may need to revisit `__eq__` as well?


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