Skip to content

Commit

Permalink
Fixed error code in pandas tests (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkilias authored Jun 1, 2023
1 parent 433f064 commit 1c9e620
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test_container/tests/test/pandas/all/emit_dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,15 @@ def setUp(self):
#("object", "DECIMAL(10,5)", nan_dataframe_value_str, None, False), # Fails with VM error: [22018] invalid character value for cast; Value: 'nan'

("string", "VARCHAR(2000000)", nan_dataframe_value_str, nan_expected_rows, False),
("object", "VARCHAR(2000000)", nan_dataframe_value_str, ".*PYTHON-1068: emit column 0 of type STRING but data given have type py_float.*", False),
("object", "VARCHAR(2000000)", nan_dataframe_value_str, ".*PYTHON-1140: emit column 0 of type STRING but data given have type py_float.*", False),

("bool_", "boolean", nan_dataframe_value_str, nan_expected_rows_bool_, False),
("boolean", "boolean", nan_dataframe_value_str, nan_expected_rows, False),
("object", "boolean", nan_dataframe_value_str, ".*F-UDF-CL-SL-PYTHON-1068: emit column 0 of type BOOLEAN but data given have type py_float.*", False),
("object", "boolean", nan_dataframe_value_str, ".*F-UDF-CL-SL-PYTHON-1140: emit column 0 of type BOOLEAN but data given have type py_float.*", False),

("datetime64[ns]", "timestamp", nan_dataframe_value_str, nan_expected_rows, False),
("object", "timestamp", nan_dataframe_value_str, ".*F-UDF-CL-SL-PYTHON-1068: emit column 0 of type TIMESTAMP but data given have type py_float.*", False),
("object", "DATE", nan_dataframe_value_str, ".*F-UDF-CL-SL-PYTHON-1068: emit column 0 of type DATE but data given have type py_float.*", False),
("object", "timestamp", nan_dataframe_value_str, ".*F-UDF-CL-SL-PYTHON-1140: emit column 0 of type TIMESTAMP but data given have type py_float.*", False),
("object", "DATE", nan_dataframe_value_str, ".*F-UDF-CL-SL-PYTHON-1140: emit column 0 of type DATE but data given have type py_float.*", False),

]

Expand Down

0 comments on commit 1c9e620

Please sign in to comment.