Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-21019

read orc when some of the columns are missing in some files

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: Input/Output
    • Labels:
      None

      Description

      I'm using Spark-2.1.1.

      I'm experiencing an issue when I'm reading a bunch of ORC files when some of the fields are missing from some of the files (file-1 has fields 'a' and 'b', file-2 has fields 'a' and 'c'). When I'm running the same flow with JSON files format, every thing is just fine (you can see it at the code snippets , if you'll run it...) My question is whether it's a bug or an expected behavior?

      I'v pushed a maven project, ready for run, you can find it here https://github.com/MordechaiTamam/spark-orc-issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                modi.tamam@gmail.com Modi Tamam
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: