Buggy code:
public class TPCHJoinWorkload { private ConfUtils cfg ; private Schema schemaCustomer ; private Schema schemaLineitem ; private Schema schemaOrders ; private Schema schemaPart ; private Schema schemaSupplier ; private String stringCustomer ; private String stringLineitem ; private String stringOrders ; private String stringPart ; private String stringSupplier ; private int sizeCustomer ; private int sizeLineitem ; private int sizeOrders ; private int sizePart ; private int sizeSupplier ; private TableInfo tableLineitem ; private TableInfo tableCustomer ; private TableInfo tableOrders ; private TableInfo tableSupplier ; private TableInfo tablePart ; private String lineitem = "lineitem" ; private String orders = "orders" ; private String customer = "customer" ; private String supplier = "supplier" ; private String part = "part" ; private Predicate [ ] EmptyPredicates = new Predicate [ ] { } ; private static String [ ] mktSegmentVals = new String [ ] { "AUTOMOBILE" , "BUILDING" , "FURNITURE" , "HOUSEHOLD" , "MACHINERY" } ; private static String [ ] regionNameVals = new String [ ] { "AFRICA" , "AMERICA" , "ASIA" , "EUROPE" , "MIDDLE<seq2seq4repair_space>EAST" } ; private static String [ ] partTypeVals = new String [ ] { "BRASS" , "COPPER" , "NICKEL" , "STEEL" , "TIN" } ; private static String [ ] shipModeVals = new String [ ] { "AIR" , "FOB" , "MAIL" , "RAIL" , "REG<seq2seq4repair_space>AIR" , "SHIP" , "TRUCK" } ; private SparkJoinQuery sq ; private int method ; private int numQueries ; private Random rand ; public void setUp ( ) { } public void garbageCollect ( ) { } public void loadSettings ( String [ ] args ) { } public void cleanup ( String path ) { } public void postProcessing ( String path , String tableName , Schema schema ) { } public void tpch3 ( ) { } public void tpch5 ( ) { } public void tpch6 ( ) { int year_6 = 1993 + ( rand . nextInt ( 5 ) ) ; SimpleDate d6_1 = new SimpleDate ( year_6 , 1 , 1 ) ; SimpleDate d6_2 = new SimpleDate ( ( year_6 + 1 ) , 1 , 1 ) ; double discount = ( ( rand . nextDouble ( ) ) * 0.07 ) + 0.02 ; double quantity = ( rand . nextInt ( 2 ) ) + 24.0 ; Predicate p1_6 = new Predicate ( schemaLineitem . getAttributeId ( "l_shipdate" ) , TYPE . DATE , d6_1 , PREDTYPE . GEQ ) ; Predicate p2_6 = new Predicate ( schemaLineitem . getAttributeId ( "l_shipdate" ) , TYPE . DATE , d6_2 , PREDTYPE . LT ) ; Predicate p3_6 = new Predicate ( schemaLineitem . getAttributeId ( "l_discount" ) , TYPE . DOUBLE , ( discount - 0.01 ) , PREDTYPE . GT ) ; Predicate p4_6 = new Predicate ( schemaLineitem . getAttributeId ( "l_discount" ) , TYPE . DOUBLE , ( discount + 0.01 ) , PREDTYPE . LEQ ) ; Predicate p5_6 = new Predicate ( schemaLineitem . getAttributeId ( "l_quantity" ) , TYPE . DOUBLE , quantity , PREDTYPE . LEQ ) ; <START_BUG> JoinQuery q_l = new JoinQuery ( lineitem , 0 , new Predicate [ ] { p1_6 , p2_6 , p3_6 , p4_6 , p5_6 } ) ; <END_BUG> long start = System . currentTimeMillis ( ) ; JavaPairRDD < LongWritable , Text > rdd = sq . createScanRDD ( lineitem , q_l ) ; long result = rdd . count ( ) ; long end = System . currentTimeMillis ( ) ; System . out . println ( ( ( ( "RES:<seq2seq4repair_space>Time<seq2seq4repair_space>Taken:<seq2seq4repair_space>" + ( end - start ) ) + ";<seq2seq4repair_space>Result:<seq2seq4repair_space>" ) + result ) ) ; } public void tpch8 ( ) { } public void tpch10 ( ) { } public void tpch12 ( ) { } public void tpch14 ( ) { } public void tpch19 ( ) { } public void joinLineitemWithOrders ( ) { } public void joinLineitemWithPart ( ) { } public void runSwitchingWorkload ( ) { } public void runShiftingWorkload ( ) { } public void runUpfrontWorkload ( ) { } public void runBaseline ( ) { } public void runBufferSize ( ) { } public void runVaryingWindowWorkload ( ) { } public void runTPCH3 ( ) { } public void runTPCH5 ( ) { } public void runTPCH6 ( ) { } public static void main ( String [ ] args ) { } }

Fix:
JoinQuery q_l = new JoinQuery ( lineitem , schemaLineitem . getAttributeId ( "l_suppkey" ) , new Predicate [ ] { p1_6 , p2_6 , p3_6 , p4_6 , p5_6 } ) ;