Skip to content

Commit

Permalink
Add debug logging to getInformationSchemaTable
Browse files Browse the repository at this point in the history
  • Loading branch information
sopel39 committed Oct 1, 2019
1 parent ffedc9a commit 5582a32
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package io.prestosql.connector.informationschema;

import com.google.common.collect.ImmutableList;
import io.airlift.log.Logger;
import io.prestosql.FullConnectorSession;
import io.prestosql.Session;
import io.prestosql.metadata.InternalTable;
Expand Down Expand Up @@ -66,6 +67,8 @@
public class InformationSchemaPageSourceProvider
implements ConnectorPageSourceProvider
{
private static final Logger log = Logger.get(InformationSchemaPageSourceProvider.class);

private final Metadata metadata;
private final AccessControl accessControl;

Expand Down Expand Up @@ -114,6 +117,8 @@ private InternalTable getInternalTable(ConnectorSession connectorSession, Connec

public InternalTable getInformationSchemaTable(Session session, String catalog, InformationSchemaTable table, Set<QualifiedTablePrefix> prefixes, OptionalLong limit)
{
log.debug("Building information schema table (queryId=%s; catalog=%s; table=%s; prefixes=%s, limit=%s)", session.getQueryId(), catalog, table, prefixes, limit);

switch (table) {
case COLUMNS:
return buildColumns(session, prefixes, limit);
Expand Down

0 comments on commit 5582a32

Please sign in to comment.