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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.1.2, 2.2.0
    • 2.2.1, 2.3.0
    • SQL
    • 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

        1. screenshot-1.png
          26 kB
          marymwu

        Issue Links

          Activity

            People

              Unassigned Unassigned
              marymwu marymwu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: