Skip to content

Commit

Permalink
some unrelated
Browse files Browse the repository at this point in the history
  • Loading branch information
kgyrtkirk committed Feb 5, 2024
1 parent 0ba43ac commit 0c132df
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public Closeable goOrContinue(Closeable continuation, Receiver receiver)
{
try (final CloseableShapeshifter shifty = segment.as(CloseableShapeshifter.class)) {
if (shifty == null) {
throw new ISE("Segment[%s] cannot shapeshift", segment.getClass());
throw new ISE("Segment[%s] cannot shapeshift", segment);
}
RowsAndColumns rac;
if (shifty instanceof RowsAndColumns) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,25 @@ public void windowQueryTest() throws Exception
.run();
}
}
@Test
@SuppressWarnings("unchecked")
public void windowQueryTest2() throws Exception
{
TestCase testCase = new TestCase(filename);

assumeThat(testCase.getType(), Matchers.not(TestType.failingTest));

if (testCase.getType() == TestType.operatorValidation) {
testBuilder()
.skipVectorize(true)
.sql(testCase.getSql())
.queryContext(ImmutableMap.of(PlannerContext.CTX_ENABLE_WINDOW_FNS, true,
QueryContexts.ENABLE_DEBUG, true,
QueryContexts.MAX_SUBQUERY_BYTES_KEY, "100000"))
.addCustomVerification(QueryVerification.ofResults(testCase))
.run();
}
}

private WindowOperatorQuery getWindowOperatorQuery(List<Query<?>> queries)
{
Expand Down

0 comments on commit 0c132df

Please sign in to comment.