Avro Schmea

Primitive data types

null, boolean, int, long, float, double, string, bytes

Complex data types

array – ordered collection of objects , all the objects in the array should be of same type , to know how to use array see this blog . ( all the complex type example shows how you can use the types in a record )

{
"name":"superHeros",
"type":{"type":"array",
"items":"string"}
}

map – Unordered collection of key-value pairs. Key should be of string type, value can be any type.with in a particular map all the values should be of same type

The position field is not present in the original schema. check this blog for example.

Projections: Read only few fields present in the data file. If you have too many fields present in your input data you can define a schema with the required fields. For example if you just want to read empName from the employee data , the following schema will work.