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

rbind should check for name consistency of input data frames

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • SparkR

    Description

      The current implementation accepts data frames with different schemas. See issues below:

      df <- createDataFrame(data.frame(name = c("Michael", "Andy", "Justin"), age = c(1, 30, 19)))
      union(df, df[, c(2, 1)])
           name     age
      1 Michael     1.0
      2    Andy    30.0
      3  Justin    19.0
      4     1.0 Michael
      

      Attachments

        Activity

          People

            actuaryzhang Wayne Zhang
            actuaryzhang Wayne Zhang
            Felix Cheung Felix Cheung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: