Update 4.2 release notes for AMQP SQL

This commit is contained in:
David Ansari 2025-07-21 14:50:46 +02:00
parent 3ea83aca18
commit 56e76e912f
1 changed files with 7 additions and 7 deletions

View File

@ -26,11 +26,12 @@ AMQP 1.0 clients can now define SQL-like filter expressions when consuming from
RabbitMQ will only dispatch messages that match the provided filter expression, reducing network traffic and client-side processing overhead.
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.
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:
* Comparison operators (`=`, `<>`, `>`, `<`, `>=`, `<=`)
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:
* Comparison operators (`=`, `!=`, `<>`, `>`, `<`, `>=`, `<=`)
* Logical operators (`AND`, `OR`, `NOT`)
* Arithmetic operators (`+`, `-`, `*`, `/`)
* Special operators (`BETWEEN`, `LIKE`, `IN`, `IS NULL`)
* Arithmetic operators (`+`, `-`, `*`, `/`, `%`)
* Special operators (`LIKE`, `IN`, `IS NULL`)
* `UTC` function
* Access to the properties and application-properties sections
#### Examples
@ -45,13 +46,12 @@ Complex expression:
```sql
order_type IN ('premium', 'express') AND
total_amount BETWEEN 100 AND 5000 AND
(customer_region LIKE 'EU-%' OR customer_region = 'US-CA') AND
properties.creation-time >= 1750772279000 AND
UTC() < properties.absolute-expiry-time AND
NOT cancelled
```
Pull Request: [#14110](https://github.com/rabbitmq/rabbitmq-server/pull/14110)
Pull Request: [#14184](https://github.com/rabbitmq/rabbitmq-server/pull/14184)
### Incoming and Outgoing Message Interceptors for native protocols