Skip to content

Fix missing column when parsed Fitbit sleep intraday data are empty#248

Merged
jenniferfedor merged 1 commit into
developfrom
bugfix/sleep-intraday-datetime
Mar 26, 2026
Merged

Fix missing column when parsed Fitbit sleep intraday data are empty#248
jenniferfedor merged 1 commit into
developfrom
bugfix/sleep-intraday-datetime

Conversation

@jenniferfedor
Copy link
Copy Markdown
Collaborator

Recent changes to the mutation script for parsing raw Fitbit sleep intraday JSON data inadvertently resulted in the "local_date_time" column being excluded from the parsed data when the parsed data were empty. This caused the following error when the mutation script to add zero timestamps was subsequently applied to those data:

Error in py_call_impl(callable, dots$args, dots$keywords) : 
  KeyError: 'local_date_time'

Detailed traceback: 
  File "/rapids/src/data/streams/mutations/fitbit/add_zero_timestamp.py", line 5, in main
    if pd.api.types.is_datetime64_any_dtype(parsed_data['local_date_time']):

This PR fixes this issue.

@jenniferfedor jenniferfedor merged commit b764d8f into develop Mar 26, 2026
2 checks passed
@jenniferfedor jenniferfedor deleted the bugfix/sleep-intraday-datetime branch March 26, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant