anew commented on code in PR #57490:
URL: https://github.com/apache/spark/pull/57490#discussion_r3649120581


##########
sql/pipelines/src/main/scala/org/apache/spark/sql/pipelines/autocdc/Scd2BatchProcessor.scala:
##########
@@ -1410,6 +1395,44 @@ object Scd2BatchProcessor {
     AutoCdcReservedNames.cdcMetadataColName
   )
 
+  /**
+   * Resolve [[ChangeArgs.trackHistorySelection]] against `schema` and return 
the field names of
+   * the history-tracking columns: the eligible user-data columns (those that 
are neither
+   * [[ChangeArgs.keys]] nor framework reserved columns) filtered through the 
selection.
+   *
+   * This is the single source of truth for which columns define an SCD2 run. 
It is called both
+   * per-microbatch (against the reconciled dataframe's schema) and at
+   * [[org.apache.spark.sql.pipelines.graph.AutoCdcMergeFlow]] construction 
time (against the
+   * user-selected source schema), so an unresolvable or ineligible selection 
fails fast with a
+   * user-actionable [[org.apache.spark.sql.AnalysisException]] instead of 
surfacing mid-stream
+   * (SPARK-58313).

Review Comment:
   Removed all SPARK-58313 references from the changed files



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to