@@ -124,58 +124,6 @@ TEST_F(HivePartitionFunctionTest, bigint) {
124124 assertPartitionsWithConstChannel (values, 997 );
125125}
126126
127- TEST_F (HivePartitionFunctionTest, shortDecimal) {
128- auto values = makeNullableFlatVector<int64_t >(
129- {std::nullopt ,
130- 300'000'000'000 ,
131- 123456789 ,
132- DecimalUtil::kShortDecimalMin / 100 ,
133- DecimalUtil::kShortDecimalMax / 100 },
134- DECIMAL (18 , 2 ));
135-
136- assertPartitions (values, 1 , {0 , 0 , 0 , 0 , 0 });
137- assertPartitions (values, 2 , {0 , 1 , 1 , 1 , 1 });
138- assertPartitions (values, 500 , {0 , 471 , 313 , 115 , 37 });
139- assertPartitions (values, 997 , {0 , 681 , 6 , 982 , 502 });
140-
141- assertPartitionsWithConstChannel (values, 1 );
142- assertPartitionsWithConstChannel (values, 2 );
143- assertPartitionsWithConstChannel (values, 500 );
144- assertPartitionsWithConstChannel (values, 997 );
145-
146- values = makeFlatVector<int64_t >(
147- {123456789 , DecimalUtil::kShortDecimalMin , DecimalUtil::kShortDecimalMax },
148- DECIMAL (18 , 0 ));
149- assertPartitions (values, 500 , {311 , 236 , 412 });
150- }
151-
152- TEST_F (HivePartitionFunctionTest, longDecimal) {
153- auto values = makeNullableFlatVector<int128_t >(
154- {std::nullopt ,
155- 300'000'000'000 ,
156- HugeInt::parse (" 12345678901234567891" ),
157- DecimalUtil::kLongDecimalMin / 100 ,
158- DecimalUtil::kLongDecimalMax / 100 },
159- DECIMAL (38 , 2 ));
160-
161- assertPartitions (values, 1 , {0 , 0 , 0 , 0 , 0 });
162- assertPartitions (values, 2 , {0 , 1 , 1 , 1 , 1 });
163- assertPartitions (values, 500 , {0 , 471 , 99 , 49 , 103 });
164- assertPartitions (values, 997 , {0 , 681 , 982 , 481 , 6 });
165-
166- assertPartitionsWithConstChannel (values, 1 );
167- assertPartitionsWithConstChannel (values, 2 );
168- assertPartitionsWithConstChannel (values, 500 );
169- assertPartitionsWithConstChannel (values, 997 );
170-
171- values = makeNullableFlatVector<int128_t >(
172- {HugeInt::parse (" 1234567890123456789112345678" ),
173- DecimalUtil::kLongDecimalMin ,
174- DecimalUtil::kLongDecimalMax },
175- DECIMAL (38 , 0 ));
176- assertPartitions (values, 997 , {51 , 835 , 645 });
177- }
178-
179127TEST_F (HivePartitionFunctionTest, varchar) {
180128 auto values = makeNullableFlatVector<std::string>(
181129 {std::nullopt ,
0 commit comments