Skip to content

Commit e8e31d9

Browse files
committed
Example of not working
1 parent a9aca3a commit e8e31d9

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

partiql-eval/src/test/kotlin/org/partiql/eval/internal/PartiQLEngineDefaultTest.kt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,10 +1299,12 @@ class PartiQLEngineDefaultTest {
12991299
'id':'5',
13001300
'books':[
13011301
{
1302+
'authors': [ { 'name': 'John' }, { 'name': 'Michael' } ] ,
13021303
'title':'A',
13031304
'price':5.0
13041305
},
13051306
{
1307+
'authors': [ { 'name': 'John' }, { 'name': 'Michael' } ] ,
13061308
'title':'B',
13071309
'price':2.0
13081310
}
@@ -1312,20 +1314,28 @@ class PartiQLEngineDefaultTest {
13121314
'id':'6',
13131315
'books':[
13141316
{
1317+
'authors': [ { 'name': 'John' }, { 'name': 'Michael' } ] ,
13151318
'title':'A',
13161319
'price':5.0
13171320
},
13181321
{
1322+
'authors': [ { 'name': 'John' }, { 'name': 'Michael' } ] ,
13191323
'title':'E',
13201324
'price':2.0
13211325
}
13221326
]
13231327
},
13241328
{
13251329
'id':7,
1326-
'books':[]
1330+
'books':[
1331+
{
1332+
'authors': [ { 'name': 'John' }, { 'name': 'Michael' } ] ,
1333+
'title':'E',
1334+
'price':2.0
1335+
}
1336+
]
13271337
}
1328-
][*].books[*].title
1338+
][*].books[*].authors[*].name
13291339
""".trimIndent(),
13301340
expected = bagValue(listOf(stringValue("A"), stringValue("B"), stringValue("A"), stringValue("E")))
13311341
).assert()

0 commit comments

Comments
 (0)