Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Make transformation_service_endpoint configuration optional
Signed-off-by: Dimitris Stafylarakis <xanias@gmail.com>
  • Loading branch information
xaniasd committed Jan 3, 2025
commit 36575937cfb2ed1aa6c5ab58b29a2ab51f711c0f
18 changes: 8 additions & 10 deletions go/internal/feast/featurestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package feast
import (
"context"
"errors"
"fmt"

"github.com/apache/arrow/go/v17/arrow/memory"

//"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer"

"github.com/feast-dev/feast/go/internal/feast/model"
Expand Down Expand Up @@ -60,17 +61,14 @@ func NewFeatureStore(config *registry.RepoConfig, callback transformation.Transf
return nil, err
}

// Use a scalable transformation service like Python Transformation Service.
// Assume the user will define the "transformation_service_endpoint" in the feature_store.yaml file
// under the "feature_server" section.
transformationServerEndpoint, ok := config.FeatureServer["transformation_service_endpoint"]
if !ok {
fmt.Println("Errors while reading transformation_service_endpoint info")
panic("No transformation service endpoint provided in the feature_store.yaml file.")
var transformationService *transformation.GrpcTransformationService
if transformationServerEndpoint, ok := config.FeatureServer["transformation_service_endpoint"]; ok {
// Use a scalable transformation service like Python Transformation Service.
// Assume the user will define the "transformation_service_endpoint" in the feature_store.yaml file
// under the "feature_server" section.
transformationService, _ = transformation.NewGrpcTransformationService(config, transformationServerEndpoint.(string))
}

transformationService, _ := transformation.NewGrpcTransformationService(config, transformationServerEndpoint.(string))

return &FeatureStore{
config: config,
registry: registry,
Expand Down