CarnationWang23 / hyracks

Automatically exported from code.google.com/p/hyracks
Apache License 2.0
0 stars 0 forks source link

Unnest Positional Type Is A Constant #137

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use VXQuery. See issue #115. 
https://issues.apache.org/jira/browse/VXQUERY-115
2. Basically any system that does not represent INT32 typed variable with the 
tag value of 3.
3.

What is the expected output? What do you see instead?

The system should use the UNNEST position variable type specified when creating 
an UNNEST or provide another method to set this type value. Currently the type 
is hard coded to 3, presumably for AsterixDB.

Side note: Is an int the best size for this value? Long?

// Problem code
if (hasPositionalVariable) {
  // Write the positional variable as an INT32
  tupleBuilder.getDataOutput().writeByte(3);
  tupleBuilder.getDataOutput().writeInt(offset + positionIndex++);
  tupleBuilder.addFieldEndOffset();
}

Please use labels and text to provide additional information.

Original issue reported on code.google.com by ecarm...@ucr.edu on 29 May 2014 at 4:47

GoogleCodeExporter commented 8 years ago
The new interface has been committed and new supports new position writer.

Original comment by ecarm...@ucr.edu on 5 Jun 2014 at 2:22