avro-schema icon indicating copy to clipboard operation
avro-schema copied to clipboard

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

Open Totktonada opened this issue 6 years ago • 0 comments

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

Totktonada avatar Nov 23 '18 07:11 Totktonada