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

[CONNECT][SCALA] range query returns incorrect schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.1
    • 3.5.0
    • Connect
    • None

    Description

      The following code on Spark Connect produces the following output

      Code:

       

      val df = spark.range(3)
      
      df.show()
      df.printSchema()

       

      Output:

      +---+
      | id|
      +---+
      |  0|
      |  1|
      |  2|
      +---+
      
      root
       |-- value: long (nullable = true) 

      The mismatch is that one shows the column as "id" while the other shows this as "value".

      Attachments

        Activity

          People

            nija Niranjan Jayakar
            nija Niranjan Jayakar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: