@@ -1324,7 +1324,7 @@ pub trait DecimalType:
13241324 /// Maximum no of digits after the decimal point (note the scale can be negative)
13251325 const MAX_SCALE : i8 ;
13261326 /// The maximum value for each precision in `0..=MAX_PRECISION`: [0, 9, 99, ...]
1327- const MAX_FOR_EACH_PRECISION : & [ Self :: Native ] ;
1327+ const MAX_FOR_EACH_PRECISION : & ' static [ Self :: Native ] ;
13281328 /// fn to create its [`DataType`]
13291329 const TYPE_CONSTRUCTOR : fn ( u8 , i8 ) -> DataType ;
13301330 /// Default values for [`DataType`]
@@ -1395,7 +1395,8 @@ impl DecimalType for Decimal32Type {
13951395 const BYTE_LENGTH : usize = 4 ;
13961396 const MAX_PRECISION : u8 = DECIMAL32_MAX_PRECISION ;
13971397 const MAX_SCALE : i8 = DECIMAL32_MAX_SCALE ;
1398- const MAX_FOR_EACH_PRECISION : & [ i32 ] = & arrow_data:: decimal:: MAX_DECIMAL32_FOR_EACH_PRECISION ;
1398+ const MAX_FOR_EACH_PRECISION : & ' static [ i32 ] =
1399+ & arrow_data:: decimal:: MAX_DECIMAL32_FOR_EACH_PRECISION ;
13991400 const TYPE_CONSTRUCTOR : fn ( u8 , i8 ) -> DataType = DataType :: Decimal32 ;
14001401 const DEFAULT_TYPE : DataType =
14011402 DataType :: Decimal32 ( DECIMAL32_MAX_PRECISION , DECIMAL32_DEFAULT_SCALE ) ;
@@ -1430,7 +1431,8 @@ impl DecimalType for Decimal64Type {
14301431 const BYTE_LENGTH : usize = 8 ;
14311432 const MAX_PRECISION : u8 = DECIMAL64_MAX_PRECISION ;
14321433 const MAX_SCALE : i8 = DECIMAL64_MAX_SCALE ;
1433- const MAX_FOR_EACH_PRECISION : & [ i64 ] = & arrow_data:: decimal:: MAX_DECIMAL64_FOR_EACH_PRECISION ;
1434+ const MAX_FOR_EACH_PRECISION : & ' static [ i64 ] =
1435+ & arrow_data:: decimal:: MAX_DECIMAL64_FOR_EACH_PRECISION ;
14341436 const TYPE_CONSTRUCTOR : fn ( u8 , i8 ) -> DataType = DataType :: Decimal64 ;
14351437 const DEFAULT_TYPE : DataType =
14361438 DataType :: Decimal64 ( DECIMAL64_MAX_PRECISION , DECIMAL64_DEFAULT_SCALE ) ;
@@ -1465,7 +1467,8 @@ impl DecimalType for Decimal128Type {
14651467 const BYTE_LENGTH : usize = 16 ;
14661468 const MAX_PRECISION : u8 = DECIMAL128_MAX_PRECISION ;
14671469 const MAX_SCALE : i8 = DECIMAL128_MAX_SCALE ;
1468- const MAX_FOR_EACH_PRECISION : & [ i128 ] = & arrow_data:: decimal:: MAX_DECIMAL128_FOR_EACH_PRECISION ;
1470+ const MAX_FOR_EACH_PRECISION : & ' static [ i128 ] =
1471+ & arrow_data:: decimal:: MAX_DECIMAL128_FOR_EACH_PRECISION ;
14691472 const TYPE_CONSTRUCTOR : fn ( u8 , i8 ) -> DataType = DataType :: Decimal128 ;
14701473 const DEFAULT_TYPE : DataType =
14711474 DataType :: Decimal128 ( DECIMAL128_MAX_PRECISION , DECIMAL_DEFAULT_SCALE ) ;
@@ -1500,7 +1503,8 @@ impl DecimalType for Decimal256Type {
15001503 const BYTE_LENGTH : usize = 32 ;
15011504 const MAX_PRECISION : u8 = DECIMAL256_MAX_PRECISION ;
15021505 const MAX_SCALE : i8 = DECIMAL256_MAX_SCALE ;
1503- const MAX_FOR_EACH_PRECISION : & [ i256 ] = & arrow_data:: decimal:: MAX_DECIMAL256_FOR_EACH_PRECISION ;
1506+ const MAX_FOR_EACH_PRECISION : & ' static [ i256 ] =
1507+ & arrow_data:: decimal:: MAX_DECIMAL256_FOR_EACH_PRECISION ;
15041508 const TYPE_CONSTRUCTOR : fn ( u8 , i8 ) -> DataType = DataType :: Decimal256 ;
15051509 const DEFAULT_TYPE : DataType =
15061510 DataType :: Decimal256 ( DECIMAL256_MAX_PRECISION , DECIMAL_DEFAULT_SCALE ) ;
0 commit comments