You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jacek Laskowski (Jira)" <ji...@apache.org> on 2026/04/01 19:38:00 UTC
[jira] [Updated] (SPARK-56325) [SDP] Refactor FlowSystemMetadata.flowCheckpointsDirOpt to avoid scala.Option
[ https://issues.apache.org/jira/browse/SPARK-56325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacek Laskowski updated SPARK-56325:
------------------------------------
Summary: [SDP] Refactor FlowSystemMetadata.flowCheckpointsDirOpt to avoid scala.Option (was: Refactor FlowSystemMetadata.flowCheckpointsDirOpt to avoid scala.Option)
> [SDP] Refactor FlowSystemMetadata.flowCheckpointsDirOpt to avoid scala.Option
> -----------------------------------------------------------------------------
>
> Key: SPARK-56325
> URL: https://issues.apache.org/jira/browse/SPARK-56325
> Project: Spark
> Issue Type: Improvement
> Components: Declarative Pipelines
> Affects Versions: 4.1.1
> Reporter: Jacek Laskowski
> Priority: Minor
>
> [FlowSystemMetadata.flowCheckpointsDirOpt()|https://github.com/apache/spark/blob/v4.1.1/sql/pipelines/src/main/scala/org/apache/spark/sql/pipelines/graph/SystemMetadata.scala#L44] returns {{{}Option[Path]{}}}, but it makes no sense since it's either {{Some}} or an {{IllegalArgumentException}} exception is thrown.
> It makes more sense to return a {{Path}} instead (and throw an exception if needed).
> It will be less confusing (if not more readable) that {{{}None{}}}'s not an option (no pun intended).
--
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