Open sfc-gh-stan opened 5 months ago
Hello @sfc-gh-stan ,
Thanks for raising the issue.
Yes, the schema information is incorrect with local testing compare to default session.
default session: StructType([StructField('"pandas_datetime"', TimestampType(tz=ntz), nullable=True), StructField('"date"', TimestampType(tz=ntz), nullable=True), StructField('"datetime.datetime"', TimestampType(tz=ntz), nullable=True)])
local_testing: StructType([StructField('"pandas_datetime"', LongType(), nullable=True), StructField('"date"', LongType(), nullable=True), StructField('"datetime.datetime"', LongType(), nullable=True)])
We will work on eliminating it and update.
Regards, Sujan
prints
which can be traced to utility function
src/snowflake/snowpark/mock/_pandas_util.py::_extract_schema_and_data_from_pandas_df
extracting the schema wrong. This is a bug that blocks the testtests/integ/test_dataframe.py::test_create_dataframe_with_pandas_df
from being enabled to run against Local Testing.