[jira] [Commented] (AVRO-1847) IDL compiler uses ByteBuffer for decimal type even if logical type is supported

2016-06-14 Thread Yibing Shi (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15329494#comment-15329494 ] Yibing Shi commented on AVRO-1847: -- The {{conver}} method is newly added by this patch. It didn't exist in

[jira] [Commented] (AVRO-1847) IDL compiler uses ByteBuffer for decimal type even if logical type is supported

2016-06-14 Thread Yibing Shi (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15329495#comment-15329495 ] Yibing Shi commented on AVRO-1847: -- I have removed the passthrough behaviour in convert to/from methods.

[jira] [Comment Edited] (AVRO-1847) IDL compiler uses ByteBuffer for decimal type even if logical type is supported

2016-06-14 Thread Yibing Shi (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15328665#comment-15328665 ] Yibing Shi edited comment on AVRO-1847 at 6/14/16 1:18 PM: --- Agree. Since these 2

[jira] [Commented] (AVRO-1847) IDL compiler uses ByteBuffer for decimal type even if logical type is supported

2016-06-14 Thread Yibing Shi (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15329501#comment-15329501 ] Yibing Shi commented on AVRO-1847: -- Since we always try to use Joda or Java classes for date/time types, I

[jira] [Commented] (AVRO-1847) IDL compiler uses ByteBuffer for decimal type even if logical type is supported

2016-06-14 Thread Yibing Shi (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15329515#comment-15329515 ] Yibing Shi commented on AVRO-1847: -- Oops! Have corrected it. > IDL compiler uses ByteBuffer for decimal

[jira] [Commented] (AVRO-1847) IDL compiler uses ByteBuffer for decimal type even if logical type is supported

2016-06-14 Thread Yibing Shi (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15329521#comment-15329521 ] Yibing Shi commented on AVRO-1847: -- As mentioned above, I don't think we need a separate flag for

[jira] [Commented] (AVRO-1847) IDL compiler uses ByteBuffer for decimal type even if logical type is supported

2016-06-14 Thread Yibing Shi (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15329511#comment-15329511 ] Yibing Shi commented on AVRO-1847: -- I didn't think of childrens of this class may need to check its return

[jira] [Commented] (AVRO-1847) IDL compiler uses ByteBuffer for decimal type even if logical type is supported

2016-06-14 Thread Yibing Shi (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15329522#comment-15329522 ] Yibing Shi commented on AVRO-1847: -- Same as above > IDL compiler uses ByteBuffer for decimal type even if

[jira] [Commented] (AVRO-1847) IDL compiler uses ByteBuffer for decimal type even if logical type is supported

2016-06-14 Thread Sean Busbey (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15329647#comment-15329647 ] Sean Busbey commented on AVRO-1847: --- {code} + public static Object convertToLogicalType(Object datum,

[jira] [Updated] (AVRO-1847) IDL compiler uses ByteBuffer for decimal type even if logical type is supported

2016-06-14 Thread Yibing Shi (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yibing Shi updated AVRO-1847: - Attachment: AVRO-1847.5.patch Upload the new patch that contains all the changes based on code review. >

[jira] [Commented] (AVRO-1847) IDL compiler uses ByteBuffer for decimal type even if logical type is supported

2016-06-14 Thread Ryan Blue (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15329708#comment-15329708 ] Ryan Blue commented on AVRO-1847: - I think there should also be a test for this to make sure logical types

Re: Avro union compatibility mode enhancement proposal

2016-06-14 Thread Doug Cutting
Matthieu, Thanks for the example. First, is this really an alias, or is it something else? In other words, would a reader ever map a written Vehicle to a Bus? If the use cases are exclusive, perhaps we should call it something different rather than overload the alias concept? Second, would

[jira] [Commented] (AVRO-1847) IDL compiler uses ByteBuffer for decimal type even if logical type is supported

2016-06-14 Thread Ryan Blue (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15330700#comment-15330700 ] Ryan Blue commented on AVRO-1847: - I think this logic should just apply the conversions if they are