@@ -3,23 +3,18 @@ package feast
33import (
44 "errors"
55 "fmt"
6- // "io/ioutil"
7- // "log"
86 "os"
97 "os/exec"
108 "github.com/hashicorp/go-plugin"
119 "github.com/hashicorp/go-hclog"
12- "path/filepath"
13- "runtime"
14- // "time"
15- // "github.com/feast-dev/feast/go/protos/feast/third_party/grpc/connector"
1610)
1711
1812func getOnlineStore (config * RepoConfig ) (OnlineStore , error ) {
1913 onlineStoreType , ok := getOnlineStoreType (config .OnlineStore )
2014 if ! ok {
2115 return nil , errors .New (fmt .Sprintf ("could not get online store type from online store config: %+v" , config .OnlineStore ))
2216 }
17+ fmt .Println (onlineStoreType )
2318 if onlineStoreType == "redis" {
2419 onlineStore , err := NewRedisOnlineStore (config .Project , config .OnlineStore )
2520 return onlineStore , err
@@ -35,14 +30,7 @@ func connectorClient(KV_PLUGIN string) (OnlineStore, error) {
3530 // log.SetOutput(ioutil.Discard)
3631
3732 // We're a host. Start by launching the plugin process.
38- _ , filename , _ , ok := runtime .Caller (0 )
39- if ! ok {
40- panic ("couldn't find file path of the connector file" )
41- }
4233 cmd := exec .Command ("sh" , "-c" , KV_PLUGIN )
43- cmd .Env = os .Environ ()
44- connectorPythonPath := filepath .Join (filename , ".." , ".." , "test_repo/connector_python" )
45- cmd .Env = append (cmd .Env , fmt .Sprintf ("PYTHONPATH=%s:$PYTHONPATH" , connectorPythonPath ))
4634
4735 logger := hclog .New (& hclog.LoggerOptions {
4836 Name : "plugin" ,
@@ -84,5 +72,4 @@ func connectorClient(KV_PLUGIN string) (OnlineStore, error) {
8472 }
8573 return onlineStore , nil
8674 }
87- // return raw, nil
8875}
0 commit comments