Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-15925

Fix broadcast knn with score and vector param queries

    XMLWordPrintable

Details

    • Hide
      1. A non-local cache
      2. A cluster with more nodes
      3. You execute the following query:
      Query<Object[]> hybridQuery = cache.query(
        "select score(i), i from org.infinispan.query.model.Item i where i.floatVector <-> [:a]~:k");
      hybridQuery.setParameter("a", new float[]{7.0f, 7.0f, 7.0f});
      hybridQuery.setParameter("k", 3);
      
      List<Object[]> projections = hybridQuery.list();
      

      Without the parameter in place of the vector, it works!

      Show
      A non-local cache A cluster with more nodes You execute the following query: Query< Object []> hybridQuery = cache.query( "select score(i), i from org.infinispan.query.model.Item i where i.floatVector <-> [:a]~:k" ); hybridQuery.setParameter( "a" , new float []{7.0f, 7.0f, 7.0f}); hybridQuery.setParameter( "k" , 3); List< Object []> projections = hybridQuery.list(); Without the parameter in place of the vector, it works!

    Description

      There is a parsing exception. Basically Ickle string passed to the replicas are not valid.

      The simple workaround is to not use the parameter for the vector or the vector cells.

      Attachments

        Activity

          People

            fercoli@redhat.com Fabio Massimo Ercoli
            fercoli@redhat.com Fabio Massimo Ercoli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: