srielau opened a new pull request, #58224:
URL: https://github.com/apache/spark/pull/58224

   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     1. If this is your first time, please read our contributor guidelines: 
https://spark.apache.org/contributing.html
     2. Ensure you have added or run the appropriate tests for your PR: 
https://spark.apache.org/developer-tools.html
     3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., 
'[WIP][SPARK-XXXX] Your PR title ...'.
     4. Be sure to keep the PR description updated to reflect all changes.
     5. Please write your PR title to summarize what this PR proposes.
     6. If possible, provide a concise example to reproduce the issue for a 
faster review.
     7. If you want to add a new configuration, please read the guideline first 
for naming configurations in
        
'common/utils/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.
     8. If you want to add or modify an error type or message, please read the 
guideline first in
        'common/utils/src/main/resources/error/README.md'.
   -->
   
   ### What changes were proposed in this pull request?
   
   Document `CHAR` / `VARCHAR` / `STRING` as a character string type family for
   [SPARK-58942](https://issues.apache.org/jira/browse/SPARK-58942), matching 
the
   behavior behind `spark.sql.charVarchar.standardSemantics.enabled`.
   
   - Add [Character String Types](docs/sql-ref-character-string-types.md): type
     definitions, enablement, CAST vs assignment, least common type
     (`CHAR(n) -> VARCHAR(n) -> STRING`, analogous to integral types), 
expression
     result typing, comparisons and RTRIM collations, schema surfaces, and
     format/client metadata.
   - Rewrite the Data Types page so CHAR and VARCHAR are not described as 
special
     variants of STRING, and are not limited to table schemas.
   - Extend ANSI type precedence / least common type, link CAST and store
     assignment to the new page, and add a Spark 4.4 migration note.
   - Point SHOW COLLATIONS at the family page and update the generated
     configuration description.
   
   Parent: [SPARK-58794](https://issues.apache.org/jira/browse/SPARK-58794).
   
   ### Why are the changes needed?
   
   Existing docs still describe CHAR/VARCHAR as annotated STRING used only in
   table schemas. That is the Spark 3.1 story and no longer matches the 
first-class
   type family implemented under `standardSemantics`. Users need Spark-centric
   SQL reference for length, padding, CAST vs assignment, LCT, and 
STRING-returning
   transforms.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Documentation only. Local Markdown links and SQL menu YAML were checked. The
   Jekyll site was built with `SKIP_API=1 SKIP_ERRORDOC=1 bundle exec jekyll 
build`.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Cursor Grok 4.6
   


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