[Planner] Align Date and Datetime by 16 bytes (#6105)

The previous alignment of Doris is up to 8 bytes.
For types with more than 8 bytes, such as Date, Datetime is not aligned.
This PR is mainly to relax the maximum 8-byte limitation
Also, because the data type Decimal v1 no longer exists,
the logic of the 40-byte Decimal v1 is also discarded.
This commit is contained in:
EmmyMiao87
2021-07-10 10:10:04 +08:00
committed by GitHub
parent 583549d929
commit e426fbd6be

View File

@ -203,10 +203,7 @@ public class TupleDescriptor {
}
if (slotSize > 1) {
// insert padding
int alignTo = Math.min(slotSize, 8);
if (slotSize == 40) {
alignTo = 4;
}
int alignTo = slotSize;
offset = (offset + alignTo - 1) / alignTo * alignTo;
}
@ -233,7 +230,6 @@ public class TupleDescriptor {
}
this.byteSize = offset;
// LOG.debug("tuple is {}", byteSize);
}
/**