1
1
using ApacheOrcDotNet . Protocol ;
2
2
using System ;
3
+ using System . Globalization ;
3
4
using System . Linq ;
4
5
using Xunit ;
5
6
@@ -49,8 +50,8 @@ public void FileColumnStatistics()
49
50
Assert . Equal ( 35 , reader . GetFileColumnStatistics ( 2 ) . IntStatistics . Maximum ) ;
50
51
Assert . Equal ( 311 , reader . GetFileColumnStatistics ( 3 ) . IntStatistics . Minimum ) ;
51
52
Assert . Equal ( 596293502 , reader . GetFileColumnStatistics ( 3 ) . IntStatistics . Maximum ) ;
52
- Assert . Equal ( 9.392m , decimal . Parse ( reader . GetFileColumnStatistics ( 5 ) . DecimalStatistics . Minimum ) ) ;
53
- Assert . Equal ( 72041.725554m , decimal . Parse ( reader . GetFileColumnStatistics ( 5 ) . DecimalStatistics . Maximum ) ) ;
53
+ Assert . Equal ( 9.392m , decimal . Parse ( reader . GetFileColumnStatistics ( 5 ) . DecimalStatistics . Minimum , CultureInfo . InvariantCulture ) ) ;
54
+ Assert . Equal ( 72041.725554m , decimal . Parse ( reader . GetFileColumnStatistics ( 5 ) . DecimalStatistics . Maximum , CultureInfo . InvariantCulture ) ) ;
54
55
}
55
56
56
57
[ Fact ]
@@ -63,8 +64,8 @@ public void StripeColumnStatistics()
63
64
Assert . Equal ( 35 , reader . GetStripeColumnStatistics ( 2 , 0 ) . IntStatistics . Maximum ) ;
64
65
Assert . Equal ( 311 , reader . GetStripeColumnStatistics ( 3 , 0 ) . IntStatistics . Minimum ) ;
65
66
Assert . Equal ( 16690225 , reader . GetStripeColumnStatistics ( 3 , 0 ) . IntStatistics . Maximum ) ;
66
- Assert . Equal ( 25200.063318m , decimal . Parse ( reader . GetStripeColumnStatistics ( 5 , 0 ) . DecimalStatistics . Minimum ) ) ;
67
- Assert . Equal ( 71979.49409m , decimal . Parse ( reader . GetStripeColumnStatistics ( 5 , 0 ) . DecimalStatistics . Maximum ) ) ;
67
+ Assert . Equal ( 25200.063318m , decimal . Parse ( reader . GetStripeColumnStatistics ( 5 , 0 ) . DecimalStatistics . Minimum , CultureInfo . InvariantCulture ) ) ;
68
+ Assert . Equal ( 71979.49409m , decimal . Parse ( reader . GetStripeColumnStatistics ( 5 , 0 ) . DecimalStatistics . Maximum , CultureInfo . InvariantCulture ) ) ;
68
69
}
69
70
70
71
[ Fact ]
0 commit comments