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

Error in documentation on creating rows with schemas defined by structs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 2.2.0
    • Component/s: Documentation
    • Labels:

      Description

      The provided example in this doc https://spark.apache.org/docs/1.4.0/api/java/org/apache/spark/sql/types/StructType.html for creating Row from Struct is wrong
      // Create a Row with the schema defined by struct
      val row = Row(Row(1, 2, true))
      // row: Row =

      {@link 1,2,true}

      the above example does not create a Row object with schema.
      this error is in the scala docs too.

        Attachments

          Activity

            People

            • Assignee:
              hyukjin.kwon Hyukjin Kwon
              Reporter:
              hhadi Haidar Hadi
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: