Skip to content

Commit

Permalink
Fixed data source import bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsMoll committed Jun 11, 2024
1 parent d14b470 commit 17ca065
Show file tree
Hide file tree
Showing 4 changed files with 758 additions and 741 deletions.
8 changes: 6 additions & 2 deletions aligned/data_source/batch_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def __init__(self) -> None:
DeltaFileSource,
PartitionedParquetFileSource,
)
from aligned.schemas.feature_view import FeatureViewReferenceSource
from aligned.schemas.model import ModelSource

from aligned.sources.psql import PostgreSQLDataSource
from aligned.sources.redshift import RedshiftSQLDataSource
from aligned.sources.s3 import AwsS3CsvDataSource, AwsS3ParquetDataSource
Expand All @@ -48,8 +51,7 @@ def __init__(self) -> None:
AzureBlobParquetDataSource,
AzureBlobPartitionedParquetDataSource,
)
from aligned.schemas.feature_view import FeatureViewReferenceSource
from aligned.schemas.model import ModelSource
from aligned.sources.lancedb import LanceDbTable

source_types = [
PostgreSQLDataSource,
Expand All @@ -67,6 +69,8 @@ def __init__(self) -> None:
AzureBlobDeltaDataSource,
AzureBlobParquetDataSource,
AzureBlobPartitionedParquetDataSource,
# LanceDB
LanceDbTable,
# Aligned Related Sources
JoinDataSource,
JoinAsofDataSource,
Expand Down
1 change: 1 addition & 0 deletions aligned/exposed_model/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def __init__(self):
InMemMLFlowAlias,
ShadowModel,
ABTestModel,
DillPredictor,
]
for predictor in types:
self.supported_predictors[predictor.model_type] = predictor
Expand Down
Loading

0 comments on commit 17ca065

Please sign in to comment.