@@ -306,6 +306,13 @@ public class GremlinQueryComposerTest {
verify("Table has name and Table has owner and name = 'sales_fact'","g.V().has('__typeName', 'Table').and(__.has('Table.name'),__.has('Table.owner'),__.has('Table.name', eq('sales_fact'))).limit(local, 25).limit(25).toList()");
}
@Test
publicvoidnumericAttributes(){
verify("Table where partitionSize = 2048","g.V().has('__typeName', 'Table').has('Table.partitionSize', eq(2048)).limit(local, 25).limit(25).toList()");
verify("Table where partitionSize = 2048 or partitionSize = 10","g.V().has('__typeName', 'Table').or(__.has('Table.partitionSize', eq(2048)),__.has('Table.partitionSize', eq(10))).limit(local, 25).limit(25).toList()");
}
@Test
publicvoidsystemAttributes(){
verify("Table has __state","g.V().has('__typeName', 'Table').has('__state').limit(local, 25).limit(25).toList()");
...
...
@@ -437,7 +444,8 @@ public class GremlinQueryComposerTest {
attributeName.equals("createTime")||
attributeName.equals("clusterName")||
attributeName.equals("__guid")||
attributeName.equals("__state");
attributeName.equals("__state")||
attributeName.equals("partitionSize");
}
@Override
...
...
@@ -461,6 +469,7 @@ public class GremlinQueryComposerTest {