Skip to content

Missing argument in error string in ValidateFeatureRowDoFn #401

Closed

Description

@zhilingc

Too few arguments given for this error string in feast.ingestion.transform.fn.ValidateFeatureRowDoFn: line 66

 error =
              String.format(
                  "FeatureRow contains field '%s' which do not exists in FeatureSet '%s' version '%d'. Please check the FeatureRow data.",
                  field.getName(), featureSet.getReference());

This results in an exception being thrown instead when an incoming feature row has an additional field:

java.util.MissingFormatArgumentException: Format specifier '%d'
        java.util.Formatter.format(Formatter.java:2519)
        java.util.Formatter.format(Formatter.java:2455)
        java.lang.String.format(String.java:2940)
        feast.ingestion.transform.fn.ValidateFeatureRowDoFn.processElement(ValidateFeatureRowDoFn.java:66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions