SourabhBadhya commented on PR #5743: URL: https://github.com/apache/hive/pull/5743#issuecomment-2798506927
`equals()` is used to check the object content, `==` does a comparision on the object reference. Using `equals()` is the right programming paradigm. I did a small test for confirming the same for Double datatype - There is a difference - ``` Double do1 = 9.0; Double do2 = 9.00; System.out.println(do1 == do2); // Returns false System.out.println(do1.equals(do2)); // Returns true ``` I agree with @aturoczy comment. Instead of creating small PRs for handling each of these minor details its better to handle it in a single PR. Its always better to group similar ones and post aggregated PRs on them. -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org