You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TCK: Wire where-query AST transformation for criteria test suites #16810
The GORM TCK test sources are currently compiled without the where-query AST transformation. As a result, tests written using where-query syntax (such as operator overloading or property references like WqFoo.where { bar == null }) run untransformed Groovy code. For example, comparing a PropertyReference against null returns a truthy/falsy object evaluation rather than constructing the criteria tree, which can cause tests to pass vacuously without actually exercising the criteria translation.
Expected Behavior
Ensure the Gradle compilation of the TCK modules properly applies the GORM where-query AST transformations so that all test assertions validate real transformed criteria execution.
Checked on 8.0.x: the TCK is compiled with the where-query transformation (grails-datamapping-core is on its compile classpath and the compiled closure calls isNull for 'bar == null'), and WhereQueryIssueVerificationSpec already fails without it. #16825 adds WhereTransformAppliedSpec, which reads the criteria a where query holds, so a lost transformation fails by name in every datastore module. No build change was needed.
Activity
borinquenkid commentedon Nov 2, 2026
Checked on 8.0.x: the TCK is compiled with the where-query transformation (grails-datamapping-core is on its compile classpath and the compiled closure calls isNull for 'bar == null'), and WhereQueryIssueVerificationSpec already fails without it. #16825 adds WhereTransformAppliedSpec, which reads the criteria a where query holds, so a lost transformation fails by name in every datastore module. No build change was needed.
Assert in the TCK that where-query closures are rewritten into criteria