Skip to content

Commit

Permalink
Add JDK-21 to GA worklflows (#2481)
Browse files Browse the repository at this point in the history
Fix functions.rst for JDK 21

Signed-off-by: Peng Huo <[email protected]>
  • Loading branch information
reta authored Feb 6, 2024
1 parent 4f54d46 commit 2a3ebea
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integ-tests-with-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [ 11, 17 ]
java: [ 11, 17, 21 ]

runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
fail-fast: false
matrix:
os: [ windows-latest, macos-latest ]
java: [ 11, 17 ]
java: [ 11, 17, 21 ]

runs-on: ${{ matrix.os }}

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/sql-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
java:
- 11
- 17
- 21
runs-on: ubuntu-latest
container:
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution
Expand Down Expand Up @@ -108,6 +109,8 @@ jobs:
- { os: macos-latest, java: 11}
- { os: windows-latest, java: 17, os_build_args: -x doctest -PbuildPlatform=windows }
- { os: macos-latest, java: 17 }
- { os: windows-latest, java: 21, os_build_args: -x doctest -PbuildPlatform=windows }
- { os: macos-latest, java: 21 }
runs-on: ${{ matrix.entry.os }}

steps:
Expand Down
20 changes: 10 additions & 10 deletions docs/user/dql/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4082,7 +4082,7 @@ Available parameters include:

Example with only ``fields`` and ``query`` expressions, and all other parameters are set default values::

os> select * from books where multi_match(['title'], 'Pooh House');
os> select id, title, author from books where multi_match(['title'], 'Pooh House');
fetched rows / total rows = 2/2
+------+--------------------------+----------------------+
| id | title | author |
Expand All @@ -4093,7 +4093,7 @@ Example with only ``fields`` and ``query`` expressions, and all other parameters

Another example to show how to set custom values for the optional parameters::

os> select * from books where multi_match(['title'], 'Pooh House', operator='AND', analyzer=default);
os> select id, title, author from books where multi_match(['title'], 'Pooh House', operator='AND', analyzer=default);
fetched rows / total rows = 1/1
+------+--------------------------+----------------------+
| id | title | author |
Expand Down Expand Up @@ -4152,7 +4152,7 @@ Available parameters include:

Example with only ``fields`` and ``query`` expressions, and all other parameters are set default values::

os> select * from books where simple_query_string(['title'], 'Pooh House');
os> select id, title, author from books where simple_query_string(['title'], 'Pooh House');
fetched rows / total rows = 2/2
+------+--------------------------+----------------------+
| id | title | author |
Expand All @@ -4163,7 +4163,7 @@ Example with only ``fields`` and ``query`` expressions, and all other parameters

Another example to show how to set custom values for the optional parameters::

os> select * from books where simple_query_string(['title'], 'Pooh House', flags='ALL', default_operator='AND');
os> select id, title, author from books where simple_query_string(['title'], 'Pooh House', flags='ALL', default_operator='AND');
fetched rows / total rows = 1/1
+------+--------------------------+----------------------+
| id | title | author |
Expand Down Expand Up @@ -4214,7 +4214,7 @@ Available parameters include:

Example with only ``fields`` and ``query`` expressions, and all other parameters are set default values::

os> select * from books where query_string(['title'], 'Pooh House');
os> select id, title, author from books where query_string(['title'], 'Pooh House');
fetched rows / total rows = 2/2
+------+--------------------------+----------------------+
| id | title | author |
Expand All @@ -4225,7 +4225,7 @@ Example with only ``fields`` and ``query`` expressions, and all other parameters

Another example to show how to set custom values for the optional parameters::

os> select * from books where query_string(['title'], 'Pooh House', default_operator='AND');
os> select id, title, author from books where query_string(['title'], 'Pooh House', default_operator='AND');
fetched rows / total rows = 1/1
+------+--------------------------+----------------------+
| id | title | author |
Expand Down Expand Up @@ -4276,7 +4276,7 @@ Available parameters include:

Example with only ``query_expressions``, and all other parameters are set default values::

os> select * from books where query('title:Pooh House');
os> select id, title, author from books where query('title:Pooh House');
fetched rows / total rows = 2/2
+------+--------------------------+----------------------+
| id | title | author |
Expand All @@ -4287,7 +4287,7 @@ Example with only ``query_expressions``, and all other parameters are set defaul

Another example to show how to set custom values for the optional parameters::

os> select * from books where query('title:Pooh House', default_operator='AND');
os> select id, title, author from books where query('title:Pooh House', default_operator='AND');
fetched rows / total rows = 1/1
+------+--------------------------+----------------------+
| id | title | author |
Expand Down Expand Up @@ -4321,15 +4321,15 @@ The `score_query` and `scorequery` functions are alternative names for the `scor

Example boosting score::

os> select *, _score from books where score(query('title:Pooh House', default_operator='AND'), 2.0);
os> select id, title, author, _score from books where score(query('title:Pooh House', default_operator='AND'), 2.0);
fetched rows / total rows = 1/1
+------+--------------------------+----------------------+-----------+
| id | title | author | _score |
|------+--------------------------+----------------------+-----------|
| 1 | The House at Pooh Corner | Alan Alexander Milne | 1.5884793 |
+------+--------------------------+----------------------+-----------+

os> select *, _score from books where score(query('title:Pooh House', default_operator='AND'), 5.0) OR score(query('title:Winnie', default_operator='AND'), 1.5);
os> select id, title, author, _score from books where score(query('title:Pooh House', default_operator='AND'), 5.0) OR score(query('title:Winnie', default_operator='AND'), 1.5);
fetched rows / total rows = 2/2
+------+--------------------------+----------------------+-----------+
| id | title | author | _score |
Expand Down
12 changes: 6 additions & 6 deletions docs/user/ppl/functions/relevance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Available parameters include:

Example with only ``fields`` and ``query`` expressions, and all other parameters are set default values::

os> source=books | where multi_match(['title'], 'Pooh House');
os> source=books | where multi_match(['title'], 'Pooh House') | fields id, title, author;
fetched rows / total rows = 2/2
+------+--------------------------+----------------------+
| id | title | author |
Expand All @@ -184,7 +184,7 @@ Example with only ``fields`` and ``query`` expressions, and all other parameters

Another example to show how to set custom values for the optional parameters::

os> source=books | where multi_match(['title'], 'Pooh House', operator='AND', analyzer=default);
os> source=books | where multi_match(['title'], 'Pooh House', operator='AND', analyzer=default) | fields id, title, author;
fetched rows / total rows = 1/1
+------+--------------------------+----------------------+
| id | title | author |
Expand Down Expand Up @@ -226,7 +226,7 @@ Available parameters include:

Example with only ``fields`` and ``query`` expressions, and all other parameters are set default values::

os> source=books | where simple_query_string(['title'], 'Pooh House');
os> source=books | where simple_query_string(['title'], 'Pooh House') | fields id, title, author;
fetched rows / total rows = 2/2
+------+--------------------------+----------------------+
| id | title | author |
Expand All @@ -237,7 +237,7 @@ Example with only ``fields`` and ``query`` expressions, and all other parameters

Another example to show how to set custom values for the optional parameters::

os> source=books | where simple_query_string(['title'], 'Pooh House', flags='ALL', default_operator='AND');
os> source=books | where simple_query_string(['title'], 'Pooh House', flags='ALL', default_operator='AND') | fields id, title, author;
fetched rows / total rows = 1/1
+------+--------------------------+----------------------+
| id | title | author |
Expand Down Expand Up @@ -333,7 +333,7 @@ Available parameters include:

Example with only ``fields`` and ``query`` expressions, and all other parameters are set default values::

os> source=books | where query_string(['title'], 'Pooh House');
os> source=books | where query_string(['title'], 'Pooh House') | fields id, title, author;
fetched rows / total rows = 2/2
+------+--------------------------+----------------------+
| id | title | author |
Expand All @@ -344,7 +344,7 @@ Example with only ``fields`` and ``query`` expressions, and all other parameters

Another example to show how to set custom values for the optional parameters::

os> source=books | where query_string(['title'], 'Pooh House', default_operator='AND');
os> source=books | where query_string(['title'], 'Pooh House', default_operator='AND') | fields id, title, author;
fetched rows / total rows = 1/1
+------+--------------------------+----------------------+
| id | title | author |
Expand Down

0 comments on commit 2a3ebea

Please sign in to comment.