Merge pull request #14253 from rabbitmq/sql-release-notes

Update 4.2 release notes for AMQP SQL
This commit is contained in:
David Ansari 2025-07-21 15:00:11 +02:00 committed by GitHub
commit 4dbc2758b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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. 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 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: 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 (`=`, `<>`, `>`, `<`, `>=`, `<=`) * Comparison operators (`=`, `!=`, `<>`, `>`, `<`, `>=`, `<=`)
* Logical operators (`AND`, `OR`, `NOT`) * Logical operators (`AND`, `OR`, `NOT`)
* Arithmetic operators (`+`, `-`, `*`, `/`) * Arithmetic operators (`+`, `-`, `*`, `/`, `%`)
* Special operators (`BETWEEN`, `LIKE`, `IN`, `IS NULL`) * Special operators (`LIKE`, `IN`, `IS NULL`)
* `UTC` function
* Access to the properties and application-properties sections * Access to the properties and application-properties sections
#### Examples #### Examples
@ -45,13 +46,12 @@ Complex expression:
```sql ```sql
order_type IN ('premium', 'express') AND order_type IN ('premium', 'express') AND
total_amount BETWEEN 100 AND 5000 AND
(customer_region LIKE 'EU-%' OR customer_region = 'US-CA') AND (customer_region LIKE 'EU-%' OR customer_region = 'US-CA') AND
properties.creation-time >= 1750772279000 AND UTC() < properties.absolute-expiry-time AND
NOT cancelled 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 ### Incoming and Outgoing Message Interceptors for native protocols