File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1900,14 +1900,14 @@ def write_to_online_store(
1900
1900
# Validate that the dataframe has meaningful feature data
1901
1901
if df is not None :
1902
1902
if df .empty :
1903
- raise ValueError ("Cannot write empty dataframe to online store" )
1903
+ warnings . warn ("Cannot write empty dataframe to online store" )
1904
1904
1905
1905
# Check if feature columns are empty (entity columns may have data but feature columns are empty)
1906
1906
feature_column_names = [f .name for f in feature_view .features ]
1907
1907
if feature_column_names :
1908
1908
feature_df = df [feature_column_names ]
1909
1909
if feature_df .empty or feature_df .isnull ().all ().all ():
1910
- raise ValueError (
1910
+ warnings . warn (
1911
1911
"Cannot write dataframe with empty feature columns to online store"
1912
1912
)
1913
1913
@@ -1944,14 +1944,14 @@ async def write_to_online_store_async(
1944
1944
# Validate that the dataframe has meaningful feature data
1945
1945
if df is not None :
1946
1946
if df .empty :
1947
- raise ValueError ("Cannot write empty dataframe to online store" )
1947
+ warnings . warn ("Cannot write empty dataframe to online store" )
1948
1948
1949
1949
# Check if feature columns are empty (entity columns may have data but feature columns are empty)
1950
1950
feature_column_names = [f .name for f in feature_view .features ]
1951
1951
if feature_column_names :
1952
1952
feature_df = df [feature_column_names ]
1953
1953
if feature_df .empty or feature_df .isnull ().all ().all ():
1954
- raise ValueError (
1954
+ warnings . warn (
1955
1955
"Cannot write dataframe with empty feature columns to online store"
1956
1956
)
1957
1957
You can’t perform that action at this time.
0 commit comments