Skip to content

Commit

Permalink
try to debug
Browse files Browse the repository at this point in the history
test fail is not reproduced locally
  • Loading branch information
polinaeterna committed Jan 10, 2025
1 parent 351ef5c commit 787ad3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/worker/src/worker/statistics_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,9 @@ def is_datetime(data: pl.DataFrame, column_name: str) -> tuple[bool, Optional[st
if _is_datetime:
formats = [identify_datetime_format(value) for value in values]
if len(set(formats)) == 1:
datetime_format = formats[0]
if not datetime_format:
raise ValueError("Values are datetime but format is not identified")
return True, formats[0]
raise StatisticsComputationError("Multiple datetime formats detected. ")

Expand Down

0 comments on commit 787ad3b

Please sign in to comment.