Knut Anders Hatlen created DERBY-6731:
-----------------------------------------
Summary: Lucene VTI returns NULL for key if it is a BLOB
Key: DERBY-6731
URL: https://issues.apache.org/jira/browse/DERBY-6731
Project: Derby
Issue Type: Bug
Components: Tools
Affects Versions: 10.11.1.1
Reporter: Knut Anders Hatlen
{noformat}
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
{noformat}
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)