Subquery Bug with GROUP BY
and Variable Bindings in Corese Kernel
#17
Labels
bug
Something isn't working
GROUP BY
and Variable Bindings in Corese Kernel
#17
Olivier identified a bug in the Corese kernel, occurring when using subqueries with a
GROUP BY
clause and passing variable bindings. The issue arises because executing the triple?x ns:p ?y
either before or after the subquery produces inconsistent results.Reproduction Steps:
Query:
Dataset:
Proposed Fix:
Olivier suggests modifying the
queryNodeList
function in theExp
class to resolve the issue by adjusting the handling of node lists when subqueries are involved.Possible Side Effects:
This fix may impact performance, as it prevents passing the binding of the
GROUP BY
variable (in this case,?x
), which could lead to reduced optimization.I also noticed that the
testLetQuery
inTestQuery1
fails with aStackOverflow
error after applying this change. Further analysis is needed to evaluate the consequences of this modification.The text was updated successfully, but these errors were encountered: