Skip to content

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Oct 21, 2024

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 elastic#114537
Closes elastic#114535
Closes elastic#114536
Closes elastic#114558
Closes elastic#114559
Closes elastic#114560
@nik9000 nik9000 added >test Issues or PRs that are addressing/adding tests :Analytics/ES|QL AKA ESQL v9.0.0 v8.16.1 v8.17.0 labels Oct 21, 2024
@nik9000 nik9000 requested a review from not-napoleon October 21, 2024 16:31
Copy link
Contributor

Documentation preview:

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Oct 21, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@nik9000
Copy link
Member Author

nik9000 commented Oct 21, 2024

NOTE: This is targeting 8.x and I'll manually forward port a big chunk of it into main and backport all of it to 8.16. I targeting 8.x because that's a version that can fail the test.

* Support for reversing whole grapheme clusters. This is not supported
* on JDK versions less than 20.
*/
FN_REVERSE_GRAPHEME_CLUSTERS(Runtime.version().feature() < 20),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

…expression/function/scalar/string/Reverse.java

Co-authored-by: Bogdan Pintea <[email protected]>
@nik9000 nik9000 enabled auto-merge (squash) October 21, 2024 16:56
@nik9000 nik9000 merged commit f38f230 into elastic:8.x Oct 21, 2024
15 checks passed
nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Oct 22, 2024
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
nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Oct 22, 2024
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
@nik9000
Copy link
Member Author

nik9000 commented Oct 22, 2024

Forward port to main: #115321

nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Oct 22, 2024
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
@nik9000
Copy link
Member Author

nik9000 commented Oct 22, 2024

Backport to 8.16: #115324

elasticsearchmachine pushed a commit that referenced this pull request Oct 22, 2024
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
nik9000 added a commit that referenced this pull request Oct 22, 2024
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
@nik9000
Copy link
Member Author

nik9000 commented Oct 22, 2024

Merged!

georgewallace pushed a commit to georgewallace/elasticsearch that referenced this pull request Oct 25, 2024
…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
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Nov 4, 2024
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL backport pending Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v8.16.1 v8.17.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants