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

Lucene VTI returns NULL for key if it is a BLOB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 10.11.1.1
    • None
    • Tools
    • None
    • 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

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

              Dates

                Created:
                Updated: