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

Rank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment