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
11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 | |