@@ -103,9 +103,6 @@ pub struct RunOpt {
103103 /// The maximum number of partitions per task.
104104 #[ structopt( long = "ppt" ) ]
105105 partitions_per_task : Option < usize > ,
106-
107- #[ structopt( long = "validate" ) ]
108- validate : bool ,
109106}
110107
111108#[ async_trait]
@@ -157,7 +154,7 @@ impl SessionBuilder for RunOpt {
157154
158155impl RunOpt {
159156 pub async fn run ( self ) -> Result < ( ) > {
160- let ( ctx, _guard) = start_localhost_context ( [ 40051 ] , self . clone ( ) ) . await ;
157+ let ( ctx, _guard) = start_localhost_context ( 1 , self . clone ( ) ) . await ;
161158 println ! ( "Running benchmarks with the following options: {self:?}" ) ;
162159 let query_range = match self . query {
163160 Some ( query_id) => query_id..=query_id,
@@ -225,42 +222,11 @@ impl RunOpt {
225222 "Query {query_id} iteration {i} took {ms:.1} ms and returned {row_count} rows"
226223 ) ;
227224
228- let valid = if self . validate {
229- let mut single_node_result = vec ! [ ] ;
230- for ( i, query) in sql. iter ( ) . enumerate ( ) {
231- if i == result_stmt {
232- single_node_result = self . execute_query ( & single_node_ctx, query) . await ?;
233- } else {
234- self . execute_query ( & single_node_ctx, query) . await ?;
235- }
236- }
237-
238- let res = pretty:: pretty_format_batches ( & result) ?. to_string ( ) ;
239- let single_node_res =
240- pretty:: pretty_format_batches ( & single_node_result) ?. to_string ( ) ;
241- res == single_node_res
242- } else {
243- false
244- } ;
245-
246- query_results. push ( QueryResult {
247- valid,
248- elapsed,
249- row_count,
250- } ) ;
225+ query_results. push ( QueryResult { elapsed, row_count } ) ;
251226 }
252227
253228 let avg = millis. iter ( ) . sum :: < f64 > ( ) / millis. len ( ) as f64 ;
254- let valid_str = if self . validate {
255- if query_results[ query_results. len ( ) - 1 ] . valid {
256- "valid"
257- } else {
258- "invalid"
259- }
260- } else {
261- ""
262- } ;
263- println ! ( "Query {query_id} avg time: {avg:.2} ms {valid_str}" ) ;
229+ println ! ( "Query {query_id} avg time: {avg:.2} ms" ) ;
264230
265231 // Print memory stats using mimalloc (only when compiled with --features mimalloc_extended)
266232 print_memory_stats ( ) ;
0 commit comments