get_plan
async
¶
get_plan(
mapping: MappingList,
source: CatalogEntry,
*,
config_overrides: Optional[AsyncGlueClientConfig] = 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/async_glue.py
11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 | |