You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Niranjan Jayakar (Jira)" <ji...@apache.org> on 2023/07/04 05:59:00 UTC

[jira] [Created] (SPARK-44291) [CONNECT][SCALA] range query returns incorrect schema

Niranjan Jayakar created SPARK-44291:
----------------------------------------

             Summary: [CONNECT][SCALA] range query returns incorrect schema
                 Key: SPARK-44291
                 URL: https://issues.apache.org/jira/browse/SPARK-44291
             Project: Spark
          Issue Type: Bug
          Components: Connect
    Affects Versions: 3.4.1
            Reporter: Niranjan Jayakar


The following code on Spark Connect produces the following output

Code:

 
{code:java}
val df = spark.range(3)

df.show()
df.printSchema(){code}
 

Output:
{code:java}
+---+
| id|
+---+
|  0|
|  1|
|  2|
+---+

root
 |-- value: long (nullable = true) {code}
The mismatch is that one shows the column as "id" while the other shows this as "value".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org