Changeset 64 for hw

Show
Ignore:
Timestamp:
10/15/07 13:49:02 (5 years ago)
Author:
cs186
Message:

make sure to turn off bitmap scans too!

Location:
hw/hw2/MyStuff
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • hw/hw2/MyStuff/runtests.sh

    r63 r64  
    1212 
    1313# check output 
    14 if ( `diff runtests.out/1 runtests.out/2` != '' ) echo 'OnePageNN failure' 
    15 if ( `diff runtests.out/3 runtests.out/4` != '' ) echo 'BasicNN failure' 
    16 if ( `diff runtests.out/5 runtests.out/6` != '' ) echo 'SelectionNN failure' 
    17 if ( `cat runtests.out/10` != '') echo 'Rectangle failure: mismatch on zeros' 
    18 if ( `diff runtests.out/7 runtests.out/8` != '' ) echo 'Rectangle failure' 
     14if ( "`gdiff -q runtests.out/1 runtests.out/2`" != "" ) echo 'OnePageNN failure' 
     15if ( "`gdiff -q runtests.out/3 runtests.out/4`" != "" ) echo 'BasicNN failure' 
     16if ( "`gdiff -q runtests.out/5 runtests.out/6`" != "" ) echo 'SelectionNN failure' 
     17if ( "`cat runtests.out/10`" != "") echo 'Rectangle failure: mismatch on zeros' 
     18if ( "`gdiff -q runtests.out/7 runtests.out/8`" != "" ) echo 'Rectangle failure' 
  • hw/hw2/MyStuff/runtests_setup.sql

    r63 r64  
    77drop table if exists testscan25; 
    88create table testgist(id integer, the_box box); 
    9 copy testgist from '/Users/joeh/devel/hw2/MyStuff/randomboxes' delimiter ';' ; 
     9copy testgist from '/home/cc/cs186/fa07/class/cs186-ee/Hw2/MyStuff/randomboxes' delimiter ';' ; 
    1010create index testgistix on testgist using gist (the_box box_ops); 
    1111 
    1212create table testscan(id integer, the_box box); 
    13 copy testscan from '/Users/joeh/devel/hw2/MyStuff/randomboxes' delimiter ';' ; 
     13copy testscan from '/home/cc/cs186/fa07/class/cs186-ee/Hw2/MyStuff/randomboxes' delimiter ';' ; 
    1414 
    1515create table testgist25 (id integer, the_box box); 
    16 copy testgist25 from '/Users/joeh/devel/hw2/MyStuff/randomboxes25' delimiter ';' ; 
     16copy testgist25 from '/home/cc/cs186/fa07/class/cs186-ee/Hw2/MyStuff/randomboxes25' delimiter ';' ; 
    1717create index testgist25ix on testgist25 using gist (the_box box_ops); 
    1818 
    1919create table testscan25(id integer, the_box box); 
    20 copy testscan25 from '/Users/joeh/devel/hw2/MyStuff/randomboxes25' delimiter ';' ; 
    21  
     20copy testscan25 from '/home/cc/cs186/fa07/class/cs186-ee/Hw2/MyStuff/randomboxes25' delimiter ';' ; 
    2221 
    2322-- 
     
    3029-- SeqScan:  
    3130set enable_seqscan to off; 
     31set enable_bitmapscan to off; 
     32 
    3233\o runtests.out/1 
    3334select id, box_mindistance(the_box, '(0.5,0.5,0.5,0.5)') as dist from testscan25 where the_box ~~ '(0.5,0.5,0.5,0.5)' and box_mindistance(the_box, '(0.5,0.5,0.5,0.5)') > 0 order by dist;