awslabs / aws-glue-libs

AWS Glue Libraries are additions and enhancements to Spark for ETL operations.
Other
643 stars 304 forks source link

ResolveOption class docs state you can use action type Cast. Glue Context doesn't accept that type in convert_resolve_option method #19

Open luishernandezv opened 5 years ago

luishernandezv commented 5 years ago

Hello, is this part of the documentation wrong? https://github.com/awslabs/aws-glue-libs/blob/21ff9e2df036faa5438050d24d20b7ced0bc77ef/awsglue/dynamicframe.py#L121

It says I can use "cast" as an action type but the convert_resolve_option in the glue context here doesn't accept it as a valid parameter.

https://github.com/awslabs/aws-glue-libs/blob/21ff9e2df036faa5438050d24d20b7ced0bc77ef/awsglue/context.py#L272

Thanks

cjkoski commented 4 years ago

Unfortunately I came across this issue as well, docs and implementation don't match.