@@ -131,7 +131,7 @@ public void testValue() throws Exception {
131
131
0L , // long
132
132
0F , // float
133
133
0D , // double
134
- BigDecimal .valueOf ( 0L ) , // BigDecimal
134
+ BigDecimal .ZERO , // BigDecimal
135
135
new BigDecimal (BigInteger .ZERO , 3 ), // BigDecimal
136
136
BigInteger .ZERO , // BigInteger
137
137
ClickHouseDataType .values ()[0 ].name (), // Enum<ClickHouseDataType>
@@ -163,7 +163,7 @@ public void testValue() throws Exception {
163
163
1L , // long
164
164
1F , // float
165
165
1D , // double
166
- BigDecimal .valueOf ( 1L ) , // BigDecimal
166
+ BigDecimal .ONE , // BigDecimal
167
167
new BigDecimal (BigInteger .ONE , 3 ), // BigDecimal
168
168
BigInteger .ONE , // BigInteger
169
169
ClickHouseDataType .values ()[1 ].name (), // Enum<ClickHouseDataType>
@@ -195,7 +195,7 @@ public void testValue() throws Exception {
195
195
2L , // long
196
196
2F , // float
197
197
2D , // double
198
- BigDecimal .valueOf (2L ), // BigDecimal
198
+ BigDecimal .valueOf (2F ), // BigDecimal
199
199
new BigDecimal (BigInteger .valueOf (2L ), 3 ), // BigDecimal
200
200
BigInteger .valueOf (2L ), // BigInteger
201
201
ClickHouseDataType .values ()[2 ].name (), // Enum<ClickHouseDataType>
@@ -228,7 +228,7 @@ public void testValue() throws Exception {
228
228
-1L , // long
229
229
-1F , // float
230
230
-1D , // double
231
- BigDecimal .valueOf (-1L ), // BigDecimal
231
+ BigDecimal .valueOf (-1F ), // BigDecimal
232
232
new BigDecimal (BigInteger .valueOf (-1L ), 3 ), // BigDecimal
233
233
BigInteger .valueOf (-1L ), // BigInteger
234
234
IllegalArgumentException .class , // Enum<ClickHouseDataType>
@@ -261,7 +261,7 @@ public void testValue() throws Exception {
261
261
1L , // long
262
262
1.3333334F , // float
263
263
(double ) (4F / 3 ), // double
264
- BigDecimal . valueOf ( 1L ), // BigDecimal
264
+ new BigDecimal ( Float . toString ( 4F / 3 ) ), // BigDecimal
265
265
BigDecimal .valueOf (1333 , 3 ), // BigDecimal
266
266
BigInteger .ONE , // BigInteger
267
267
ClickHouseDataType .values ()[1 ].name (), // Enum<ClickHouseDataType>
@@ -293,7 +293,7 @@ public void testValue() throws Exception {
293
293
-1L , // long
294
294
-1.3333334F , // float
295
295
(double ) (-4F / 3 ), // double
296
- BigDecimal . valueOf (- 1L ), // BigDecimal
296
+ new BigDecimal ( Float . toString (- 4F / 3 ) ), // BigDecimal
297
297
BigDecimal .valueOf (-1333 , 3 ), // BigDecimal
298
298
BigInteger .valueOf (-1L ), // BigInteger
299
299
IllegalArgumentException .class , // Enum<ClickHouseDataType>
0 commit comments