Survey banner
The Dataiku Community is moving to a new home! Some short term disruption starting next week: LEARN MORE

Writing Pyspark dataframe to partitioned dataset

Gipple
Level 2
Writing Pyspark dataframe to partitioned dataset

I am trying to write the output of a pyspark recipe to a partitioned dataset, but I am receiving an error.

Py4JJavaError: An error occurred while calling o261.savePyDataFrame.
: com.dataiku.common.server.APIError$APIErrorException: Illegal time partitioning value : 'null' with a MONTH partitioning

 

This is how I am trying to write it

# Write recipe outputs
CCW_Output_Windows = dataiku.Dataset("CCW_Output_Windows")
dkuspark.write_with_schema(CCW_Output_Windows, CCW_Output_df)

 

I haven't been able to find any documentation on this. Thanks 

0 Kudos
1 Reply
JordanB
Dataiker

Hi @Gipple,

It appears that the recipe is finding a null where it expects a month date value. Please check your data as well as how you are selecting the partitions to build from:

 

Screenshot 2024-04-26 at 11.59.17 AM.png

Kind Regards,

Jordan

0 Kudos