Skip to content

Commit

Permalink
add convert to non-datetime test
Browse files Browse the repository at this point in the history
  • Loading branch information
wendy-aw committed Aug 19, 2024
1 parent ba60c55 commit ddffbf2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_utils_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ def test_date_time_type_conversion(self):
sql, self.md_cols, self.md_tables, dialect="tsql"
)
self.assertTrue(features.date_time_type_conversion)
sql = "SELECT CONVERT(INT, col) FROM table"
features = get_sql_features(
sql, self.md_cols, self.md_tables, dialect="tsql"
)
self.assertFalse(features.date_time_type_conversion)
sql = "SELECT DATEFROMPARTS(year_column, month_column, day_column) FROM table"
features = get_sql_features(
sql, self.md_cols, self.md_tables, dialect="tsql"
Expand Down

0 comments on commit ddffbf2

Please sign in to comment.