Uploaded image for project: 'Apache HAWQ'
  1. Apache HAWQ
  2. HAWQ-1536

pxf-json unit test failure due to json list comparison

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: backlog
    • Component/s: PXF
    • Labels:
      None

      Description

      We see the following error while unit testing PXF JSON profile on certain environments.

      org.apache.hawq.pxf.plugins.json.parser.PartitionedJsonParserNoSeekTest > testNoSeek FAILED
          org.junit.ComparisonFailure at PartitionedJsonParserNoSeekTest.java:71
      
      16 tests completed, 1 failed
      :pxf-json:test FAILED
      

      The reason for the failure is since the List of elements in the JSON data seems to be different from the expected response. In non GCP environments the parser always returned objects in the same order as it appeared in the RAW JSON file. On the GCP environment that doesn't seem to be the case. This could be related to the JVM version or the jackson library version.

      Will be fixing the unit test to not have any order order expectation in the results returned

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shivram Shivram Mani
                Reporter:
                shivram Shivram Mani
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: