Skip to content

Conversation

Gsantomaggio
Copy link
Member

@Gsantomaggio Gsantomaggio commented Sep 12, 2025

This PR implements SQL filter functionality for RabbitMQ AMQP streams, allowing users to filter messages using SQL-like expressions. The implementation adds support for SQL filters in the stream consumer options and includes comprehensive test coverage and documentation.

Added SQL filter support to StreamConsumerOptions and StreamFilterOptions classes
Created comprehensive test cases to verify SQL filter functionality
Updated documentation with a new example demonstrating SQL filter usage

closes: #73

closes: #73
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
@Gsantomaggio Gsantomaggio added this to the 0.2.0 milestone Sep 12, 2025
@Gsantomaggio Gsantomaggio added the enhancement New feature or request label Sep 12, 2025
closes: #73
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
@Gsantomaggio Gsantomaggio marked this pull request as ready for review September 15, 2025 07:43
@Gsantomaggio Gsantomaggio self-assigned this Sep 15, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements SQL filter functionality for RabbitMQ AMQP streams, allowing users to filter messages using SQL-like expressions. The implementation adds support for SQL filters in the stream consumer options and includes comprehensive test coverage and documentation.

  • Added SQL filter support to StreamConsumerOptions and StreamFilterOptions classes
  • Created comprehensive test cases to verify SQL filter functionality
  • Updated documentation with a new example demonstrating SQL filter usage

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/test_streams.py Added comprehensive test for SQL filter functionality and cleaned up whitespace formatting across existing tests
rabbitmq_amqp_python_client/entities.py Added SQL filter constants, implemented SQL filter logic, and removed unused 'to' property from MessageProperties
examples/streams_with_sql_filters/example_streams_with_sql_filters.py New example demonstrating SQL filter usage with detailed comments and error handling
examples/streams_with_filters/example_streams_with_filters.py Updated queue name to be more descriptive for message properties filter
.ci/ubuntu/gha-setup.sh Updated RabbitMQ Docker image to version 4.2-rc-management

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Gsantomaggio and others added 2 commits September 15, 2025 09:45
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
@Gsantomaggio Gsantomaggio merged commit 42048b0 into main Sep 15, 2025
1 check passed
@Gsantomaggio Gsantomaggio deleted the feat/sql_filter branch September 15, 2025 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support SQL filter expressions
1 participant