avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magnus Edenhill (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1691) Error parsing schema if schema is json string
Date Wed, 18 Nov 2015 12:20:11 GMT

    [ https://issues.apache.org/jira/browse/AVRO-1691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15010885#comment-15010885
] 

Magnus Edenhill commented on AVRO-1691:
---------------------------------------

Fixing this requires the JSON_DECODE_ANY flag which unfortunately is not available in the
bundled jansson (v2.1), so it'll require an upgrade to a later jansson (latest stable is 2.7).

The proper fix might be to depend on an external jansson instead of bundling it.


> Error parsing schema if schema is json string
> ---------------------------------------------
>
>                 Key: AVRO-1691
>                 URL: https://issues.apache.org/jira/browse/AVRO-1691
>             Project: Avro
>          Issue Type: Bug
>    Affects Versions: 1.7.7
>            Reporter: Vikas Kumar
>
> I have a schema which looks like:
> "int"
> in file_read_header , I got an error: Cannot parse file header: Error parsing JSON: '['
or '{' expected near '"int"'
> I see avro-c uses json_loadb from jansson which may be populating this error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message