Skip to content

Commit

Permalink
Merge pull request #75 from ExpediaGroup/feature/push_source_pydantic…
Browse files Browse the repository at this point in the history
…_model

Feature/push source pydantic model
  • Loading branch information
michaelbackes authored Jan 17, 2024
2 parents 02968df + 341d77e commit cd72009
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""
import sys
from datetime import datetime, timedelta
from typing import Dict, List, Optional, Tuple
from typing import Dict, List, Optional, Tuple, Union

import dill
from pydantic import BaseModel
Expand All @@ -15,6 +15,7 @@
from feast.expediagroup.pydantic_models.data_source_model import (
AnyBatchDataSource,
KafkaSourceModel,
PushSourceModel,
RequestSourceModel,
SparkSourceModel,
)
Expand All @@ -25,7 +26,7 @@
from feast.on_demand_feature_view import OnDemandFeatureView

# TO DO: Supported batch and supported streaming
SUPPORTED_BATCH_DATA_SOURCES = [RequestSourceModel, SparkSourceModel]
SUPPORTED_BATCH_DATA_SOURCES = [RequestSourceModel, SparkSourceModel, PushSourceModel]
SUPPORTED_STREAM_DATA_SOURCES = [KafkaSourceModel]


Expand Down Expand Up @@ -63,7 +64,7 @@ class FeatureViewModel(BaseFeatureViewModel):
original_entities: List[EntityModel] = []
original_schema: Optional[List[FieldModel]]
ttl: Optional[timedelta]
batch_source: AnyBatchDataSource
batch_source: Union[AnyBatchDataSource, PushSourceModel]
stream_source: Optional[KafkaSourceModel]
online: bool
description: str
Expand Down

0 comments on commit cd72009

Please sign in to comment.