Skip to content

Commit

Permalink
i didnt mean
Browse files Browse the repository at this point in the history
  • Loading branch information
William Parsley committed Dec 14, 2023
1 parent 1277ab2 commit a39c24c
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions go/internal/feast/transformation/transformation_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,32 +120,23 @@ func ExtractTransformationResponse(
}
result := make([]*onlineserving.FeatureVector, 0)
for idx, field := range outRecord.Schema().Fields() {
fmt.Println(field.Name)
dropFeature := true

if featureView.Base.Projection != nil {
var featureName string
if fullFeatureNames {
featureName = strings.Split(field.Name, "__")[1]
} else {
featureName = field.Name
}
fmt.Println(field.Name)
featureName := strings.Split(field.Name, "__")[1]
fmt.Println(featureName)

fmt.Println("Projection features:")
for _, feature := range featureView.Base.Projection.Features {
fmt.Print(feature.Name)
fmt.Print(", ")
if featureName == feature.Name {
dropFeature = false
}
}
fmt.Print("\n")
} else {
dropFeature = false
}

if dropFeature {
fmt.Println("Dropped!!")
continue
}

Expand Down

0 comments on commit a39c24c

Please sign in to comment.