jayzhan211 opened a new issue, #15934:
URL: https://github.com/apache/datafusion/issues/15934

   ### Is your feature request related to a problem or challenge?
   
   Follow up issue from https://github.com/apache/datafusion/issues/12311
   
   We have clickbench.slt that run the queries against 10 rows data for 
clickbench 
   
   It would be nice if we have similar for imdb benchmark
   
   ### Describe the solution you'd like
   
   The straightforward way is to copy & paste them all, but there are lots of 
file. It is better to read them by script and add query and add testID on top 
of them like and run with complete.
   
   ```
   # 1a
   query
   SELECT MIN(mc.note) AS production_note, MIN(t.title) AS movie_title, 
MIN(t.production_year) AS movie_year FROM company_type AS ct, info_type AS it, 
movie_companies AS mc, movie_info_idx AS mi_idx, title AS t WHERE ct.kind = 
'production companies' AND it.info = 'top 250 rank' AND mc.note  not like '%(as 
Metro-Goldwyn-Mayer Pictures)%' and (mc.note like '%(co-production)%' or 
mc.note like '%(presents)%') AND ct.id = mc.company_type_id AND t.id = 
mc.movie_id AND t.id = mi_idx.movie_id AND mc.movie_id = mi_idx.movie_id AND 
it.id = mi_idx.info_type_id;
   
   # 1b
   query
   SELECT MIN(mc.note) AS production_note, MIN(t.title) AS movie_title, 
MIN(t.production_year) AS movie_year FROM company_type AS ct, info_type AS it, 
movie_companies AS mc, movie_info_idx AS mi_idx, title AS t WHERE ct.kind = 
'production companies' AND it.info = 'bottom 10 rank' AND mc.note  not like 
'%(as Metro-Goldwyn-Mayer Pictures)%' AND t.production_year between 2005 and 
2010 AND ct.id = mc.company_type_id AND t.id = mc.movie_id AND t.id = 
mi_idx.movie_id AND mc.movie_id = mi_idx.movie_id AND it.id = 
mi_idx.info_type_id;
   ```
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to