Skip to content

AttributeError: 'dict' object has no attribute 'append' in job.to_chunked_dataframe() #944

@leeway-liu

Description

@leeway-liu

Expected Behavior

Return a generator of a chunked dataframe

Current Behavior

Giving error :

/home/dev/feast-venv/lib/python3.7/site-packages/feast/job.py in to_chunked_dataframe(self, max_chunk_size, timeout_sec)
    187         records = []
    188         for result in self.result(timeout_sec=timeout_sec):
--> 189             result.append(records)
    190             if len(records) == max_chunk_size:
    191                 df = pd.DataFrame.from_records(records)
AttributeError: 'dict' object has no attribute 'append'

Steps to reproduce

test = job.to_chunked_dataframe(10)
next(test)

Specifications

  • Version: 0.5.0
  • Platform: Python 3.7
  • Subsystem:

Possible Solution

In line 189, it should be records.append(result) instead of result.append(records)

Metadata

Metadata

Assignees

No one assigned

    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