Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Oct 17, 2017
1 parent b33c0db commit a01ff04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
import com.yahoo.bard.webservice.data.metric.TemplateDruidQuery;
import com.yahoo.bard.webservice.druid.model.query.Granularity;
import com.yahoo.bard.webservice.table.LogicalTable;
import com.yahoo.bard.webservice.web.ApiRequest;
import com.yahoo.bard.webservice.web.DataApiRequest;
import com.yahoo.bard.webservice.web.TablesApiRequest;

import org.joda.time.Interval;

Expand Down Expand Up @@ -52,12 +50,6 @@ public QueryPlanningConstraint(
.map(LogicalMetric::getName).collect(Collectors.toSet()));
}

public QueryPlanningConstraint(
@NotNull TablesApiRequest tablesApiRequest
) {
super();
}

public LogicalTable getLogicalTable() {
return logicalTable;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
import com.yahoo.bard.webservice.data.filterbuilders.DruidFilterBuilder;
import com.yahoo.bard.webservice.data.time.GranularityParser;
import com.yahoo.bard.webservice.logging.RequestLog;
import com.yahoo.bard.webservice.logging.TimedPhase;
import com.yahoo.bard.webservice.logging.blocks.TableRequest;
import com.yahoo.bard.webservice.table.LogicalTable;
import com.yahoo.bard.webservice.table.LogicalTableDictionary;
import com.yahoo.bard.webservice.table.PhysicalTable;
import com.yahoo.bard.webservice.table.TableGroup;
import com.yahoo.bard.webservice.util.SimplifiedIntervalList;
import com.yahoo.bard.webservice.web.ErrorMessageFormat;
import com.yahoo.bard.webservice.web.RequestMapper;
Expand Down Expand Up @@ -250,7 +248,7 @@ public Response getTableByGrain(
apiRequest = (TablesApiRequest) requestMapper.apply(apiRequest, containerRequestContext);
}

Map<String, Object> result = getLogicalTableFullView(apiRequest, uriInfo);
Map<String, Object> result = getLogicalTableFullView(apiRequest.getTable(), uriInfo);
String output = objectMappers.getMapper().writeValueAsString(result);
LOG.debug("Tables Endpoint Response: {}", output);
responseSender = () -> Response.status(OK).entity(output).build();
Expand All @@ -273,7 +271,7 @@ public Response getTableByGrain(
return responseSender.get();
}


//CHECKSTYLE:OFF
@GET
@Timed
@Produces(MediaType.APPLICATION_JSON)
Expand Down Expand Up @@ -337,7 +335,7 @@ public Response getTableAvailability(
.build();
}
}

//CHECKSTYLE:ON

/**
* Get all the tables full view.
Expand Down

0 comments on commit a01ff04

Please sign in to comment.