get_plan
¶
get_plan(
mapping: MappingList,
source: CatalogEntry,
*,
config_overrides: Optional[GlueClientConfig] = None,
sinks: Optional[CatalogEntries] = None,
location: Optional[Location] = None,
language: Optional[Language] = None,
additional_plan_options_map: Optional[AdditionalPlanOptionsMap] = None,
) -> GetPlanResponse
Gets code to perform a specified mapping.
Parameters:
-
mapping(MappingList) –The list of mappings from a source table to target tables.
-
source(CatalogEntry) –The source table.
-
sinks(Optional[CatalogEntries], default:None) –The target tables.
-
location(Optional[Location], default:None) –The parameters for the mapping.
-
language(Optional[Language], default:None) –The programming language of the code to perform the mapping.
-
additional_plan_options_map(Optional[AdditionalPlanOptionsMap], default:None) –A map to hold additional optional key-value parameters.
Currently, these key-value pairs are supported:
-
inferSchema— Specifies whether to setinferSchemato true or false for the default script generated by an Glue job. For example, to setinferSchemato true, pass the following key value pair:--additional-plan-options-map '{"inferSchema":"true"}'
-
Raises:
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/glue.py
10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 | |