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


##########
sql/pipelines/src/main/scala/org/apache/spark/sql/pipelines/autocdc/Scd2BatchProcessor.scala:
##########
@@ -1089,11 +1089,13 @@ object Scd2BatchProcessor {
    * eventually persisted in the target table. If the user's source dataframe 
contains any of
    * these columns, SCD2 reconciliation will fail.
    *
-   * TODO(SPARK-57251): validate at [[AutoCdcMergeFlow]] construction time 
that the source
-   *   schema and column selection do not collide with these reserved names, 
so we fail fast
-   *   with a user-actionable error instead of silently overwriting them at 
preprocess time.
+   * Note [[startAtColName]] and [[endAtColName]] do NOT carry the reserved
+   * [[AutoCdcReservedNames.prefix]], so a source-column collision with them 
is not caught by the
+   * prefix-based guard; 
[[org.apache.spark.sql.pipelines.graph.AutoCdcMergeFlow]] validates the
+   * source schema against this set at construction time (SPARK-57251) to fail 
fast with a

Review Comment:
   You are right. done



-- 
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