uros-b opened a new pull request, #57989:
URL: https://github.com/apache/spark/pull/57989
### What changes were proposed in this pull request?
Unbraces 14 `${colName}` interpolations to `$colName` in
`CatalogColumnStat.toMap`/`fromMap`, leaving the qualified
`${CatalogColumnStat.KEY_...}` / `${KEY_...}` selects braced.
### Why are the changes needed?
The two methods mix `${colName}` and the bare `$colName` for the same value,
including on adjacent lines: the histogram key already reads
`s"$colName.${CatalogColumnStat.KEY_HISTOGRAM}"`. This makes all 14 remaining
sites consistent with that style. The qualified selects keep their braces on
purpose, because unbracing `${CatalogColumnStat.KEY_VERSION}` would interpolate
the object and append `.KEY_VERSION` as literal text.
### Does this PR introduce _any_ user-facing change?
No. These strings are the on-disk table-property keys for column statistics.
In every case `colName` is a simple parameter immediately followed by `.`, so
`$colName.` parses identically to `${colName}.` and the generated keys are
byte-for-byte unchanged, preserving metadata compatibility.
### How was this patch tested?
Existing catalog statistics tests cover `toMap`/`fromMap`. The change is a
lexical simplification with identical output.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Opus 4.8)
--
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]