(tb, pr_sc, pr_sa, )
return check
Check whether pr_sc, pr_sa are allowed pairs or not.
    agg_ops = ['', 'MAX', 'MIN', 'COUNT', 'SUM', 'AVG']
Check whether pr_sc, pr_sa are allowed pairs or not.
    agg_ops = ['', 'MAX', 'MIN', 'COUNT', 'SUM', 'AVG']
Check whether pr_sc pr_sa are allowed pairs or not . agg_ops = [ MAX MIN COUNT SUM AVG ]
def check_sc_sa_pairs(tb, pr_sc, pr_sa, ):
    """
    Check whether pr_sc, pr_sa are allowed pairs or not.
    agg_ops = ['', 'MAX', 'MIN', 'COUNT', 'SUM', 'AVG']

    """
    bS = len(pr_sc)
    check = [False] * bS
    for b, pr_sc1 in enumerate(pr_sc):
        pr_sa1 = pr_sa[b]
        hd_types1 = tb[b]['types']
        hd_types11 = hd_types1[pr_sc1]
        if hd_types11 == 'text':
            if pr_sa1 == 0 or pr_sa1 == 3: # ''
                check[b] = True
            else:
                check[b] = False

        elif hd_types11 == 'real':
            check[b] = True
        else:
            raise Exception("New TYPE!!")

    return check
def check_sc_sa_pairs ( tb , pr_sc , pr_sa , ) : bS = len ( pr_sc ) check = [ False ] * bS for b , pr_sc1 in enumerate ( pr_sc ) : pr_sa1 = pr_sa [ b ] hd_types1 = tb [ b ] [ 'types' ] hd_types11 = hd_types1 [ pr_sc1 ] if hd_types11 == 'text' : if pr_sa1 == 0 or pr_sa1 == 3 : # '' check [ b ] = True else : check [ b ] = False elif hd_types11 == 'real' : check [ b ] = True else : raise Exception ( "New TYPE!!" ) return check