okumin commented on PR #6505: URL: https://github.com/apache/hive/pull/6505#issuecomment-7295800112
> @thomasrebele I agree it would be cleaner: with OptionalLong the compiler forces every reader to handle the unknown case, and the bugs this PR fixes are exactly arithmetic on the sentinel. I'd still keep -1 here: > I'd propose a follow-up JIRA that converts the four fields together, possibly keeping deprecated long getters for a while. I am supportive with this approach. If we updated all the methods here, the blast radius would be too big. If we updated it partially, we might see inconsistencies for a long and another drift might happen. -- 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]
