asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Taewoo Kim (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ASTERIXDB-1700) edit-distance-check on the fields with the 2-gram and the 3-gram index generates a null pointer exception.
Date Thu, 20 Oct 2016 02:19:58 GMT
Taewoo Kim created ASTERIXDB-1700:
-------------------------------------

             Summary: edit-distance-check on the fields with the 2-gram and the 3-gram index
generates a null pointer exception.
                 Key: ASTERIXDB-1700
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1700
             Project: Apache AsterixDB
          Issue Type: Bug
            Reporter: Taewoo Kim
            Assignee: Jianfeng Jia


If there multiple indexes on the same field, we use intersect operator to integrate the result
from each index. In the following AQL query, we have two n-gram indexes on the same field.
And, the null pointer exception happens.

{code}
java.lang.NullPointerException
	at org.apache.hyracks.api.job.JobSpecification.getInputConnectorDescriptor(JobSpecification.java:192)
	at org.apache.hyracks.api.job.JobSpecification.getInputConnectorDescriptor(JobSpecification.java:188)
	at org.apache.hyracks.api.client.impl.JobActivityGraphBuilder.addSourceEdge(JobActivityGraphBuilder.java:81)
	at org.apache.hyracks.dataflow.std.base.AbstractSingleActivityOperatorDescriptor.contributeActivities(AbstractSingleActivityOperatorDescriptor.java:54)
	at org.apache.hyracks.api.client.impl.JobSpecificationActivityClusterGraphGeneratorFactory$2.visit(JobSpecificationActivityClusterGraphGeneratorFactory.java:67)
	at org.apache.hyracks.api.client.impl.PlanUtils.visitOperator(PlanUtils.java:41)
	at org.apache.hyracks.api.client.impl.PlanUtils.visit(PlanUtils.java:34)
	at org.apache.hyracks.api.client.impl.JobSpecificationActivityClusterGraphGeneratorFactory.createActivityClusterGraphGenerator(JobSpecificationActivityClusterGraphGeneratorFactory.java:64)
	at org.apache.hyracks.control.cc.work.JobStartWork.doRun(JobStartWork.java:61)
	at org.apache.hyracks.control.common.work.SynchronizableWork.run(SynchronizableWork.java:39)
	at org.apache.hyracks.control.common.work.WorkQueue$WorkerThread.run(WorkQueue.java:127)
Oct 19, 2016 7:10:22 PM org.apache.asterix.app.translator.QueryTranslator handleQuery
{code}

{code}
create type DBLPType as closed {
  id: int64,
  dblpid: string,
  title: string,
  authors: string,
  misc: string
}

create dataset DBLP(DBLPType)
  primary key id on group1;

create index ngram2_index on DBLP(authors) type ngram(2);
create index ngram3_index on DBLP(authors) type ngram(3);

for $o in dataset('DBLP')
let $ed := edit-distance-check($o.authors, "Amihay Motro", 1)
where $ed[0]
return $o
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message