[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-07-03 Thread twalthr
Github user twalthr commented on the issue: https://github.com/apache/flink/pull/6082 In the end it seems that I had to rewrite this whole Avro logic in order to finally support all types and both specific and generic Avro records. I hope it is ok that I could not include your

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-06-13 Thread tragicjun
Github user tragicjun commented on the issue: https://github.com/apache/flink/pull/6082 @twalthr Sure, please go ahead and let me know if anything I can help further. ---

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-06-13 Thread twalthr
Github user twalthr commented on the issue: https://github.com/apache/flink/pull/6082 Thanks for the update @tragicjun. I had a look at the changes. I think the logic does still not cover all cases that we want to cover. Avro has the following types: `RECORD, ENUM, ARRAY, MAP,

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-06-12 Thread tragicjun
Github user tragicjun commented on the issue: https://github.com/apache/flink/pull/6082 @suez1224 @twalthr any update please? ---

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-06-07 Thread tragicjun
Github user tragicjun commented on the issue: https://github.com/apache/flink/pull/6082 The latest commit uses **Types.OBJECT_ARRAY** to map Avro array type. Hence, Avro **GenericData.Array** has to be converted into regular java arrays back (see **AvroRowSerializationSchema**) and

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-06-06 Thread tragicjun
Github user tragicjun commented on the issue: https://github.com/apache/flink/pull/6082 @fhueske Great, let me take a look and commit another version later. ---

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-06-06 Thread fhueske
Github user fhueske commented on the issue: https://github.com/apache/flink/pull/6082 I think we have to return an typed array here. A `List` won't be supported by the built-in SQL functions. There are a few tricks on can play to create typed arrays, even in static code

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-06-06 Thread tragicjun
Github user tragicjun commented on the issue: https://github.com/apache/flink/pull/6082 Hi @fhueske , Avro array type actually is mapped to Java List type, specifically the class **org.apache.avro.generic.GenericData.Array** extends **java.util.AbstractList**. I tried to

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-06-06 Thread fhueske
Github user fhueske commented on the issue: https://github.com/apache/flink/pull/6082 We treat sequences of values as arrays in SQL and the Table API. There are no built-in functions to handle lists. So we should return the values as an array, and hence don't need a List type. ---

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-06-05 Thread tragicjun
Github user tragicjun commented on the issue: https://github.com/apache/flink/pull/6082 Particularly I suggest that we add LIST in org.apache.flink.table.api.Types to support Avro array types. I can submit it in next commits if you guys think the same. ---

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-06-05 Thread tragicjun
Github user tragicjun commented on the issue: https://github.com/apache/flink/pull/6082 Thanks @suez1224 @twalthr for reviewing. Plz see my comments and latest commits as per your comments. ---

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-06-05 Thread tragicjun
Github user tragicjun commented on the issue: https://github.com/apache/flink/pull/6082 Thanks @suez1224 @twalthr for reviewing. Plz see my comments and latest commits as per your comments. ---

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-06-05 Thread tragicjun
Github user tragicjun commented on the issue: https://github.com/apache/flink/pull/6082 Thans @suez1224 @twalthr for reviewing. I've moved the unit tests from KafkaAvroTableSourceTestBase to AvroRowDeSerializationSchemaTest. As for other comments, plz see my comments. ---

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-05-31 Thread suez1224
Github user suez1224 commented on the issue: https://github.com/apache/flink/pull/6082 Thanks for the PR, @tragicjun. I will take a look in the next few days. ---

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-05-31 Thread tragicjun
Github user tragicjun commented on the issue: https://github.com/apache/flink/pull/6082 @twalthr @suez1224 would you please review on this? ---

[GitHub] flink issue #6082: [FLINK-9444][table] KafkaAvroTableSource failed to work f...

2018-05-30 Thread tragicjun
Github user tragicjun commented on the issue: https://github.com/apache/flink/pull/6082 I encountered another exception working with string type in Avro map/array, any advice whether I should open a separate issue or just reusing this one. ---