Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Call NameLoad ListLoad TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad ListLoad TupleLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad ListLoad TupleLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad ListLoad TupleLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A Various tests of type safety. N/A unittest raco.fakedb FakeDatabase raco.scheme Scheme raco.myrial.myrial_test MyrialTestCase raco.expression TypeSafetyViolation collections Counter raco types TypeTests N/A MyrialTestCase N/A N/A schema N/A Scheme N/A N/A clong N/A types LONG_TYPE N/A cint N/A types INT_TYPE N/A cstring N/A types STRING_TYPE N/A cfloat N/A types DOUBLE_TYPE N/A cbool N/A types BOOLEAN_TYPE N/A cdate N/A types DATETIME_TYPE setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TypeTests self setUp N/A N/A N/A N/A self db ingest public:adhoc:mytable N/A Counter N/A TypeTests schema N/A test_noop N/A N/A self N/A N/A N/A query 
        X = SCAN(public:adhoc:mytable);
        STORE(X, OUTPUT);
         N/A N/A N/A self check_scheme query N/A TypeTests schema N/A test_invalid_eq1 N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT clong=cstring];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_eq2 N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT cfloat=cdate];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_ge N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT cfloat>=cstring];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_lt N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT cfloat<cdate];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_and N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT cfloat AND cdate];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_or_both_bad N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT cfloat OR cdate];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_or_right_bad N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT cbool OR cdate];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_or_left_bad N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT cfloat OR cbool];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_not N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT not cdate];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_plus N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT cdate + cint];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_times N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT cdate * cstring];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_divide N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT cdate / clong];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_divide N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT cfloat / cfloat AS y];
        STORE(X, OUTPUT);
         N/A schema N/A Scheme N/A N/A y N/A types DOUBLE_TYPE N/A N/A N/A self check_scheme query schema N/A test_idivide N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT cfloat // cint AS y];
        STORE(X, OUTPUT);
         N/A schema N/A Scheme N/A N/A y N/A types LONG_TYPE N/A N/A N/A self check_scheme query schema N/A test_mod N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT clong % cint AS y];
        STORE(X, OUTPUT);
         N/A schema N/A Scheme N/A N/A y N/A types LONG_TYPE N/A N/A N/A self check_scheme query schema N/A test_invalid_mod N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT cdate % cint];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_neg N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT -cstring];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_case1 N/A N/A self N/A N/A N/A query 
        t = SCAN(public:adhoc:mytable);
        rich = [FROM t EMIT
                CASE WHEN clong <= 5000 THEN "poor"
                     WHEN clong <= 25000 THEN 5.5
                     ELSE "rich" END];
        STORE(rich, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_case2 N/A N/A self N/A N/A N/A query 
        t = SCAN(public:adhoc:mytable);
        rich = [FROM t EMIT
                CASE WHEN clong <= 5000 THEN "poor"
                     WHEN clong <= 25000 THEN "middle class"
                     ELSE 1922 END];
        STORE(rich, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_cos N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS Y
             WHERE cos(cbool) > 1.0 EMIT *];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_floor N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS Y
             WHERE floor(cbool) > 1.0 EMIT *];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_ceil N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS Y
             WHERE ceil(clong) == "Hello world" EMIT *];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_tan N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS Y
             WHERE tan(cstring) > 1.0 EMIT *];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_pow N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT POW(cfloat, cstring)];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_substr N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT SUBSTR(0, 3, cfloat)];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_len N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT LEN(cfloat)];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_greater N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT GREATER(cbool, 3)];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_lesser N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT LESSER(3.0, cdate)];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_sum_compare N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT SUM(clong) > "foo"];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_max_compare N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT MAX(cstring) == 7];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_avg N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT AVG(cbool)];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A test_invalid_stdev N/A N/A self N/A N/A N/A query 
        X = [FROM SCAN(public:adhoc:mytable) AS X EMIT STDEV(cdate)];
        STORE(X, OUTPUT);
         N/A N/A N/A self assertRaises TypeSafetyViolation N/A N/A N/A N/A self check_scheme query None N/A N/A