Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services AWS Glue IllegalArgumentException:“无效的类型名uuid”_Amazon Web Services_Aws Glue - Fatal编程技术网

Amazon web services AWS Glue IllegalArgumentException:“无效的类型名uuid”

Amazon web services AWS Glue IllegalArgumentException:“无效的类型名uuid”,amazon-web-services,aws-glue,Amazon Web Services,Aws Glue,我试图将一列中包含UUID的表ETL到postgres表中,但我很难将UUID列作为UUID类型加载到目标postgres表中 使用以下代码行: applymapping1 = ApplyMapping.apply(frame = foo, mappings = [("id", "string", "id", "uuid")], transformation_ctx = "applymapping1") 运行粘合作业时,我收到以下错误: IllegalArgumentException: 'I

我试图将一列中包含UUID的表ETL到postgres表中,但我很难将UUID列作为UUID类型加载到目标postgres表中

使用以下代码行:

applymapping1 = ApplyMapping.apply(frame = foo, mappings = [("id", "string", "id", "uuid")], transformation_ctx = "applymapping1")
运行粘合作业时,我收到以下错误:

IllegalArgumentException: 'Invalid type name guid'
有人知道如何将该id作为UUID存储在目标数据库表中吗


此外,我似乎找不到允许在ApplyMapping调用中使用的受支持数据类型的列表。有人知道在哪里可以找到这些吗?

AWS Glue不支持uuid作为数据类型。以下文档详细介绍了AWS glue ETL中所有受支持的数据类型,这些数据类型是pyspark类型的扩展:


为了澄清。。。我通过将UUID作为字符串存储在目标数据库中解决了这个问题