Skip to content

Missing argument in error string in ValidateFeatureRowDoFn #401

@zhilingc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions