-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ESQL: Skip unsupported grapheme cluster test #115258
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
Conversation
This skips the test for reversing grapheme clusters if the node doesn't support reversing grapheme clusters. Nodes that are using a jdk before 20 won't support reversing grapheme clusters because they don't have https://bugs.openjdk.org/browse/JDK-8292387 This reworks `EsqlCapabilities` so we can easilly register it only if we're on jdk 20: ``` FN_REVERSE_GRAPHEME_CLUSTERS(Runtime.version().feature() < 20), ``` Closes elastic#114537 Closes elastic#114535 Closes elastic#114536 Closes elastic#114558 Closes elastic#114559 Closes elastic#114560
Documentation preview: |
Pinging @elastic/es-analytical-engine (Team:Analytics) |
NOTE: This is targeting 8.x and I'll manually forward port a big chunk of it into |
* Support for reversing whole grapheme clusters. This is not supported | ||
* on JDK versions less than 20. | ||
*/ | ||
FN_REVERSE_GRAPHEME_CLUSTERS(Runtime.version().feature() < 20), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
...ql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/string/Reverse.java
Outdated
Show resolved
Hide resolved
…expression/function/scalar/string/Reverse.java Co-authored-by: Bogdan Pintea <[email protected]>
This skips the test for reversing grapheme clusters if the node doesn't support reversing grapheme clusters. Nodes that are using a jdk before 20 won't support reversing grapheme clusters because they don't have https://bugs.openjdk.org/browse/JDK-8292387 This reworks `EsqlCapabilities` so we can easilly register it only if we're on jdk 20: ``` FN_REVERSE_GRAPHEME_CLUSTERS(Runtime.version().feature() < 20), ``` Closes elastic#114537 Closes elastic#114535 Closes elastic#114536 Closes elastic#114558 Closes elastic#114559 Closes elastic#114560
This skips the test for reversing grapheme clusters if the node doesn't support reversing grapheme clusters. Nodes that are using a jdk before 20 won't support reversing grapheme clusters because they don't have https://bugs.openjdk.org/browse/JDK-8292387 This reworks `EsqlCapabilities` so we can easilly register it only if we're on jdk 20: ``` FN_REVERSE_GRAPHEME_CLUSTERS(Runtime.version().feature() < 20), ``` Closes elastic#114537 Closes elastic#114535 Closes elastic#114536 Closes elastic#114558 Closes elastic#114559 Closes elastic#114560
Forward port to main: #115321 |
This skips the test for reversing grapheme clusters if the node doesn't support reversing grapheme clusters. Nodes that are using a jdk before 20 won't support reversing grapheme clusters because they don't have https://bugs.openjdk.org/browse/JDK-8292387 This reworks `EsqlCapabilities` so we can easilly register it only if we're on jdk 20: ``` FN_REVERSE_GRAPHEME_CLUSTERS(Runtime.version().feature() < 20), ``` Closes elastic#114537 Closes elastic#114535 Closes elastic#114536 Closes elastic#114558 Closes elastic#114559 Closes elastic#114560
Backport to 8.16: #115324 |
This skips the test for reversing grapheme clusters if the node doesn't support reversing grapheme clusters. Nodes that are using a jdk before 20 won't support reversing grapheme clusters because they don't have https://bugs.openjdk.org/browse/JDK-8292387 This reworks `EsqlCapabilities` so we can easilly register it only if we're on jdk 20: ``` FN_REVERSE_GRAPHEME_CLUSTERS(Runtime.version().feature() < 20), ``` Closes #114537 Closes #114535 Closes #114536 Closes #114558 Closes #114559 Closes #114560
This skips the test for reversing grapheme clusters if the node doesn't support reversing grapheme clusters. Nodes that are using a jdk before 20 won't support reversing grapheme clusters because they don't have https://bugs.openjdk.org/browse/JDK-8292387 This reworks `EsqlCapabilities` so we can easilly register it only if we're on jdk 20: ``` FN_REVERSE_GRAPHEME_CLUSTERS(Runtime.version().feature() < 20), ``` Closes #114537 Closes #114535 Closes #114536 Closes #114558 Closes #114559 Closes #114560
Merged! |
…c#115321) This skips the test for reversing grapheme clusters if the node doesn't support reversing grapheme clusters. Nodes that are using a jdk before 20 won't support reversing grapheme clusters because they don't have https://bugs.openjdk.org/browse/JDK-8292387 This reworks `EsqlCapabilities` so we can easilly register it only if we're on jdk 20: ``` FN_REVERSE_GRAPHEME_CLUSTERS(Runtime.version().feature() < 20), ``` Closes elastic#114537 Closes elastic#114535 Closes elastic#114536 Closes elastic#114558 Closes elastic#114559 Closes elastic#114560
…c#115321) This skips the test for reversing grapheme clusters if the node doesn't support reversing grapheme clusters. Nodes that are using a jdk before 20 won't support reversing grapheme clusters because they don't have https://bugs.openjdk.org/browse/JDK-8292387 This reworks `EsqlCapabilities` so we can easilly register it only if we're on jdk 20: ``` FN_REVERSE_GRAPHEME_CLUSTERS(Runtime.version().feature() < 20), ``` Closes elastic#114537 Closes elastic#114535 Closes elastic#114536 Closes elastic#114558 Closes elastic#114559 Closes elastic#114560
This skips the test for reversing grapheme clusters if the node doesn't support reversing grapheme clusters. Nodes that are using a jdk before 20 won't support reversing grapheme clusters because they don't have https://bugs.openjdk.org/browse/JDK-8292387
This reworks
EsqlCapabilities
so we can easilly register it only if we're on jdk 20:Closes #114537
Closes #114535
Closes #114536
Closes #114558
Closes #114559
Closes #114560