Skip to content

Commit

Permalink
Add another test with reverse step label/label property arrangement.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Aug 23, 2024
1 parent 535f9b4 commit 8a3f8b8
Show file tree
Hide file tree
Showing 30 changed files with 791 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
g.V().hasLabel('Person').as('_a').V().hasLabel('Person').values('Age').as('_b').where('_b',lt('_a')).by().by('Age')
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
StepInstructions: [
{
OperatorName: V
},
{
OperatorName: hasLabel,
Arguments: [
Person
]
},
{
OperatorName: as,
Arguments: [
_a
]
},
{
OperatorName: V
},
{
OperatorName: hasLabel,
Arguments: [
Person
]
},
{
OperatorName: values,
Arguments: [
Age
]
},
{
OperatorName: as,
Arguments: [
_b
]
},
{
OperatorName: where,
Arguments: [
_b,
{
OperatorName: lt,
Value: _a
}
]
},
{
OperatorName: by
},
{
OperatorName: by,
Arguments: [
Age
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
StepInstructions: [
{
OperatorName: V
},
{
OperatorName: hasLabel,
Arguments: [
Person
]
},
{
OperatorName: as,
Arguments: [
_a
]
},
{
OperatorName: V
},
{
OperatorName: hasLabel,
Arguments: [
Person
]
},
{
OperatorName: values,
Arguments: [
Age
]
},
{
OperatorName: as,
Arguments: [
_b
]
},
{
OperatorName: where,
Arguments: [
_b,
{
OperatorName: lt,
Value: _a
}
]
},
{
OperatorName: by
},
{
OperatorName: by,
Arguments: [
Age
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!application/vnd.gremlin-v2.0+json{"requestId":"12345678-9012-3456-7890-123456789012","op":"bytecode","processor":"traversal","args":{"gremlin":{"@type":"g:Bytecode","@value":{"step":[["V"],["hasLabel","Person"],["as","_a"],["V"],["hasLabel","Person"],["values","Age"],["as","_b"],["where","_b",{"@type":"g:P","@value":{"predicate":"lt","value":"_a"}}],["by"],["by","Age"]]}},"aliases":{"g":"g"}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!application/vnd.gremlin-v3.0+json{"requestId":"12345678-9012-3456-7890-123456789012","op":"bytecode","processor":"traversal","args":{"gremlin":{"@type":"g:Bytecode","@value":{"step":[["V"],["hasLabel","Person"],["as","_a"],["V"],["hasLabel","Person"],["values","Age"],["as","_b"],["where","_b",{"@type":"g:P","@value":{"predicate":"lt","value":"_a"}}],["by"],["by","Age"]]}},"aliases":{"g":"g"}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
Script: g.V().hasLabel(_a).as(_b).V().hasLabel(_a).values(_c).as(_d).where(_d,lt(_b)).by().by(_c),
Bindings: {
_a: Person,
_b: _a,
_c: Age,
_d: _b
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
RequestId: 12345678-9012-3456-7890-123456789012,
Operation: bytecode,
Processor: traversal,
Arguments: {
aliases: {
g: g
},
gremlin: {
StepInstructions: [
{
OperatorName: V
},
{
OperatorName: hasLabel,
Arguments: [
Person
]
},
{
OperatorName: as,
Arguments: [
_a
]
},
{
OperatorName: V
},
{
OperatorName: hasLabel,
Arguments: [
Person
]
},
{
OperatorName: values,
Arguments: [
Age
]
},
{
OperatorName: as,
Arguments: [
_b
]
},
{
OperatorName: where,
Arguments: [
_b,
{
OperatorName: lt,
Value: _a
}
]
},
{
OperatorName: by
},
{
OperatorName: by,
Arguments: [
Age
]
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
RequestId: 12345678-9012-3456-7890-123456789012,
Operation: eval,
Processor: ,
Arguments: {
aliases: {
g: g
},
bindings: {
_a: Person,
_b: _a,
_c: Age,
_d: _b
},
gremlin: g.V().hasLabel(_a).as(_b).V().hasLabel(_a).values(_c).as(_d).where(_d,lt(_b)).by().by(_c)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
g.V().hasLabel('Person').as('_a').V().hasLabel('Person').values('Age').as('_b').where('_b',lt('_a')).by().by('Age')
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
RequestId: 12345678-9012-3456-7890-123456789012,
Operation: eval,
Processor: ,
Arguments: {
aliases: {
g: g
},
bindings: {
_a: Person,
_b: _a,
_c: Age,
_d: _b
},
gremlin: g.V().hasLabel(_a).as(_b).V().hasLabel(_a).values(_c).as(_d).where(_d,lt(_b)).by().by(_c)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
Script: g.V().hasLabel(_a).as(_b).V().hasLabel(_a).values(_c).as(_d).where(_d,lt(_b)).by().by(_c),
Bindings: {
_a: Person,
_b: _a,
_c: Age,
_d: _b
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
g.V().hasLabel('Person').as('_a').V().hasLabel('Person').values('Age').as('_b').where('_b',lt('_a')).by().by('Age')
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
RequestId: 12345678-9012-3456-7890-123456789012,
Operation: bytecode,
Processor: traversal,
Arguments: {
aliases: {
g: g
},
gremlin: {
StepInstructions: [
{
OperatorName: V
},
{
OperatorName: hasLabel,
Arguments: [
Person
]
},
{
OperatorName: as,
Arguments: [
_a
]
},
{
OperatorName: V
},
{
OperatorName: hasLabel,
Arguments: [
Person
]
},
{
OperatorName: values,
Arguments: [
Age
]
},
{
OperatorName: as,
Arguments: [
_b
]
},
{
OperatorName: where,
Arguments: [
_b,
{
OperatorName: lt,
Value: _a
}
]
},
{
OperatorName: by
},
{
OperatorName: by,
Arguments: [
Age
]
}
]
}
}
}
Loading

0 comments on commit 8a3f8b8

Please sign in to comment.