assertEquals (key, (Long) expected, (Long) arr[0]);
} else if (arr[0] instanceof HiveDecimalWritable) {
HiveDecimalWritable hdw = (HiveDecimalWritable) arr[0];
HiveDecimal hd = hdw.getHiveDecimal();
Decimal128 d128 = (Decimal128)expected;
assertEquals (key, d128.toBigDecimal(), hd.bigDecimalValue());
} else if (arr[0] instanceof HiveDecimal) {
HiveDecimal hd = (HiveDecimal) arr[0];
Decimal128 d128 = (Decimal128)expected;
assertEquals (key, d128.toBigDecimal(), hd.bigDecimalValue());
} else {