Last updated
Was this helpful?
Was this helpful?
from feast import FileSource
from feast.data_format import ParquetFormat
batch_file_source = FileSource(
file_format=ParquetFormat(),
file_url="file:///feast/customer.parquet",
event_timestamp_column="event_timestamp",
created_timestamp_column="created_timestamp",
)from feast import KafkaSource
from feast.data_format import ProtoFormat
stream_kafka_source = KafkaSource(
bootstrap_servers="localhost:9094",
message_format=ProtoFormat(class_path="class.path"),
topic="driver_trips",
event_timestamp_column="event_timestamp",
created_timestamp_column="created_timestamp",
)batch_bigquery_source = BigQuerySource(
table_ref="gcp_project:bq_dataset.bq_table",
event_timestamp_column="event_timestamp",
created_timestamp_column="created_timestamp",
)
stream_kinesis_source = KinesisSource(
bootstrap_servers="localhost:9094",
record_format=ProtoFormat(class_path="class.path"),
region="us-east-1",
stream_name="driver_trips",
event_timestamp_column="event_timestamp",
created_timestamp_column="created_timestamp",
)