Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix Java Master #2499

Merged
merged 4 commits into from
Apr 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion examples/java-demo/feature_repo/driver_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def transformed_conv_rate(inputs: pd.DataFrame) -> pd.DataFrame:
# Define request feature view
driver_age_request_fv = RequestFeatureView(
name="driver_age",
request_source=RequestSource(
request_data_source=RequestSource(
name="driver_age", schema={"driver_age": ValueType.INT64,}
),
)
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
from feast.feature_view import FeatureView
from feast.entity import Entity
from feast.feature_service import FeatureService
from feast.on_demand_feature_view import RequestDataSource, on_demand_feature_view
from feast.data_source import RequestSource
from feast.on_demand_feature_view import on_demand_feature_view
from feast import FileSource


file_path = "driver_stats.parquet"
driver_hourly_stats = FileSource(
path=file_path,
event_timestamp_column="event_timestamp",
timestamp_field="event_timestamp",
created_timestamp_column="created",
)

Expand All @@ -40,7 +41,7 @@
)


input_request = RequestDataSource(
input_request = RequestSource(
name="vals_to_add",
schema={
"val_to_add": ValueType.INT64,
Expand Down Expand Up @@ -68,7 +69,7 @@ def transformed_conv_rate(features_df: pd.DataFrame) -> pd.DataFrame:

generated_data_source = FileSource(
path="benchmark_data.parquet",
event_timestamp_column="event_timestamp",
timestamp_field="event_timestamp",
)

entity = Entity(
Expand Down