Skip to content

Unsupported case of DataType

1

ERROR MESSAGE: An error occurred while calling o518.pyWriteDynamicFrame. Unsupported case of DataType: com.amazonaws.services.glue.schema.types.StringType@235d3a6f and DynamicNode: integernode.

I utilize glue catalog and use s3 as my DB. I'm uploading CSV files and processing them with glue jobs, however I continue to get the error message **"An error occurred while calling o518.pyWriteDynamicFrame. Unsupported case of DataType: com.amazonaws.services.glue.schema.types.StringType@235d3a6f and DynamicNode: integernode.Datatype". **

I've updated and recreated the glue tables and crawlers multiple times as well as the schema to match data types but I still get the same error message. The glue job only succeeds when I update the schema to have string as the only data type but the data type needs to be int for integers when querying in Athena so this will cause an issue down stream. Can anyone help?

  • I had the same problem. Not sure about the cause but I was able to circumvent the error by using

    format="parquet"

    instead of

    format="glueparquet"

    in my glueContext.write_dynamic_frame.from_options() call

    This is probably slower, but that's not a problem in my case.