@@ -1137,7 +1137,7 @@ impl ScalarValue {
1137
1137
DataType :: Null => ScalarValue :: Null ,
1138
1138
_ => {
1139
1139
return _not_impl_err ! (
1140
- "Can't create a null scalar from data_type \" {data_type:? }\" "
1140
+ "Can't create a null scalar from data_type \" {data_type}\" "
1141
1141
) ;
1142
1142
}
1143
1143
} )
@@ -1193,7 +1193,7 @@ impl ScalarValue {
1193
1193
match datatype {
1194
1194
DataType :: Float32 => Ok ( ScalarValue :: from ( std:: f32:: consts:: PI ) ) ,
1195
1195
DataType :: Float64 => Ok ( ScalarValue :: from ( std:: f64:: consts:: PI ) ) ,
1196
- _ => _internal_err ! ( "PI is not supported for data type: {:? }" , datatype) ,
1196
+ _ => _internal_err ! ( "PI is not supported for data type: {}" , datatype) ,
1197
1197
}
1198
1198
}
1199
1199
@@ -1203,7 +1203,7 @@ impl ScalarValue {
1203
1203
DataType :: Float32 => Ok ( ScalarValue :: from ( consts:: PI_UPPER_F32 ) ) ,
1204
1204
DataType :: Float64 => Ok ( ScalarValue :: from ( consts:: PI_UPPER_F64 ) ) ,
1205
1205
_ => {
1206
- _internal_err ! ( "PI_UPPER is not supported for data type: {:? }" , datatype)
1206
+ _internal_err ! ( "PI_UPPER is not supported for data type: {}" , datatype)
1207
1207
}
1208
1208
}
1209
1209
}
@@ -1214,7 +1214,7 @@ impl ScalarValue {
1214
1214
DataType :: Float32 => Ok ( ScalarValue :: from ( consts:: NEGATIVE_PI_LOWER_F32 ) ) ,
1215
1215
DataType :: Float64 => Ok ( ScalarValue :: from ( consts:: NEGATIVE_PI_LOWER_F64 ) ) ,
1216
1216
_ => {
1217
- _internal_err ! ( "-PI_LOWER is not supported for data type: {:? }" , datatype)
1217
+ _internal_err ! ( "-PI_LOWER is not supported for data type: {}" , datatype)
1218
1218
}
1219
1219
}
1220
1220
}
@@ -1225,10 +1225,7 @@ impl ScalarValue {
1225
1225
DataType :: Float32 => Ok ( ScalarValue :: from ( consts:: FRAC_PI_2_UPPER_F32 ) ) ,
1226
1226
DataType :: Float64 => Ok ( ScalarValue :: from ( consts:: FRAC_PI_2_UPPER_F64 ) ) ,
1227
1227
_ => {
1228
- _internal_err ! (
1229
- "PI_UPPER/2 is not supported for data type: {:?}" ,
1230
- datatype
1231
- )
1228
+ _internal_err ! ( "PI_UPPER/2 is not supported for data type: {}" , datatype)
1232
1229
}
1233
1230
}
1234
1231
}
@@ -1243,10 +1240,7 @@ impl ScalarValue {
1243
1240
Ok ( ScalarValue :: from ( consts:: NEGATIVE_FRAC_PI_2_LOWER_F64 ) )
1244
1241
}
1245
1242
_ => {
1246
- _internal_err ! (
1247
- "-PI/2_LOWER is not supported for data type: {:?}" ,
1248
- datatype
1249
- )
1243
+ _internal_err ! ( "-PI/2_LOWER is not supported for data type: {}" , datatype)
1250
1244
}
1251
1245
}
1252
1246
}
@@ -1256,7 +1250,7 @@ impl ScalarValue {
1256
1250
match datatype {
1257
1251
DataType :: Float32 => Ok ( ScalarValue :: from ( -std:: f32:: consts:: PI ) ) ,
1258
1252
DataType :: Float64 => Ok ( ScalarValue :: from ( -std:: f64:: consts:: PI ) ) ,
1259
- _ => _internal_err ! ( "-PI is not supported for data type: {:? }" , datatype) ,
1253
+ _ => _internal_err ! ( "-PI is not supported for data type: {}" , datatype) ,
1260
1254
}
1261
1255
}
1262
1256
@@ -1265,7 +1259,7 @@ impl ScalarValue {
1265
1259
match datatype {
1266
1260
DataType :: Float32 => Ok ( ScalarValue :: from ( std:: f32:: consts:: FRAC_PI_2 ) ) ,
1267
1261
DataType :: Float64 => Ok ( ScalarValue :: from ( std:: f64:: consts:: FRAC_PI_2 ) ) ,
1268
- _ => _internal_err ! ( "PI/2 is not supported for data type: {:? }" , datatype) ,
1262
+ _ => _internal_err ! ( "PI/2 is not supported for data type: {}" , datatype) ,
1269
1263
}
1270
1264
}
1271
1265
@@ -1274,7 +1268,7 @@ impl ScalarValue {
1274
1268
match datatype {
1275
1269
DataType :: Float32 => Ok ( ScalarValue :: from ( -std:: f32:: consts:: FRAC_PI_2 ) ) ,
1276
1270
DataType :: Float64 => Ok ( ScalarValue :: from ( -std:: f64:: consts:: FRAC_PI_2 ) ) ,
1277
- _ => _internal_err ! ( "-PI/2 is not supported for data type: {:? }" , datatype) ,
1271
+ _ => _internal_err ! ( "-PI/2 is not supported for data type: {}" , datatype) ,
1278
1272
}
1279
1273
}
1280
1274
@@ -1284,7 +1278,7 @@ impl ScalarValue {
1284
1278
DataType :: Float32 => Ok ( ScalarValue :: from ( f32:: INFINITY ) ) ,
1285
1279
DataType :: Float64 => Ok ( ScalarValue :: from ( f64:: INFINITY ) ) ,
1286
1280
_ => {
1287
- _internal_err ! ( "Infinity is not supported for data type: {:? }" , datatype)
1281
+ _internal_err ! ( "Infinity is not supported for data type: {}" , datatype)
1288
1282
}
1289
1283
}
1290
1284
}
@@ -1296,7 +1290,7 @@ impl ScalarValue {
1296
1290
DataType :: Float64 => Ok ( ScalarValue :: from ( f64:: NEG_INFINITY ) ) ,
1297
1291
_ => {
1298
1292
_internal_err ! (
1299
- "Negative Infinity is not supported for data type: {:? }" ,
1293
+ "Negative Infinity is not supported for data type: {}" ,
1300
1294
datatype
1301
1295
)
1302
1296
}
@@ -1369,7 +1363,7 @@ impl ScalarValue {
1369
1363
DataType :: Date64 => ScalarValue :: Date64 ( Some ( 0 ) ) ,
1370
1364
_ => {
1371
1365
return _not_impl_err ! (
1372
- "Can't create a zero scalar from data_type \" {datatype:? }\" "
1366
+ "Can't create a zero scalar from data_type \" {datatype}\" "
1373
1367
) ;
1374
1368
}
1375
1369
} )
@@ -1507,7 +1501,7 @@ impl ScalarValue {
1507
1501
// Unsupported types for now
1508
1502
_ => {
1509
1503
_not_impl_err ! (
1510
- "Default value for data_type \" {datatype:? }\" is not implemented yet"
1504
+ "Default value for data_type \" {datatype}\" is not implemented yet"
1511
1505
)
1512
1506
}
1513
1507
}
@@ -1557,7 +1551,7 @@ impl ScalarValue {
1557
1551
}
1558
1552
_ => {
1559
1553
return _not_impl_err ! (
1560
- "Can't create an one scalar from data_type \" {datatype:? }\" "
1554
+ "Can't create an one scalar from data_type \" {datatype}\" "
1561
1555
) ;
1562
1556
}
1563
1557
} )
@@ -1603,7 +1597,7 @@ impl ScalarValue {
1603
1597
}
1604
1598
_ => {
1605
1599
return _not_impl_err ! (
1606
- "Can't create a negative one scalar from data_type \" {datatype:? }\" "
1600
+ "Can't create a negative one scalar from data_type \" {datatype}\" "
1607
1601
) ;
1608
1602
}
1609
1603
} )
@@ -1656,7 +1650,7 @@ impl ScalarValue {
1656
1650
}
1657
1651
_ => {
1658
1652
return _not_impl_err ! (
1659
- "Can't create a ten scalar from data_type \" {datatype:? }\" "
1653
+ "Can't create a ten scalar from data_type \" {datatype}\" "
1660
1654
) ;
1661
1655
}
1662
1656
} )
@@ -2364,7 +2358,7 @@ impl ScalarValue {
2364
2358
DataType :: UInt16 => dict_from_values :: < UInt16Type > ( values) ?,
2365
2359
DataType :: UInt32 => dict_from_values :: < UInt32Type > ( values) ?,
2366
2360
DataType :: UInt64 => dict_from_values :: < UInt64Type > ( values) ?,
2367
- _ => unreachable ! ( "Invalid dictionary keys type: {:? }" , key_type) ,
2361
+ _ => unreachable ! ( "Invalid dictionary keys type: {}" , key_type) ,
2368
2362
}
2369
2363
}
2370
2364
DataType :: FixedSizeBinary ( size) => {
@@ -2375,7 +2369,7 @@ impl ScalarValue {
2375
2369
} else {
2376
2370
_exec_err ! (
2377
2371
"Inconsistent types in ScalarValue::iter_to_array. \
2378
- Expected {data_type:? }, got {sv:?}"
2372
+ Expected {data_type}, got {sv:?}"
2379
2373
)
2380
2374
}
2381
2375
} )
@@ -2937,7 +2931,7 @@ impl ScalarValue {
2937
2931
DataType :: UInt16 => dict_from_scalar :: < UInt16Type > ( v, size) ?,
2938
2932
DataType :: UInt32 => dict_from_scalar :: < UInt32Type > ( v, size) ?,
2939
2933
DataType :: UInt64 => dict_from_scalar :: < UInt64Type > ( v, size) ?,
2940
- _ => unreachable ! ( "Invalid dictionary keys type: {:? }" , key_type) ,
2934
+ _ => unreachable ! ( "Invalid dictionary keys type: {}" , key_type) ,
2941
2935
}
2942
2936
}
2943
2937
ScalarValue :: Null => get_or_create_cached_null_array ( size) ,
@@ -3197,7 +3191,7 @@ impl ScalarValue {
3197
3191
DataType :: UInt16 => get_dict_value :: < UInt16Type > ( array, index) ?,
3198
3192
DataType :: UInt32 => get_dict_value :: < UInt32Type > ( array, index) ?,
3199
3193
DataType :: UInt64 => get_dict_value :: < UInt64Type > ( array, index) ?,
3200
- _ => unreachable ! ( "Invalid dictionary keys type: {:? }" , key_type) ,
3194
+ _ => unreachable ! ( "Invalid dictionary keys type: {}" , key_type) ,
3201
3195
} ;
3202
3196
// look up the index in the values dictionary
3203
3197
let value = match values_index {
@@ -3571,7 +3565,7 @@ impl ScalarValue {
3571
3565
DataType :: UInt16 => get_dict_value :: < UInt16Type > ( array, index) ?,
3572
3566
DataType :: UInt32 => get_dict_value :: < UInt32Type > ( array, index) ?,
3573
3567
DataType :: UInt64 => get_dict_value :: < UInt64Type > ( array, index) ?,
3574
- _ => unreachable ! ( "Invalid dictionary keys type: {:? }" , key_type) ,
3568
+ _ => unreachable ! ( "Invalid dictionary keys type: {}" , key_type) ,
3575
3569
} ;
3576
3570
// was the value in the array non null?
3577
3571
match values_index {
0 commit comments