Skip to content

Commit

Permalink
Revert stuff brought in after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
dlurton committed May 10, 2022
1 parent 5521fc3 commit ac6155a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ class EvaluatingCompilerOffsetTests : EvaluatorTestBase() {
@ParameterizedTest
@ArgumentsSource(ArgsProviderValid::class)
fun validTests(tc: EvaluatorTestCase) = runEvaluatorTestCase(
tc.copy(
excludeLegacySerializerAssertions = true,
target = EvaluatorTestTarget.COMPILER_PIPELINE, // planner & phys. alg. have no support for OFFSET (yet)
),
tc.copy(excludeLegacySerializerAssertions = true),
session
)

Expand Down
46 changes: 0 additions & 46 deletions lang/test/org/partiql/lang/eval/EvaluatorTestSuite.kt
Original file line number Diff line number Diff line change
Expand Up @@ -439,52 +439,6 @@ internal val EVALUATOR_TEST_SUITE: IonResultTestSuite = defineTestSuite {
"""
)

test(
"selectJoinOnClauseScoping",
// note that d is a global which should be shadowed by the last from source
"""
SELECT VALUE [a, b, d]
FROM [1, 3] AS a
INNER JOIN [1, 2, 3] AS b ON b < d
LEFT JOIN [1.1, 2.1] AS d ON b < d AND a <= d
""",
"""
$partiql_bag::[
[1, 1, 1.1],
[1, 1, 2.1],
[1, 2, 2.1],
[3, 1, null],
[3, 2, null],
]
"""
)
test(
"selectCorrelatedLeftJoin",
"""SELECT s.id AS id, b.title AS title FROM stores AS s LEFT CROSS JOIN @s.books AS b WHERE b IS NULL""",
"""
$partiql_bag::[
{id: "7"}
]
"""
)

test(
"selectCorrelatedLeftJoinOnClause",
"""
SELECT
s.id AS id, b.title AS title
FROM stores AS s LEFT OUTER JOIN @s.books AS b ON b.price > 9
""",
"""
$partiql_bag::[
{id: "5"},
{id: "6", title: "E"},
{id: "6", title: "F"},
{id: "7"}
]
"""
)

test(
"selectJoinOnClauseScoping",
// note that d is a global which should be shadowed by the last from source
Expand Down

0 comments on commit ac6155a

Please sign in to comment.