You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Suma Shivaprasad (JIRA)" <ji...@apache.org> on 2015/09/15 06:43:45 UTC
[jira] [Updated] (ATLAS-166) DSL - Fix select with joins
[ https://issues.apache.org/jira/browse/ATLAS-166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suma Shivaprasad updated ATLAS-166:
-----------------------------------
Description:
"Table as t, sd, Column as c where t.name=\"sales_fact\" select c.name as colName, c.dataType as colType"
is translated to
{noformat}
L:{_var_0 = [] as Set;g.V().has("__typeName", "Table").fill(_var_0);g.V().has("__superTypeNames", "Table").fill(_var_0);_var_0._().as("t").out("__Table.sd").in("__Column.sd").as("c").and(_().back("t").has("Table.name", T.eq, "sales_fact")).as("_src1").select(["c"]){[it."Column.name",it."Column.dataType"]}.toList()}
{noformat}
Even after fix for ATLAS-144 which fixes the back reference , select (["c"]) doesnt work and throws an error
{noformat}
L:{_var_0 = [] as Set;g.V().has("__typeName", "Table").fill(_var_0);g.V().has("__superTypeNames", "Table").fill(_var_0);_var_0._().as("t").out("__Table.sd").in("__Column.sd").as("c").back("t")
and(_().has("Table.name", T.eq, "sales_fact")).as("_src1").select(["c"]){[it."Column.name",it."Column.dataType"]}.toList()}
{noformat}
was:
"Table as t, sd, Column as c where t.name=\"sales_fact\" select c.name as colName, c.dataType as colType"
is translated to
{noformat}
L:{_var_0 = [] as Set;g.V().has("__typeName", "Table").fill(_var_0);g.V().has("__superTypeNames", "Table").fill(_var_0);_var_0._().as("t").out("__Table.sd").in("__Column.sd").as("c").and(_().back("t").has("Table.name", T.eq, "sales_fact")).as("_src1").select(["c"]){[it."Column.name",it."Column.dataType"]}.toList()}
{noformat}
Even after fix for ATLAS-144,
{noformat}
L:{_var_0 = [] as Set;g.V().has("__typeName", "Table").fill(_var_0);g.V().has("__superTypeNames", "Table").fill(_var_0);_var_0._().as("t").out("__Table.sd").in("__Column.sd").as("c").back("t")
and(_().has("Table.name", T.eq, "sales_fact")).as("_src1").select(["c"]){[it."Column.name",it."Column.dataType"]}.toList()}
{noformat}
> DSL - Fix select with joins
> ---------------------------
>
> Key: ATLAS-166
> URL: https://issues.apache.org/jira/browse/ATLAS-166
> Project: Atlas
> Issue Type: Bug
> Reporter: Suma Shivaprasad
>
> "Table as t, sd, Column as c where t.name=\"sales_fact\" select c.name as colName, c.dataType as colType"
> is translated to
> {noformat}
> L:{_var_0 = [] as Set;g.V().has("__typeName", "Table").fill(_var_0);g.V().has("__superTypeNames", "Table").fill(_var_0);_var_0._().as("t").out("__Table.sd").in("__Column.sd").as("c").and(_().back("t").has("Table.name", T.eq, "sales_fact")).as("_src1").select(["c"]){[it."Column.name",it."Column.dataType"]}.toList()}
> {noformat}
> Even after fix for ATLAS-144 which fixes the back reference , select (["c"]) doesnt work and throws an error
> {noformat}
> L:{_var_0 = [] as Set;g.V().has("__typeName", "Table").fill(_var_0);g.V().has("__superTypeNames", "Table").fill(_var_0);_var_0._().as("t").out("__Table.sd").in("__Column.sd").as("c").back("t")
> and(_().has("Table.name", T.eq, "sales_fact")).as("_src1").select(["c"]){[it."Column.name",it."Column.dataType"]}.toList()}
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)