Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-360

parquet-cat json dump is broken for maps

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.9.0
    • None
    • None

    Description

      When dumping parquet maps as json with the parquet-cat tool it throws class cast exception.

      parquet-cat --debug --json file:///tmp/test.parquet
      
      java.lang.ClassCastException: [B cannot be cast to java.lang.String
      	at org.apache.parquet.tools.read.SimpleMapRecord.toJsonObject(SimpleMapRecord.java:34)
      	at org.apache.parquet.tools.read.SimpleRecord.toJsonValue(SimpleRecord.java:119)
      	at org.apache.parquet.tools.read.SimpleRecord.toJsonObject(SimpleRecord.java:112)
      	at org.apache.parquet.tools.read.SimpleRecord.prettyPrintJson(SimpleRecord.java:106)
      	at org.apache.parquet.tools.command.CatCommand.execute(CatCommand.java:76)
      	at org.apache.parquet.tools.Main.main(Main.java:222)
      [B cannot be cast to java.lang.String
      

      Attachments

        Issue Links

          Activity

            People

              nezihyigitbasi Nezih Yigitbasi
              nezihyigitbasi Nezih Yigitbasi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: