Uploaded image for project: 'VXQuery (Retired)'
  1. VXQuery (Retired)
  2. VXQUERY-81

Query fails for comparison filter on a node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      We discussed this is because of the plan not using the data function and data function only being stubbed out.

      Query:
      for $x in collection("/tmp/book")/bookstore/book
      where data($x/price) gt 30
      return $x

      Error:
      Exception in thread "main" edu.uci.ics.hyracks.api.exceptions.HyracksException: Job Failed
      at edu.uci.ics.hyracks.control.cc.job.JobRun.waitForCompletion(JobRun.java:183)
      at edu.uci.ics.hyracks.control.cc.work.WaitForJobCompletionWork$1.run(WaitForJobCompletionWork.java:42)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:680)
      Caused by: edu.uci.ics.hyracks.api.exceptions.HyracksException: Exception caught by thread: edu.uci.ics.hyracks.algebricks.runtime.operators.meta.AlgebricksMetaOperatorDescriptor:TAID:TID:ANID:ODID:0:0:0:2:0
      edu.uci.ics.hyracks.api.exceptions.HyracksDataException: edu.uci.ics.hyracks.algebricks.common.exceptions.AlgebricksException: org.apache.vxquery.exceptions.SystemException: SYSE0001:
      at edu.uci.ics.hyracks.algebricks.runtime.operators.std.AssignRuntimeFactory$1.produceTuple(AssignRuntimeFactory.java:126)
      at edu.uci.ics.hyracks.algebricks.runtime.operators.std.AssignRuntimeFactory$1.nextFrame(AssignRuntimeFactory.java:112)
      at edu.uci.ics.hyracks.dataflow.common.comm.util.FrameUtils.flushFrame(FrameUtils.java:38)
      at edu.uci.ics.hyracks.algebricks.runtime.operators.base.AbstractOneInputOneOutputOneFramePushRuntime.appendToFrameFromTupleBuilder(AbstractOneInputOneOutputOneFramePushRuntime.java:47)
      at edu.uci.ics.hyracks.algebricks.runtime.operators.std.AssignRuntimeFactory$1.nextFrame(AssignRuntimeFactory.java:113)
      at edu.uci.ics.hyracks.dataflow.common.comm.util.FrameUtils.flushFrame(FrameUtils.java:38)
      at edu.uci.ics.hyracks.algebricks.runtime.operators.base.AbstractOneInputOneOutputOneFramePushRuntime.close(AbstractOneInputOneOutputOneFramePushRuntime.java:38)
      at edu.uci.ics.hyracks.algebricks.runtime.operators.base.AbstractOneInputOneOutputOneFramePushRuntime.close(AbstractOneInputOneOutputOneFramePushRuntime.java:41)
      at edu.uci.ics.hyracks.algebricks.runtime.operators.base.AbstractOneInputOneOutputOneFramePushRuntime.close(AbstractOneInputOneOutputOneFramePushRuntime.java:41)
      at edu.uci.ics.hyracks.algebricks.runtime.operators.base.AbstractOneInputOneOutputOneFramePushRuntime.close(AbstractOneInputOneOutputOneFramePushRuntime.java:41)
      at edu.uci.ics.hyracks.algebricks.runtime.operators.base.AbstractOneInputOneOutputOneFramePushRuntime.close(AbstractOneInputOneOutputOneFramePushRuntime.java:41)
      at edu.uci.ics.hyracks.algebricks.runtime.operators.base.AbstractOneInputOneOutputOneFramePushRuntime.close(AbstractOneInputOneOutputOneFramePushRuntime.java:41)
      at edu.uci.ics.hyracks.algebricks.runtime.operators.base.AbstractOneInputOneOutputOneFramePushRuntime.close(AbstractOneInputOneOutputOneFramePushRuntime.java:41)
      at edu.uci.ics.hyracks.algebricks.runtime.operators.base.AbstractOneInputOneOutputOneFramePushRuntime.close(AbstractOneInputOneOutputOneFramePushRuntime.java:41)
      at edu.uci.ics.hyracks.algebricks.runtime.operators.std.EmptyTupleSourceRuntimeFactory$1.open(EmptyTupleSourceRuntimeFactory.java:56)
      at edu.uci.ics.hyracks.algebricks.runtime.operators.meta.AlgebricksMetaOperatorDescriptor$1.initialize(AlgebricksMetaOperatorDescriptor.java:104)
      at edu.uci.ics.hyracks.control.nc.Task.run(Task.java:231)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:680)
      Caused by: edu.uci.ics.hyracks.algebricks.common.exceptions.AlgebricksException: org.apache.vxquery.exceptions.SystemException: SYSE0001:
      at org.apache.vxquery.runtime.functions.base.AbstractTaggedValueArgumentScalarEvaluator.evaluate(AbstractTaggedValueArgumentScalarEvaluator.java:48)
      at edu.uci.ics.hyracks.algebricks.runtime.operators.std.AssignRuntimeFactory$1.produceTuple(AssignRuntimeFactory.java:124)
      ... 19 more
      Caused by: org.apache.vxquery.exceptions.SystemException: SYSE0001:
      at org.apache.vxquery.runtime.functions.comparison.AbstractValueComparisonScalarEvaluatorFactory$1.transformThenCompareTaggedValues(AbstractValueComparisonScalarEvaluatorFactory.java:131)
      at org.apache.vxquery.runtime.functions.comparison.AbstractValueComparisonScalarEvaluatorFactory$1.evaluate(AbstractValueComparisonScalarEvaluatorFactory.java:85)
      at org.apache.vxquery.runtime.functions.base.AbstractTaggedValueArgumentScalarEvaluator.evaluate(AbstractTaggedValueArgumentScalarEvaluator.java:46)
      ... 20 more
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 107
      at org.apache.vxquery.types.BuiltinTypeRegistry.getSchemaTypeById(BuiltinTypeRegistry.java:271)
      at org.apache.vxquery.runtime.functions.util.FunctionHelper.getBaseTypeForComparisons(FunctionHelper.java:507)
      at org.apache.vxquery.runtime.functions.util.FunctionHelper.compareTaggedValues(FunctionHelper.java:90)
      at org.apache.vxquery.runtime.functions.comparison.AbstractValueComparisonScalarEvaluatorFactory$1.transformThenCompareTaggedValues(AbstractValueComparisonScalarEvaluatorFactory.java:127)
      ... 22 more

      at edu.uci.ics.hyracks.control.cc.scheduler.JobScheduler.notifyTaskFailure(JobScheduler.java:614)
      at edu.uci.ics.hyracks.control.cc.work.TaskFailureWork.performEvent(TaskFailureWork.java:36)
      at edu.uci.ics.hyracks.control.cc.work.AbstractTaskLifecycleWork.run(AbstractTaskLifecycleWork.java:66)
      at edu.uci.ics.hyracks.control.common.work.WorkQueue$WorkerThread.run(WorkQueue.java:115)

      Attachments

        Activity

          People

            prestonc Preston Carman
            prestonc Preston Carman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: