Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-9157

SPARQL Update produces "BigdataValue not available" exception on integers

    XMLWordPrintable

    Details

      Description

      This SPARQL statement:

      prefix mediawiki: <https://www.mediawiki.org/ontology#>
      # Changes
      DELETE {
      ?category ?x ?y
      } INSERT {
      
      <https://es.wikipedia.org/wiki/foo1> a mediawiki:Category ;
              mediawiki:subcategories 0 .
      
      } WHERE {
         VALUES ?category {
           <https://es.wikipedia.org/wiki/foo2>
         }
      };
      # Changes
      DELETE {
      ?category ?x ?y
      } INSERT {
      
      <https://es.wikipedia.org/wiki/foo3> a mediawiki:Category ;
              mediawiki:subcategories 0 .
      
      } WHERE {
         VALUES ?category {
           <https://es.wikipedia.org/wiki/foo4>
         }
      };
      

      Produces an exception:

      Caused by: java.lang.AssertionError: BigdataValue not available: ConstantNode(XSDInteger(0)), term.iv=XSDInteger(0)
      at com.bigdata.rdf.sparql.ast.eval.ASTConstructIterator.getValue(ASTConstructIterator.java:905)
      at com.bigdata.rdf.sparql.ast.eval.ASTConstructIterator.makeStatement(ASTConstructIterator.java:831)
      at com.bigdata.rdf.sparql.ast.eval.ASTConstructIterator.<init>(ASTConstructIterator.java:268)
      at com.bigdata.rdf.sparql.ast.eval.AST2BOpUpdate.convertDeleteInsert(AST2BOpUpdate.java:918)
      at com.bigdata.rdf.sparql.ast.eval.AST2BOpUpdate.convertUpdateSwitch(AST2BOpUpdate.java:443)
      at com.bigdata.rdf.sparql.ast.eval.AST2BOpUpdate.convertUpdate(AST2BOpUpdate.java:293)
      ... 10 more

      Looks like some bug in DELETE/INSERT parsing integers?

      See detailed discussion in: https://github.com/blazegraph/database/issues/100

        Attachments

          Activity

            People

            Assignee:
            beebs Brad Bebee
            Reporter:
            stasmalyshev stasmalyshev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: