Skip to content
Permalink
Browse files
removed incorrect and unnecessary schema
  • Loading branch information
AlexanderSaydakov committed Jul 11, 2017
1 parent b2b2204 commit 808876eabab3c6a6f53af708c9ba69fada11f3d3
Showing 1 changed file with 0 additions and 20 deletions.
@@ -10,9 +10,7 @@
import java.io.IOException;

import org.apache.pig.EvalFunc;
import org.apache.pig.data.DataType;
import org.apache.pig.data.Tuple;
import org.apache.pig.impl.logicalLayer.schema.Schema;

import com.yahoo.sketches.Util;
import com.yahoo.sketches.theta.Sketch;
@@ -80,22 +78,4 @@ public String exec(final Tuple sketchTuple) throws IOException { //throws is in
return sketch.toString(true, detailOut, 8, true);
}

/**
* The output is a String Tuple.
*/
@Override
public Schema outputSchema(final Schema input) {
if (input != null) {
try {
final Schema tupleSchema = new Schema();
tupleSchema.add(new Schema.FieldSchema("PrettyString", DataType.CHARARRAY));
return new Schema(new Schema.FieldSchema(getSchemaName(this
.getClass().getName().toLowerCase(), input), tupleSchema, DataType.TUPLE));
}
catch (final Exception e) {
// fall through
}
}
return null;
}
}

0 comments on commit 808876e

Please sign in to comment.