@@ -130,14 +130,14 @@ order by sum_sales - avg_monthly_sales, s_store_name
130130
131131 let result = ctx. sql ( query) . await ?. collect ( ) . await ?;
132132 let expected = [
133- "+-------------+-----------+----------------+----------------+--------+-------+--------------------+-----------+---------+---------+" ,
134- "| i_category | i_brand | s_store_name | s_company_name | d_year | d_moy | avg_monthly_sales | sum_sales | psum | nsum |" ,
135- "+-------------+-----------+----------------+----------------+--------+-------+--------------------+-----------+---------+---------+" ,
136- "| Electronics | TechBrand | Downtown Store | Retail Corp | 1999 | 4 | 1499.9850000000001 | 999.99 | 999.99 | 999.99 |" ,
137- "| Electronics | TechBrand | Downtown Store | Retail Corp | 1999 | 3 | 1499.9850000000001 | 999.99 | 1999.98 | 999.99 |" ,
138- "| Electronics | TechBrand | Downtown Store | Retail Corp | 1999 | 1 | 1499.9850000000001 | 1999.98 | 1999.98 | 1999.98 |" ,
139- "| Electronics | TechBrand | Downtown Store | Retail Corp | 1999 | 2 | 1499.9850000000001 | 1999.98 | 1999.98 | 999.99 |" ,
140- "+-------------+-----------+----------------+----------------+--------+-------+--------------------+-----------+---------+---------+" ,
133+ "+-------------+-----------+----------------+----------------+--------+-------+--------------------+-----------+---------+---------+" ,
134+ "| i_category | i_brand | s_store_name | s_company_name | d_year | d_moy | avg_monthly_sales | sum_sales | psum | nsum |" ,
135+ "+-------------+-----------+----------------+----------------+--------+-------+--------------------+-----------+---------+---------+" ,
136+ "| Electronics | TechBrand | Downtown Store | Retail Corp | 1999 | 4 | 1499.9850000000001 | 999.99 | 999.99 | 999.99 |" ,
137+ "| Electronics | TechBrand | Downtown Store | Retail Corp | 1999 | 3 | 1499.9850000000001 | 999.99 | 1999.98 | 999.99 |" ,
138+ "| Electronics | TechBrand | Downtown Store | Retail Corp | 1999 | 1 | 1499.9850000000001 | 1999.98 | 1999.98 | 1999.98 |" ,
139+ "| Electronics | TechBrand | Downtown Store | Retail Corp | 1999 | 2 | 1499.9850000000001 | 1999.98 | 1999.98 | 999.99 |" ,
140+ "+-------------+-----------+----------------+----------------+--------+-------+--------------------+-----------+---------+---------+" ,
141141 ] ;
142142
143143 assert_batches_eq ! ( expected, & result) ;
0 commit comments