You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/05/01 16:58:00 UTC

[jira] [Work logged] (AVRO-3506) [rust] Implement Single Object Writer

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

ASF GitHub Bot logged work on AVRO-3506:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/May/22 16:57
            Start Date: 01/May/22 16:57
    Worklog Time Spent: 10m 
      Work Description: jklamer commented on code in PR #1672:
URL: https://github.com/apache/avro/pull/1672#discussion_r862498689


##########
lang/java/avro/src/test/java/org/apache/avro/message/TestInteropMessageData.java:
##########
@@ -0,0 +1,62 @@
+/*
+ * 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
+ *
+ *   https://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.avro.message;
+
+import org.apache.avro.Schema;
+import org.apache.avro.generic.GenericData;
+import org.apache.avro.generic.GenericRecordBuilder;
+import org.junit.Assert;
+import org.junit.Test;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.FileReader;
+import java.io.IOException;
+import java.nio.ByteBuffer;
+import java.nio.file.Files;
+import java.util.Arrays;
+import java.util.logging.Logger;
+
+public class TestInteropMessageData {
+  private static String inDir = System.getProperty("share.dir", "../../../share") + "/test/data/messageV1";
+  private static File SCHEMA_FILE = new File(inDir + "/test_schema.json");
+  private static File MESSAGE_FILE = new File(inDir + "/test_message.bin");

Review Comment:
   ^ this was something I wasn't sure about because the binary format is not the same as the object container files. Wanted to be clear that this shouldn't be read by any Avro File Readers





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

    Worklog Id:     (was: 764776)
    Time Spent: 0.5h  (was: 20m)

> [rust] Implement Single Object Writer
> -------------------------------------
>
>                 Key: AVRO-3506
>                 URL: https://issues.apache.org/jira/browse/AVRO-3506
>             Project: Apache Avro
>          Issue Type: New Feature
>            Reporter: Jack Klamer
>            Assignee: Jack Klamer
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The spec contains a definition for Single object Encoding: https://avro.apache.org/docs/current/spec.html#single_object_encoding
> Rust should have a compatible writer



--
This message was sent by Atlassian Jira
(v8.20.7#820007)