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

   ### What changes were proposed in this pull request?
   In this PR collations can now be identified by their fully qualified name, 
as per the collation project plan. The `Collation` expression has been changed 
to always return fully qualified name. Currently we only support predefined 
collations.
   
   ### Why are the changes needed?
   Make collation names behave as per the project spec.
   
   
   ### Does this PR introduce _any_ user-facing change?
   Yes. Two user-facing changes are made:
   1. Collation expression now returns fully qualified name:
   ```sql
   select collation('a' collate utf8_lcase) -- returns 
`SYSTEM.BUILTIN.UTF8_LCASE`
   ```
   2. Collations can now be identified by their full qualified name:
   ```sql
   select contains('a' collate system.builtin.utf8_lcase, 'A') -- returns true
   ```
   
   
   ### How was this patch tested?
   New tests in this PR.
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No.
   


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