<s> '''<STR_LIT>''' <EOL> assert False , "<STR_LIT>" <EOL> import raco <EOL> from raco . convenience import executeMyriaQuery <EOL> from raco . op . algebra import LogicalAlgebra <EOL> from raco . backend . myriaX import MyriaConnection , MyriaAlgebra <EOL> connection = myriaX . MyriaConnection ( hostname = '<STR_LIT>' , port = <NUM_LIT> ) <EOL> from raco . inputlanguage import myriaL <EOL> processor = myriaL . MyrialInterpreter . StatementProcessor ( catalog ) <EOL> query = '''<STR_LIT>''' <EOL> logical_plan = processor . parse ( query ) <EOL> catalog = connection . catalog ( ) <EOL> optimized_logical = raco . optimize ( logical_plan <EOL> , target = LogicalAlgebra <EOL> , catalog = catalog <EOL> , rules = LogicalAlgebra . rules <EOL> , costfunction = LogicalAlgebra . costfunction <EOL> ) <EOL> physical_plan = raco . optimize ( optimized_local <EOL> , target = MyriaAlgebra <EOL> , catalog = catalog <EOL> , rules = MyriaAlgebra . rules <EOL> , costfunction = MyriaAlgebra . costfunction <EOL> ) <EOL> compiled = physical_plan . compile ( ) <EOL> queryid = connection . submit_query ( compiled ) <EOL> while True : <EOL> status = connection . status ( queryid ) <EOL> print status <EOL> if connection . ready ( status ) : <EOL> break <EOL> result = connection . fetch ( "<STR_LIT>" ) <EOL> connection = myriaX . MyriaConnection ( hostname = '<STR_LIT>' , port = <NUM_LIT> ) <EOL> query = '''<STR_LIT>''' <EOL> result = executeMyriaQuery ( connection , query ) </s>
