Apache Gora
  1. Apache Gora
  2. GORA-174

GORA compiler does not handle ["string", "null"] unions in the AVRO schema

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.2.1
    • Fix Version/s: 0.4
    • Component/s: schema
    • Labels:
      None

      Description

      See NUTCH-1477 for description.
      We are getting NPE when using the DataFileAvroStore, in order to avoid that I modified the schema to allow for null values on some fields e.g.

      {"name": "baseUrl", "type": ["string", "null"] }

      however when generating the code for the schema the accessors are not generated by GORA which prevents Nutch from compiling

      1. GORA-174_over_r1462580.patch
        1 kB
        Alfonso Nishikawa
      2. GORA-174.patch
        34 kB
        Alfonso Nishikawa
      3. GORA-174.patch
        17 kB
        Alfonso Nishikawa
      4. GORA-174.patch
        16 kB
        Alfonso Nishikawa
      5. GORA-174.patch
        15 kB
        Alfonso Nishikawa
      6. GORA-174-test.patch
        2 kB
        Julien Nioche

        Issue Links

          Activity

          Julien Nioche created issue -
          Julien Nioche made changes -
          Field Original Value New Value
          Link This issue blocks NUTCH-1477 [ NUTCH-1477 ]
          Lewis John McGibbney made changes -
          Fix Version/s 0.3 [ 12317954 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174.patch [ 12554088 ]
          Alfonso Nishikawa made changes -
          Comment [ Generate getters/setters for union types. ]
          Alfonso Nishikawa made changes -
          Assignee Alfonso Nishikawa [ alfonso.nishikawa ]
          Alfonso Nishikawa made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174.patch [ 12554088 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174.patch [ 12554139 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174.patch [ 12554139 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174.patch [ 12554157 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174.patch [ 12554157 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174.patch [ 12554158 ]
          Julien Nioche made changes -
          Attachment GORA-174-test.patch [ 12554160 ]
          Alfonso Nishikawa made changes -
          Link This issue is related to GORA-183 [ GORA-183 ]
          Alfonso Nishikawa made changes -
          Attachment patch-tests_applied.out.tgz [ 12554190 ]
          Alfonso Nishikawa made changes -
          Attachment patch-tests_applied.out.tgz [ 12554190 ]
          Alfonso Nishikawa made changes -
          Comment [ Output of mvn clean test uploaded (patch-tests_applied). Only applied "GORA-174-test.patch". ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174.patch [ 12554158 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174v2.patch [ 12554240 ]
          Alfonso Nishikawa made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          Alfonso Nishikawa made changes -
          Comment [ Thanks :) hope it works! ]
          Alfonso Nishikawa made changes -
          Link This issue is required by GORA-189 [ GORA-189 ]
          Gavin made changes -
          Workflow jira [ 12731627 ] no-reopen-closed, patch-avail [ 12735388 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174v3.patch [ 12554771 ]
          Alfonso Nishikawa made changes -
          Attachment failed_tests_after_v3.tar.gz [ 12555788 ]
          Alfonso Nishikawa made changes -
          Link This issue is duplicated by GORA-183 [ GORA-183 ]
          Alfonso Nishikawa made changes -
          Link This issue is related to GORA-183 [ GORA-183 ]
          Alfonso Nishikawa made changes -
          Link This issue contains GORA-188 [ GORA-188 ]
          Alfonso Nishikawa made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Lewis John McGibbney made changes -
          Priority Major [ 3 ] Blocker [ 1 ]
          Alfonso Nishikawa made changes -
          Link This issue blocks GORA-109 [ GORA-109 ]
          Alfonso Nishikawa made changes -
          Link This issue blocks GORA-109 [ GORA-109 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174v2.patch [ 12554240 ]
          Alfonso Nishikawa made changes -
          Attachment failed_tests_after_v3.tar.gz [ 12555788 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174.patch [ 12573123 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174.patch [ 12573123 ]
          Alfonso Nishikawa made changes -
          Comment [ Working patch upgraded to /trunk (mar 11, 2013). ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174.patch [ 12573124 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174v3.patch [ 12554771 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174.patch [ 12573346 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174.patch [ 12573366 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174.patch [ 12574916 ]
          Alfonso Nishikawa made changes -
          Attachment GORA-174_over_r1462580.patch [ 12576622 ]
          Renato Javier Marroquín Mogrovejo made changes -
          Link This issue is blocked by GORA-223 [ GORA-223 ]
          Gavin made changes -
          Link This issue blocks NUTCH-1477 [ NUTCH-1477 ]
          Gavin made changes -
          Link This issue is depended upon by NUTCH-1477 [ NUTCH-1477 ]
          Lewis John McGibbney made changes -
          Fix Version/s 0.4 [ 12319890 ]
          Fix Version/s 0.3 [ 12317954 ]
          Lewis John McGibbney made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Lewis John McGibbney made changes -
          Link This issue is blocked by GORA-223 [ GORA-223 ]
          Lewis John McGibbney made changes -
          Link This issue is related to GORA-223 [ GORA-223 ]
          Henry Saputra made changes -
          Link This issue is required by NUTCH-1477 [ NUTCH-1477 ]

            People

            • Assignee:
              Alfonso Nishikawa
              Reporter:
              Julien Nioche
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development