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

Spark2.0 cannot "select" data from a table stored as an orc file which has been created by hive while hive or spark1.6 supports

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 2.1.2, 2.2.0
    • Fix Version/s: 2.2.1, 2.3.0
    • Component/s: SQL
    • Labels:
      None

      Description

      Spark2.0 cannot "select" data from a table stored as an orc file which has been created by hive while hive or spark1.6 supports

      Steps:
      1. Use hive to create a table "tbtxt" stored as txt and load data into it.
      2. Use hive to create a table "tborc" stored as orc and insert the data from table "tbtxt" . Example, "create table tborc stored as orc as select * from tbtxt"
      3. Use spark2.0 to "select * from tborc;".-->error occurs,java.lang.IllegalArgumentException: Field "nid" does not exist.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marymwu marymwu
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: