Tian Gao created SPARK-61606:
--------------------------------

             Summary: Add tests for Connect createDataFrame ignored options and 
column names
                 Key: SPARK-61606
                 URL: https://issues.apache.org/jira/browse/SPARK-61606
             Project: Spark
          Issue Type: Test
          Components: PySpark
    Affects Versions: 5.0.0
            Reporter: Tian Gao


9 lines of `SparkSession.createDataFrame` in 
`python/pyspark/sql/connect/session.py` were not covered by any test; this adds 
coverage for the Spark Connect warnings for the ignored `samplingRatio` and 
`verifySchema` arguments, the default names for extra columns when a pandas 
DataFrame or pyarrow Table gets a shorter name list, and the 
`AXIS_LENGTH_MISMATCH` error for a 1-dim ndarray. The existing Connect tests 
always pass a full-length name list or a schema, and only check the mismatch 
error for 2-dim input.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to