@@ -1113,12 +1113,12 @@ mod tests {
11131113 RowGroupEntry :: new(
11141114 Some ( {
11151115 let proto_stats = proto:: ColumnStatistics {
1116- number_of_values: Some ( 5000 ) ,
1116+ number_of_values: Some ( 10000 ) ,
11171117 has_null: Some ( false ) ,
11181118 int_statistics: Some ( proto:: IntegerStatistics {
11191119 minimum: Some ( 26 ) ,
11201120 maximum: Some ( 65 ) ,
1121- sum: Some ( 227500 ) ,
1121+ sum: Some ( 455000 ) ,
11221122 } ) ,
11231123 ..Default :: default ( )
11241124 } ;
@@ -1147,16 +1147,15 @@ mod tests {
11471147 use std:: collections:: HashMap ;
11481148
11491149 let mut columns = HashMap :: new ( ) ;
1150- // Row group: [0, 10]
11511150 let entries = vec ! [ RowGroupEntry :: new(
11521151 Some ( {
11531152 let proto_stats = proto:: ColumnStatistics {
1154- number_of_values: Some ( 1000 ) ,
1153+ number_of_values: Some ( 10000 ) ,
11551154 has_null: Some ( false ) ,
11561155 int_statistics: Some ( proto:: IntegerStatistics {
11571156 minimum: Some ( 0 ) ,
11581157 maximum: Some ( 10 ) ,
1159- sum: Some ( 5000 ) ,
1158+ sum: Some ( 50000 ) ,
11601159 } ) ,
11611160 ..Default :: default ( )
11621161 } ;
@@ -1182,19 +1181,17 @@ mod tests {
11821181 use crate :: row_index:: { RowGroupEntry , RowGroupIndex } ;
11831182 use std:: collections:: HashMap ;
11841183
1185- // Row group 1: [0, 10]
1186- // Row group 2: [20, 30]
11871184 let mut columns = HashMap :: new ( ) ;
11881185 let entries = vec ! [
11891186 RowGroupEntry :: new(
11901187 Some ( {
11911188 let proto_stats = proto:: ColumnStatistics {
1192- number_of_values: Some ( 1000 ) ,
1189+ number_of_values: Some ( 10000 ) ,
11931190 has_null: Some ( false ) ,
11941191 int_statistics: Some ( proto:: IntegerStatistics {
11951192 minimum: Some ( 0 ) ,
11961193 maximum: Some ( 10 ) ,
1197- sum: Some ( 5000 ) ,
1194+ sum: Some ( 50000 ) ,
11981195 } ) ,
11991196 ..Default :: default ( )
12001197 } ;
@@ -1205,12 +1202,12 @@ mod tests {
12051202 RowGroupEntry :: new(
12061203 Some ( {
12071204 let proto_stats = proto:: ColumnStatistics {
1208- number_of_values: Some ( 1000 ) ,
1205+ number_of_values: Some ( 10000 ) ,
12091206 has_null: Some ( false ) ,
12101207 int_statistics: Some ( proto:: IntegerStatistics {
12111208 minimum: Some ( 20 ) ,
12121209 maximum: Some ( 30 ) ,
1213- sum: Some ( 25000 ) ,
1210+ sum: Some ( 250000 ) ,
12141211 } ) ,
12151212 ..Default :: default ( )
12161213 } ;
@@ -1247,17 +1244,15 @@ mod tests {
12471244
12481245 let mut columns = HashMap :: new ( ) ;
12491246 let entries = vec ! [
1250- // Row group 0: [0, 5]
1251- // Fits age < 10 fully. Does not overlap [10, 30].
12521247 RowGroupEntry :: new(
12531248 Some ( {
12541249 let proto_stats = proto:: ColumnStatistics {
1255- number_of_values: Some ( 1000 ) ,
1250+ number_of_values: Some ( 10000 ) ,
12561251 has_null: Some ( false ) ,
12571252 int_statistics: Some ( proto:: IntegerStatistics {
12581253 minimum: Some ( 0 ) ,
12591254 maximum: Some ( 5 ) ,
1260- sum: Some ( 2500 ) ,
1255+ sum: Some ( 25000 ) ,
12611256 } ) ,
12621257 ..Default :: default ( )
12631258 } ;
@@ -1268,12 +1263,12 @@ mod tests {
12681263 RowGroupEntry :: new(
12691264 Some ( {
12701265 let proto_stats = proto:: ColumnStatistics {
1271- number_of_values: Some ( 1000 ) ,
1266+ number_of_values: Some ( 10000 ) ,
12721267 has_null: Some ( false ) ,
12731268 int_statistics: Some ( proto:: IntegerStatistics {
12741269 minimum: Some ( 5 ) ,
12751270 maximum: Some ( 15 ) ,
1276- sum: Some ( 10000 ) ,
1271+ sum: Some ( 100000 ) ,
12771272 } ) ,
12781273 ..Default :: default ( )
12791274 } ;
@@ -1310,12 +1305,12 @@ mod tests {
13101305 let entries = vec ! [ RowGroupEntry :: new(
13111306 Some ( {
13121307 let proto_stats = proto:: ColumnStatistics {
1313- number_of_values: Some ( 1000 ) ,
1308+ number_of_values: Some ( 10000 ) ,
13141309 has_null: Some ( false ) ,
13151310 int_statistics: Some ( proto:: IntegerStatistics {
13161311 minimum: Some ( 0 ) ,
13171312 maximum: Some ( 10 ) ,
1318- sum: Some ( 5000 ) ,
1313+ sum: Some ( 50000 ) ,
13191314 } ) ,
13201315 ..Default :: default ( )
13211316 } ;
0 commit comments