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

Dataset.inputFiles is broken for Hive SerDe tables

    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

          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: