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

Few examples on Dataframe operation give compiler errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.3.0
    • 1.3.1, 1.4.0
    • SQL

    Description

      The below statements give compiler errors as
      a) the select method doesnot accept String, Column
      df.select("name", df("age") + 1).show() // Need to convert String to Column

      b) Filtering should be based on "age" not on "name" Column
      df.filter(df("name") > 21).show()

      Attachments

        Issue Links

          Activity

            People

              tijoparacka Tijo Thomas
              Tijo Paracka Tijo Thomas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: