[ 
https://issues.apache.org/jira/browse/BEAM-7103?focusedWorklogId=239734&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-239734
 ]

ASF GitHub Bot logged work on BEAM-7103:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/May/19 13:16
            Start Date: 09/May/19 13:16
    Worklog Time Spent: 10m 
      Work Description: mxm commented on pull request #8342: [BEAM-7103] Adding 
AvroGenericCoder for cross-language data transfer
URL: https://github.com/apache/beam/pull/8342#discussion_r282474503
 
 

 ##########
 File path: 
sdks/java/core/src/test/java/org/apache/beam/sdk/coders/AvroGenericCoderTest.java
 ##########
 @@ -0,0 +1,92 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beam.sdk.coders;
+
+import static org.hamcrest.Matchers.equalTo;
+import static org.junit.Assert.assertThat;
+
+import java.util.Arrays;
+import java.util.List;
+import org.apache.avro.Schema;
+import org.apache.avro.SchemaBuilder;
+import org.apache.avro.generic.GenericRecord;
+import org.apache.avro.generic.GenericRecordBuilder;
+import org.apache.beam.sdk.testing.CoderProperties;
+import org.apache.beam.sdk.values.TypeDescriptor;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
+
+/** Test case for {@link StringUtf8Coder}. */
+@RunWith(JUnit4.class)
+public class AvroGenericCoderTest {
+  private static final Schema SCHEMA =
+      SchemaBuilder.record("test")
+          .namespace("org.apache.beam")
+          .fields()
+          .name("name")
+          .type()
+          .stringType()
+          .noDefault()
+          .name("age")
+          .type()
+          .intType()
+          .intDefault(0)
+          .name("hometown")
+          .type()
+          .nullable()
+          .stringType()
+          .noDefault()
+          .endRecord();
 
 Review comment:
   Could be interesting to add a custom type, e.g. a PoJo.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 239734)
    Time Spent: 1.5h  (was: 1h 20m)

> Adding AvroGenericCoder for simple dict type cross-language data transfer
> -------------------------------------------------------------------------
>
>                 Key: BEAM-7103
>                 URL: https://issues.apache.org/jira/browse/BEAM-7103
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core, sdk-py-core
>            Reporter: Heejong Lee
>            Assignee: Heejong Lee
>            Priority: Major
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Adding AvroGenericCoder for simple dict type cross-language data transfer.



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

Reply via email to