File tree 1 file changed +3
-1
lines changed
datafusion-examples/examples 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -139,17 +139,19 @@ async fn main() -> Result<()> {
139
139
. show ( )
140
140
. await ?;
141
141
println ! ( "Files pruned: {}\n " , provider. index( ) . last_num_pruned( ) ) ;
142
+ // the underlying parquet reader reads ranges from all three files
142
143
143
144
// Run a query that uses the index to prune files.
144
145
//
145
146
// Using the predicate "value = 150", the IndexTable can skip reading file 1
146
- // (max value 100 ) and file 3 (min value of 200 )
147
+ // (max value 1000 ) and file 3 (min value of 2000 )
147
148
println ! ( "** Select data, predicate `value = 1500`" ) ;
148
149
ctx. sql ( "SELECT file_name, value FROM index_table WHERE value = 1500" )
149
150
. await ?
150
151
. show ( )
151
152
. await ?;
152
153
println ! ( "Files pruned: {}\n " , provider. index( ) . last_num_pruned( ) ) ;
154
+ // TODO why are there two calls to read bytes from the file?
153
155
154
156
// Now, use a predicate on both the value and tag columns. The tag column
155
157
// is stored in multiple pages and thus we can prune entire pages based on
You can’t perform that action at this time.
0 commit comments