Skip to content

Commit

Permalink
Add JDK-21 to GA worklflows
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

Fix functions.rst for JDK 21

Signed-off-by: Peng Huo <penghuo@gmail.com>
  • Loading branch information
reta authored and vmmusings committed Feb 6, 2024
1 parent 6fcf31b commit 7e5ac2b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 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

0 comments on commit 7e5ac2b

Please sign in to comment.