Skip to content
Merged
Prev Previous commit
Next Next commit
Do not do any custom logic for double underscore columns
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
  • Loading branch information
felixwang9817 committed Jun 30, 2022
commit b090a1dd5613e2c4dc703de11eda4f7b46b75f2a
9 changes: 1 addition & 8 deletions sdk/python/feast/feature_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -1439,19 +1439,12 @@ def write_to_offline_store(
feature_view_name, allow_registry_cache=allow_registry_cache
)

# Get columns of the batch source and the input dataframe. Ignore columns with double
# underscores, which often signal an internal-use column.
# Get columns of the batch source and the input dataframe.
column_names_and_types = feature_view.batch_source.get_table_column_names_and_types(
self.config
)
source_columns = [column for column, _ in column_names_and_types]
source_columns = [
column for column in source_columns if not re.match("__|__$", column)
]
input_columns = df.columns.values.tolist()
input_columns = [
column for column in input_columns if not re.match("__|__$", column)
]

if set(input_columns) != set(source_columns):
raise ValueError(
Expand Down