From 89960b2101de06ddd3699e07f57ed878d348b5b4 Mon Sep 17 00:00:00 2001 From: pyalex Date: Wed, 13 Apr 2022 11:57:11 -0700 Subject: [PATCH] git ignore full data directory in tests Signed-off-by: pyalex --- .gitignore | 2 +- .../feature_repo/{data => }/driver_stats.parquet | Bin go/cmd/server/logging/feature_repo/example.py | 2 +- go/cmd/server/server_test.go | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename go/cmd/server/logging/feature_repo/{data => }/driver_stats.parquet (100%) diff --git a/.gitignore b/.gitignore index 822efd4fbd..0f3165e841 100644 --- a/.gitignore +++ b/.gitignore @@ -105,7 +105,7 @@ coverage.xml .hypothesis/ .pytest_cache/ infra/scripts/*.conf -go/cmd/server/logging/feature_repo/data/online_store.db +go/cmd/server/logging/feature_repo/data/ # Translations *.mo diff --git a/go/cmd/server/logging/feature_repo/data/driver_stats.parquet b/go/cmd/server/logging/feature_repo/driver_stats.parquet similarity index 100% rename from go/cmd/server/logging/feature_repo/data/driver_stats.parquet rename to go/cmd/server/logging/feature_repo/driver_stats.parquet diff --git a/go/cmd/server/logging/feature_repo/example.py b/go/cmd/server/logging/feature_repo/example.py index 70e5e0a11d..f3ca612308 100644 --- a/go/cmd/server/logging/feature_repo/example.py +++ b/go/cmd/server/logging/feature_repo/example.py @@ -8,7 +8,7 @@ # production, you can use your favorite DWH, such as BigQuery. See Feast documentation # for more info. driver_hourly_stats = FileSource( - path="./data/driver_stats.parquet", + path="driver_stats.parquet", event_timestamp_column="event_timestamp", created_timestamp_column="created", ) diff --git a/go/cmd/server/server_test.go b/go/cmd/server/server_test.go index 9aa5477792..9d4ffb50bf 100644 --- a/go/cmd/server/server_test.go +++ b/go/cmd/server/server_test.go @@ -146,7 +146,7 @@ func TestGetOnlineFeaturesSqlite(t *testing.T) { {Val: &types.Value_Int64Val{Int64Val: 1005}}, } expectedFeatureNamesResp := []string{"driver_id", "conv_rate", "acc_rate", "avg_daily_trips"} - rows, err := test.ReadParquet(filepath.Join(dir, "feature_repo", "data", "driver_stats.parquet")) + rows, err := test.ReadParquet(filepath.Join(dir, "feature_repo", "driver_stats.parquet")) assert.Nil(t, err) entityKeys := map[int64]bool{1001: true, 1003: true, 1005: true} correctFeatures := test.GetLatestFeatures(rows, entityKeys)