Details

      Description

      With the following query, simplified from a real query, the cryptic error message from an assertion failure is produced

      prefix eg: <http://example.org/>
      SELECT *
      WITH {
      SELECT *
      WHERE {
         {  SELECT *
            WHERE {
            }  
      }
      }} AS %__FullQuery
      
      WHERE {
      { SELECT (COUNT(*) AS $S__COUNT)
        WHERE {
          INCLUDE %__FullQuery
        }
       }
       INCLUDE %__FullQuery
      }
      

      root cause appears to be:

      Caused by: java.lang.AssertionError: Wildcard projection was not rewritten.
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUtility.convertQueryBaseWithScopedVars(AST2BOpUtility.java:424)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUtility.convertQueryBase(AST2BOpUtility.java:323)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUtility.addSparql11Subquery(AST2BOpUtility.java:1723)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUtility.convertJoinGroup(AST2BOpUtility.java:2584)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUtility.convertJoinGroupOrUnion(AST2BOpUtility.java:2108)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUtility.convertQueryBaseWithScopedVars(AST2BOpUtility.java:389)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUtility.convertQueryBase(AST2BOpUtility.java:323)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUtility.addNamedSubquery(AST2BOpUtility.java:774)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUtility.addNamedSubqueries(AST2BOpUtility.java:751)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUtility.convertQueryBaseWithScopedVars(AST2BOpUtility.java:381)
      	at com.bigdata.rdf.sparql.ast.eval.AST2BOpUtility.convert(AST2BOpUtility.java:237)
      	at com.bigdata.rdf.sparql.ast.eval.ASTEvalHelper.evaluateTupleQuery(ASTEvalHelper.java:236)
      	at com.bigdata.rdf.sail.BigdataSailTupleQuery.evaluate(BigdataSailTupleQuery.java:93)
      	at com.bigdata.rdf.sail.BigdataSailTupleQuery.evaluate(BigdataSailTupleQuery.java:75)
      	at org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:62)
      	at com.bigdata.rdf.sail.webapp.BigdataRDFContext$TupleQueryTask.doQuery(BigdataRDFContext.java:1211)
      	at com.bigdata.rdf.sail.webapp.BigdataRDFContext$AbstractQueryTask.call(BigdataRDFContext.java:1065)
      

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            jeremycarroll jeremycarroll
            Reporter:
            jeremycarroll jeremycarroll
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: