This is an automated email from the ASF dual-hosted git repository. wenchen pushed a commit to branch branch-3.2 in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.2 by this push: new 3bc9346 [SPARK-34051][DOCS][FOLLOWUP] Document about unicode literals 3bc9346 is described below commit 3bc9346a3ade89ee3a8c584ee5ef679abd6d0898 Author: Kousuke Saruta <saru...@oss.nttdata.com> AuthorDate: Tue Jul 20 16:58:12 2021 +0800 [SPARK-34051][DOCS][FOLLOWUP] Document about unicode literals ### What changes were proposed in this pull request? This PR documents about unicode literals added in SPARK-34051 (#31096) and a past PR in `sql-ref-literals.md`. ### Why are the changes needed? Notice users about the literals. ### Does this PR introduce _any_ user-facing change? Yes, but just add a sentence. ### How was this patch tested? Built the document and confirmed the result. ``` SKIP_API=1 bundle exec jekyll build ``` ![unicode-literals](https://user-images.githubusercontent.com/4736016/126283923-944dc162-1817-47bc-a7e8-c3145225586b.png) Closes #33434 from sarutak/unicode-literal-doc. Authored-by: Kousuke Saruta <saru...@oss.nttdata.com> Signed-off-by: Wenchen Fan <wenc...@databricks.com> (cherry picked from commit ba1294ea5a25e908c19e3d4e73c6b7a420bb006e) Signed-off-by: Wenchen Fan <wenc...@databricks.com> --- docs/sql-ref-literals.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/sql-ref-literals.md b/docs/sql-ref-literals.md index 3dbed84..b23c63a 100644 --- a/docs/sql-ref-literals.md +++ b/docs/sql-ref-literals.md @@ -44,6 +44,8 @@ A string literal is used to specify a character string value. * **char** One character from the character set. Use `\` to escape special characters (e.g., `'` or `\`). + To represent unicode characters, use 16-bit or 32-bit unicode escape of the form `\uxxxx` or `\Uxxxxxxxx`, + where xxxx and xxxxxxxx are 16-bit and 32-bit code points in hexadecimal respectively (e.g., `\u3042` for `あ` and `\U0001F44D` for `👍`). #### Examples --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org