Re: Cannot convert column 2 from string to map error

2016-03-03 Thread Swagatika Tripathy
Hi Buntu, Since the attribute attrs is of type MAP,So, you need to do it something like: insert into tmp_table values ( 'src1', 'uid1',map("NULL","NULL"). Let me know if it works. On Tue, Mar 1, 2016 at 5:06 AM, Buntu Dev wrote: > When attempting to insert null value into a map column > type

Cannot convert column 2 from string to map error

2016-02-29 Thread Buntu Dev
When attempting to insert null value into a map column type, I run into this error: Cannot convert column 2 from string to map Here is my Avro schema and the table definition: "fields": [ {"name": "src", "type": ["null", "string"], "default": null}, {"name": "ui