avro-dev mailing list archives

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

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

ASF GitHub Bot commented on AVRO-1691:

GitHub user edenhill opened a pull request:


    Depend on external libjansson and fix for AVRO-1691

    Fix for AVRO-1691:
    Allow JSON string-field primitive schema definitions
    This fix requires a newer version of libjansson (>=2.3) that features the JSON_DECODE_ANY
decoder flag. Since libjansson is widely available in distributions nowadays the old bundled
copy was removed in favour of depending on libjansson as an external library.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/edenhill/avro AVRO-1691

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #57
commit bada46dcf8da5f78b7ade7589225978ce63c45e1
Author: Magnus Edenhill <magnus@edenhill.se>
Date:   2015-11-18T19:08:49Z

    Depend on external libjansson instead of a bundled copy

commit 586eb2bc9d9bd9ee3e69ff0bdd27fdcebdfe7ced
Author: Magnus Edenhill <magnus@edenhill.se>
Date:   2015-11-18T19:30:33Z

    AVRO-1691: Allow JSON string-field primitive schema definitions

commit 80f06f65a1069f8a28ef6136343dc6e8c7e88493
Author: Magnus Edenhill <magnus@edenhill.se>
Date:   2015-11-18T19:40:47Z

    Newer Jansson (e.g 2.7) libraries output hex escapes in lowercase


> 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
>          Components: c
>    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

View raw message