constructor parameter has to be a string in Pig
diff --git a/src/main/java/com/yahoo/sketches/pig/tuple/ArrayOfDoublesSketchToQuantilesSketch.java b/src/main/java/com/yahoo/sketches/pig/tuple/ArrayOfDoublesSketchToQuantilesSketch.java
index 35470b7..6e8fd02 100644
--- a/src/main/java/com/yahoo/sketches/pig/tuple/ArrayOfDoublesSketchToQuantilesSketch.java
+++ b/src/main/java/com/yahoo/sketches/pig/tuple/ArrayOfDoublesSketchToQuantilesSketch.java
@@ -36,10 +36,11 @@
 
   /**
    * Constructor with a given parameter k for quantiles sketch
-   * @param k parameter that determines the accuracy and size of the quantiles sketch
+   * @param k string representation of the parameter k that determines the accuracy
+   *   and size of the quantiles sketch
    */
-  public ArrayOfDoublesSketchToQuantilesSketch(final int k) {
-    this.k = k;
+  public ArrayOfDoublesSketchToQuantilesSketch(final String k) {
+    this.k = Integer.parseInt(k);
   }
 
   @Override
diff --git a/src/test/java/com/yahoo/sketches/pig/tuple/ArrayOfDoublesSketchToQuantilesSketchTest.java b/src/test/java/com/yahoo/sketches/pig/tuple/ArrayOfDoublesSketchToQuantilesSketchTest.java
index 4adef55..cc9a721 100644
--- a/src/test/java/com/yahoo/sketches/pig/tuple/ArrayOfDoublesSketchToQuantilesSketchTest.java
+++ b/src/test/java/com/yahoo/sketches/pig/tuple/ArrayOfDoublesSketchToQuantilesSketchTest.java
@@ -49,7 +49,7 @@
   @Test
   public void nonEmptyInputSketchWithTwoColumnsExplicitK() throws Exception {
     int k = 256;
-    EvalFunc<DataByteArray> func = new ArrayOfDoublesSketchToQuantilesSketch(k);
+    EvalFunc<DataByteArray> func = new ArrayOfDoublesSketchToQuantilesSketch(Integer.toString(k));
     ArrayOfDoublesUpdatableSketch sketch = new ArrayOfDoublesUpdatableSketchBuilder().setNumberOfValues(2).build();
     sketch.update(1, new double[] {1.0, 2.0});
     sketch.update(2, new double[] {10.0, 20.0});