InvisibleProgrammer commented on code in PR #6194:
URL: https://github.com/apache/hive/pull/6194#discussion_r2538610989
##########
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/columnstats/merge/DecimalColumnStatsMergerTest.java:
##########
@@ -38,22 +41,28 @@
@Category(MetastoreUnitTest.class)
public class DecimalColumnStatsMergerTest {
- private static final Decimal DECIMAL_1 = DecimalUtils.getDecimal(1, 0);
- private static final Decimal DECIMAL_3 = DecimalUtils.getDecimal(3, 0);
- private static final Decimal DECIMAL_5 = DecimalUtils.getDecimal(5, 0);
- private static final Decimal DECIMAL_20 = DecimalUtils.getDecimal(2, 1);
+ /**
+ * Creates a decimal and checks its string representation.
+ */
+ private static Decimal getDecimal(String expected, int number, int scale) {
Review Comment:
It is interesting. I have never seen a code base when there are method
declarations before variables.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]