Akshat-Jain commented on code in PR #16358:
URL: https://github.com/apache/druid/pull/16358#discussion_r1594907470
##########
extensions-core/multi-stage-query/src/test/java/org/apache/druid/msq/test/MSQTestBase.java:
##########
@@ -1010,6 +1041,23 @@ public void verifyPlanningErrors()
assertThat(e, expectedValidationErrorMatcher);
}
+ protected void verifyLookupLoadingInfoInTaskContext(Map<String, Object>
context)
+ {
+ String lookupLoadingMode =
context.get(PlannerContext.CTX_LOOKUP_LOADING_MODE).toString();
+ List<String> lookupsToLoad = (List<String>)
context.get(PlannerContext.CTX_LOOKUPS_TO_LOAD);
+ if (expectedLookupLoadingSpec != null) {
+ Assert.assertEquals(expectedLookupLoadingSpec.getMode().toString(),
lookupLoadingMode);
+ if
(expectedLookupLoadingSpec.getMode().equals(LookupLoadingSpec.Mode.ONLY_REQUIRED))
{
+ Assert.assertEquals(new
ArrayList<>(expectedLookupLoadingSpec.getLookupsToLoad()), lookupsToLoad);
+ } else {
+ Assert.assertNull(lookupsToLoad);
+ }
+ } else {
+ Assert.assertEquals(LookupLoadingSpec.Mode.NONE.toString(),
lookupLoadingMode);
+ Assert.assertNull(lookupsToLoad);
+ }
+ }
Review Comment:
I can try taking care of this in the next PR with compaction changes, hope
that works.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]