@ScalarFunction(nullableParameters = true)
  public static byte[] toThetaSketch(@Nullable Object input) {
    return toThetaSketch(input, CommonConstants.Helix.DEFAULT_THETA_SKETCH_NOMINAL_ENTRIES);
  }
@Test
  public void testThetaSketchCreation() {
    for (Object i : _inputs) {
      Assert.assertEquals(thetaEstimate(SketchFunctions.toThetaSketch(i)), 1.0);
      Assert.assertEquals(thetaEstimate(SketchFunctions.toThetaSketch(i, 1024)), 1.0);
    }
    Assert.assertEquals(thetaEstimate(SketchFunctions.toThetaSketch(null)), 0.0);
    Assert.assertEquals(thetaEstimate(SketchFunctions.toThetaSketch(null, 1024)), 0.0);
    Assert.assertThrows(IllegalArgumentException.class, () -> SketchFunctions.toThetaSketch(new Object()));
    Assert.assertThrows(IllegalArgumentException.class, () -> SketchFunctions.toThetaSketch(new Object(), 1024));
  }