-
Notifications
You must be signed in to change notification settings - Fork 143
Open
Labels
bugSomething isn't workingSomething isn't workinglocal testingLocal Testing issues/PRsLocal Testing issues/PRsstatus-triage_doneInitial triage done, will be further handled by the driver teamInitial triage done, will be further handled by the driver team
Description
Please answer these questions before submitting your issue. Thanks!
-
What version of Python are you using?
Python 3.11.13 -
What are the Snowpark Python and pandas versions in the environment?
pandas==2.1.4 pandas-gbq==0.31.0 snowflake-snowpark-python==1.42.0 -
What did you do?
When I created an empty dataframe with 2 columns. I tried to filter based on one of the column, but instead of returning a duplication of that empty dataframe, it returns a dataframe with no columns at all.
empty_schema = StructType([ StructField("entry", StringType(), True), StructField("file_path", StringType(), True), ]) mock_encounters_df = session.create_dataframe([], schema=empty_schema) mock_encounters_df.show() print("--------------- filter -----------------") mock_encounters_df.filter(col("entry").is_null()).show() # ------------------------- # |"ENTRY" |"FILE_PATH" | # ------------------------- # | | | # ------------------------- # --------------- filter ----------------- # - # || # - # || # -
-
What did you expect to see?
The expectation is to see the same dataframe I used before the filter so the output will be:
------------------------- |"ENTRY" |"FILE_PATH" | ------------------------- | | | ------------------------- --------------- filter ----------------- ------------------------- |"ENTRY" |"FILE_PATH" | ------------------------- | | | -------------------------
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinglocal testingLocal Testing issues/PRsLocal Testing issues/PRsstatus-triage_doneInitial triage done, will be further handled by the driver teamInitial triage done, will be further handled by the driver team