Skip to content

Commit

Permalink
Add toString method to TIMESTAMP reader
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasmanova committed Dec 10, 2019
1 parent ac93bd6 commit 48e6220
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import static com.facebook.presto.orc.reader.SelectiveStreamReaders.initializeOutputPositions;
import static com.facebook.presto.orc.stream.MissingInputStreamSource.missingStreamSource;
import static com.facebook.presto.spi.type.TimestampType.TIMESTAMP;
import static com.google.common.base.MoreObjects.toStringHelper;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkState;
import static io.airlift.slice.SizeOf.sizeOf;
Expand Down Expand Up @@ -430,6 +431,14 @@ private void compactValues(int[] positions, int positionCount, boolean compactNu
outputPositionCount = positionCount;
}

@Override
public String toString()
{
return toStringHelper(this)
.addValue(streamDescriptor)
.toString();
}

@Override
public void close()
{
Expand Down

0 comments on commit 48e6220

Please sign in to comment.