Temporal groups: Groups could have null-values
Created by: Piiit
In executor ExecTemporalAdjustment...
if(node->sameleft)
{
/*
* PEMOSER Is the following correct?
* The right-hand-side of the LEFT OUTER JOIN can produce
* null-values, however we must produce a result tuple anyway with
* the attributes of the left-hand-side, if this happens.
*
* PEMOSER TODO Check parameters of ...storeTuple.
*/
currP1 = slot_getattr(curr, node->p1pos, &isNull);
if (isNull)
{
return NULL;
// printf("xxx");
// print_slot(curr);
// outTs = slotGetAttributeNotNull(curr, node->tspos);
// outTe = slotGetAttributeNotNull(curr, node->tepos);
// temporalAdjustmentStoreTuple(node, curr, out, outTs, outTe);
// {
// MemoryContext oldContext;
// HeapTuple t;
//
// node->tsteMask[5] = true;
// node->tupleReplValues[node->tspos-1] = outTs;
// node->tupleReplValues[node->tepos-1] = outTe;
// node->tupleReplValues[5] = outTe;
//
// oldContext = MemoryContextSwitchTo(node->ss.ps.ps_ResultTupleSlot->tts_mcxt);
// t = heap_modify_tuple(curr->tts_tuple,
// curr->tts_tupleDescriptor,
// node->tupleReplValues,
// node->nullMask,
// node->tsteMask);
// MemoryContextSwitchTo(oldContext);
// out = ExecStoreTuple(t, out, InvalidBuffer, true);
//
// #ifdef TEMPORAL_DEBUG
// printf("Storing tuple:\n");
// print_slot(out);
// #endif
// }
//
// produced = true;
// return out;
}