Skip to content

Commit

Permalink
Fix TO_DATE feature
Browse files Browse the repository at this point in the history
  • Loading branch information
wongjingping committed Aug 5, 2024
1 parent ffcd651 commit ae36c54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defog_utils/utils_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ def get_sql_features(
features.date_sub = True
elif isinstance(node, exp.DateTrunc) or isinstance(node, exp.TimestampTrunc):
features.date_trunc = True
elif isinstance(node, exp.StrToDate):
features.date_time_type_conversion = True
elif isinstance(node, exp.StrToTime):
features.date_time_type_conversion = True
elif isinstance(node, exp.Extract):
Expand Down

0 comments on commit ae36c54

Please sign in to comment.