kishoreg commented on a change in pull request #4388: Adding support for Map
type fields
URL: https://github.com/apache/incubator-pinot/pull/4388#discussion_r306143343
##########
File path: pinot-core/src/main/java/org/apache/pinot/core/util/AvroUtils.java
##########
@@ -296,4 +302,33 @@ public static boolean isSingleValueField(Field field) {
return fieldSchema;
}
}
+
+ public static void extractField(FieldSpec incomingFieldSpec, GenericRecord
from, GenericRow to) {
+ String fieldName = incomingFieldSpec.getName();
+ //Handle MAP types
+ if (fieldName.toUpperCase().endsWith("__KEYS")) {
Review comment:
I will define them within the same class. this is very specific to the
ingestion layer and we don't need it anywhere else.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]