Skip to content

Commit 4dbc275

Browse files
authored
Merge pull request #14253 from rabbitmq/sql-release-notes
Update 4.2 release notes for AMQP SQL
2 parents 3ea83ac + 56e76e9 commit 4dbc275

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

release-notes/4.2.0.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ AMQP 1.0 clients can now define SQL-like filter expressions when consuming from
2626
RabbitMQ will only dispatch messages that match the provided filter expression, reducing network traffic and client-side processing overhead.
2727
SQL filter expressions are a more powerful alternative to the [AMQP Property Filter Expressions](https://www.rabbitmq.com/blog/2024/12/13/amqp-filter-expressions) introduced in RabbitMQ 4.1.
2828

29-
SQL filter expressions are based on the [JMS message selector syntax](https://jakarta.ee/specifications/messaging/3.1/jakarta-messaging-spec-3.1#message-selector-syntax) and support:
30-
* Comparison operators (`=`, `<>`, `>`, `<`, `>=`, `<=`)
29+
RabbitMQ implements a subset of [AMQP Filter Expressions Version 1.0 Committee Specification Draft 01 Section 6](https://docs.oasis-open.org/amqp/filtex/v1.0/csd01/filtex-v1.0-csd01.html#_Toc67929276) including support for:
30+
* Comparison operators (`=`, `!=`, `<>`, `>`, `<`, `>=`, `<=`)
3131
* Logical operators (`AND`, `OR`, `NOT`)
32-
* Arithmetic operators (`+`, `-`, `*`, `/`)
33-
* Special operators (`BETWEEN`, `LIKE`, `IN`, `IS NULL`)
32+
* Arithmetic operators (`+`, `-`, `*`, `/`, `%`)
33+
* Special operators (`LIKE`, `IN`, `IS NULL`)
34+
* `UTC` function
3435
* Access to the properties and application-properties sections
3536

3637
#### Examples
@@ -45,13 +46,12 @@ Complex expression:
4546

4647
```sql
4748
order_type IN ('premium', 'express') AND
48-
total_amount BETWEEN 100 AND 5000 AND
4949
(customer_region LIKE 'EU-%' OR customer_region = 'US-CA') AND
50-
properties.creation-time >= 1750772279000 AND
50+
UTC() < properties.absolute-expiry-time AND
5151
NOT cancelled
5252
```
5353

54-
Pull Request: [#14110](https://github.com/rabbitmq/rabbitmq-server/pull/14110)
54+
Pull Request: [#14184](https://github.com/rabbitmq/rabbitmq-server/pull/14184)
5555

5656
### Incoming and Outgoing Message Interceptors for native protocols
5757

0 commit comments

Comments
 (0)