Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6731

Lucene VTI returns NULL for key if it is a BLOB

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.11.1.1
    • Fix Version/s: None
    • Component/s: Tools
    • Labels:
      None
    • Issue & fix info:
      Repro attached

      Description

      ij> connect 'jdbc:derby:memory:db;create=true';
      ij> call syscs_util.syscs_register_tool('luceneSupport', true);
      0 rows inserted/updated/deleted
      ij> create table t(b blob, c clob);
      0 rows inserted/updated/deleted
      ij> insert into t values (cast (x'cafe' as blob), 'hello');
      1 row inserted/updated/deleted
      ij> call lucenesupport.createindex('app', 't', 'c', null, 'b');
      0 rows inserted/updated/deleted
      ij> select * from table(t__c('hello', 10, null)) t;
      B                                                                                                                               |DOCUMENTID |SCORE          
      ------------------------------------------------------------------------------------------------------------------------------------------------------------
      NULL                                                                                                                            |0          |0.30685282     
      
      1 row selected
      

      I expected either that CREATEINDEX had failed with a message saying that a BLOB column could not be used as a key column, or that the Lucene VTI had returned a non-null value for column B.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                knutanders Knut Anders Hatlen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: