You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xtable.apache.org by vi...@apache.org on 2024/07/09 12:45:08 UTC

(incubator-xtable) branch testAvroVersion created (now caa5b2cf)

This is an automated email from the ASF dual-hosted git repository.

vinish pushed a change to branch testAvroVersion
in repository https://gitbox.apache.org/repos/asf/incubator-xtable.git


      at caa5b2cf Test avro version compatability

This branch includes the following new commits:

     new caa5b2cf Test avro version compatability

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(incubator-xtable) 01/01: Test avro version compatability

Posted by vi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vinish pushed a commit to branch testAvroVersion
in repository https://gitbox.apache.org/repos/asf/incubator-xtable.git

commit caa5b2cf4a9101dfb73f27d2106c6780e5faa663
Author: Vinish Reddy <vi...@gmail.com>
AuthorDate: Tue Jul 9 18:14:51 2024 +0530

    Test avro version compatability
---
 .../org/apache/xtable/paths/TestAvroCompatibility.java     | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/xtable-core/src/test/java/org/apache/xtable/paths/TestAvroCompatibility.java b/xtable-core/src/test/java/org/apache/xtable/paths/TestAvroCompatibility.java
new file mode 100644
index 00000000..7a186b6d
--- /dev/null
+++ b/xtable-core/src/test/java/org/apache/xtable/paths/TestAvroCompatibility.java
@@ -0,0 +1,14 @@
+package org.apache.xtable.paths;
+
+import org.apache.avro.Schema;
+import org.apache.avro.specific.SpecificData;
+import org.junit.jupiter.api.Test;
+
+public class TestAvroCompatibility {
+    @Test
+    public void testAvroCompatibility() {
+        String schema = "{\"type\":\"record\",\"name\":\"HoodieCleanMetadata\",\"namespace\":\"org.apache.hudi.avro.model\",\"fields\":[{\"name\":\"startCleanTime\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"timeTakenInMillis\",\"type\":\"long\"},{\"name\":\"totalFilesDeleted\",\"type\":\"int\"},{\"name\":\"earliestCommitToRetain\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"lastCompletedCommitTimestamp\",\"type\":{\"type\" [...]
+        Schema avroSchema = new Schema.Parser().parse(schema);
+        SpecificData specificData = SpecificData.getForSchema(avroSchema);
+    }
+}
\ No newline at end of file