tarantool / avro-schema

Apache Avro schema tools for Tarantool
57 stars 4 forks source link

flatten says 'Expecting MAP, encountered LONG' for a string #119

Open Totktonada opened 5 years ago

Totktonada commented 5 years ago
avro = require('avro_schema')
schema = {type = 'record', name = 'foo', fields = {{name = 'bar', type = 'string'}}}
ok, h = avro.create(schema)
ok, m = avro.compile(h)
m.flatten('hello')
---
- false
- Expecting MAP, encountered LONG