@Test
public void testQueryFilterStarWithSchema() throws FrontendException {
planTester.buildPlan("a = load 'a' as (url,hitCount);");
LogicalPlan lp = planTester.buildPlan("b = filter a by COUNT(*) == 3;");
LOFilter filter = (LOFilter)lp.getLeaves().get(0);
RequiredFields filterRelevantFields0 = filter.getRelevantInputs(0, 0).get(0);
assertTrue(filterRelevantFields0.getNeedAllFields() == false);
assertTrue(filterRelevantFields0.getNeedNoFields() == false);
assertTrue(filterRelevantFields0.getFields().size() == 1);
assertTrue(filterRelevantFields0.getFields().get(0).first == 0);
assertTrue(filterRelevantFields0.getFields().get(0).second == 0);
RequiredFields filterRelevantFields1 = filter.getRelevantInputs(0, 1).get(0);
assertTrue(filterRelevantFields1.getNeedAllFields() == false);
assertTrue(filterRelevantFields1.getNeedNoFields() == false);
assertTrue(filterRelevantFields1.getFields().size() == 1);
assertTrue(filterRelevantFields1.getFields().get(0).first == 0);
assertTrue(filterRelevantFields1.getFields().get(0).second == 1);