snleee commented on code in PR #11840:
URL: https://github.com/apache/pinot/pull/11840#discussion_r1367441038
##########
pinot-plugins/pinot-input-format/pinot-parquet/src/main/java/org/apache/pinot/plugin/inputformat/parquet/ParquetNativeRecordExtractor.java:
##########
@@ -143,14 +142,26 @@ private Object extractValue(Group from, int fieldIndex) {
}
private Object extractValue(Group from, int fieldIndex, Type fieldType, int
index) {
- OriginalType originalType = fieldType.getOriginalType();
+ LogicalTypeAnnotation logicalTypeAnnotation =
fieldType.getLogicalTypeAnnotation();
if (fieldType.isPrimitive()) {
PrimitiveType.PrimitiveTypeName primitiveTypeName =
fieldType.asPrimitiveType().getPrimitiveTypeName();
switch (primitiveTypeName) {
case INT32:
- return from.getInteger(fieldIndex, index);
+ int intValue = from.getInteger(fieldIndex, index);
+ if (logicalTypeAnnotation instanceof
LogicalTypeAnnotation.DecimalLogicalTypeAnnotation) {
Review Comment:

I saw `abstract LogicalTypeToken getType()` but looks that it doesn't have
`public` access so it's not usable outside.
--
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]