amrishlal commented on a change in pull request #6728:
URL: https://github.com/apache/incubator-pinot/pull/6728#discussion_r605997657
##########
File path:
pinot-common/src/main/java/org/apache/pinot/common/utils/PinotDataType.java
##########
@@ -40,22 +41,22 @@
BOOLEAN {
@Override
- public Integer toInteger(Object value) {
+ public int toInt(Object value) {
return ((Boolean) value) ? 1 : 0;
}
@Override
- public Long toLong(Object value) {
+ public long toLong(Object value) {
return ((Boolean) value) ? 1L : 0L;
Review comment:
seems like this should be `1l:0l` instead of `1L : 0L` to avoid
unnecessary type conversion?
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]