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-test.patch
        2 kB
        Julien Nioche
      2. GORA-174.patch
        15 kB
        Alfonso Nishikawa
      3. GORA-174.patch
        16 kB
        Alfonso Nishikawa
      4. GORA-174.patch
        17 kB
        Alfonso Nishikawa
      5. GORA-174.patch
        34 kB
        Alfonso Nishikawa
      6. GORA-174_over_r1462580.patch
        1 kB
        Alfonso Nishikawa

        Issue Links

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development