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

Dataset.inputFiles is broken for Hive SerDe tables

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • SQL
    • None

    Description

      The following snippet reproduces this issue:

      spark.range(10).createOrReplaceTempView("t")
      spark.sql("CREATE TABLE u STORED AS RCFILE AS SELECT * FROM t")
      spark.table("u").inputFiles.foreach(println)
      

      In Spark 2.2, it prints nothing, while in Spark 2.1, it prints something like

      file:/Users/lian/local/var/lib/hive/warehouse_1.2.1/u
      

      on my laptop.

      Attachments

        Activity

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

          People

            lian cheng Cheng Lian
            lian cheng Cheng Lian
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment