Skip to content

Conversation

@sergio-bobillier
Copy link
Collaborator

@sergio-bobillier sergio-bobillier commented Dec 8, 2025

Adds a #clone method to the QueryBuilder class. The method properly clones the QueryBuilder instance and its nested objects.

Without this method when #clone was called on a QueryBuilder object, changes to the clone's query, aggregations, sort and, in certain cases, source clauses would propagate to the original object.

With the addition of the #clone method these issues no longer happen.

Adds a #clone method to the QueryBuilder class. The method properly
clones the QueryBuilder instance and its nested objects.

Without this method when #clone was called on a QueryBuilder object,
changes to the clone's query, aggregations, sort and, in certain
cases, source clauses would propagate to the original object.

With the addition of the #clone method these issues no longer happen.
@sergio-bobillier sergio-bobillier force-pushed the sb-JAY-706-clone-query-builder branch from 0ea4faa to 343a96f Compare December 8, 2025 15:50
@sergio-bobillier sergio-bobillier self-assigned this Dec 8, 2025
@sergio-bobillier sergio-bobillier merged commit c10e075 into master Dec 9, 2025
2 checks passed
@sergio-bobillier sergio-bobillier deleted the sb-JAY-706-clone-query-builder branch December 9, 2025 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants