Hi, As I came to know now, boolean is not a LiteralType in the current implementation. Am I to add it as a LiteralType and as a Literal() in grammar.jj as well? Boolean is not read in the grammar.jj file also.
Thank you. Yours sincerely, Riyafa On 11 June 2016 at 19:40, Riyafa Abdul Hameed <[email protected]> wrote: > Hi, > > I came across this issue when attempting to write test cases: I tried > using boolean values in my object and it throws an exception. Also it > throws the same exception when I try with only true or false values: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *java.lang.ArrayIndexOutOfBoundsException: -7 at > org.apache.hyracks.dataflow.common.util.IntSerDeUtils.getInt(IntSerDeUtils.java:25) > at > org.apache.hyracks.dataflow.common.comm.io.FrameTupleAccessor.getFieldStartOffset(FrameTupleAccessor.java:94) > at > org.apache.hyracks.dataflow.common.data.accessors.FrameTupleReference.getFieldStart(FrameTupleReference.java:55) > at > org.apache.hyracks.algebricks.runtime.evaluators.TupleFieldEvaluatorFactory$1.evaluate(TupleFieldEvaluatorFactory.java:42) > at > org.apache.vxquery.runtime.functions.base.AbstractTaggedValueArgumentScalarEvaluator.evaluate(AbstractTaggedValueArgumentScalarEvaluator.java:47) > at > org.apache.vxquery.runtime.functions.base.AbstractTaggedValueArgumentUnnestingEvaluator.init(AbstractTaggedValueArgumentUnnestingEvaluator.java:47) > at > org.apache.hyracks.algebricks.runtime.operators.std.UnnestRuntimeFactory$1.nextFrame(UnnestRuntimeFactory.java:126) > at > org.apache.hyracks.dataflow.common.comm.io.AbstractFrameAppender.flush(AbstractFrameAppender.java:83) > at > org.apache.hyracks.algebricks.runtime.operators.std.EmptyTupleSourceRuntimeFactory$1.open(EmptyTupleSourceRuntimeFactory.java:55) > at > org.apache.hyracks.algebricks.runtime.operators.meta.AlgebricksMetaOperatorDescriptor$1.initialize(AlgebricksMetaOperatorDescriptor.java:108) > at > org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.initialize(SuperActivityOperatorNodePushable.java:85) > at org.apache.hyracks.control.nc.Task.run(Task.java:255) at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745)Jun 11, 2016 6:23:46 PM > org.apache.hyracks.control.common.work.WorkQueue$WorkerThread runINFO: > Executing: NotifyTaskFailureJun 11, 2016 6:23:46 PM > org.apache.hyracks.control.common.work.WorkQueue$WorkerThread runINFO: > Executing: TaskFailure: [JID:0:TAID:TID:ANID:ODID:1:0:0:0:nc1]Jun 11, 2016 > 6:23:46 PM org.apache.hyracks.control.cc.partitions.PartitionMatchMaker > removeUncommittedPartitionsINFO: Removing uncommitted partitions: > []org.apache.hyracks.api.exceptions.HyracksDataException: > java.lang.ArrayIndexOutOfBoundsException: -7 at > org.apache.hyracks.control.common.utils.ExceptionUtils.setNodeIds(ExceptionUtils.java:45) > at org.apache.hyracks.control.nc.Task.run(Task.java:312) at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745)Caused by: > java.lang.ArrayIndexOutOfBoundsException: -7 at > org.apache.hyracks.dataflow.common.util.IntSerDeUtils.getInt(IntSerDeUtils.java:25) > at > org.apache.hyracks.dataflow.common.comm.io.FrameTupleAccessor.getFieldStartOffset(FrameTupleAccessor.java:94) > at > org.apache.hyracks.dataflow.common.data.accessors.FrameTupleReference.getFieldStart(FrameTupleReference.java:55) > at > org.apache.hyracks.algebricks.runtime.evaluators.TupleFieldEvaluatorFactory$1.evaluate(TupleFieldEvaluatorFactory.java:42) > at > org.apache.vxquery.runtime.functions.base.AbstractTaggedValueArgumentScalarEvaluator.evaluate(AbstractTaggedValueArgumentScalarEvaluator.java:47) > at > org.apache.vxquery.runtime.functions.base.AbstractTaggedValueArgumentUnnestingEvaluator.init(AbstractTaggedValueArgumentUnnestingEvaluator.java:47) > at > org.apache.hyracks.algebricks.runtime.operators.std.UnnestRuntimeFactory$1.nextFrame(UnnestRuntimeFactory.java:126) > at > org.apache.hyracks.dataflow.common.comm.io.AbstractFrameAppender.flush(AbstractFrameAppender.java:83) > at > org.apache.hyracks.algebricks.runtime.operators.std.EmptyTupleSourceRuntimeFactory$1.open(EmptyTupleSourceRuntimeFactory.java:55) > at > org.apache.hyracks.algebricks.runtime.operators.meta.AlgebricksMetaOperatorDescriptor$1.initialize(AlgebricksMetaOperatorDescriptor.java:108) > at > org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.initialize(SuperActivityOperatorNodePushable.java:85) > at org.apache.hyracks.control.nc.Task.run(Task.java:255)* > > > I am not sure why this is thrown. Any help would be appreciated. Or should > I try to fix the issue. > > Thank you. > > Yours sincerely, > Riyafa > > -- > Riyafa Abdul Hameed > Undergraduate, University of Moratuwa > > Email: [email protected] > Website: https://riyafa.wordpress.com/ <http://riyafa.wordpress.com/> > <http://facebook.com/riyafa.ahf> <http://lk.linkedin.com/in/riyafa> > <http://twitter.com/Riyafa1> > -- Riyafa Abdul Hameed Undergraduate, University of Moratuwa Email: [email protected] Website: https://riyafa.wordpress.com/ <http://riyafa.wordpress.com/> <http://facebook.com/riyafa.ahf> <http://lk.linkedin.com/in/riyafa> <http://twitter.com/Riyafa1>
