(sql_i)
return g_sc, g_sa, g_wn, g_wc, g_wo, g_wv
for backward compatibility, separated with get_g
for backward compatibility, separated with get_g
for backward compatibility separated with get_g
def get_g(sql_i):
    """ for backward compatibility, separated with get_g"""
    g_sc = []
    g_sa = []
    g_wn = []
    g_wc = []
    g_wo = []
    g_wv = []
    for b, psql_i1 in enumerate(sql_i):
        g_sc.append( psql_i1["sel"] )
        g_sa.append( psql_i1["agg"])

        conds = psql_i1['conds']
        if not psql_i1["agg"] < 0:
            g_wn.append( len( conds ) )
            g_wc.append( get_wc1(conds) )
            g_wo.append( get_wo1(conds) )
            g_wv.append( get_wv1(conds) )
        else:
            raise EnvironmentError
    return g_sc, g_sa, g_wn, g_wc, g_wo, g_wv
def get_g ( sql_i ) : g_sc = [ ] g_sa = [ ] g_wn = [ ] g_wc = [ ] g_wo = [ ] g_wv = [ ] for b , psql_i1 in enumerate ( sql_i ) : g_sc . append ( psql_i1 [ "sel" ] ) g_sa . append ( psql_i1 [ "agg" ] ) conds = psql_i1 [ 'conds' ] if not psql_i1 [ "agg" ] < 0 : g_wn . append ( len ( conds ) ) g_wc . append ( get_wc1 ( conds ) ) g_wo . append ( get_wo1 ( conds ) ) g_wv . append ( get_wv1 ( conds ) ) else : raise EnvironmentError return g_sc , g_sa , g_wn , g_wc , g_wo , g_wv