[
https://issues.apache.org/jira/browse/SPARK-60165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
李易庭 resolved SPARK-60165.
-------------------------
Resolution: Duplicate
Merged into SPARK-60140 (https://github.com/apache/spark/pull/59355).
> Remove type: ignore by fixing type annotations in Spark Connect
> ---------------------------------------------------------------
>
> Key: SPARK-60165
> URL: https://issues.apache.org/jira/browse/SPARK-60165
> Project: Spark
> Issue Type: Improvement
> Components: Connect, PySpark
> Affects Versions: 4.4.0
> Reporter: 李易庭
> Priority: Minor
>
> Several "# type: ignore" comments in Spark Connect exist only because of
> imprecise type annotations:
> * pyspark.sql.connect.session.SparkSession.createDataFrame,
> pyspark.sql.connect.dataframe.DataFrame.randomSplit and
> pyspark.sql.connect.tvf.TableValuedFunction.range: a value typed as the
> parent pyspark.sql.DataFrame is assigned to, or returned as, the Spark
> Connect DataFrame.
> * pyspark.errors.exceptions.connect._convert_exception: the local variable
> contexts is initialized to None without an annotation, so its inferred list
> type does not match List[BaseQueryContext].
> This fixes the annotations so these type: ignore comments can be removed. No
> behavior change.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]