Skip to content

Commit 41a7a4a

Browse files
authored
Fix noisy path warning (feast-dev#1452)
Signed-off-by: Willem Pienaar <git@willem.co>
1 parent 3f0435d commit 41a7a4a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

sdk/python/feast/data_source.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def from_proto(data_source):
456456
data_source_obj = FileSource(
457457
field_mapping=data_source.field_mapping,
458458
file_format=FileFormat.from_proto(data_source.file_options.file_format),
459-
file_url=data_source.file_options.file_url,
459+
path=data_source.file_options.file_url,
460460
event_timestamp_column=data_source.event_timestamp_column,
461461
created_timestamp_column=data_source.created_timestamp_column,
462462
date_partition_column=data_source.date_partition_column,
@@ -553,8 +553,7 @@ def __init__(
553553
raise ValueError(
554554
'No "path" argument provided. Please set "path" to the location of your file source.'
555555
)
556-
557-
if file_url is not None:
556+
if file_url:
558557
from warnings import warn
559558

560559
warn(

0 commit comments

Comments
 (0)