[jira] [Updated] (AVRO-2186) avro::Exception string gives the incorrect message

2018-12-28 Thread Thiruvalluvan M. G. (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-2186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thiruvalluvan M. G. updated AVRO-2186:
--
Fix Version/s: 1.9.0

> avro::Exception string gives the incorrect message
> --
>
> Key: AVRO-2186
> URL: https://issues.apache.org/jira/browse/AVRO-2186
> Project: Apache Avro
>  Issue Type: Bug
>  Components: c++
>Affects Versions: 1.8.2
> Environment: {code:java}
> Linux bream 2.6.39-200.24.1.el6uek.x86_64 #1 SMP Sat Jun 23 02:39:07 EDT 2012 
> x86_64 x86_64 x86_64 GNU/Linux
> {code}
>  
>Reporter: Anubhav Siddharth
>Assignee: Thiruvalluvan M. G.
>Priority: Critical
> Fix For: 1.9.0
>
>
> When a field specified in schema is missing and we call avro::encode on the 
> data. It throws an exception, which is as expected. But the issue is with the 
> error message. It comes the other way round.
> Schema:
> {code:java}
> {
>  "type" : "record",
>  "name" : "userInfo",
>  "fields" : [
> { "name" : "id", "type" : "int"},
> { "name" : "fullName", "type" : "string" }
>  ]
> }
> {code}
> The generic datum to be encoded has no "id" provided. There is an empty 
> GenericDatum for that field. Here is the excetion that is thrown:
> {code:java}
> avro::Exception caught: Invalid operation. Expected: Null got Int{code}
> The exception message should have been 
> avro::Exception caught: Invalid operation. Expected: {color:#FF}*Int got 
> Null*{color}
>  
> {color:#33}Please let us know if you need more information on this.{color}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (AVRO-2186) avro::Exception string gives the incorrect message

2018-10-05 Thread Thiruvalluvan M. G. (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-2186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thiruvalluvan M. G. updated AVRO-2186:
--
Resolution: Fixed
Status: Resolved  (was: Patch Available)

Merged the pull request

> avro::Exception string gives the incorrect message
> --
>
> Key: AVRO-2186
> URL: https://issues.apache.org/jira/browse/AVRO-2186
> Project: Avro
>  Issue Type: Bug
>  Components: c++
>Affects Versions: 1.8.2
> Environment: {code:java}
> Linux bream 2.6.39-200.24.1.el6uek.x86_64 #1 SMP Sat Jun 23 02:39:07 EDT 2012 
> x86_64 x86_64 x86_64 GNU/Linux
> {code}
>  
>Reporter: Anubhav Siddharth
>Assignee: Thiruvalluvan M. G.
>Priority: Critical
>
> When a field specified in schema is missing and we call avro::encode on the 
> data. It throws an exception, which is as expected. But the issue is with the 
> error message. It comes the other way round.
> Schema:
> {code:java}
> {
>  "type" : "record",
>  "name" : "userInfo",
>  "fields" : [
> { "name" : "id", "type" : "int"},
> { "name" : "fullName", "type" : "string" }
>  ]
> }
> {code}
> The generic datum to be encoded has no "id" provided. There is an empty 
> GenericDatum for that field. Here is the excetion that is thrown:
> {code:java}
> avro::Exception caught: Invalid operation. Expected: Null got Int{code}
> The exception message should have been 
> avro::Exception caught: Invalid operation. Expected: {color:#FF}*Int got 
> Null*{color}
>  
> {color:#33}Please let us know if you need more information on this.{color}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (AVRO-2186) avro::Exception string gives the incorrect message

2018-10-02 Thread Thiruvalluvan M. G. (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-2186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thiruvalluvan M. G. updated AVRO-2186:
--
Status: Patch Available  (was: Open)

Here is a pull request. [~Anubhav_CSG] please review.

> avro::Exception string gives the incorrect message
> --
>
> Key: AVRO-2186
> URL: https://issues.apache.org/jira/browse/AVRO-2186
> Project: Avro
>  Issue Type: Bug
>  Components: c++
>Affects Versions: 1.8.2
> Environment: {code:java}
> Linux bream 2.6.39-200.24.1.el6uek.x86_64 #1 SMP Sat Jun 23 02:39:07 EDT 2012 
> x86_64 x86_64 x86_64 GNU/Linux
> {code}
>  
>Reporter: Anubhav Siddharth
>Assignee: Thiruvalluvan M. G.
>Priority: Critical
>
> When a field specified in schema is missing and we call avro::encode on the 
> data. It throws an exception, which is as expected. But the issue is with the 
> error message. It comes the other way round.
> Schema:
> {code:java}
> {
>  "type" : "record",
>  "name" : "userInfo",
>  "fields" : [
> { "name" : "id", "type" : "int"},
> { "name" : "fullName", "type" : "string" }
>  ]
> }
> {code}
> The generic datum to be encoded has no "id" provided. There is an empty 
> GenericDatum for that field. Here is the excetion that is thrown:
> {code:java}
> avro::Exception caught: Invalid operation. Expected: Null got Int{code}
> The exception message should have been 
> avro::Exception caught: Invalid operation. Expected: {color:#FF}*Int got 
> Null*{color}
>  
> {color:#33}Please let us know if you need more information on this.{color}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)