}
byte[] lhsBytes = ptr.get();
int lhsOffset = ptr.getOffset();
int lhsLength = ptr.getLength();
PDataType lhsDataType = children.get(0).getDataType();
ColumnModifier lhsColumnModifier = children.get(0).getColumnModifier();
if (!children.get(1).evaluate(tuple, ptr)) {
return false;
}
byte[] rhsBytes = ptr.get();
int rhsOffset = ptr.getOffset();
int rhsLength = ptr.getLength();
PDataType rhsDataType = children.get(1).getDataType();
ColumnModifier rhsColumnModifier = children.get(1).getColumnModifier();
if (rhsDataType == PDataType.CHAR) {
rhsLength = StringUtil.getUnpaddedCharLength(rhsBytes, rhsOffset, rhsLength, rhsColumnModifier);
}
if (lhsDataType == PDataType.CHAR) {
lhsLength = StringUtil.getUnpaddedCharLength(lhsBytes, lhsOffset, lhsLength, lhsColumnModifier);