#NEWLINE# @ pytest . mark . xfail ( reason = "Optimize doesn't create multi-table-broadcasts" ) #NEWLINE# def test_multi_dataset_broadcast_with_Record_types( ) : #NEWLINE# #INDENT# x = symbol ( 'x' , '3 * {p: int, q: int}' ) #NEWLINE# y = symbol ( 'y' , '3 * int' ) #NEWLINE# a = [ ( 1 , 1 ) , ( 2 , 2 ) , ( 3 , 3 ) ] #NEWLINE# b = [ 10 , 20 , 30 ] #NEWLINE# assert ( list ( compute ( ( ( y . p + x . q ) + y ) , { #NEWLINE# #INDENT# x : iter ( a ) , #NEWLINE# y : iter ( b ) , #NEWLINE# #UNINDENT# } ) ) == [ 12 , 24 , 36 ] )