Commit 59787e70 authored by Liquan Pei's avatar Liquan Pei
Browse files

Remove boolean and floats from supported key types

parent fba141ef
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -70,17 +70,13 @@ public class DataConverter {
    }

    switch (schemaType) {
      case BOOLEAN:
      case INT8:
      case INT16:
      case INT32:
      case INT64:
      case FLOAT32:
      case FLOAT64:
      case STRING:
        return String.valueOf(key);
      default:
        // TODO: support more key types, also should we support BOOLEAN and FLOAT at all?
        throw new DataException(schemaType.name() + "is not supported as the document id.");
    }
  }