Skip to content

KeyError: 'event_timestamp' at feast materialize-incremental #11

Description

@oonisim

Environment

FEAST 0.51
Python 3.11
MacOS (Apple Silicon)

Issue

After fixing the issue #9 and successful feast apply:

$ feast apply
No project found in the repository. Using project name credit_scoring_aws defined in feature_store.yaml
Applying changes for project credit_scoring_aws
Deploying infrastructure for zipcode_features
Deploying infrastructure for credit_history

Run the materialisation and got the error.

$ feast materialize-incremental $CURRENT_TIME
Materializing 2 feature views to 2025-08-18 03:21:52+00:00 into the dynamodb online store.

zipcode_features from 2015-08-21 03:23:41+00:00 to 2025-08-18 03:21:52+00:00:
credit_history from 2025-05-20 03:24:30+00:00 to 2025-08-18 03:21:52+00:00:
Traceback (most recent call last):
  File "/Users/onishima/venv/feast/bin/feast", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/click/core.py", line 1442, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/click/core.py", line 1363, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/click/core.py", line 1830, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/click/core.py", line 1226, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/click/core.py", line 794, in invoke
    return callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/click/decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/feast/cli/cli.py", line 354, in materialize_incremental_command
    store.materialize_incremental(
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/feast/feature_store.py", line 1498, in materialize_incremental
    provider.materialize_single_feature_view(
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/feast/infra/passthrough_provider.py", line 454, in materialize_single_feature_view
    raise e
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/feast/infra/compute_engines/local/compute.py", line 73, in _materialize_one
    plan.execute(context)
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/feast/infra/compute_engines/dag/plan.py", line 51, in execute
    output = node.execute(context)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/feast/infra/compute_engines/local/nodes.py", line 202, in execute
    df = self.backend.drop_duplicates(
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/feast/infra/compute_engines/local/backends/pandas_backend.py", line 41, in drop_duplicates
    return df.sort_values(by=sort_by, ascending=ascending).drop_duplicates(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/pandas/core/frame.py", line 7196, in sort_values
    k = self._get_label_or_level_values(by[0], axis=axis)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/onishima/venv/feast/lib/python3.11/site-packages/pandas/core/generic.py", line 1911, in _get_label_or_level_values
    raise KeyError(key)
KeyError: 'event_timestamp'

Please advise how to fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions