Skip to content

Commit

Permalink
Add more cast tests (#1527)
Browse files Browse the repository at this point in the history
Add more cast tests

```SQL
CREATE TABLE PETS (
    id INT4,
    breed STRING,
    tag INT2
)
```

Tests:
```SQL
-- #1 should succeed
CAST(true AS INT2) --

-- #2  should fail
CAST((s : STRING) AS LIST)

-- #3 should succeed
CAST((i : INT2) AS INT4)

-- #4 should succeed
CAST((i : INT4) AS INT2)
```

#### Background context
As part of a specification work, we want to make the behavior for the #4 more visible:

 From SQL-99 Section 6.22: <cast specification>:

```
 If SD (source data type) is exact numeric or approximate numeric, then
 Case:
   i) If there is a representation of SV (source value) in the data type TD (target data type) that does not lose any leading si-gnificant digits after rounding or truncating if necessary, then TV is that representation.
 The choice of whether to round or truncate is implementation-defined.
 ii) Otherwise, an exception condition is raised: data exception — numeric value out of
 range.
 ```

We can see this evaluation behavior in PostgresSQL v15:
Ref.: https://www.db-fiddle.com/f/vMY3Srd2bG6f3NshvTp3w1/0

```
-- succeeds
SELECT CAST((1::INT4) AS INT2);

-- fails: `Query Error: error: smallint out of range`
SELECT CAST((327686::INT4) AS INT2);
```
  • Loading branch information
am357 authored Jul 29, 2024
1 parent d660231 commit 1246427
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import org.partiql.types.StaticType
import org.partiql.types.StaticType.Companion.ANY
import org.partiql.types.StaticType.Companion.DECIMAL
import org.partiql.types.StaticType.Companion.INT
import org.partiql.types.StaticType.Companion.INT2
import org.partiql.types.StaticType.Companion.INT4
import org.partiql.types.StaticType.Companion.INT8
import org.partiql.types.StaticType.Companion.unionOf
Expand Down Expand Up @@ -167,11 +168,13 @@ class PlanTyperTestsPorted {
val TYPE_BOOL = StaticType.BOOL
private val TYPE_AWS_DDB_PETS_ID = StaticType.INT4
private val TYPE_AWS_DDB_PETS_BREED = StaticType.STRING
private val TYPE_AWS_DDB_PETS_TAG = StaticType.INT2
val TABLE_AWS_DDB_PETS = BagType(
elementType = StructType(
fields = mapOf(
"id" to TYPE_AWS_DDB_PETS_ID,
"breed" to TYPE_AWS_DDB_PETS_BREED
"breed" to TYPE_AWS_DDB_PETS_BREED,
"tag" to TYPE_AWS_DDB_PETS_TAG,
),
contentClosed = true,
constraints = setOf(
Expand All @@ -185,7 +188,8 @@ class PlanTyperTestsPorted {
elementType = StructType(
fields = mapOf(
"id" to TYPE_AWS_DDB_PETS_ID,
"breed" to TYPE_AWS_DDB_PETS_BREED
"breed" to TYPE_AWS_DDB_PETS_BREED,
"tag" to TYPE_AWS_DDB_PETS_TAG,
),
contentClosed = true,
constraints = setOf(
Expand Down Expand Up @@ -289,6 +293,39 @@ class PlanTyperTestsPorted {
@JvmStatic
fun structs() = listOf<TestCase>()

@JvmStatic
fun extendedCastTests() = listOf<TestCase>(
SuccessTestCase(
name = "CAST INT4 TO INT2",
catalog = CATALOG_AWS,
query = "CAST((SELECT t.id FROM ddb.pets AS t) AS INT2)",
expected = INT2
),
SuccessTestCase(
name = "CAST BOOL TO INT2",
catalog = CATALOG_AWS,
query = "CAST(true AS INT2)",
expected = INT2
),
SuccessTestCase(
name = "CAST INT2 TO INT4",
catalog = CATALOG_AWS,
query = "CAST((SELECT t.tag FROM ddb.pets AS t) AS INT4)",
expected = INT4
),
SuccessTestCase(
name = "CAST INT8 literal to INT2",
query = "CAST(343434534534 AS INT2)",
expected = INT2
),
SuccessTestCase(
name = "CAST STRING to INT2",
catalog = CATALOG_AWS,
query = "CAST((SELECT t.breed FROM ddb.pets AS t) AS INT2)",
expected = INT2
),
)

@JvmStatic
fun decimalCastCases() = listOf<TestCase>(
SuccessTestCase(
Expand Down Expand Up @@ -3523,6 +3560,11 @@ class PlanTyperTestsPorted {
@ArgumentsSource(TestProvider::class)
fun test(tc: TestCase) = runTest(tc)

@ParameterizedTest
@MethodSource("extendedCastTests")
@Execution(ExecutionMode.CONCURRENT)
fun testCastCase(tc: TestCase) = runTest(tc)

@ParameterizedTest
@MethodSource("collections")
@Execution(ExecutionMode.CONCURRENT)
Expand Down Expand Up @@ -3843,7 +3885,7 @@ class PlanTyperTestsPorted {
name = "Project all implicitly",
catalog = CATALOG_AWS,
catalogPath = listOf("ddb"),
query = "SELECT id, breed FROM pets",
query = "SELECT id, breed, tag FROM pets",
expected = TABLE_AWS_DDB_PETS
),
TestCase.SuccessTestCase(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
{
name: "breed",
type: "string",
},
{
name: "tag",
type: "int16",
}
]
}
Expand Down

1 comment on commit 1246427

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JMH Benchmark

Benchmark suite Current: 1246427 Previous: d660231 Ratio
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.compileCrossJoinAggFuncGroupingWithInterruptible 268.7004545223102 us/op 252.74594999358305 us/op 1.06
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.compileCrossJoinAggFuncGroupingWithoutInterruptible 268.57905229873927 us/op 274.8959913825206 us/op 0.98
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.compileCrossJoinAggFuncWithInterruptible 255.29025925395158 us/op 259.8630433979977 us/op 0.98
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.compileCrossJoinAggFuncWithoutInterruptible 249.7124714326404 us/op 256.4195753769164 us/op 0.97
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.compileCrossJoinWithInterruptible 171.04322103333922 us/op 175.07959678917265 us/op 0.98
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.compileCrossJoinWithoutInterruptible 166.25435830856478 us/op 170.39735975672028 us/op 0.98
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.evalCrossJoinAggGroupWithInterruptible 13087754.51725 us/op 12899255.396300001 us/op 1.01
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.evalCrossJoinAggGroupWithoutInterruptible 12994078.458900005 us/op 12893145.015199997 us/op 1.01
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.evalCrossJoinAggWithInterruptible 5230926.283799999 us/op 5004979.8982 us/op 1.05
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.evalCrossJoinAggWithoutInterruptible 5088910.151799999 us/op 5433915.424699998 us/op 0.94
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.evalCrossJoinWithInterruptible 40.21664468109738 us/op 38.268947813264084 us/op 1.05
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.evalCrossJoinWithoutInterruptible 38.85948387756703 us/op 39.337832809420824 us/op 0.99
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.iterCrossJoinAggGroupWithInterruptible 12981211.85985 us/op 12909761.950499998 us/op 1.01
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.iterCrossJoinAggGroupWithoutInterruptible 12844264.673549999 us/op 12716975.629150001 us/op 1.01
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.iterCrossJoinAggWithInterruptible 4975641.4844 us/op 5043147.137799999 us/op 0.99
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.iterCrossJoinAggWithoutInterruptible 4900264.828249999 us/op 4950251.758699999 us/op 0.99
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.iterCrossJoinWithInterruptible 92004.43600568181 us/op 99591.28350636364 us/op 0.92
org.partiql.jmh.benchmarks.CompilerInterruptionBenchmark.iterCrossJoinWithoutInterruptible 94812.09170909089 us/op 99533.01736454546 us/op 0.95
org.partiql.jmh.benchmarks.MultipleLikeBenchmark.testPartiQLCompiler15 91.04741920314669 us/op 81.5261306004321 us/op 1.12
org.partiql.jmh.benchmarks.MultipleLikeBenchmark.testPartiQLCompiler30 156.75319059368326 us/op 153.65639989901544 us/op 1.02
org.partiql.jmh.benchmarks.MultipleLikeBenchmark.testPartiQLEvaluator15 376558.66275 us/op 367132.5676 us/op 1.03
org.partiql.jmh.benchmarks.MultipleLikeBenchmark.testPartiQLEvaluator30 647024.3154250002 us/op 733300.199125 us/op 0.88
org.partiql.jmh.benchmarks.MultipleLikeBenchmark.testPartiQLEvaluator30WithData10 7288455.869900001 us/op 7213312.239499999 us/op 1.01
org.partiql.jmh.benchmarks.MultipleLikeBenchmark.testPartiQLParser15 135.36281419730432 us/op 133.83899577053273 us/op 1.01
org.partiql.jmh.benchmarks.MultipleLikeBenchmark.testPartiQLParser30 258.22595983378653 us/op 251.670251463973 us/op 1.03
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameCaseWhenThen 33.52485846231308 us/op 34.0793791819675 us/op 0.98
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameComplexQuery 41.645714179797366 us/op 43.22350298938118 us/op 0.96
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameComplexQuery01 243.35766256324223 us/op 237.99949245077414 us/op 1.02
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameComplexQuery02 407.2751247608718 us/op 407.84703505294107 us/op 1.00
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameExceptUnionIntersectSixty 156.27927551508884 us/op 156.2051361803257 us/op 1.00
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameExec20Expressions 48.66542841856326 us/op 48.61696447973553 us/op 1.00
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameFromLet 33.95756470561496 us/op 33.89907707905799 us/op 1.00
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameGraphPattern 31.464237050410976 us/op 32.834628770443494 us/op 0.96
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameGraphPreFilters 56.3697044272691 us/op 57.254522295699 us/op 0.98
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameGroupLimit 38.972116317215644 us/op 38.823223815822146 us/op 1.00
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameLongFromSourceOrderBy 49.27380830217116 us/op 48.48182967741001 us/op 1.02
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameManyJoins 48.83246503267047 us/op 50.4001945124691 us/op 0.97
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameNestedAggregates 85.28419947008025 us/op 83.60255239650704 us/op 1.02
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameNestedParen 13.768852666710051 us/op 13.532154173692717 us/op 1.02
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNamePivot 51.2386345687644 us/op 52.73212762096259 us/op 0.97
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameQuery15OrsAndLikes 159.61841104539602 us/op 161.5610888179796 us/op 0.99
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameQuery30Plus 87.75711771124156 us/op 86.58111656236782 us/op 1.01
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameQueryFunc 38.93082934820102 us/op 39.21522137679006 us/op 0.99
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameQueryFuncInProjection 43.409812405606594 us/op 43.40426797902607 us/op 1.00
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameQueryList 59.909047455636994 us/op 59.45998557910243 us/op 1.01
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameQueryNestedSelect 577.277510277666 us/op 586.0026029269786 us/op 0.99
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameQuerySimple 12.154832240621953 us/op 12.394485099296281 us/op 0.98
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameSeveralJoins 16.822477054728388 us/op 17.514444300068586 us/op 0.96
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameSeveralProjections 57.0535624467087 us/op 55.92331681519456 us/op 1.02
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameSeveralSelect 158.84808899783582 us/op 159.44346024344065 us/op 1.00
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameSimpleInsert 23.02550341097794 us/op 24.029782229221702 us/op 0.96
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameSomeJoins 16.91774037884283 us/op 17.065451979701415 us/op 0.99
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameSomeProjections 23.241629166124046 us/op 22.750601566430984 us/op 1.02
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameSomeSelect 39.901324699804434 us/op 40.93799891286057 us/op 0.97
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameTimeZone 19.324074263742585 us/op 19.50313971088059 us/op 0.99
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameVeryLongQuery 194.7030458634635 us/op 193.1759079317999 us/op 1.01
org.partiql.jmh.benchmarks.ParserBenchmark.parseFailNameVeryLongQuery01 750.7652789490884 us/op 756.6017772378686 us/op 0.99
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameCaseWhenThen 18.525064205981828 us/op 18.30527475201561 us/op 1.01
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameComplexQuery 178.53580313772986 us/op 197.1822214575953 us/op 0.91
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameComplexQuery01 85.9236290858773 us/op 84.05585193147165 us/op 1.02
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameExceptUnionIntersectSixty 164.56237436708102 us/op 159.27023315802305 us/op 1.03
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameExec20Expressions 48.661718892768064 us/op 47.34734017424496 us/op 1.03
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameFromLet 27.191573466286922 us/op 28.43933802341788 us/op 0.96
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameGraphPattern 28.23000725908681 us/op 28.864575033371022 us/op 0.98
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameGraphPreFilters 54.15431070946738 us/op 51.41582544258557 us/op 1.05
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameGroupLimit 25.427312203095546 us/op 25.4417300803064 us/op 1.00
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameLongFromSourceOrderBy 96.24737493509225 us/op 96.91100401329811 us/op 0.99
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameManyJoins 32.940131158584634 us/op 33.361835090764224 us/op 0.99
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameNestedAggregates 70.1287778822701 us/op 71.573792078148 us/op 0.98
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameNestedParen 62.970373778362365 us/op 61.522751570250605 us/op 1.02
org.partiql.jmh.benchmarks.ParserBenchmark.parseNamePivot 49.063847452427424 us/op 49.09310564336383 us/op 1.00
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameQuery15OrsAndLikes 129.45663123887465 us/op 133.33091678332875 us/op 0.97
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameQuery30Plus 45.98546467192083 us/op 44.45019994895141 us/op 1.03
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameQueryFunc 99.76016990624696 us/op 98.50677331014045 us/op 1.01
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameQueryFuncInProjection 63.42305510386957 us/op 63.7858413136258 us/op 0.99
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameQueryList 55.6710245471579 us/op 55.29135618363853 us/op 1.01
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameQueryNestedSelect 102.5970733424895 us/op 109.86176268365776 us/op 0.93
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameQuerySimple 8.601316340731644 us/op 8.424733279857781 us/op 1.02
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameSeveralJoins 54.18387144122596 us/op 52.5940931870907 us/op 1.03
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameSeveralProjections 41.559139773360855 us/op 39.519006137464025 us/op 1.05
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameSeveralSelect 74.30690073979697 us/op 74.72219374283851 us/op 0.99
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameSimpleInsert 15.053138867965558 us/op 15.142688546796979 us/op 0.99
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameSomeJoins 14.628639781254673 us/op 15.034532723989063 us/op 0.97
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameSomeProjections 12.699659109461631 us/op 12.769477308436514 us/op 0.99
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameSomeSelect 24.355603736662914 us/op 25.183501243186658 us/op 0.97
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameTimeZone 5.940001298004496 us/op 5.989788409163304 us/op 0.99
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameVeryLongQuery 304.97745494212916 us/op 303.19707769375617 us/op 1.01
org.partiql.jmh.benchmarks.ParserBenchmark.parseNameVeryLongQuery01 821.9824308552754 us/op 856.0356871910075 us/op 0.96
org.partiql.jmh.benchmarks.PartiQLBenchmark.testPartiQLCompiler 6.942477779295203 us/op 6.962837692557528 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLBenchmark.testPartiQLEvaluator 1.990941171080753 us/op 1.9804672926421614 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLBenchmark.testPartiQLParser 7.614425559257026 us/op 7.595988534808508 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testCompileQuery1 7.1712402103248865 us/op 7.06922776606103 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testCompileQuery2 14.08529376394634 us/op 13.833757888857056 us/op 1.02
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testCompileQuery3 15.243279228837869 us/op 15.28321838803063 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testCompileQuery4 22.60264848243649 us/op 22.20305431395258 us/op 1.02
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testCompileQuery5 23.85658458601884 us/op 23.853112104145588 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testEvalQuery1 141976.62776160715 us/op 147196.21780625 us/op 0.96
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testEvalQuery10 15.9179221821006 us/op 15.57329815257521 us/op 1.02
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testEvalQuery11 2.456231568927029 us/op 2.4669394560180944 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testEvalQuery2 238887.84755000006 us/op 243656.78642999995 us/op 0.98
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testEvalQuery3 240820.57964249997 us/op 242269.17701499996 us/op 0.99
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testEvalQuery4 295638.5846375 us/op 301660.0472125 us/op 0.98
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testEvalQuery5 298094.1576875 us/op 298111.20568749995 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testEvalQuery6 354543.42838333326 us/op 376012.54099999985 us/op 0.94
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testEvalQuery7 28245.282287688762 us/op 31257.009074092202 us/op 0.90
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testEvalQuery8 2815.491686423073 us/op 2798.7868804811233 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineAsyncBenchmark.testEvalQuery9 268.20930629639435 us/op 265.20660448790187 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testCompileQuery1 7.105818613989527 us/op 6.891763147030598 us/op 1.03
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testCompileQuery2 13.01502857569621 us/op 13.015188494071248 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testCompileQuery3 14.761850313141172 us/op 15.0515103761702 us/op 0.98
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testCompileQuery4 20.980044867140094 us/op 21.141545639914206 us/op 0.99
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testCompileQuery5 22.470965688387718 us/op 21.557032148641973 us/op 1.04
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testEvalQuery1 124912.68392986113 us/op 123165.63322847223 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testEvalQuery10 9.766594621078301 us/op 9.826778855439555 us/op 0.99
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testEvalQuery11 1.4097026545948377 us/op 1.3666093100355312 us/op 1.03
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testEvalQuery2 193036.85697500003 us/op 196562.07847500005 us/op 0.98
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testEvalQuery3 195112.89094166664 us/op 202741.864475 us/op 0.96
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testEvalQuery4 245990.46797250008 us/op 249969.77810499998 us/op 0.98
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testEvalQuery5 225164.21398 us/op 233933.81089999998 us/op 0.96
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testEvalQuery6 287771.8831624999 us/op 295989.9691625 us/op 0.97
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testEvalQuery7 22223.82992023569 us/op 23094.518138758544 us/op 0.96
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testEvalQuery8 2158.0959340172303 us/op 2181.9821339564087 us/op 0.99
org.partiql.jmh.benchmarks.PartiQLCompilerPipelineBenchmark.testEvalQuery9 199.87656208722365 us/op 200.13381643991937 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameCaseWhenThen 32.54496548748209 us/op 32.63788173450541 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameComplexQuery 41.12089848830391 us/op 42.81383754135324 us/op 0.96
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameComplexQuery01 238.75096248440354 us/op 235.89611267098508 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameComplexQuery02 410.0504532133368 us/op 406.10239105905066 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameExceptUnionIntersectSixty 156.5576943473073 us/op 157.61554220516913 us/op 0.99
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameExec20Expressions 44.41007917391256 us/op 44.70955097868541 us/op 0.99
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameFromLet 32.47270046222015 us/op 32.74088970766555 us/op 0.99
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameGraphPattern 31.5655027877471 us/op 31.501409809806837 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameGraphPreFilters 56.89528375398909 us/op 55.784696823017654 us/op 1.02
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameGroupLimit 39.544910936030725 us/op 39.4743227681785 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameLongFromSourceOrderBy 48.209046051742106 us/op 47.398560157775215 us/op 1.02
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameManyJoins 48.31320859783742 us/op 49.869439620812315 us/op 0.97
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameNestedAggregates 82.48135547087104 us/op 85.48947479780426 us/op 0.96
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameNestedParen 13.034602865616886 us/op 13.109100450527063 us/op 0.99
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNamePivot 51.394047234766525 us/op 51.72811055672021 us/op 0.99
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameQuery15OrsAndLikes 156.9670277360841 us/op 160.37632147519665 us/op 0.98
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameQuery30Plus 87.3246324561857 us/op 86.56652175332506 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameQueryFunc 38.51947885307319 us/op 38.688499772171454 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameQueryFuncInProjection 42.71053909081675 us/op 42.49535057788865 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameQueryList 57.832240834192646 us/op 57.87560286501444 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameQueryNestedSelect 570.3178439340829 us/op 587.489399544416 us/op 0.97
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameQuerySimple 11.961609220396973 us/op 11.92793478927479 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameSeveralJoins 16.45446765528311 us/op 16.650081065399295 us/op 0.99
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameSeveralProjections 55.59709160561389 us/op 52.95532450932988 us/op 1.05
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameSeveralSelect 155.0474974513819 us/op 160.49637108529697 us/op 0.97
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameSimpleInsert 21.792576207864407 us/op 22.061276153101325 us/op 0.99
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameSomeJoins 16.06729937068568 us/op 16.003684381179887 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameSomeProjections 22.071217812569174 us/op 21.79218218038202 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameSomeSelect 39.8779614822423 us/op 39.73787487218975 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameTimeZone 19.1032431492916 us/op 18.965587910320043 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameVeryLongQuery 196.51495280111845 us/op 192.84208035336866 us/op 1.02
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseFailNameVeryLongQuery01 750.8756947448736 us/op 756.6536290533362 us/op 0.99
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameCaseWhenThen 23.80559689219009 us/op 23.57749132121111 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameComplexQuery 247.70424284677455 us/op 235.83242540170667 us/op 1.05
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameComplexQuery01 120.997508891225 us/op 125.12092967430726 us/op 0.97
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameExceptUnionIntersectSixty 261.8868002948621 us/op 255.85798063714736 us/op 1.02
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameExec20Expressions 61.97243521707928 us/op 61.006173446737264 us/op 1.02
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameFromLet 42.32066014286702 us/op 40.722513409407824 us/op 1.04
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameGraphPattern 47.397733454293885 us/op 44.95968363753475 us/op 1.05
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameGraphPreFilters 84.33177954559886 us/op 82.18722625960629 us/op 1.03
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameGroupLimit 28.763435103187156 us/op 28.634451747761325 us/op 1.00
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameLongFromSourceOrderBy 120.99686372920046 us/op 115.60974516170215 us/op 1.05
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameManyJoins 42.289413818840664 us/op 43.0731775969935 us/op 0.98
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameNestedAggregates 97.9911156613449 us/op 99.38240980356156 us/op 0.99
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameNestedParen 65.24106458828062 us/op 68.27936402066616 us/op 0.96
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNamePivot 61.69439725427854 us/op 63.56879916561669 us/op 0.97
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameQuery15OrsAndLikes 191.97021476791483 us/op 189.75473393658854 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameQuery30Plus 59.27741757827133 us/op 60.546264714990606 us/op 0.98
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameQueryFunc 112.7605503125769 us/op 113.5094121829165 us/op 0.99
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameQueryFuncInProjection 77.8156111948662 us/op 79.65527361891527 us/op 0.98
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameQueryList 70.72318147613639 us/op 70.02286267276271 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameQueryNestedSelect 137.4118851147103 us/op 141.85139707784822 us/op 0.97
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameQuerySimple 12.21761674187905 us/op 12.080429534002475 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameSeveralJoins 77.84721088950997 us/op 79.12792742463327 us/op 0.98
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameSeveralProjections 61.647672473735426 us/op 64.51245099372 us/op 0.96
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameSeveralSelect 114.3046815787427 us/op 113.67328525027305 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameSimpleInsert 21.645963934477226 us/op 22.154403935059484 us/op 0.98
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameSomeJoins 20.34824396389082 us/op 19.97608672990859 us/op 1.02
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameSomeProjections 18.587232608295118 us/op 17.917465414317117 us/op 1.04
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameSomeSelect 35.68308429175262 us/op 35.002944161833724 us/op 1.02
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameTimeZone 7.413027399759092 us/op 7.691838011732628 us/op 0.96
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameVeryLongQuery 462.91787941674556 us/op 458.8393237031967 us/op 1.01
org.partiql.jmh.benchmarks.PartiQLParserBenchmark.parseNameVeryLongQuery01 1198.7878516582136 us/op 1200.0273616518666 us/op 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.