You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by na...@apache.org on 2019/11/01 04:49:47 UTC

[incubator-hudi] branch master updated: [MINOR] Fix avro schema warnings in build

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

nagarwal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new eda472a  [MINOR] Fix avro schema warnings in build
eda472a is described below

commit eda472adb09ce82063f58200eafcb7be361b4cb8
Author: Guru107 <gu...@gmail.com>
AuthorDate: Wed Oct 30 11:48:29 2019 +0530

    [MINOR] Fix avro schema warnings in build
---
 hudi-common/src/main/avro/HoodieArchivedMetaEntry.avsc  | 16 +++++++++-------
 hudi-common/src/main/avro/HoodieCommitMetadata.avsc     |  6 ++++--
 hudi-common/src/main/avro/HoodieCompactionMetadata.avsc | 15 ++++++++++-----
 hudi-common/src/main/avro/HoodieRestoreMetadata.avsc    |  4 ++--
 4 files changed, 25 insertions(+), 16 deletions(-)

diff --git a/hudi-common/src/main/avro/HoodieArchivedMetaEntry.avsc b/hudi-common/src/main/avro/HoodieArchivedMetaEntry.avsc
index 626b478..7c57e04 100644
--- a/hudi-common/src/main/avro/HoodieArchivedMetaEntry.avsc
+++ b/hudi-common/src/main/avro/HoodieArchivedMetaEntry.avsc
@@ -26,7 +26,7 @@
             "null",
             "HoodieCommitMetadata"
          ],
-         "default": "null"
+         "default": null
       },
       {
          "name":"hoodieCleanMetadata",
@@ -34,7 +34,7 @@
             "null",
             "HoodieCleanMetadata"
          ],
-         "default": "null"
+         "default": null
       },
       {
          "name":"hoodieCompactionMetadata",
@@ -42,7 +42,7 @@
             "null",
             "HoodieCompactionMetadata"
          ],
-         "default": "null"
+         "default": null
       },
       {
          "name":"hoodieRollbackMetadata",
@@ -50,7 +50,7 @@
             "null",
             "HoodieRollbackMetadata"
          ],
-         "default": "null"
+         "default": null
       },
       {
          "name":"hoodieSavePointMetadata",
@@ -58,15 +58,17 @@
             "null",
             "HoodieSavepointMetadata"
          ],
-         "default": "null"
+         "default": null
       },
       {
          "name":"commitTime",
-         "type":["null","string"]
+         "type":["null","string"],
+         "default": null
       },
       {
          "name":"actionType",
-         "type":["null","string"]
+         "type":["null","string"],
+         "default": null
       },
       {
          "name":"version",
diff --git a/hudi-common/src/main/avro/HoodieCommitMetadata.avsc b/hudi-common/src/main/avro/HoodieCommitMetadata.avsc
index 7796d99..bdd2aca 100644
--- a/hudi-common/src/main/avro/HoodieCommitMetadata.avsc
+++ b/hudi-common/src/main/avro/HoodieCommitMetadata.avsc
@@ -118,14 +118,16 @@
                   ]
                }
             }
-         }]
+         }],
+         "default": null
       },
       {
          "name":"extraMetadata",
          "type":["null", {
             "type":"map",
             "values":"string"
-         }]
+         }],
+         "default": null
       },
       {
          "name":"version",
diff --git a/hudi-common/src/main/avro/HoodieCompactionMetadata.avsc b/hudi-common/src/main/avro/HoodieCompactionMetadata.avsc
index b4da80e..3d2ac43 100644
--- a/hudi-common/src/main/avro/HoodieCompactionMetadata.avsc
+++ b/hudi-common/src/main/avro/HoodieCompactionMetadata.avsc
@@ -32,23 +32,28 @@
                   "fields":[
                      {
                         "name":"partitionPath",
-                        "type":["null","string"]
+                        "type":["null","string"],
+                        "default": null
                      },
                      {
                         "name":"totalLogRecords",
-                        "type":["null","long"]
+                        "type":["null","long"],
+                        "default": null
                      },
                      {
                         "name":"totalLogFiles",
-                        "type":["null","long"]
+                        "type":["null","long"],
+                        "default": null
                      },
                      {
                         "name":"totalUpdatedRecordsCompacted",
-                        "type":["null","long"]
+                        "type":["null","long"],
+                        "default": null
                      },
                      {
                         "name":"hoodieWriteStat",
-                        "type":["null","HoodieWriteStat"]
+                        "type":["null","HoodieWriteStat"],
+                        "default": null
                      }
                   ]
                }
diff --git a/hudi-common/src/main/avro/HoodieRestoreMetadata.avsc b/hudi-common/src/main/avro/HoodieRestoreMetadata.avsc
index 03defbb..28e111d 100644
--- a/hudi-common/src/main/avro/HoodieRestoreMetadata.avsc
+++ b/hudi-common/src/main/avro/HoodieRestoreMetadata.avsc
@@ -25,8 +25,8 @@
      {"name": "hoodieRestoreMetadata", "type": {
      "type" : "map", "values" : {
         "type": "array",
-        "default": "null",
-        "items": "HoodieRollbackMetadata",
+        "default": null,
+        "items": ["null","HoodieRollbackMetadata"],
         "name": "hoodieRollbackMetadata"
      }
    }},