-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-47131][SQL][COLLATION] String function support: contains, startswith, endswith #45216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
f68c929
Collation support for: contains, startswith, endswith
uros-db d6e4c7e
Remove unused import
uros-db e566fdc
Remove unused test cases
uros-db 593abe4
Remove unused test cases
uros-db eeacec1
Move collation support to UTF8String class
uros-db a9f8932
Fix import formatting
uros-db 865d0cc
Update error handling
uros-db f37c73b
New error classes
uros-db 5c462a7
Refactoring function names
uros-db eb2bfe8
Fix scalastyle
uros-db bdaf100
Fix scalastyle
uros-db 1bb302f
Refactoring function names
uros-db 4f39b15
Regenerate golden files
uros-db 0b735a2
Merge branch 'master' into string-functions
uros-db bd761bd
Avoid unneeded changes
uros-db 5196a2e
Fix function name in error
uros-db 4bf7c9a
Merge branch 'apache:master' into string-functions
uros-db 4a36b17
Check collationIds only once in analysis
uros-db 7ccf429
Move tests in suite
uros-db 6f2b100
Update comments
uros-db 68e5b0f
Make collationId a field of StringPredicate
uros-db 2f1a175
Make COLLATION_MISMATCH a subclass of DATATYPE_MISMATCH
uros-db 0a8d0ac
Fix tests and error handling in analysis
uros-db fb33d44
Remove deprecated error class
uros-db c993fd8
Merge branch 'master' into string-functions
uros-db 8cd6287
Lazy collationId eval in StringPredicate
uros-db deed8d9
Fix merge conflict error
uros-db File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
docs/sql-error-conditions-unsupported-collation-error-class.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| --- | ||
| layout: global | ||
| title: UNSUPPORTED_COLLATION error class | ||
| displayTitle: UNSUPPORTED_COLLATION error class | ||
| license: | | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --- | ||
|
|
||
| <!-- | ||
| DO NOT EDIT THIS FILE. | ||
| It was generated automatically by `org.apache.spark.SparkThrowableSuite`. | ||
| --> | ||
|
|
||
| [SQLSTATE: 0A000](sql-error-conditions-sqlstates.html#class-0A-feature-not-supported) | ||
|
|
||
| Collation `<collationName>` is not supported for: | ||
|
|
||
| This error class has the following derived error classes: | ||
|
|
||
| ## FOR_FUNCTION | ||
|
|
||
| function `<functionName>`. Please try to use a different collation. | ||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.