suhuruli commented on code in PR #60462:
URL: https://github.com/apache/spark/pull/60462#discussion_r4618376108
##########
sql/pipelines/src/main/scala/org/apache/spark/sql/pipelines/graph/PipelinesTableProperties.scala:
##########
@@ -37,6 +37,27 @@ object PipelinesTableProperties {
val resetAllowed: PipelineTableProperty[Boolean] =
buildProp("pipelines.reset.allowed", default = true)
+ /**
+ * Internal table property recording, as a sorted JSON string array (see
+ * [[JsonStringArrayCodec]]), the keys of the table properties declared in
the dataset definition
+ * (SQL `TBLPROPERTIES`, Python `table_properties`) as of the latest
materialization.
+ *
+ * `DatasetManager` writes it, through `resolveTableProperties`, only when
the definition declares
+ * at least one table property. It covers those declared keys, not the
`comment` and `provider`
+ * entries derived from the dataset's comment and format. On the next
materialization,
+ * `evolveTable` removes a recorded key when the definition no longer
declares it, it is still on
Review Comment:
A correction to my reply above, after the next review round: the
`evolveTable` `@param properties` entry now only points to the
`declaredPropertyKeys` Scaladoc, which is the one place that states the removal
rule, including when the record itself is removed. Reserved keys such as
`owner` are also no longer recorded at all, so the "recorded but never removed"
case is gone.
--
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]