You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by rs...@apache.org on 2020/11/12 16:47:42 UTC

[avro] branch branch-1.10 updated (5e4ba67 -> 8e40677)

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

rskraba pushed a change to branch branch-1.10
in repository https://gitbox.apache.org/repos/asf/avro.git.


    from 5e4ba67  AVRO-2958: Pin composer to 2.0.4
     new 0a8ec0f  AVRO-2945: Add CPAN trademark clarification.
     new 9d7ca56  fix: Add link back to the Avro homepage.
     new bef4563  AVRO-2875: Add logging to avro-tools (#925)
     new 8e40677  AVRO-2924: LocalDateTime for logical type local-timestamp-millis (#950)

The 4 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.


Summary of changes:
 .../java/org/apache/avro/compiler/specific/SpecificCompiler.java  | 2 ++
 .../org/apache/avro/compiler/specific/TestSpecificCompiler.java   | 3 +++
 lang/java/tools/pom.xml                                           | 5 +++++
 lang/perl/README                                                  | 5 ++++-
 lang/perl/lib/Avro.pm                                             | 8 +++++++-
 5 files changed, 21 insertions(+), 2 deletions(-)


[avro] 01/04: AVRO-2945: Add CPAN trademark clarification.

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

rskraba pushed a commit to branch branch-1.10
in repository https://gitbox.apache.org/repos/asf/avro.git

commit 0a8ec0f87e367e26cc43f86cdd518b14ca0170db
Author: Ryan Skraba <ry...@skraba.com>
AuthorDate: Fri Nov 6 08:41:31 2020 +0100

    AVRO-2945: Add CPAN trademark clarification.
---
 lang/perl/README      | 5 ++++-
 lang/perl/lib/Avro.pm | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/lang/perl/README b/lang/perl/README
index 97b9abd..970c69a 100644
--- a/lang/perl/README
+++ b/lang/perl/README
@@ -1,5 +1,6 @@
 NAME
-    Avro - official Perl API for the Avro serialization and RPC framework
+    Avro - the official Perl API for the Apache Avro project's serialization
+    and RPC framework
 
 SYNOPSIS
       use Avro;
@@ -17,6 +18,8 @@ HISTORY
 COPYRIGHT
     Copyright 2014 Apache Software Foundation.
 
+    Apache and Apache Avro are trademarks of the Apache Software Foundation.
+
 LICENSE
     The Apache License, Version 2.0
     <https://www.apache.org/licenses/LICENSE-2.0>
diff --git a/lang/perl/lib/Avro.pm b/lang/perl/lib/Avro.pm
index 8910951..409a883 100644
--- a/lang/perl/lib/Avro.pm
+++ b/lang/perl/lib/Avro.pm
@@ -28,7 +28,8 @@ __END__
 
 =head1 NAME
 
-Avro - official Perl API for the Avro serialization and RPC framework
+Avro - the official Perl API for the Apache Avro project's serialization and
+RPC framework
 
 =head1 SYNOPSIS
 
@@ -51,6 +52,8 @@ from Andy Grundman <an...@hybridized.org>, David Bushong
 
 Copyright 2014 Apache Software Foundation.
 
+Apache and Apache Avro are trademarks of the Apache Software Foundation.
+
 =head1 LICENSE
 
 The Apache License, Version 2.0


[avro] 03/04: AVRO-2875: Add logging to avro-tools (#925)

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

rskraba pushed a commit to branch branch-1.10
in repository https://gitbox.apache.org/repos/asf/avro.git

commit bef45630f2b329d3c4f867052637c81a833fa186
Author: RyanSkraba <ry...@skraba.com>
AuthorDate: Thu Nov 12 16:00:39 2020 +0100

    AVRO-2875: Add logging to avro-tools (#925)
    
    * AVRO-2875: Add logging to avro-tools
    
    * Use slf4j-log4j12 instead of slf4j-simple
---
 lang/java/tools/pom.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lang/java/tools/pom.xml b/lang/java/tools/pom.xml
index f03ec91..5ffb94e 100644
--- a/lang/java/tools/pom.xml
+++ b/lang/java/tools/pom.xml
@@ -270,6 +270,11 @@
       <artifactId>jackson-core</artifactId>
     </dependency>
     <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <version>${slf4j.version}</version>
+    </dependency>
+    <dependency>
       <groupId>org.apache.hadoop</groupId>
       <artifactId>hadoop-client</artifactId>
       <optional>true</optional>


[avro] 02/04: fix: Add link back to the Avro homepage.

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

rskraba pushed a commit to branch branch-1.10
in repository https://gitbox.apache.org/repos/asf/avro.git

commit 9d7ca561395b6122f6d79c203559db18e0456767
Author: Ryan Skraba <ry...@skraba.com>
AuthorDate: Mon Nov 9 10:21:56 2020 +0100

    fix: Add link back to the Avro homepage.
---
 lang/perl/lib/Avro.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lang/perl/lib/Avro.pm b/lang/perl/lib/Avro.pm
index 409a883..dafb624 100644
--- a/lang/perl/lib/Avro.pm
+++ b/lang/perl/lib/Avro.pm
@@ -37,6 +37,9 @@ RPC framework
 
 =head1 DESCRIPTION
 
+L<Apache Avro|https://avro.apache.org/> is a data serialization system providing rich data
+structures and a compact, fast, binary data form.
+
 =head1 AUTHOR
 
 Apache Avro <de...@avro.apache.org>


[avro] 04/04: AVRO-2924: LocalDateTime for logical type local-timestamp-millis (#950)

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

rskraba pushed a commit to branch branch-1.10
in repository https://gitbox.apache.org/repos/asf/avro.git

commit 8e40677b27a86f8af4bac16e501b3d146591cfde
Author: Vladimir Kralik <vk...@gmail.com>
AuthorDate: Thu Nov 12 17:00:13 2020 +0100

    AVRO-2924: LocalDateTime for logical type local-timestamp-millis (#950)
---
 .../main/java/org/apache/avro/compiler/specific/SpecificCompiler.java  | 2 ++
 .../java/org/apache/avro/compiler/specific/TestSpecificCompiler.java   | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/lang/java/compiler/src/main/java/org/apache/avro/compiler/specific/SpecificCompiler.java b/lang/java/compiler/src/main/java/org/apache/avro/compiler/specific/SpecificCompiler.java
index b88b3c9..a839866 100644
--- a/lang/java/compiler/src/main/java/org/apache/avro/compiler/specific/SpecificCompiler.java
+++ b/lang/java/compiler/src/main/java/org/apache/avro/compiler/specific/SpecificCompiler.java
@@ -104,6 +104,8 @@ public class SpecificCompiler {
     specificData.addLogicalTypeConversion(new TimeConversions.TimeMicrosConversion());
     specificData.addLogicalTypeConversion(new TimeConversions.TimestampMillisConversion());
     specificData.addLogicalTypeConversion(new TimeConversions.TimestampMicrosConversion());
+    specificData.addLogicalTypeConversion(new TimeConversions.LocalTimestampMicrosConversion());
+    specificData.addLogicalTypeConversion(new TimeConversions.LocalTimestampMillisConversion());
   }
 
   private final SpecificData specificData = new SpecificData();
diff --git a/lang/java/compiler/src/test/java/org/apache/avro/compiler/specific/TestSpecificCompiler.java b/lang/java/compiler/src/test/java/org/apache/avro/compiler/specific/TestSpecificCompiler.java
index 4c92422..bd10a5b 100644
--- a/lang/java/compiler/src/test/java/org/apache/avro/compiler/specific/TestSpecificCompiler.java
+++ b/lang/java/compiler/src/test/java/org/apache/avro/compiler/specific/TestSpecificCompiler.java
@@ -345,6 +345,7 @@ public class TestSpecificCompiler {
     Schema dateSchema = LogicalTypes.date().addToSchema(Schema.create(Schema.Type.INT));
     Schema timeSchema = LogicalTypes.timeMillis().addToSchema(Schema.create(Schema.Type.INT));
     Schema timestampSchema = LogicalTypes.timestampMillis().addToSchema(Schema.create(Schema.Type.LONG));
+    Schema localTimestampSchema = LogicalTypes.localTimestampMillis().addToSchema(Schema.create(Schema.Type.LONG));
     Schema decimalSchema = LogicalTypes.decimal(9, 2).addToSchema(Schema.create(Schema.Type.BYTES));
     Schema uuidSchema = LogicalTypes.uuid().addToSchema(Schema.create(Schema.Type.STRING));
 
@@ -357,6 +358,8 @@ public class TestSpecificCompiler {
         compiler.javaType(timeSchema));
     Assert.assertEquals("Should use DateTime for timestamp-millis type", "java.time.Instant",
         compiler.javaType(timestampSchema));
+    Assert.assertEquals("Should use LocalDateTime for local-timestamp-millis type", "java.time.LocalDateTime",
+        compiler.javaType(localTimestampSchema));
     Assert.assertEquals("Should use Java BigDecimal type", "java.math.BigDecimal", compiler.javaType(decimalSchema));
     Assert.assertEquals("Should use Java CharSequence type", "java.lang.CharSequence", compiler.javaType(uuidSchema));
   }