-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mockdb to use partiql value schema (#1229)
Co-authored-by: John Ed Quinn <[email protected]>
- Loading branch information
1 parent
882667e
commit 8ca2709
Showing
43 changed files
with
836 additions
and
646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
193 changes: 155 additions & 38 deletions
193
...-lang/src/test/kotlin/org/partiql/lang/planner/transforms/PartiQLSchemaInferencerTests.kt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
type: "bag", | ||
items: { | ||
type: "struct", | ||
constraints: [ closed, unique, ordered ], | ||
fields: [ | ||
{ | ||
name: "identifier", | ||
type: "int", | ||
} | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
type: "bag", | ||
items: { | ||
type: "struct", | ||
constraints: [ closed, unique, ordered ], | ||
fields: [ | ||
{ | ||
name: "identifier", | ||
type: "string", | ||
} | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
type: "bag", | ||
items: { | ||
type: "struct", | ||
constraints: [ closed, unique, ordered ], | ||
fields: [ | ||
{ | ||
name: "id", | ||
type: "int", | ||
}, | ||
{ | ||
name: "breed", | ||
type: "string", | ||
} | ||
] | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
partiql-lang/src/test/resources/catalogs/aws/ddb/pets.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
type: "struct", | ||
constraints: [ closed, unique, ordered ], | ||
fields: [ | ||
{ | ||
name: "b", | ||
type: { | ||
type: "struct", | ||
constraints: [ closed, unique, ordered ], | ||
fields: [ | ||
{ | ||
name: "b", | ||
type: "int", | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
name: "c", | ||
type: "int", | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"int" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
type: "struct", | ||
constraints: [ ordered ], | ||
fields: [ | ||
{ | ||
name: "e", | ||
type: "int", | ||
}, | ||
{ | ||
name: "e", | ||
type: { | ||
type: "struct", | ||
fields: [ | ||
{ | ||
name: "f", | ||
type: "int", | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"decimal" |
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
partiql-lang/src/test/resources/catalogs/db/markets/order_info.ion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
name: "order_info", | ||
constraints: [ closed, unique, ordered ], | ||
type: "struct", | ||
fields: [ | ||
{ | ||
name: "customer_id", | ||
type: "int", | ||
}, | ||
{ | ||
name: "marketplace_id", | ||
type: "int", | ||
}, | ||
{ | ||
name: "ship_option", | ||
type: "string", | ||
} | ||
] | ||
} |
21 changes: 0 additions & 21 deletions
21
partiql-lang/src/test/resources/catalogs/db/markets/order_info.json
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
partiql-lang/src/test/resources/catalogs/db/markets/orders.ion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
type: "bag", | ||
items: { | ||
type: "struct", | ||
constraints: [ closed, unique, ordered ], | ||
fields: [ | ||
{ | ||
name: "customer_id", | ||
type: "int", | ||
}, | ||
{ | ||
name: "marketplace_id", | ||
type: "int", | ||
}, | ||
{ | ||
name: "ship_option", | ||
type: "string", | ||
} | ||
] | ||
} | ||
} |
21 changes: 0 additions & 21 deletions
21
partiql-lang/src/test/resources/catalogs/db/markets/orders.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
8ca2709
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JMH Benchmark
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.compileCrossJoinAggFuncGroupingWithInterruptible
390.55808482872663
us/op487.62867084721773
us/op0.80
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.compileCrossJoinAggFuncGroupingWithoutInterruptible
390.66488410641176
us/op453.2607954195452
us/op0.86
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.compileCrossJoinAggFuncWithInterruptible
353.5289485858306
us/op386.0249313377153
us/op0.92
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.compileCrossJoinAggFuncWithoutInterruptible
343.86389069451513
us/op397.0928153974564
us/op0.87
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.compileCrossJoinWithInterruptible
245.87116260489148
us/op304.5899668547764
us/op0.81
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.compileCrossJoinWithoutInterruptible
250.47956005367146
us/op285.20533620624684
us/op0.88
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.evalCrossJoinAggWithInterruptible
8568283.782650001
us/op8690361.57635
us/op0.99
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.evalCrossJoinAggWithoutInterruptible
8460682.167600002
us/op9164073.154099999
us/op0.92
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.evalCrossJoinWithInterruptible
61.03900548459173
us/op73.98383064850148
us/op0.83
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.evalCrossJoinWithoutInterruptible
65.23384731591635
us/op76.96776227095913
us/op0.85
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.iterCrossJoinAggWithInterruptible
8604439.69875
us/op8746174.86115
us/op0.98
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.iterCrossJoinAggWithoutInterruptible
8653789.38215
us/op8912622.27765
us/op0.97
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.iterCrossJoinWithInterruptible
141997.61233571428
us/op156379.27264285716
us/op0.91
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.iterCrossJoinWithoutInterruptible
140471.89018392854
us/op156542.85562857141
us/op0.90
org.partiql.jmh.benchmarks.MultipleLikeBenchmark.testPartiQLCompiler15
119.03577659948394
us/op141.07266849543845
us/op0.84
org.partiql.jmh.benchmarks.MultipleLikeBenchmark.testPartiQLCompiler30
235.97178902182594
us/op273.23807334610615
us/op0.86
org.partiql.jmh.benchmarks.MultipleLikeBenchmark.testPartiQLEvaluator15
555177.043375
us/op673743.6562749998
us/op0.82
org.partiql.jmh.benchmarks.MultipleLikeBenchmark.testPartiQLEvaluator30
1101632.8595999999
us/op1336745.7940999998
us/op0.82
org.partiql.jmh.benchmarks.MultipleLikeBenchmark.testPartiQLEvaluator30WithData10
9122005.989049999
us/op12847542.4778
us/op0.71
org.partiql.jmh.benchmarks.MultipleLikeBenchmark.testPartiQLParser15
192.4246908543341
us/op225.3487237310525
us/op0.85
org.partiql.jmh.benchmarks.MultipleLikeBenchmark.testPartiQLParser30
360.18246724997323
us/op431.1381583071431
us/op0.84
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameCaseWhenThen
46.06594262182189
us/op54.182527991071346
us/op0.85
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameComplexQuery
62.376427574274416
us/op75.26910797143634
us/op0.83
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameComplexQuery01
324.99343244357067
us/op399.2355223581437
us/op0.81
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameComplexQuery02
566.4834919970529
us/op719.708663491821
us/op0.79
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameExceptUnionIntersectSixty
215.05298990133215
us/op264.6213678282123
us/op0.81
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameExec20Expressions
69.3232476562584
us/op87.73020865982046
us/op0.79
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameFromLet
48.812896649800564
us/op57.70217471722524
us/op0.85
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameGraphPattern
48.189512794871106
us/op57.49362018022523
us/op0.84
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameGraphPreFilters
73.8336294383817
us/op87.41929800437627
us/op0.84
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameGroupLimit
51.09046409144559
us/op61.09123714135717
us/op0.84
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameLongFromSourceOrderBy
72.71753406296276
us/op92.34948134266892
us/op0.79
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameManyJoins
68.46204829537561
us/op82.30106301890322
us/op0.83
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameNestedAggregates
124.08804115662561
us/op136.14846071695752
us/op0.91
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameNestedParen
22.702328214316776
us/op25.943839906996867
us/op0.88
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNamePivot
73.69555814616301
us/op86.66051311353617
us/op0.85
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameQuery15OrsAndLikes
229.9352550597402
us/op270.22003639700085
us/op0.85
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameQuery30Plus
121.705576849209
us/op144.430457673433
us/op0.84
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameQueryFunc
57.103456150687656
us/op68.86225820476997
us/op0.83
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameQueryFuncInProjection
127.49898050967943
us/op153.7981067796058
us/op0.83
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameQueryList
87.93715510629875
us/op102.97163573426481
us/op0.85
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameQueryNestedSelect
803.6657194976816
us/op925.8178641284843
us/op0.87
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameQuerySimple
20.193926710896587
us/op23.155557927431982
us/op0.87
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameSeveralJoins
27.08044357483022
us/op31.01257640907148
us/op0.87
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameSeveralProjections
83.75191474836942
us/op100.25788443923607
us/op0.84
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameSeveralSelect
222.2901473451406
us/op258.7380973631369
us/op0.86
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameSimpleInsert
34.44888616318284
us/op44.00010357644399
us/op0.78
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameSomeJoins
26.578134752162327
us/op31.13291617757086
us/op0.85
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameSomeProjections
35.81413595744847
us/op42.00495230194676
us/op0.85
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameSomeSelect
58.36790611694346
us/op70.10069420730974
us/op0.83
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameTimeZone
29.41778077556765
us/op34.22499151944968
us/op0.86
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameVeryLongQuery
379.08527778255575
us/op440.5451214111581
us/op0.86
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameVeryLongQuery01
1090.930756011212
us/op1348.8508472614253
us/op0.81
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameCaseWhenThen
29.65453953013095
us/op34.248343935633315
us/op0.87
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameComplexQuery
251.1364736799892
us/op313.61176894544064
us/op0.80
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameComplexQuery01
118.45304815540025
us/op137.06137204262637
us/op0.86
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameExceptUnionIntersectSixty
243.6718156082089
us/op289.7784166384091
us/op0.84
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameExec20Expressions
73.99732911567345
us/op86.08482163397426
us/op0.86
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameFromLet
41.226723813015035
us/op49.2450420274033
us/op0.84
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameGraphPattern
44.776325141345225
us/op53.92055880402878
us/op0.83
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameGraphPreFilters
74.53916572751804
us/op91.55697578017342
us/op0.81
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameGroupLimit
36.47684771196705
us/op44.09260484126147
us/op0.83
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameLongFromSourceOrderBy
142.1780271041034
us/op177.62093913391612
us/op0.80
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameManyJoins
48.67876099433931
us/op57.09833111235314
us/op0.85
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameNestedAggregates
102.36450622681257
us/op118.13330258131245
us/op0.87
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameNestedParen
93.78164469897955
us/op97.94379131848368
us/op0.96
org.partiql.jmh.benchmarks.ParserBenchmark.parseNamePivot
69.95864287880252
us/op82.88886342525252
us/op0.84
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameQuery15OrsAndLikes
190.15928450107873
us/op219.40944205123606
us/op0.87
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameQuery30Plus
70.4885831524505
us/op79.15611582497684
us/op0.89
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameQueryFunc
141.2148420503759
us/op174.71071231465052
us/op0.81
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameQueryFuncInProjection
102.47099577353319
us/op123.50935752616711
us/op0.83
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameQueryList
85.74489404802122
us/op105.59036530615337
us/op0.81
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameQueryNestedSelect
143.43585915137317
us/op167.88683470273867
us/op0.85
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameQuerySimple
14.772026612388341
us/op17.176414992702426
us/op0.86
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameSeveralJoins
82.47191997380162
us/op93.96541428875395
us/op0.88
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameSeveralProjections
62.08934581229907
us/op69.18682197518845
us/op0.90
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameSeveralSelect
124.60950564084867
us/op142.12591971177022
us/op0.88
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameSimpleInsert
25.447702904975397
us/op28.779649131669384
us/op0.88
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameSomeJoins
23.69910548329437
us/op27.481491300567065
us/op0.86
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameSomeProjections
22.230946069526208
us/op24.005928738431418
us/op0.93
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameSomeSelect
39.202718758907196
us/op45.5732936974052
us/op0.86
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameTimeZone
10.548011209563771
us/op12.177449512545824
us/op0.87
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameVeryLongQuery
453.9836592719401
us/op543.1563229739774
us/op0.84
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameVeryLongQuery01
1307.3678313271073
us/op1535.4455330015758
us/op0.85
org.partiql.jmh.benchmarks.PartiQLBenchmark.testPartiQLCompiler
9.996539706209228
us/op13.364220142950298
us/op0.75
org.partiql.jmh.benchmarks.PartiQLBenchmark.testPartiQLEvaluator
2.766411238166711
us/op3.2508226432598972
us/op0.85
org.partiql.jmh.benchmarks.PartiQLBenchmark.testPartiQLParser
13.328003730606175
us/op15.294298675897204
us/op0.87
This comment was automatically generated by workflow using github-action-benchmark.