potassco / clorm

🗃️ A Python ORM-like interface for the Clingo Answer Set Programming (ASP) reasoner
https://clorm.readthedocs.io
MIT License
52 stars 5 forks source link

Bug fix for predicate order for queries with a function/lambda select clause #126

Closed daveraja closed 11 months ago

daveraja commented 11 months ago

The bug occured when passing a function/lambda as the "select" clause for a query. It wasn't properly detecting that the input to the function/lambda needed to be the fact objects in the order specified by the query roots (and not the internal ordering created by the query plan).