File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
metadata/src/test/java/com/redhat/lightblue/metadata Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,19 @@ public void query_b_in_A() throws Exception {
120
120
Assert .assertNull (a .getChildMetadata (new Path ("obj1.c" )));
121
121
}
122
122
123
+ @ Test
124
+ public void query_b_project_c () throws Exception {
125
+ EntityMetadata md = getMd ("composite/A.json" );
126
+ GMD gmd = new GMD ();
127
+ gmd .add (query ("{'field':'b.*.field1','op':'=','rvalue':'x'}" ));
128
+ gmd .add (projection ("[{'field':'*'},{'field':'obj1.c'}]" ));
129
+ CompositeMetadata a = CompositeMetadata .buildCompositeMetadata (md , gmd );
130
+
131
+ System .out .println (a .toTreeString ());
132
+ Assert .assertNotNull (a .getChildMetadata (new Path ("b" )));
133
+ Assert .assertNotNull (a .getChildMetadata (new Path ("obj1.c" )));
134
+ }
135
+
123
136
@ Test
124
137
public void query_b_and_c_in_A () throws Exception {
125
138
EntityMetadata md = getMd ("composite/A.json" );
You can’t perform that action at this time.
0 commit comments