Skip to content

Commit

Permalink
Include categorical in test_mapping_column_types
Browse files Browse the repository at this point in the history
  • Loading branch information
jrnkng committed Jan 8, 2024
1 parent d961074 commit e7f0e9d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions df_to_azure/tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def test_mapping_column_types():
"Date": dr1,
"Timedelta": dr1 - dr2,
"Bool": [True, False, True],
"Categorical": Series(["a", "b", "c"], dtype="category"),
}
)
df_to_azure(
Expand Down Expand Up @@ -68,6 +69,7 @@ def test_mapping_column_types():
"Date",
"Timedelta",
"Bool",
"Categorical",
],
"DATA_TYPE": [
"varchar",
Expand All @@ -83,9 +85,10 @@ def test_mapping_column_types():
"datetime",
"numeric",
"bit",
"varchar",
],
"CHARACTER_MAXIMUM_LENGTH": [255, 255, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan],
"NUMERIC_PRECISION": [nan, nan, 10, 10, 10, 10, 10, 10, 18, 18, nan, 18, nan],
"CHARACTER_MAXIMUM_LENGTH": [255, 255, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 255],
"NUMERIC_PRECISION": [nan, nan, 10, 10, 10, 10, 10, 10, 18, 18, nan, 18, nan, nan],
}
)

Expand Down

0 comments on commit e7f0e9d

Please sign in to comment.