Skip to content

Commit

Permalink
bugfix: handle empty feature orders list
Browse files Browse the repository at this point in the history
  • Loading branch information
khorshuheng committed Apr 16, 2024
1 parent c8a5f22 commit 8392f44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def from_struct(
:param inference_schema: Model inference schema.
:return: Instance of PredictionLogFeatureTable.
"""
if inference_schema.feature_orders is not None:
if inference_schema.feature_orders is not None and len(inference_schema.feature_orders) > 0:
columns = inference_schema.feature_orders
else:
assert isinstance(table_struct["columns"], ListValue)
Expand Down

0 comments on commit 8392f44

Please sign in to comment.