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

sql programming guide recommends deprecated code

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • Documentation
    • None

    Description

      The Spark 1.4 sql programming guide has an example code on how to use JDBC tables:
      https://spark.apache.org/docs/latest/sql-programming-guide.html#jdbc-to-other-databases

      sqlContext.load("jdbc", Map(...))

      However this code complies with a warning, and recommends to do this:

      sqlContext.read.format("jdbc").options(Map(...)).load()

      Attachments

        Activity

          People

            tijoparacka Tijo Thomas
            gsvigruha Gergely Svigruha
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: