You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/03/14 13:27:45 UTC

[GitHub] [incubator-druid] chrishardis commented on a change in pull request #7258: #5884 Avro Maps can't be flattened in Kafka Indexing on master

chrishardis commented on a change in pull request #7258: #5884 Avro Maps can't be flattened in Kafka Indexing on master
URL: https://github.com/apache/incubator-druid/pull/7258#discussion_r265566950
 
 

 ##########
 File path: extensions-core/avro-extensions/src/main/java/org/apache/druid/data/input/avro/GenericAvroJsonProvider.java
 ##########
 @@ -137,7 +138,15 @@ public void setArrayIndex(final Object o, final int i, final Object o1)
       throw new UnsupportedOperationException();
     }
   }
-
+  
+  private Object transformAvroMapKey(String keyToTransform, Map avroMapObj) {
+    Object key = avroMapObj.keySet().iterator().next();
 
 Review comment:
   your suggestion is more elegant, I will commit it. Thks

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org