Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-8131 Improve Database support
  3. SPARK-8105

sqlContext.table("databaseName.tableName") broke with SPARK-6908

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • SQL
    • None
    • Spark with Hive

    Description

      Since the introduction of Dataframes in Spark 1.3.0 and prior to SPARK-6908 landing into master, a user could get a DataFrame to a Hive table using `sqlContext.table("databaseName.tableName")`
      Since SPARK-6908, the user now receives a NoSuchTableException.

      This amounts to a change in non experimental sqlContext.table() api and will require user code to be modified to work properly with 1.4.0.

      The only viable work around I could find is
      `sqlContext.sql("select * from databseName.tableName")`
      which seems like a hack.

      Attachments

        Issue Links

          Activity

            People

              lian cheng Cheng Lian
              dougb Doug Balog
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: