GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: Using repo_config parameter in teardown to allow for feature-store-yaml overrides by danbaron63 · Pull Request #4413 · feast-dev/feast

fix: Using repo_config parameter in teardown to allow for feature-store-yaml overrides #4413

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.

Sign up for GitHub

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

Merged
tokoko merged 3 commits into feast-dev:master from danbaron63:fix/teardown-repo-config
Aug 16, 2024

Uh oh!

There was an error while loading. Please reload this page.

Merged

fix: Using repo_config parameter in teardown to allow for feature-store-yaml overrides #4413

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3 commits
Select commit Hold shift + click to select a range
f7311e3
fix: using repo_config parameter in teardown to allow for feature-sto…
danbaron63 Aug 15, 2024
9364582
fix: fixing linting and formatting issues in tests
danbaron63 Aug 15, 2024
7b2dd08
fix: removing unnecessary Path object construction
danbaron63 Aug 15, 2024
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

2 changes: 1 addition & 1 deletion 2 sdk/python/feast/repo_operations.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def apply_total(repo_config: RepoConfig, repo_path: Path, skip_source_validation

def teardown(repo_config: RepoConfig, repo_path: Optional[str]):
# Cannot pass in both repo_path and repo_config to FeatureStore.
feature_store = FeatureStore(repo_path=repo_path, config=None)
feature_store = FeatureStore(repo_path=repo_path, config=repo_config)
feature_store.teardown()


Expand Down
9 changes: 4 additions & 5 deletions 9 sdk/python/feast/transformation/pandas_transformation.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from types import FunctionType
from typing import Any
from typing import Any, Callable

import dill
import pandas as pd
Expand All @@ -15,7 +14,7 @@


class PandasTransformation:
def __init__(self, udf: FunctionType, udf_string: str = ""):
def __init__(self, udf: Callable[[Any], Any], udf_string: str = ""):
"""
Creates an PandasTransformation object.

Expand All @@ -30,11 +29,11 @@ def __init__(self, udf: FunctionType, udf_string: str = ""):
def transform_arrow(
self, pa_table: pyarrow.Table, features: list[Field]
) -> pyarrow.Table:
output_df_pandas = self.udf.__call__(pa_table.to_pandas())
output_df_pandas = self.udf(pa_table.to_pandas())
return pyarrow.Table.from_pandas(output_df_pandas)

def transform(self, input_df: pd.DataFrame) -> pd.DataFrame:
return self.udf.__call__(input_df)
return self.udf(input_df)

def infer_features(self, random_input: dict[str, list[Any]]) -> list[Field]:
df = pd.DataFrame.from_dict(random_input)
Expand Down
7 changes: 4 additions & 3 deletions 7 sdk/python/tests/integration/feature_repos/universal/data_sources/file.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import tempfile
import uuid
from pathlib import Path
from subprocess import Popen
from typing import Any, Dict, List, Optional

import pandas as pd
Expand Down Expand Up @@ -367,7 +368,7 @@ class RemoteOfflineStoreDataSourceCreator(FileDataSourceCreator):
def __init__(self, project_name: str, *args, **kwargs):
super().__init__(project_name)
self.server_port: int = 0
self.proc = None
self.proc: Optional[Popen[bytes]] = None

def setup(self, registry: RegistryConfig):
parent_offline_config = super().create_offline_store_config()
Expand All @@ -382,13 +383,13 @@ def setup(self, registry: RegistryConfig):
repo_path = Path(tempfile.mkdtemp())
with open(repo_path / "feature_store.yaml", "w") as outfile:
yaml.dump(config.model_dump(by_alias=True), outfile)
repo_path = str(repo_path.resolve())
repo_path = repo_path.resolve()

self.server_port = free_port()
host = "0.0.0.0"
cmd = [
"feast",
"-c" + repo_path,
"-c" + str(repo_path),
Comment thread
danbaron63 marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

"serve_offline",
"--host",
host,
Expand Down
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.