HJK181 commented on issue #7262: URL: https://github.com/apache/pinot/issues/7262#issuecomment-896515115
@yupeng9 Indeed `kpis` is not a record, it's a map. Do I need complexType config for a map? Actually, we have two avro files in our project referencing each other: query.avsc ``` { "namespace": "foo.bar.v1", "type": "record", "name": "MappedQuery", "fields": [ {"name": "userQuery", "type": "string"}, {"name": "masterQuery", "type": [ "null", "string"]}, {"name": "mappingTime", "type": "long", "order": "ignore"} ] } ``` kpi.avsc ``` { "namespace": "foo.bar.v1", "name": "queryKpis", "type": "array", "items": { "namespace": "foo.bar.v1", "name": "QueryWithKpis", "type": "record", "fields": [ { "name": "query", "type": "foo.bar.MappedQuery" }, { "name": "kpis", "type": { "type": "map", "values": "double" } } ] } } ``` The avro schema of my initial post is the result of calling `avro cat --print-schema` for the sample data above. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org