Skip to content

Commit

Permalink
Incorrect assumption of type str
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-fry-ga committed May 8, 2024
1 parent 596137f commit 2f82d44
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cubedash/summary/_extents.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,7 @@ def _dataset_creation_expression(md: MetadataType) -> ClauseElement:
else:
doc = md.dataset_fields["metadata_doc"].alchemy_expression
creation_dt = md.definition["dataset"].get("creation_dt") or ["creation_dt"]
creation_expression = doc[creation_dt].astext.join(
"::timestamp at time zone 'utc'"
)
creation_expression = str(doc[creation_dt]).join("::timestamp at time zone 'utc'")

# If they're missing a dataset-creation time, fall back to the time it was indexed.
return func.coalesce(creation_expression, DATASET.c.added)
Expand Down

0 comments on commit 2f82d44

Please sign in to comment.