Skip to content

Commit f1024a8

Browse files
committed
fix: handle hyphon in sqlite project name ([#5575](#5575))
Signed-off-by: Jacob Weinhold <29459386+jfw-ppi@users.noreply.github.com>
1 parent a409068 commit f1024a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdk/python/feast/repo_config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
)
2929
from feast.importer import import_class
3030
from feast.permissions.auth.auth_type import AuthType
31-
from feast.repo_operations import is_valid_name
3231

3332
warnings.simplefilter("once", RuntimeWarning)
3433

@@ -505,6 +504,9 @@ def _validate_feature_server_config(cls, values: Any) -> Any:
505504
@field_validator("project")
506505
@classmethod
507506
def _validate_project_name(cls, v: str, info: ValidationInfo) -> str:
507+
# Deferred import to avoid circular dependency during package initialization.
508+
from feast.repo_operations import is_valid_name
509+
508510
sqlite_compatible = False
509511

510512
online_store = info.data.get("online_store") if info else None

0 commit comments

Comments
 (0)