File tree Expand file tree Collapse file tree
sdk/python/feast/infra/offline_stores/contrib/spark_offline_store Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,10 +112,21 @@ def _apply_bfv_transformations_for_historical(
112112 ):
113113 tmp_view = f"__feast_offline_{ ctx .name } _{ uuid .uuid4 ().hex [:8 ]} "
114114 file_format = fv .batch_source .file_format or "parquet"
115- df = spark_session .read .format (file_format ).load (fv .batch_source .path )
116- df .createOrReplaceTempView (tmp_view )
117- ctx = replace (ctx , table_subquery = tmp_view )
118- elif (
115+ try :
116+ df = spark_session .read .format (file_format ).load (fv .batch_source .path )
117+ df .createOrReplaceTempView (tmp_view )
118+ ctx = replace (ctx , table_subquery = tmp_view )
119+ new_contexts .append (ctx )
120+ continue
121+ except Exception :
122+ warnings .warn (
123+ f"Offline path '{ fv .batch_source .path } ' not readable for "
124+ f"'{ ctx .name } '; falling back to source query." ,
125+ RuntimeWarning ,
126+ stacklevel = 2 ,
127+ )
128+
129+ if (
119130 hasattr (fv , "feature_transformation" )
120131 and fv .feature_transformation is not None
121132 and (
You can’t perform that action at this time.
0 commit comments