sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hshreedha...@apache.org
Subject sqoop git commit: SQOOP-2597. Missing method AvroSchemaGenerator.generate()
Date Thu, 01 Oct 2015 18:09:13 GMT
Repository: sqoop
Updated Branches:
  refs/heads/trunk 6987d290f -> 967f0eb0f


SQOOP-2597. Missing method AvroSchemaGenerator.generate()

(Jarcec via Hari)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/967f0eb0
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/967f0eb0
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/967f0eb0

Branch: refs/heads/trunk
Commit: 967f0eb0f3977c0fae4cdc1a80b37b282ad0042e
Parents: 6987d29
Author: Hari Shreedharan <hshreedharan@apache.org>
Authored: Thu Oct 1 14:07:54 2015 -0400
Committer: Hari Shreedharan <hshreedharan@apache.org>
Committed: Thu Oct 1 14:07:54 2015 -0400

----------------------------------------------------------------------
 src/java/org/apache/sqoop/orm/AvroSchemaGenerator.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/967f0eb0/src/java/org/apache/sqoop/orm/AvroSchemaGenerator.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/sqoop/orm/AvroSchemaGenerator.java b/src/java/org/apache/sqoop/orm/AvroSchemaGenerator.java
index 2576673..dcffb99 100644
--- a/src/java/org/apache/sqoop/orm/AvroSchemaGenerator.java
+++ b/src/java/org/apache/sqoop/orm/AvroSchemaGenerator.java
@@ -55,6 +55,11 @@ public class AvroSchemaGenerator {
     this.tableName = table;
   }
 
+  // Backward compatible method SQOOP-2597
+  public Schema generate() throws IOException {
+    return generate(null);
+  }
+
   public Schema generate(String schemaNameOverride) throws IOException {
     ClassWriter classWriter = new ClassWriter(options, connManager,
         tableName, null);


Mime
View raw message