tkobayas opened a new issue, #6531:
URL: https://github.com/apache/incubator-kie-drools/issues/6531

   
https://github.com/apache/incubator-kie-drools/commit/b0486f28#diff-8c65ee0f15ad6fea56ef568806dd7bd1eee6ceafafb9737a555fc826d0d9f48fR248
   
   ```
   DeclarationSpec decl = scopedDeclarations.get( "$p" );
   ```
   looks to be a bug and `name` should be used instead of the hard-coded `$p`.
   
   A test case for that `RuleUnitCompilerTest.java` had been removed by 
https://github.com/apache/incubator-kie-drools/commit/ace87fcec5
   
   The syntax like
   ```
   $p : /persons;
   /$p/addresses[city == \"Milano\"]
   ```
   is not explained in the official docs, so need double-check. 
   
   It exists in 
   
https://github.com/apache/incubator-kie-kogito-runtimes/blob/main/kogito-codegen-modules/kogito-codegen-rules/src/test/resources/org/kie/kogito/codegen/unit/TwoPatternsQuery.drl#L30-L31
 
   ```
       $p : /persons;
       /$p/addresses[city == "Milano"]
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to