def p_textfacet(p): """textfacet : catalogslash TEXTFACET '/' string """ p[0] = p[1].textfacet( ast.data.predicatecls('ciregexp')(ast.Name().with_suffix('value'), ast.Value(p[4])), ast.NameList([ ast.Name().with_suffix('schema'), ast.Name().with_suffix('table'), ast.Name().with_suffix('column') ]), ast.NameList())
def p_namelist2(p): """snamelist2 : sname ',' sname""" p[0] = ast.NameList([p[1], p[3]])
def p_snamelist1(p): """snamelist1 : sname """ p[0] = ast.NameList([p[1]])
def p_attrlist1(p): """attrlist1 : attritem""" p[0] = ast.NameList([p[1]])
def p_leafattrlist1(p): """leafattrlist1 : leafattritem""" p[0] = ast.NameList([p[1]])
def p_attributegroup_keysonly(p): """attributegroup : attributegroup_epath '/' groupkeys""" p[0] = p[1] p[0].set_projection(p[3], ast.NameList())