code: private void validateField(FieldDefinition fieldDef) {
          if (fieldDef.isScalarField()) {
              Utils.require(Utils.isEmpty(fieldDef.getAnalyzerName()),
                            "'analyzer' not allowed for OLAP application fields:" + fieldDef);
          } else if (fieldDef.isLinkType()) {
              Utils.require(!fieldDef.isSharded(),
                            "Link and xlink fields cannot be sharded: {}", fieldDef);
          }
      }
docs: Validate the given field for OLAP constraints.