Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-731 Improve `Java Tools`
  3. ORC-726

Support Map type in `orc-tools convert`

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.7.0
    • tools
    • None

    Description

      $ orc-tools version
      ORC 1.6.6
      
      $ orc-tools convert examples/orc-file-11-format.orc
      Merging schema from examples/orc-file-11-format.orc
      Exception in thread "main" java.lang.IllegalArgumentException: Unhandled type map<string,struct<int1:int,string1:string>>
      	at org.apache.orc.tools.json.JsonSchemaFinder.makeHiveType(JsonSchemaFinder.java:315)
      	at org.apache.orc.tools.json.JsonSchemaFinder.makeHiveType(JsonSchemaFinder.java:302)
      	at org.apache.orc.tools.json.JsonSchemaFinder.addSchema(JsonSchemaFinder.java:320)
      	at org.apache.orc.tools.convert.ConvertTool.buildSchema(ConvertTool.java:78)
      	at org.apache.orc.tools.convert.ConvertTool.<init>(ConvertTool.java:185)
      	at org.apache.orc.tools.convert.ConvertTool.main(ConvertTool.java:165)
      	at org.apache.orc.tools.Driver.main(Driver.java:116)
      

      Attachments

        Issue Links

          Activity

            People

              Guiyankuang Yiqun Zhang
              dongjoon Dongjoon Hyun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: